Entering content frameProcess documentation Documentation Guidelines

Purpose

To use a BAPI in an application program, application developers need to know:

Application developers access the technical meta data and documentation of BAPIs from the Business Object Repository.

This section contains general guidelines for documenting BAPIs. For internal use, SAP provides detailed guidelines on writing BAPI documentation. You can get a copy of the guidelines from your contact person in the BAPI Development group.

Prerequisites

BAPIs are business interfaces to the R/3 System and users are not required to have a thorough knowledge of the R/3 System and the R/3 development environment.

Readers of BAPI documentation are often not R/3 experts or business application experts.

Process Flow

To give application developers a complete picture of the functionality of a BAPI, the following documentation must be provided:

Documentation on Methods

Create this documentation in the Function Builder in the function module that the BAPI is based on. The purpose of this documentation is to explain what the method does and how the communication with external programs works. The documentation should help customers decide whether a method is appropriate to perform the task in question and it should therefore provide answers to the following questions:

If the BAPI uses a COMMIT WORK command or works with buffering, you must include this in the documentation.

Documentation on Method Parameters

Documentation on the individual parameters is also written in the Function Builder in the associated function module. Parameter documentation should provide answers to the following questions:

Data Element Documentation on Parameter Fields

A calling program can call data element documentation (F1 help) for a field in a BAPI parameter using the Service BAPI BapiService.FieldHelpGetDocu (see Structure link Providing Input Help).

For this reason you have to write data element documentation for each field in BAPI parameters.

Further Documentation

To provide the complete context of a BAPI, the information below must also be available:

Leaving content frame