cancel
Showing results for 
Search instead for 
Did you mean: 

IDoc flat file to XML

Former Member
0 Kudos

Hello everyone

I have scenario is like this, My source system is SAP system, and it is generating the delivery data in the form of Flat file which is similar to IDoc Desdav Delivery1.

So that means, the flat files contains the data as it is in the IDoc structure.

I just want to know procedure to the above scenario.

Regards

Deepthi

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi Deepthi,

Starting SAP PI 711, a module bean has been introduced to tackle this situation. Please use the IDOCFlatToXmlConvertor in the Module tab of the file sender channel that will pick the flat file.

The following links might be useful:

http://help.sap.com/saphelp_nwpi711/helpdata/en/74/a45bc07e2043fb9b63295229178903/frameset.htm

Also, if you are on lower versions of SAP XI, you may go for an ABAP mapping. Please check the below link:

http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/46759682-0401-0010-1791-bd1972bc0b8a

Hope this helps.

Regards, Gaurav

Former Member
0 Kudos

Hello Gaurav, thanks for your help

I am using 7.1 version, will it work in this version

Former Member
0 Kudos

Hi Deepthi,

This Module bean was introduced from SAP PI 7.1 EHP1 (PI 711). So, if you are on SAP PI 7.10 , this feature will not work.

Please check if you are on PI 7.10 or PI 7.11

If you are on a lower version than PI 7.11, I suggest you can proceed with the ABAP mapping approach.

Regards, Gaurav

deepak_shah
Contributor
0 Kudos

Hi Deepthi,

please check below blog link:

Regards,

Deepak

Former Member
0 Kudos

you can use Idoc flat file to idoc xml scenario. You can get the step by step procedure in the below link.[http://help.sap.com/saphelp_nwpi711/helpdata/en/74/a45bc07e2043fb9b63295229178903/frameset.htm]

anupam_ghosh2
Active Contributor
0 Kudos

Hi Deepthi,

A single java mapping code can read the idoc flat file and covert it into XML as per mapping requirement.

Since I am not sure about how this input source file looks like, if you can post a sample input file and required target XML structure along with mapping requirements (or email me the same) forum members can help you writing a java mapping code.

Regards

Anupam

Former Member
0 Kudos

Hello Anupam,

Thanks for your help,

I have just emailed you my requirement

Former Member
rajasekhar_reddy14
Active Contributor
0 Kudos

If you want to send XML data to target system then send IDoc to PI directly and avoind converting to flat file . this process is simple.

search in sdn IDoc to fle scenario.will find many docs

Former Member
0 Kudos

Sorry may my question was not clear, we dont have IDoc here, we just got flatfile similar to Idoc

rajasekhar_reddy14
Active Contributor
0 Kudos

Then you need to file content conversion in sender file channel. search in sdn "File contention conversion " you will find many end to end scenarios.