Skip to Content
Former Member
Jul 09, 2008 at 04:28 AM

Mapping Problem. Idoc to file senerio...


Hi XI Gurus

I need a help.

I have an idoc.The output is papped to a file , this being a IDOC to File senerio. The Idoc contains segmnent1,2,3,4,5,6,7.The occurance of segment 7 is optional.It may come, it may not come. If segment 7 comes then there is a field callled mwskz which would contain 2 digits, say 'D1', or 'D2' or D3' or 'D4' or D5' or 'D6' or D7'or 'F8' or D9'. The file has a mapping, where there are 9 fields [ say F1, f2, f3, f4, f5, f6, f7, f8, and f9 ] in the ROOT. If at any instance, for a given segment 1, there is a segment7, then the contents of the fields MWSKZ is mapped based on it's content , say if the content ofnwskz is D6 then all fields from F1 - F9 would be populated by the constant term 'N' except for the field 'F6' which would contain 'Y'.

I have done a mapping, but it is failing...

I have used, remove contexts for the field as well as segment . I have use the function exists...but, after putting PAYLOASD, what I can see is, the mapping of the occurance of SEGMENT7 is not synchronised with field mwskz.

Experts Pls help.

Pls send me ur email address so that I can show u the screen-shots of the mapping !!!!

Many Thanks in Advance



Please read the Forum's Rules of Engagement,


[/thread/117188 [original link is broken];

and refrain from using email correspondence as the main objective of the Forums is to share knowledge.

SDN PI/XI Forum Moderator