Adapter for SAP 10.1 | webMethods Adapter for SAP Documentation | webMethods Adapter for SAP Installation and User’s Guide Documentation | Using IFR-XML Format with Adapter for SAP | XML Format for BAPIs | Structure of Request Business Documents for BAPIs
 
Structure of Request Business Documents for BAPIs
This is the general structure of request business documents for BAPIs:
<doc:BusinessObjectName.MethodName
xmlns:doc="urn:sap-com:document:sap:business"
[Key1="…", Key2="…", …]>
<BOR_Parameter1>...</BOR_Parameter1>
...
</doc:BusinessObjektName.MethodenName>
Additionally, consider the following:
*The arrangement of BAPIs according to a business object is directly reflected by the element names of the business document. The root element that identifies the Request business document carries the concatenation of the business object name and the BOR method name as its name. The root element has the following characteristics:
*It contains the namespace reference of business documents that refer to BAPIs ("urn:sap-com:document:sap:business").
*If the BAPI is an instance method, the root element contains an attribute for each key field of the corresponding business object that is named like the key field.
Note:
If the business object has more than one key field, the corresponding attributes should appear in the same sequence as the key fields defined in the BOR.
*Import parameters of the BAPI appear as sub-elements of the root element. These sub-elements are named like the parameters as they are defined in the BOR. Within these elements, the SAP-internal data structures are represented in a serialized form in accordance with the specification Serialization of ABAP Data in XML.