Siebel Connector for SAP R/3 > IDOC Interfaces > IDOC Integration >

Receiving IDOCs from SAP

The EAI SAP BAPI receiver (tRFC) service may receive IDOCs from SAP as well as BAPI calls. When an IDOC is received, the EAI SAP IDOC Workflow Processor service is invoked to convert the raw data received from SAP into an IDOC integration object. This service then invokes the EAI SAP IDOC Workflow Service to invoke a workflow in the Siebel application. This topic provides additional information on the configuration and usage of the EAI SAP IDOC Workflow Processor service and the EAI SAP IDOC Workflow Service.

IDOC Workflow Processor Configuration

The business service EAI SAP IDOC Workflow Processor is called by the tRFC BAPI receiver when it receives an IDOC. Table 33 summarizes the user properties and component parameters that may be set to control its behavior. Those variables that may be set as component parameters must be set for the BAPIRcvr component.

Table 33.  IDOC Workflow Processor Configuration Options
User Prop
Comp Param
Valid Values






Integration Object with raw data from the tRFC BAPI receiver.






Currently set to "ALE". This should not be changed.






Business Service to send IDOC integration object to workflow. This must be a service based on CSSWfEngine. Currently set to EAI SAP IDOC Workflow Service.






Business service method to call in DispatchService.






Name of IDOC Integration Object that can be accepted by the workflow processor. Read and the following note and caution.





Value from Transcode Encoding drop-down list

Siebel code page name for SAP code page.





True or False

Default is False. If True, code page conversion errors are handled by substitution of the question mark (?) character in place of an unrecognized character.

NOTE:  There may be up to 99 user properties defined with a name of the form, SAPIdocAllowedObjectnn, such as SAPIdocAllowedObject01, SAPIdocAllowedObject02, SAPIdocAllowedObject03, and so on. Each of these would contain the name of an IDOC Integration Object that can be accepted by the IDOC Workflow Processor.

CAUTION:  When an IDOC is received from SAP, the External Name is extracted from information in the control record of the IDOC. This name is then compared with the External Names for each integration object listed in the user properties SAPIdocAllowedObjectnn. When a match on the External Name is found, the corresponding IDOC integration object is used. For this reason, each IDOC integration object defined by an SAPIdocAllowedObjectnn user property must have a distinct external name. For example, two IDOC integration objects that both have the external name of DEBMAS02 cannot be used at the same time.

Invoking Workflows

After an IDOC is received and passed to the Workflow Processor, the Workflow Processor must pass this IDOC integration object on to a specific workflow. The workflow name can be defined in two ways:

  1. The Workflow User Property on the IDOC Integration Object definition in Siebel Tools can be set to the workflow name. When this type of IDOC Integration Object is received, it is sent to this workflow name. The workflow name must be set using Siebel Tools and the changed integration object must be compiled into the Siebel .srf file.
  2. The workflow name may be set in the ProcessName user property of the EAI SAP IDOC Workflow Service business service. If the workflow name is set here, all IDOCs received from SAP are sent to this workflow. The workflow name in the integration objects is ignored.

Standard integrations have been set up to use the first method. All workflow names are set in the Workflow User Property of the IDOC Integration Objects.

Siebel Connector for SAP R/3