cancel
Showing results for 
Search instead for 
Did you mean: 

IDOC to Flat File

Former Member
0 Kudos

Hi Friends,

I have to convert IDOC DEBMAS to a flat file in PI. The flat file should be delimited by 'I'.

I am not sure if I can use file content converison for this as IDOC structure will be very complex. Please let me know what will be the good approach for the scenatio.

Thanks,

Punit

Accepted Solutions (0)

Answers (3)

Answers (3)

stefan_grube
Active Contributor
0 Kudos

> Please let me know what will be the good approach for the scenatio.

The best approach is discussion the required file structure with customer.

When you know, how the structure should look like and which fields are required, and we can discuss mapping.

Former Member
0 Kudos

Hi,

If you don't want to define each field in content conversion, you can use an abap mapping.

In http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/46759682-0401-0010-1791-bd1972bc0b8a you can find an example to convert an idoc to a flat file.

However, you must modify this code to add your specific separator | .

Regards,

Carme

Former Member
0 Kudos

Typically IDoc is generated as a flat file in the source system. The easiest approach that i could think is to push the IDoc to some file port (no need of PI in this) if you exactly want IDoc format.

regards

rajeev