You can use the IDOCXmlToFlatConvertor module to convert IDoc XML to IDoc Flat format. If you add this module in the module chain, then it converts the data in the XI message payload from IDoc XML to IDoc Flat format. For example, you can add this module to the module chain of a receiver file adapter and create an IDoc Flat file.
This IDoc module takes the module parameters, such as RFC destination name, SAP release version and TargetJRA.
Configured the communication channel.
Accessed the Module tab page.
1. Add the Module in the Processing Sequence
Enter the Module Name as SAP_XI_IDOC/IDOCXmlToFlatConvertor . Add this module before the CallSapAdapter Module.
Enter the Module Type as Local Enterprise Bean .
Enter the Module Key .
2. Add the Parameters in the Module Configuration
Enter the Module Key . The module key should be same as in the processing sequence.
Enter the Parameter Name as SAPRelease and Parameter Value as the SAP release of the receiver system. For example, if the SAP release is 7.10, then enter 7.10 .
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, enter the Parameter Name as SourceDestination and Parameter Value as the destination system name that you have created.
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.
Create a JCA Connection Factory in NWA. To create the new JCA Connection Factory:
Log in to NWA, choose Configuration Management > Infrastructure > Application Resources .
Choose All JCA Resources from the Show field.
Under the Resource Name column, choose SAPJavaResourceAdapter15 .
Under Resource Details , select Dependent JCA Connection Factories and Copy & Add new JCA Connection Factory .
Enter the JNDI Name .
Select and set the Configuration Properties .
More information: SAP JRA Configuration .
After creating the JCA Connection Factory, enter Parameter Name as TargetJRA 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, you can however specify the name of an existing connection factory as the parameter value.
This module handles only SAP releases above 4.0.
This module handles UTF-8 encoded xml only.