Show TOC

Adding IDOCFlatToXmlConvertor in the Module ProcessorLocate this document in the navigation structure


You can use the IDOCFlatToXmlConvertor module to convert the data in the XI message payload from IDoc Flat format to XML format. If you add this module to the module chain, then it converts the data in the XI message payload from IDoc Flat to XML format. For example, you can add this module in the module chain of a sender file adapter and create IDoc XML from IDoc Flat format.

This IDoc module takes the module parameters, such as RFC destination name, SAP release version, and SourceJRA.


You have:

Configured the communication channel.

Accessed the Module tab page.


1. Add the Module in the Processing Sequence

  1. Enter the Module Name as SAP_XI_IDOC/IDOCFlatToXmlConvertor . Add this module before the CallSapAdapter Module.

  2. Enter the Module Type as Local Enterprise Bean .

  3. Enter the Module Key .

2. Add the Parameters in the Module Configuration

  1. Enter the Module Key . The module key should be same as in the processing sequence.

  2. Enter the Parameter Name SAPRelease and Parameter Value as the SAP release of the sender system. For example, if the SAP release is 7.10, enter 7.10 .

  3. Create a JCA Connection Factory in NWA. To create the new JCA Connection Factory:

    1. Log in to NWA, choose Configuration Management > Infrastructure > Application Resources .

    2. Choose All JCA Resources from the Show field.

    3. Under the Resource Name column, choose SAPJavaResourceAdapter15 .

    4. Under Resource Details , select Dependent JCA Connection Factories and Copy & Add new JCA Connection Factory .

    5. Enter the JNDI Name .

    6. Select and set the Configuration Properties .

    More information: SAP JRA Configuration .

    After creating the JCA Connection Factory, enter Parameter Name in the Module tab page, as SourceJRA and the Parameter Value as the new JCA Connection factory that you have created.

    If a JCA Connection Factory is already configured to the SAP system, then you need not create a new connection factory again, you can, however specify the name of an existing connection factory as the parameter value.

  4. Configure an RFC Destination using NWA of your adapter engine in which the communication channel is configured. This should be the SAP system from which the IDoc module can find the IDoc metadata information, such as IDoc type and IDoc segment information. For configuring an RFC destination for an SAP system see: SAP JCo Configuration .

    After creating the RFC destination, in the Module tab page, enter the Parameter Name as TargetDestination and Parameter Value as the destination system name that you have created in NWA.

    For example, if you have created a destination ABC_000 in NWA, then specify this as the parameter value. If a destination is already configured for the SAP system, then you need not create a new destination again, you can however specify the name of an existing destination.

  • This module handles only SAP releases above 4.0.

  • This module creates XML in UTF-8 encoding only.

  • Payload in IDoc Flat format should have only one IDoc document.