Skip to main content
Skip table of contents

RFC Function Module

Connector Type RFC Function Module is used to call Function Modules on remote SAP Backend systems. It follows principle of passing Function Module input in a XML representation package into common Connector envelope:

XML
<FunctionModuleCall name="BAPI_PO_GETDETAIL1" rfcdest="ED1">
	<InputPayload>
		<IMPORTING>
			<PURCHASEORDER>4500024151</PURCHASEORDER>
		</IMPORTING>
		<TABLES>
			<RETURN/>
			<POITEM/>
		</TABLES>
		<EXPORTING>
			<EXPHEADER/>
		</EXPORTING>
	</InputPayload>
</FunctionModuleCall>

Key values to be passed in the call:

  • @name - name of the Function Module to be called

  • @rfcdest - RFC Destination pointing to the system when Function Module must be executed - passed from Business Object template in field DESTINATION

  • InputPayload - under this node full Function Module input needs to be specified.

To specify TABLES that should be populated as a result of Function Module execution transformation needs to initialize them using <TABLENAME/> there is no need of providing more detail information.

Result of RFC Function Module Connector execution are return in format as below:

XML
<FunctionModuleCall name="BAPI_PO_GETDETAIL1" rfcdest="ED1">
	<Result>
		<IMPORTING>
			<PURCHASEORDER>4500024151</PURCHASEORDER>
		</IMPORTING>
		<TABLES>
			<RETURN>
              <BAPIRET2>
                <TYPE>S</TYPE>
                <ID>06</ID>
                <NUMBER>017</NUMBER>
                <MESSAGE>Standard PO created under the number 4500024328</MESSAGE>
                <LOG_NO/>
                <LOG_MSG_NO>000000</LOG_MSG_NO>
                <MESSAGE_V1>Standard PO</MESSAGE_V1>
                <MESSAGE_V2>4500024328</MESSAGE_V2>
                <MESSAGE_V3/>
                <MESSAGE_V4/>
                <PARAMETER>POHEADER</PARAMETER>
                <ROW>1</ROW>
                <FIELD/>
                <SYSTEM>T90CLNT090</SYSTEM>
              </BAPIRET2>
            </RETURN>
		</TABLES>
		<EXPORTING>
			<EXPHEADER>
              <PO_NUMBER>4500024328</PO_NUMBER>
            </EXPHEADER>
		</EXPORTING>
	</Result>
</FunctionModuleCall>

RFC Function Module Connector specific parameters:

Parameter Counter

Parameter Function

1

Function Module name - check against XML input @name to verify if correct Function Module is being called

2

Commit work flag - if set to “X”, commit work will happen after Function Module execution

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.