WebSphere Message Brokers
File: rbp_sap_boappspec_bapi
Writer: Karen Cameron

Reference topic

This build: July 31, 2007 21:40:39

BAPI business objects

The metadata generated by enterprise metadata discovery provides the adapter with instructions on how to process BAPI business objects. Metadata is generated at the business-object level, the operation level, and the property level.

Business-object-level metadata

Business-object-level metadata is metadata that defines the top-level wrapper of the business object. The following table describes the business-object metadata elements of a BAPI business object.

Table 1. Metadata for the wrapper of a BAPI business object
Metadata element Description
Type The business object type.
  • For a simple BAPI, the value is BAPI.
  • For a BAPI transaction business object, this value is BAPITXN.
  • For a BAPI result set, this value is BAPIRS.
Operation
The valid operations include Create, Update, Delete, and Retrieve. The specified operation metadata is defined in the sapBAPIOperationTypeMetadata tag and contains the following:
  • MethodName: Name of the BAPI associated with the operation.
  • Name: Name of the operation.
The following illustration is an example of BAPI business object metadata:
The following illustration is an example of BAPI transaction business object metadata:
The following illustration is an example of BAPI result set business object metadata:

Property-level metadata

Property-level metadata is metadata that represents child objects or an array of child objects. The following table describes the metadata elements of a complex property (child) or structure or table property (an array of child objects)

Table 2. Property-level metadata
Metadata element Description
FieldName The BAPI field name as represented in SAP.
FieldType The type of the property as it exists in SAP.
PrimaryKey An indication about whether this property is a primary key.
ParameterType The direction of the mapping.
  • If the value is IN, the property is mapped from the business object to the BAPI.
  • If the value is OUT, the property is mapped from the BAPI in the SAP system to the business object.
  • If the value is INOUT, the property is mapped both ways (BAPI to business object and business object to BAPI).
MaxLength The length of the field.
ForeignKey The foreign-key relationship. This element applies only to BAPI result sets.
The following illustration is an example of BAPI property metadata:
The following illustration is an example of BAPI result set property metadata:

Operation-level metadata

Operation-level metadata is metadata that specifies the method name of the BAPI in the SAP system. This name is used by the adapter to determine the action to take on the BAPI. The following table describes the operation-level metadata elements of a BAPI business object.

Table 3. Operation-level metadata
Metadata element Description
MethodName The name of the BAPI call (method) in the SAP system.
Name The name of the business object operation associated with the MethodName.

Operation-level metadata for a BAPI, a BAPI transaction, and a BAPI result set are shown in the figures in the Business-object-level metadata section. Notice that the BAPI transaction has three MethodName values listed–two for the BAPIs in the transaction and one for the COMMIT. The operations are listed in the sequence in which they are called.

Notices | Trademarks | Downloads | Library | Support | Feedback

Copyright IBM Corporation 1999, 2007Copyright IBM Corporation 1999, 2007. All Rights Reserved.
This build: July 31, 2007 21:40:39

rbp_sap_boappspec_bapi This topic's URL is: