IDocFormat Publishing Mode

The IDocFormatPublishingMode example shows how to use the adapter for sending and receiving IDocs without any significant mapping. This is useful in cases where there are systems or applications that understand the SAP IDoc format.

In addition to demonstrating the usage of the IDocFormat publish mode, this example also shows the usage of JMS properties for the Publication Service service and the IDoc confirmation for the Subscription Service service.

This example contains four processes, ReceiveIDocFromSAP, SendCREMASToSAP, SendDEBMASToSAP, WaitIDocConfirmation. The configurations of the SendCREMASToSAP and SendDEBMASToSAP processes are the same except for the IDoc type.

The ReceiveIDocFromSAP process is triggered when the Publication Service service publishes an IDoc from the SAP system. After the IDoc is received, it is written to the .idoc file. The adapter passes the control fields of IDocs as JMS properties. You can check the control fields in the JMS Application Properties resource.
Note: The SAPIDOC_MESTYP property has been defined in the JMS Application Properties resource. You can also define the JMS properties that you want in this resource.

Then, the SendCREMASToSAP or SendDEBMASToSAP process is triggered. The received IDoc is published back to the SAP system.

Finally, the WaitIDocConfirmation process is triggered to wait for the IDoc confirmation message report after the Subscription Service service receives the IDoc.