ABAP Program Tips v3.doc

(1357 KB) Pobierz
ABAP Program Tips

 

ABAP Program Tips

K. Wilson

http://www.sapgenie.com/abap

 

 

Table of Contents

ABAP Programming Tips              Page 5 of 157


Chapter 1              Useful Transactions              3

1.1              EDI Specific Transactions              3

1.1.1              Scheduling agreements              3

1.2              Message Control              3

1.2.1              Delivery              3

1.2.2              Invoice              3

1.2.3              Order response              3

1.3              IDoc Administration              3

1.4              IDoc Development              4

1.5              Requirements coding              4

1.6              Sales              4

1.7              General              4

1.7.1              Common tables              5

Chapter 2              Useful Programs              7

2.1              Function Modules              7

2.1.1              USEREXIT_KOMKBV1_FILL.              7

2.1.2              MASTER_IDOC_DISTRIBUTE              7

2.1.3              IDOC_STATUS_WRITE_TO_DATABASE              7

2.1.4              IDOC_TYPE_COMPLETE_READ              7

2.2              Programs              11

2.2.1              RHSOBJCH – Fixes PD Control Tables missing in tx SWU3              11

2.2.2              RV80HGEN              11

2.2.3              Scheduling of system maintenance jobs              12

2.3              Includes              12

2.3.1              MBDCONWF – IDoc Definitions              12

2.4              Fields              12

Chapter 3              General programming              14

3.1              BAPIs              14

3.2              Dialog programming              14

3.2.1              Process on value request – F4              14

3.3              Reports              15

3.3.1              Refreshing Data on reports              15

3.3.2              Tree Reports              16

3.3.3              Initializing date ranges on selection-options              19

3.3.4              Report headings              19

3.3.5              Popup selection – Get Filename              20

3.3.6              Checkboxes in reports              20

3.3.7              List Boxes on Selection Screens              20

3.3.8              At line selection              21

3.3.9              Tabstrips on a selection screen              21

3.3.10              Dynamic selection screens              22

3.4              File processing              23

3.4.1              Downloading to Excel              23

3.4.2              FTP a file to another server              24

3.4.3              DATASET              25

3.4.4              WS_DOWNLOAD              26

3.4.5              GUI_DOWNLOAD with POPUP filename request              27

3.5              Macros              28

3.6              Select statements              29

3.6.1              Joins              29

3.7              SAPSCRIPT              30

3.7.1              Changing the subject for email order confirmations              30

3.8              General              30

3.8.1              Retrieving the email address of an SAP user              30

3.8.2              Executing a program              31

3.8.3              Changing \ Creating Requirements              31

3.8.4              Displaying Transaction              31

3.8.5              GUI-Status              31

3.8.6              Document Flow              32

3.8.7              Maintaining Trailing spaces when downloading to PC              32

3.8.8              Hiding ABAP Source Code              32

3.8.9              Where in IMG is a table configured              32

3.8.10              Editor Tips (*EJECT and *$*$)              32

3.8.11              List of ways to transport variants              33

3.8.12              Checking for background processing              33

Chapter 4              Workflow Programs              34

4.1              Viewing PARTICULAR USERS INBOX              34

Chapter 5              ...

Zgłoś jeśli naruszono regulamin