Post IDoc to SAP
The Post IDoc to SAP activity is used to post IDocs to the SAP system without the need to use TIBCO Enterprise Message Service where the IDoc would be passed as input to the activity.
General Tab
On the General tab, establish connections to the SAP system and download the schema of the IDoc to be posted to the SAP system.
The following table lists the configurations on the General tab of the Post IDoc to SAP 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, click the Create Shared Resource to create one. For more information, see Creating and Configuring an SAP Connection. |
IDoc Name | Yes | No | Click
Fetch IDoc button to download the schema of the IDoc to be posted.
In the Search IDoc dialog, complete the following tasks:
After 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:
|
Process IDocs in Raw Format | Yes | No |
Specify whether to process IDocs in a raw format. If you select this checkbox, the IDoc Name field and Fetch IDocs button becomes unavailable because the IDoc schema is not required to post raw IDoc format. The user provides the raw IDoc in the fixed schema in the Input tab. |
Description Tab
On the Description tab, enter a short description for the Post IDoc to SAP activity.
Advanced Tab
On the Advanced tab, specify the posting of the IDoc to SAP confirmation mode, confirmation destination, the messaging source, and the protocol used to post IDocs.
The following table lists the configurations on the Advanced tab of the Post IDoc to SAP activity:
Field | Visual diff | Module Property? | Description |
---|---|---|---|
IDoc Input Mode | Yes | No | This protocol is used to post IDocs.
The plug-in supports the following protocols:
The default protocol is tRFC. |
SAP Queue Name | Yes | Yes | The name of the queue is to be used when posting IDocs by the qRFC protocol.
Note: This field becomes available only when you select
qRFC from the
IDoc Input Mode list.
|
IDoc Confirmation Mode | Yes | Yes |
This mode is used for IDoc Confirmation. There are three modes for IDoc Confirmation:
The default mode for IDoc Confirmation is None. |
JMS Connection | Yes | Yes | Click
![]() If no matching JMS Connection shared resources are found, click Create Shared Resource to create one. For more details, see the TIBCO ActiveMatrix BusinessWorks documentation. Note: This field is displayed only when you select
JMS in the IDoc Confirmation Mode field.
|
Confirm IDoc Destination | Yes | Yes |
This destination is used to confirm the posted IDocs. This field is displayed only when you select JMS in the IDoc Confirmation Mode field. |
Input Tab
On the Input tab, specify the IDoc data for the selected IDoc.
The following table lists the input elements on the Input tab of the Post IDoc to SAP activity:
Input Item | Data Type | Description |
---|---|---|
ProcessInput | Complex | Enters the data for the IDoc to be posted. Note: Data for IDoc can be posted when IDocs are received in XML and Raw format.
|
sessionID | String | (Optional) Enters the sessionID of the previous activity for the use of Dynamic Connection instead of SAP connection, which is configured in the General Tab. |
For information on how to create IDoc in XML format, see Mapping Data for SAP Palette Activities
Output Tab
On the Output tab, find the information of the posted IDoc.
The following table lists the output elements on the Output tab of the Post IDoc to SAP activity:
Output Item | Data Type | Description |
---|---|---|
TID | String | Displays the TID of the transaction that the SAP system uses to receive the posted IDoc. |
sessionID | String | Displays the sessionID provided in the Input tab for the use of Dynamic Connection. |
CPIC_ID | String | Displays the CPIC_ID associated with SAP Connection created for a dynamic connection |
correlationID | String | This output is available only when NoMessaging is selected in the IDoc Confirmation Mode field on the Advanced Tab. |
errorMessage | String | This output is available only when NoMessaging is selected in the IDoc Confirmation Mode field on the Advanced Tab. |
successMessage | String | This output is available only when NoMessaging is selected in the
IDoc Confirmation Mode field on the
Advanced Tab.
Displays the success message only populated in the case where the IDoc to be confirmed is sent to the SAP system by using qRFC. Because the IDoc number cannot be retrieved in that case, no call is made to the SAP system for the IDoc number and status. The value of the successMessage output item is populated in the following format: IDoc sent to SAP via qRFC. IDoc number is unavailable. The original TID is TID. |
idocNumber | String | This output is available only when NoMessaging is selected in the
IDoc Confirmation Mode field on the
Advanced Tab.
Displays the IDoc number populated by the IDoc Confirmation activity by retrieving the information from the SAP system. Note: The IDoc number is populated only when the IDoc is posted to SAP by using the tRFC protocol.
|
idocStatus | String | This output is available only when NoMessaging is selected in the
IDoc Confirmation Mode field on the
Advanced Tab.
Displays the IDoc status populated by the IDoc Confirmation activity by retrieving the information from the SAP system. Note: The IDoc status is populated only when the IDoc is posted to SAP by using the tRFC protocol.
|
Fault Tab
On the Fault tab, you can find the error codes and error messages of the Post IDoc to SAP activity and any element for logging the posted IDoc.
For more information, see Error Codes.
The Fault tab has the following exception:
SAPPluginException
The SAPPluginException generates an exception and causes the activity to stop.
Error Schema Element | Data Type | Description |
---|---|---|
msg | String | Displays the error message. |
msgCode? | String | Displays the error code. |
any element | - | Displays the input IDoc data at run time.
Note: The IDoc data is available only when the IDoc is not malformed.
|