Skip to Content

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

Idoc to File scenario: receiver content conversion

Hi,

I have a Idoc to file scenario in which each segment is to be sent in a new line.

Also, even if the segment is not present in Idoc, comma separated blank values are to be sent.

Till now I have been fllowing this blog

File Content Conversion for Multi Hierarchical Structure

But in this case, blank values csv line are not created.

When I used mapWithDefault for parent WPA12 then only 1 instance is created.

For eg.

WPA01

-WPA02

--WPA12

WPA01

-WPA02

--WPA12

There are no values in WPA12 segment

Output

WPA01,a,a,a,a

WPA02,b,b,b,b

WPA12,,,,,

WPA01,c,c,c,c

WPA02,d,d,d,d

Can I make any change in the approach as in the blog to get the desired output?

Regards,

Anirudh.

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