Book Image

SAP ABAP Advanced Cookbook

By : Rehan Zaidi
Book Image

SAP ABAP Advanced Cookbook

By: Rehan Zaidi

Overview of this book

ABAP (Advanced Business Application Programming) is SAP's proprietary 4th Generation Language (4GL). SAP core is written almost entirely in ABAP.ABAP is a high level programming language used in SAP for development and other customization processes."SAP ABAP Advanced Cookbook"ù covers advanced SAP programming applications with ABAP. It teaches you to enhance SAP applications by developing custom reports and interfaces with ABAP programming. This cookbook has quick and advanced real world recipes for programming ABAP.It begins with the applications of ABAP Objects and ALV tips and tricks. It then covers Design Patterns and Dynamic Programming in detail.You will also learn the usage of quality improvement tools such as transaction SAT, SQL Trace, and the Code Inspector.Simple transformations and its application in Excel Downloading will also be discussed, as well as the newest topics of Adobe Interactive Forms and the consumption and creation of Web services. The book comes to an end by covering advanced usage of Web Dynpro for ABAP and the latest advancement in Floorplan Manager.
Table of Contents (22 chapters)
SAP ABAP Advanced Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Index

A

  • ABAP
    • Web Dynpro / Introduction
  • ABAP language / Introduction
  • ABAP program
    • web service, calling / Calling a Web service from an ABAP program, How to do it..., How it works...
  • ABAP statement patterns
    • searching / Searching for ABAP statement patterns and tokens within code, How to do it..., How it works...
  • Activate button / How to do it...
  • Activation Log / There's more...
  • adapter class / How to do it...
  • adapter method / How to do it...
  • adapter pattern based classes
    • about / Creating classes based on adapter pattern
    • creating / Getting ready, How to do it...
    • working / How it works..., See also
  • add attachment method / How to do it...
  • Add Toolbar Element button / How to do it...
  • add_recipient method / How it works...
  • Adobe forms
    • displaying, in Web Dynpros / Displaying Adobe forms in Web Dynpros, How to do it..., How it works...
  • Adobe LiveCycle Designer / Introduction
  • Adobe offline infrastructure
    • about / Working with Adobe offline infrastructure
    • working with / Getting ready, How to do it..., How it works...
  • ADS
    • about / Introduction
  • ALV
    • about / Introduction
  • ALV coulmns
    • setting, as key columns / Setting ALV columns as key columns and making zero amount appear as blank, How it works...
    • zero amount, setting / Setting ALV columns as key columns and making zero amount appear as blank, How it works...
  • ALV toolbar
    • own buttons, adding / Adding your own buttons to ALV toolbar, How to do it...
    • working / How it works..., There's more...
  • amount string
    • commas, inserting / Inserting commas in an amount string, How it works...
  • Application Creation Tool
    • used, for FPM applications creating / Creating FPM applications using Application Creation Tool, How to do it...
    • working / How it works...
  • applications based OIF Floorplan design
    • about / Creating applications based on OIF Floorplan design, Getting ready
    • creating / How to do it...
    • working / How it works..., There's more...
  • attachments
    • adding, to e-mail message / Adding attachments to your message, How to do it..., How it works..., There's more...

B

  • background pictures
    • setting / Using background pictures and print preview, How to do it..., How it works..., See also
  • BCS classes
    • CL_BCS / Introduction
    • CL_DOCUMENT_BCS / Introduction
    • CL_CAM_ADDRESS_BCS / Introduction
    • CL_SAPUSER_BCS / Introduction
    • CL_BCS_CONVERT / Introduction
  • Business Communication Service / Getting ready
  • button press method / How to do it...
  • BUTTON_KIND parameter / How it works...

C

  • characters
    • removing, from string / Removal of characters from a string, How it works...
  • checkboxes
    • adding, to column / Adding checkboxes to columns, Getting ready, How to do it..., There's more...
    • working / How it works...
  • CL_BCS class / Introduction
  • CL_BCS_CONVERT class / Introduction
  • CL_CAM_ADDRESS_BCS class / Introduction
  • CL_DOCUMENT_BCS class / Introduction
  • CL_SALV_EVENTS_TABLE class / How it works...
  • CL_SAPUSER_BCS class / Introduction
  • Code Inspector
    • about / Introduction
    • check categories / Introduction
  • Code Inspector checks
    • creating / Creating your own Code Inspector checks, How to do it..., How it works..., See also
  • columns
    • Hotspot, adding / Adding Hotspot to columns, How to do it...
    • checkboxes, adding / Adding checkboxes to columns, Getting ready, How to do it...
  • commas
    • inserting, in amount string / Inserting commas in an amount string, How it works...
  • comments
    • removing, from program code / Removing comments from program code, Getting ready, How it works...
  • Configuration Editor button / How to do it...
  • CONSTRUCTOR method / How it works...
  • consumer proxy's logical port
    • creating / Creating a consumer proxy's logical port, How to do it...
    • working / How it works...
  • Continue button / How to do it...
  • coulmns
    • removing, from layout / Removing columns from display and layout, How it works...
    • removing, from display / Removing columns from display and layout, How it works...
  • created web service
    • configuring / Configuring the created Web service, How to do it...
    • working / How it works...
  • Create Extension Index option / How to do it...
  • Create New Version icon / How it works...
  • create_internet_address method / How to do it...
  • CREATE_PDF_OBJECT method / How it works...
  • create_persistent method / How it works...
  • CREATE_WINDOW method / How to do it...

D

  • database-specific performance checks
    • carrying out / Carrying out database-specific performance checks, How it works...
  • database table contents
    • printing, data references used / Using field symbols and data references to print database table contents, How to do it..., How it works...
    • printing, field symbols used / Using field symbols and data references to print database table contents, How to do it..., How it works...
  • database tables
    • secondary indexes, creating / Creation of secondary indexes in database tables, How to do it..., How it works...
  • Database Utility / There's more...
  • date
    • converting, into internal date type / Converting date into internal date type, How it works...
  • DEFAULT_BUTTON parameter / How it works...
  • Deserialization / Introduction
  • desktop folder
    • input, taking / How to do it..., How it works..., There's more...
  • detach_commit method / How to do it...
  • dictionary table types
    • transformations, creating / Generating transformations for dictionary table types, How to do it...
    • working / How it works...
  • directory_browse method / There's more...
  • Display Trace button / How to do it...
  • Display Trace option / How it works...
  • Display Trace screen / There's more...
  • duplex printing
    • enabling, in forms / Enabling duplex printing in forms, How to do it...
  • dynamic Open SQL
    • applying / Applying dynamic Open SQL, Getting ready, How to do it..., How it works..., There's more...
  • dynamic program
    • generating / Dynamic program generation, How to do it..., How it works..., There's more...
  • dynamic programming
    • about / Introduction

E

  • e %_HINTS parameter / Adding hints in SELECT clause
  • e-mail
    • sending, to Internet address / Sending e-mail to Internet e-mail addresses, How it works...
  • error messages
    • displaying / Displaying error messages, How to do it...
  • Excel downloading
    • transformations, using / Downloading into Excel made easy using simple transformations, How to do it..., How it works...
  • Executed icon / How it works...
  • EXECUTE method / How it works...
  • EXPLAIN TREE tab / There's more...

F

  • factory method / How to do it...
  • factory method based classes
    • creating / Creating classes based on factory methods, How to do it...
    • working / How it works...
  • field's hit list data source
    • finding / Finding the data source of a field's hit list, How to do it..., How it works...
  • filename
    • input, taking / How to do it..., How it works..., There's more...
  • folder options
    • using, for page protection / Using folder options for page protection, How to do it..., How it works...
  • for all entries construct
    • replacing, ranges used / Replacing for all entries constructwith Ranges, How to do it..., How it works...
  • forms
    • duplex printing, enabling / Enabling duplex printing in forms, How to do it...
    • parallel printing / Parallel printing of form, How it works...
  • FPM applications
    • structure, viewing / Viewing structure of FPM applications, How to do it..., How it works...
    • creating, Application Creation Tool used / Creating FPM applications using Application Creation Tool, How to do it...
  • full-fledged inspection
    • about / Carrying out a full-fledged inspection
    • carrying out / Carrying out a full-fledged inspection, How to do it...
    • working / How it works..., There's more...
  • function module
    • used, for web service creating / Creating a Web service from a function module, Getting ready, How to do it..., There's more...
    • working / How it works...

G

  • GAF
    • about / Introduction
  • GAF applications
    • about / Creating GAF applications
    • creating / Getting ready, How to do it...
    • working / How it works...
  • get_column method / How to do it...
  • GET_COMPONENTS method / How to do it...
  • GET_DATA method / How to do it...
  • GET_DEFINITION method / How it works...
  • get_persistent method / How it works...
  • GET_WINDOW_MANAGER function / How to do it...
  • GUIBBS
    • about / Adding list GUIBBs to Floorplan applications
    • Tabs UIBB / Adding list GUIBBs to Floorplan applications
    • Form / Adding list GUIBBs to Floorplan applications
    • List UIBB / Adding list GUIBBs to Floorplan applications
    • adding, to Floorplan applications / Adding list GUIBBs to Floorplan applications, How to do it...
    • working / How it works...

H

  • hashed table
    • single read access / Hashed table for single read access, How to do it..., How it works...
  • hints
    • adding, in SELECT clause / Adding hints in SELECT clause, How to do it..., There's more...
  • Hit List tab / How it works...
  • Hotspot
    • columns, adding / Adding Hotspot to columns, How to do it...
    • working / How it works...
  • HTML e-mail
    • about / Creating HTML e-mail
    • creating / How to do it...
    • working / How it works...
  • HTML stream
    • interpreting / Interpreting HTML stream, How it works...

I

  • IDR
    • about / Introduction
  • IDR header (title and ticket area)
    • modifying / Changing header and ticket area at runtime, How to do it...
    • working / How it works...
  • IF statement
    • regex, using as / Using regex as an IF statement, How to do it...
  • Import button / How it works...
  • Insert new root option / How to do it...
  • interactive forms
    • creating, scripting used / Using form elements and scripting to create interactive forms, How to do it...
    • creating, form elements used / Using form elements and scripting to create interactive forms, How to do it...
    • working / How it works..., There's more...
    • error messages, adding / Adding error messages for interactive forms, How it works...
  • internal date type
    • date, converting into / Converting date into internal date type, How it works...
  • internal tables
    • secondary indexes / Secondary indexes for internal tables, Getting ready, How it works...
    • transformations, creating / Creating transformations for internal tables, How to do it...
    • working / How it works...
  • i_att_content_hex parameter / How it works...

L

  • layout toolbar buttons
    • saving / Enable Adding Layout toolbar buttons
    • working / How it works...
  • LIST_FROM_MEMORY function / How to do it...
  • LOOP statement / How to do it...

M

  • MESSAGE_TYPE parameter / How it works...
  • multiselection parameter / There's more...
  • mycheckbox method / How to do it...

N

  • navigation lists
    • about / Creating navigation lists
    • creating / How to do it...
    • working / How it works..., There's more...
  • nested tables
    • about / Creating nested tables
    • creating / How to do it...
    • working / How it works..., There's more...

O

  • OIF
    • about / Introduction
  • OnActionbutton handler method / There's more...
  • on_button_press method / How to do it...
  • on_click_checkbox method / How it works...
  • OVP
    • about / Introduction

P

  • PDF object API
    • about / PDF object API
    • using / How to do it...
    • working / How it works..., See also
  • PDF output
    • Smart Form, converting to / Converting Smart Forms to PDF output, How to do it..., See also
  • persistent object
    • about / Creating a persistent object
    • creating / How to do it...
    • working / How it works...
  • printed multiple forms
    • including, in single spool request / Printing several forms in one spool request, How to do it..., How it works...
  • print preview
    • using / Using background pictures and print preview, How to do it..., How it works..., See also
  • Print Preview option / There's more...
  • program
    • running / Running a program and sending its output as an e-mail, How to do it..., There's more...
  • program code
    • comments, removing / Removing comments from program code, Getting ready, How it works...
  • program output
    • sending, as email / Running a program and sending its output as an e-mail, How to do it..., There's more...
  • pseudo comments
    • used, for message suppressing / Suppressing messages using pseudo comments, How to do it...

Q

  • QAP
    • about / Introduction
  • quick code inspection
    • carrying out / Carrying out quick code inspection, How to do it...
    • working / How it works..., There's more...

R

  • radio button selection
    • screen fields, changing / Changing screen fields on radio button selection, How it works...
  • refresh method / How to do it...
  • regex
    • using, as IF statement / Using regex as an IF statement, How to do it...
  • regular expression
    • about / Introduction
  • regular expression operators, in ABAP
    • about / Regular expressions
    • . ( / Regular expressions
    • * / Regular expressions
    • + / Regular expressions
    • \< / Regular expressions
    • \> / Regular expressions
    • ^ / Regular expressions
    • ?= / Regular expressions
    • ?! / Regular expressions
    • \1 / Regular expressions
    • \2 / Regular expressions
    • $ / Regular expressions
    • \d / Regular expressions
    • \w / Regular expressions
    • \u / Regular expressions
  • report selection screens
    • listboxes, adding / Adding tabstrips and listboxes to report selection screens, How to do it..., How it works...
    • tabstrips, adding / Adding tabstrips and listboxes to report selection screens, How to do it..., How it works...
  • restricted trace
    • carrying out / Carrying out restricted trace, How to do it..., How it works...
  • RTTI / Introduction
  • r_header table / How it works...

S

  • SAP
    • about / Introduction
  • SAP interactive forms
    • recipes / Introduction
  • screen field data source
    • finding / Quickly finding the data source of a screen field, How to do it...
  • screen fields
    • changing, on radio button selection / Changing screen fields on radio button selection, How it works...
  • Search Function node
    • using / Searching for ABAP statement patterns and tokens within code
  • search help
    • creating / Getting ready
    • exit function module, defining / How to do it...
    • working / How it works..., See also
  • secondary indexes
    • creating, in database tables / Creation of secondary indexes in database tables, How to do it..., How it works...
    • for internal tables / Secondary indexes for internal tables, Getting ready, How it works...
  • SELECT clause
    • hints, adding / Adding hints in SELECT clause, How to do it..., There's more...
  • selection screen
    • toolbar buttons, adding / Adding toolbar buttons on selection screen, How to do it..., How it works...
  • SELECT statements / Introduction
  • send method / How to do it...
  • serialization / Introduction
  • Service Consumer node / Getting ready
  • set_cell_type method / How it works...
  • set_data method / How to do it...
  • SET_DOCUMENT method / How it works...
  • SET_EXTRACTDATA method / How to do it...
  • set_key method / How to do it...
  • set_save_restriction method / How it works...
  • set_screen_status method / How it works...
  • set_technical method / How it works...
  • shared memory object
    • about / Creating a shared memory object
    • root class, creating / Getting ready
    • creating / How to do it...
    • working / How it works..., There's more...
  • similar component dialog boxes
    • displaying / Calling dialog boxes of same component, How to do it..., How it works..., There's more...
  • simple e-mail message
    • creating / Creating a simple e-mail message, How to do it...
    • working / How it works...
    • attachments, adding / Adding attachments to your message, How to do it..., How it works..., There's more...
  • simple transformations
    • about / Introduction, Creating simple transformations
    • creating / How to do it...
    • working / How it works..., There's more..., How it works...
    • creating, for nested structure / Creating transformations for structures and calling them in programs, How to do it..., How it works...
    • creating, for internal tables / Creating transformations for internal tables, How to do it...
    • generating, for dictionary table types / Generating transformations for dictionary table types, How to do it..., How it works...
    • used, for Excel downloading / Downloading into Excel made easy using simple transformations, How to do it..., How it works...
  • single read access
    • hashed table / Hashed table for single read access, How to do it..., How it works...
  • single spool request
    • printed multiple forms, including / Printing several forms in one spool request, How to do it..., How it works...
  • singleton class / Creating classes based on singleton design pattern
  • singleton design pattern based classes
    • about / Creating classes based on singleton design pattern
    • creating / How to do it...
    • working / How it works...
  • Smart Form
    • converting, to PDF output / Converting Smart Forms to PDF output, How to do it..., See also
  • Smart Forms
    • about / Introduction
  • Smart Forms text editor
    • changing, to Microsoft Word / Toggle on/off the Microsoft Word text editor, See also
  • SOA / Introduction
  • Source Code tab / How to do it...
  • special characters
    • \. / Regular expressions
    • \+ / Regular expressions
    • \ / Regular expressions
    • \? / Regular expressions
    • \$ / Regular expressions
    • \^ / Regular expressions
    • \( / Regular expressions
    • \) / Regular expressions
    • \[ / Regular expressions
    • \] / Regular expressions
  • SQL list
    • summarizing / Summarizing a SQL list and viewing table-related information, How to do it..., How it works...
  • SQL trace
    • about / Introduction
    • carrying out / Carrying out SQL trace, How to do it...
    • Activate Trace button, working / How it works...
  • static adapter method / How to do it...
  • string
    • characters, removing / Removal of characters from a string, How it works...

T

  • table-related information
    • viewing / Summarizing a SQL list and viewing table-related information, How to do it..., How it works...
  • table fields
    • subtotaling, applying / Applying sorting and subtotaling to table fields, Getting ready, How to do it..., How it works...
    • sorting, applying / Applying sorting and subtotaling to table fields, Getting ready, How to do it..., How it works...
  • tabstrips
    • about / Creating tabstrips
    • creating / How to do it...
    • working / How it works...
  • telephone numbers format
    • validating / Validation of format (telephone number), How it works...
  • Temporary Definition option / How to do it...
  • text string
    • repeated words, removing / Removing repeated words from text string, How it works...
  • tokens
    • searching / Searching for ABAP statement patterns and tokens within code, How to do it..., How it works...
  • Toolbar button / There's more...
  • toolbar buttons
    • adding, on selection screen / Adding toolbar buttons on selection screen, How to do it..., How it works...
  • trace result
    • interpreting / Generating and interpreting the trace result, How to do it..., How it works..., There's more...
    • generating / Generating and interpreting the trace result, How to do it..., How it works..., There's more...
    • PREPARE operation / How it works...
    • OPEN operation / How it works...
    • FETCH operation / How it works...
  • transaction SAT
    • using, for problem area search / Using transaction SAT to find problem areas, Getting ready, How to do it...
    • working / How it works...
  • trees
    • creating / Creating trees, How to do it...
    • about / Creating trees
    • working / How it works...
  • tt*template command / How to do it...
  • tt*value command / Introduction

U

  • UDDI / Introduction
  • UIBB
    • about / Introduction
  • unwanted trace result entries
    • filtering / Filtering unwanted trace result entries, How to do it...

V

  • value parameter / There's more...

W

  • WDDOBEFOREREACTION method / How it works...
  • WDDOINIT method / How to do it...
  • wd_get_api()method / Introduction
  • Web Dynpro
    • about / Introduction
    • trees, creating / Creating trees
    • navigation lists, creating / Creating navigation lists
    • tabstrips creating / Creating tabstrips
    • error messages, displaying / Displaying error messages
    • Adobe forms, displaying / Displaying Adobe forms in Web Dynpros, How to do it..., How it works...
  • web service
    • client service relationship diagram / Introduction, See also
    • creating, from function module / Creating a Web service from a function module, Getting ready, How to do it..., There's more...
    • consuming / Consuming a Web service, How to do it..., How it works..., There's more...
    • calling, from ABAP program / Calling a Web service from an ABAP program, How to do it..., How it works...
  • Where Clause block / Getting ready
  • WSDL / Introduction

X

  • XML Spreadsheet 2003 format / How to do it...
  • XML stream / Introduction
  • XSLT transformation / Introduction
  • XSLT_TOOL / Introduction

Z

  • ZST8MY_SPELL_AMOUNT method / How it works...