Where is BAPI Documentation Written?
BAPI documentation is, for the most part, maintained in the Function Builder with the function module the BAPI is based on. However, even though BAPI documentation is function module documentation, it must describe the method in the BOR. This is because programmers access BAPI definitions and documentation in the BOR using the BAPI Explorer.
Some parts of BAPI documentation are created in the BOR and the ABAP dictionary.
So, when you are writing BAPI documentation, follow these guidelines closely because most application programmers will be expecting to see the terminology and structures used in the BOR.
What Does BAPI Documentation Comprise?
BAPI documentation comprises the following texts, all of which are displayed in the Documentation tab of the BAPI Explorer.
The documentation below must also be available to provide the full context of the BAPI (these texts are also displayed in the BAPI Explorer):
Only when all these documentation units are complete, can programmers know the full scope of the functionality of the BAPI.
You do not have to write function group documentation for BAPIs.
Where Can You Display BAPI Documentation?
You can display BAPI documentation in the BAPI Explorer (transaction BAPI) in the Documentation tab, or in the Business Object Builder (transaction SWO1).

Note: Documentation is displayed in the BAPI Explorer in HTML format. Be aware that some formats specified in SAPscript may not be displayed in HTML.
When Do You Write BAPI Documentation?
Apart from the following recommendation, there are no special guidelines as to when to write BAPI documentation:

If your developer defines a BAPI as a method in the BOR (with the BOR/BAPI Wizard), the short texts describing the method and the parameters are retrieved from the Function Builder/ABAP Dictionary and used in the BOR. This means that when you are writing BAPI documentation before the developer defines the BAPI as a method in the BOR with the BOR/BAPI Wizard, you need only write the short texts for the method and its parameters once, in the Function Builder.
When you are writing or updating documentation after the developer has defined the method in the BOR using the BOR/BAPI Wizard, you have to then manually copy the changes to the short texts made in the Function Builder to the BOR. In the future, it should be possible to align the short text in the BOR with the short text in the Function Builder automatically.
Before You Start to Write BAPI Documentation
Before you begin to document a BAPI, you should:
1. |
Ask your BAPI developer for the following information: |
| |
2. |
Read the guidelines and the example documentation. |
Documenting in a Language Different From the Development Language
It is possible that your BAPI is developed in a language different from the language you are documenting in. Currently, there is no way of decoupling the development language from the documentation language, i.e. you must create the BAPI documentation in the original language in which the BAPI is developed. (Changing the original language of the BAPI would mean changing the original language for the entire function group!)
In this case, write the BAPI documentation in an editor of your choice. Have it translated into the appropriate development language of the BAPI and enter the translated text as the BAPI’s documentation.
This is only a workaround, a proper solution is being worked on.
See also:
Writing Function Module Documentation Writing Parameter Documentation Checking or Writing Data Element Documentation Checking or Writing Business Object Documentation