Documentation Index

Fetch the complete documentation index at: https://docs.lobstersoftware.com/llms.txt

Use this file to discover all available pages before exploring further.

Listener configuration in ./etc/sap.xml

Prev Next

The following XML section shows the configuration of a RequestListeners for the RFC MY_RFC. The first argument (here sap) has to match the defined SAP alias (see Preparations).

<Call name="addRequestListener">
	<Arg>sap</Arg>
	<Arg>
		<New class="com.ebd.hub.datawizard.sap.DataWizardForwardRequestListener">
			<Set name="functionName">MY_RFC</Set>
			<Set name="xmlFile">conf/MY_RFC.xml</Set>
			<!--Set name="messageServiceName">servicename</Set-->
			<Set name="messageContext">System</Set>
			<Set name="messageQueue">MY_RFC</Set>
			<Set name="datawizardProfile">MY_RFC</Set>
			<Set name="conversionType">XML</Set>
			<Set name="useResponse">false</Set>
			<Set name="synchronCall">true</Set>
			<Set name="clearTablesForResponse">false</Set>
			<Set name="allowParallelProcessing">false</Set>
        </New>
	</Arg>
</Call>

The class com.ebd.hub.datawizard.sap.DataWizardForwardRequestListener will be provided with the SapConnectionService.

functionName

Defines the name of the RFC.

xmlFile

The path to the interface definition. See Providing RFC (second option) .

messageContext

messageQueue

The message queue is defined in these two parameters.

datawizardProfile

The Processing profile. Has to be active and needs to have an Input agent of the Message (Input agent) type and the corresponding context and queue (see parameters messageContext and messageQueue).

conversionType

Can have one of the values XML, CSV or FR (fixed-length) and must match the Document type of the processing profile.

messageServiceName

Only necessary if you do not use the default message service. Usually this line can be removed.

useResponse

If true, parameter synchonCall must also be true, otherwise the setup is aborted with an error. The processing profile then also has to contain a Response custom class with the class PassBackDataResponse. The data returned to the listener corresponds to the XML that is also used to define the RFC and corresponds to the “conversionType” XML. See Providing RFC (second option).

synchronCall

Synchronous call if true. See also parameter useResponse. See Providing RFC (second option).

clearTablesForResponse

If true, any existing values in the TABLE parameters (see RFC interface definition as XML file) are deleted.

copyFromPeer

See Providing RFC (second option).

allowParallelProcessing

If true, then this provided RFC can be called up multiple times in parallel.