IDoc Parser
Use the IDoc Parser activity when the XML output is required from the IDoc messages received by the IDoc Listener activity.
Different IDoc types require different IDoc Parser activities to perform the parse process.
- The IDoc Parser activity requires the TIBCO Enterprise Message Service.
- The IDoc Parser activity does not support the job tuning property,
FlowLimit
.
For more information, see Job Tuning.
General Tab
On the General tab, establish connections to the SAP system and the messaging source separately, and download the schema of the IDoc to be parsed by the IDoc Parser activity.
The following table lists the configurations on the General tab of the IDoc Parser activity:
Field | Visual diff | Module Property? | Description |
---|---|---|---|
Name | Yes | No | Specify the name to be displayed as the label for the activity in the process. |
SAP Connection | Yes | Yes | Click
![]() If no matching SAP Connection shared resources are found, right-click the Resources folder, and then click to create a new connection. Fore more information, see Creating and Configuring an SAP Connection. |
IDoc Name | Yes | No | Click
Fetch IDoc to download the schema of the IDoc to be parsed.
In the Search IDoc dialog, complete the following tasks:
When the IDoc schema is downloaded, an XSD file is created. The XSD file cannot be visible in the project, but it can be picked from the activity if required. Note:
|
Messaging Source | No | No | The messaging source where the activity retrieves the IDocs to be parsed.
Only the JMS type is supported. |
Messaging Style | Yes | No |
Select the style of the message from one of the following available options:
Note:
Only when JMS is selected, this drop-down appears. |
JMS Connection | Yes | Yes | Click
![]() If no matching JMS Connection shared resources are found, click Create Shared Resource to create one. For more information, see the TIBCO ActiveMatrix BusinessWorks documentation. |
Durable Subscriber | Yes | No |
Select the Durable Subscriber checkbox to configure the JMS server. Note:
Only when you select JMS and Topic, this property appears. |
Subscription Name | Yes | yes |
Specify the name of the subscription. Note:
Only when you select JMS and Topic, this property appears. |
Max Session | Yes | Yes | Specify the number of IDoc messages to be processed concurrently.
The default value is 1. If you set the value of this field to negative numbers or zero, the value of 1 is used automatically at run time. For more information, see Job Tuning. |
Description Tab
On the Description tab, enter a short description for the IDoc Parser activity.
Advanced Tab
On the Advanced tab, specify the destination used to retrieve the IDocs to be parsed, and the message selector.
The following table lists the configurations on the Advanced tab of the IDoc Parser activity:
Field | Visual diff | Module Property? | Description |
---|---|---|---|
Sequence Key | Yes | No | This field contains an XPath expression that specifies the order in which the process runs. Process instances with sequencing keys that have the same value are executed sequentially in the order in which the process instances were created. |
Custom Job Id | Yes | No | This field contains an XPath expression that specifies a custom job ID for the process instance. This ID is displayed in the $_processContext process variable. The custom job ID for the process instance. |
Receive IDoc Destination | Yes | Yes | This field is used to retrieve the IDoc to be parsed.
Note: This destination must be the one that the IDoc Listener activity uses to persist IDocs.
|
Acknowledge Mode | Yes | No | This field is used to control the acknowledgment of the message from the Receive IDoc Destination Queue. The possible values are:
The default value is automatic acknowledgment Note:
|
Message Selector | Yes | No | The message selector is used to select a specific IDoc message from the received IDoc destination.
The default value is
You can also use other JMS properties, for example,
If a syntax error occurs, you can click Reset Syntax next to the Message Selector field to reset this field. |
Output Tab
The Output tab of the IDoc Parser activity shows the parsed IDoc in the XML format.
The output of the IDoc Parser activity follows the following rules:
- Any space characters at the beginning of the output item value are preserved.
- Any space characters at the end of the output item value are removed.
- When space characters at the end of the output item value are removed, if the output item has no value left, the corresponding output item is not displayed in the activity output.
Fault Tab
On the Fault tab, you can find the error codes and error messages of the IDoc Parser activity. For more information, see Error Codes.
The following table lists error schema elements on the Fault tab of the IDoc Parser activity:
Error Schema Element | Data Type | Description |
---|---|---|
msg | String | Displays the error message. |
msgCode | String | Displays the error code. |
IDocNumber | String | Displays the number of the received IDoc. |