Structure of Function Module Documentation
Before you start to document a BAPI, keep in mind that BAPIs are business (not technical) interfaces to an SAP System and that a thorough knowledge of the SAP System and the SAP development environment is not required to use them. Many readers are not SAP experts or business application experts.
Function module documentation for BAPIs is structured as follows:
Keyblock |
Contents |
Functionality |
What does the method do exactly? Describe the business functionality of the BAPI and how it can be used? Describe its functions in detail to help the user decide whether this method could be used to perform a specific work task. Use appropriate examples. Include important limitations, that is, functions that you cannot perform with this BAPI. This section does not contain information about the technical implementation of the BAPI. |
Examples |
Do not write any documentation in this keyblock. This keyblock is intended for source code examples. These are, however, platform-specific and soon become obsolete. |
Notes |
What should users you pay particular attention to when implementing this method? Here you should describe:
Create links to the IMG (see Hyperlinks to the IMG).
Customer Enhancements: If you created Extension parameters for customer enhancements at the interface, use an INCLUDE command to insert the following standard sentences:
Return messages Using an INCLUDE command, insert a standard sentence in this section as follows: "Insert the character /: on the left side in the format column and the command INCLUDE.BAPI_RET in the relevant lines in the SAPscript editor." This automatically inserts the following sentence: "Messages are returned in the parameter Return. The parameter documentation shows the return codes and their meanings." For SAP interface types add the following: "This BAPI is a method of an interface type and provides the definition of the standardized interface. It is implemented by the system wanting to provide this interface. The data in the structure predefined by the BAPI is passed to the receiving system. The receiving system must make sure that this data is entered into the correct database tables. This can be done by implementing the interface defined by this BAPI. " |
Further information |
If possible, refer to documentation in the system for this function. These references are important for people who have little knowledge of the system or of the particular application. If this is the case, include the following standard sentence: "For more information, see <title> in the SAP Library." |

Do not describe any parameters in the function module documentation. You write the documentation on individual parameters separately, as described in

For an example, see