Adapter for SAP 10.1 | webMethods Adapter for SAP Documentation | webMethods Adapter for SAP Installation and User’s Guide Documentation | Built-in Services | bXML Services | pub.sap.bapi:encode
 
pub.sap.bapi:encode
Converts a BAPI call represented in a pipeline to an XML string in a format specified by the SAP bXML specification.
Input Parameters
objectName
Name of the business object.
bapiName
Name of the BAPI.
$encoding
Optional. Specifies the encoding used in the output document's XML header, e.g. iso-8859-1.
$call
Optional. Flag indicating whether pipeline represents a request or response of a function module. Possible values are:
*true for request.
*false for response.
$abapexception
Optional. If this object is in the pipeline, an Exception document will be created.
$metabapi
Optional. Contains metadata information about the BAPI, that is encoded.
Return Values
xmlData
A document in bXML format as a string.