Contents
BAPI Programming .............................................................................................6
BAPI Programming Guide............................................................................................................. 7
BAPIs ............................................................................................................................................. 9
BOR.............................................................................................................................................. 11
Terminology ................................................................................................................................ 13
Further Documentation on BAPIs.............................................................................................. 14
Defining and Implementing the BAPI ........................................................................................ 15
BAPI Explorer.............................................................................................................................. 17
Working with Display Functions ............................................................................................... 18
Working with Tools and Projects .............................................................................................. 20
Defining the Scenario.................................................................................................................. 21
Reviewing the Scenario Concept............................................................................................... 23
Defining a BAPI and Its Interface ............................................................................................... 24
Standardized BAPIs ................................................................................................................. 26
Standardized Parameters......................................................................................................... 29
Determining the Object Type and Its Key Fields...................................................................... 31
Defining the Interface Structure of the BAPI ............................................................................ 32
Naming Parameters in the Function Module ............................................................................ 34
Defining Data Formats.............................................................................................................. 36
Specifying Development Objects in ABAP Dictionary.............................................................. 37
Naming the Method in the BOR ............................................................................................... 40
Naming Parameters in the BOR............................................................................................... 41
Naming the Function Module and the Function Module Group................................................ 43
BAPIs Used for Outbound Processing ..................................................................................... 45
Creating Development Objects and Documentation ............................................................... 46
BAPI Interface and Function Module......................................................................................... 48
Testing the BAPI and Its Documentation .................................................................................. 52
Releasing the BAPI...................................................................................................................... 53
General Programming Guidelines for BAPIs............................................................................ 54
Transaction Model for Developing BAPIs................................................................................. 58
BAPI Transaction Model with Commit...................................................................................... 60
BAPI Transaction Model Without Commit................................................................................ 63
Customer Enhancement Concept for BAPIs ............................................................................ 65
Internal and External Data Formats ........................................................................................... 69
Providing Input Help (F4 Help) ................................................................................................... 73
Providing Interface Descriptions ............................................................................................... 75
Buffering with Write BAPIs......................................................................................................... 77
Example of Implementation and Process Flow........................................................................ 83
Improving Performance .............................................................................................................. 86
Documentation Guidelines ......................................................................................................... 88
Programming Standardized BAPIs ............................................................................................ 90
Programming GetList() BAPIs.................................................................................................... 91
Example of a GetList() BAPI..................................................................................................... 92
Programming GetDetail() BAPIs ................................................................................................ 93
Example of a GetDetail() BAPI................................................................................................. 94
Programming GetStatus() BAPIs ............................................................................................... 96
Example of a GetStatus() BAPI................................................................................................ 97
Programming ExistenceCheck() BAPIs..................................................................................... 98
Example of an ExistenceCheck() BAPI .................................................................................. 100
Programming Create() BAPIs ................................................................................................... 102
Example of a Create() BAPI ................................................................................................... 104
Programming Change() BAPIs ................................................................................................. 106
Example of a Change () BAPI ................................................................................................ 108
Programming Delete() BAPIs.................................................................................................... 110
Example of a Delete() BAPI.................................................................................................... 112
Programming Cancel() BAPIs................................................................................................... 113
Example of a Cancel() BAPI................................................................................................... 114
Programming Replicate()/SaveReplica() BAPIs...................................................................... 115
Example of a SaveReplica() BAPI.......................................................................................... 118
Programming Methods for Sub-Objects ................................................................................. 120
Programming Standardized Parameters ................................................................................. 122
Address Parameters.................................................................................................................. 123
Change Parameters................................................................................................................... 125
Extension Parameters ............................................................................................................... 129
Return Parameters (Error Handling)........................................................................................ 130
Selection Parameters ................................................................................................................ 134
TestRun Parameters.................................................................................................................. 135
Text Transfer Parameters ......................................................................................................... 136
Tools for Developing BAPIs ..................................................................................................... 137
Defining Methods in the BOR Using BOR/BAPI Wizard ........................................................ 138
Converting Internal and External Data Formats..................................................................... 140
Application Example ............................................................................................................... 142
SAP Enhancements to Released BAPIs.................................................................................. 144
Compatible Enhancements....................................................................................................... 146
Incompatible Enhancements.................................................................................................... 148
Customer Modifications and Developments........................................................................... 151
BAPI Modifications .................................................................................................................... 152
Creating Subtypes .................................................................................................................. 156
Redefining BAPIs ................................................................................................................... 157
Defining Delegation Relationships ......................................................................................... 158
BAPI Development.................................................................................................................... 159
Creating Subtypes .................................................................................................................. 160
Namespaces.............................................................................................................................. 161
Using BAPIs in Distributed Systems (ALE) ............................................................................ 164
BAPI Quality Checklist .............................................................................................................. 166
Download attached file: You must be Loged in to download file