Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

How can i map a file with different structures to several deep structures?

Hey experts,

here is my situation. I have to build a file2file scenario. The file has a flat structure without any separators. Depending on the value of the keyfield, i have to determinate, which kind of structure in the current sequence there is. Like i wrote, there isn't any fieldseparator, but for every possible structure (overall 4 types) i know the type by the length of every field in the structure.

My task is:

1. Read the file into PI and transform to XML

2. Map the flat structure depending on the keyvalue to the deep structure

3. Transform several fields in the different structures like the requirement

4. Write back the file via FTP as the same flat structure as before

Do you have any approach to solve the item number 2 (the other steps are clear for me)?

Do i need several mapping-programs? If so, how can i determinate the right mapping-program, deping on the keyvalue?

Thanks in advance


Former Member
Not what you were looking for? View more on this topic or Ask a question