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 RFCs | Structure of Exception Business Documents for BAPIs
 
Structure of Exception Business Documents for BAPIs
If the function module cannot be executed, the execution ends with a function module exception and an exception business document is returned to the client. It describes only the error situation. In this case, export parameters of the function module are not included.
This is the structure of exception business documents for RFCs:
<doc:FunctionModuleName.Response
xmlns:doc="urn:sap-com:document:sap:business:rfc">
<!--Representation of the serialized exception-->
...
</doc:FunctionModuleName.Response>
The representation of the function module exception as a serialized exception consists of the following XML elements:
XML Element
Description
<Name>
Name of the exception as defined in the function module interface.
<Message>
(0..1)
<ID>
<Number>
<Text>
The <Message> element contains information from the SY fields. Could be empty if the mapping was performed on an external middleware system.
SY-MSGID
SY-MSGNO
Message text, which is defined for ID and number. In ABAP, evaluated with „message id... into.."
<Attributes> (optional)
  <V1> (optional)
  <V2> (optional)
  <V3> (optional)
  <V4> (optional)
Contains list of SY fields, which represent the variables of an error message.
SY-MSGV1
SY-MSGV2
SY-MSGV3
SY-MSGV4