Skip to Content
0
Former Member
Nov 10, 2007 at 03:36 AM

Looping in message mapping

50 Views

Hello XI Gurus,

I need your help in doing following mapping.

The source ORDERS02 Idoc contains is fields like

E1EDP01(segment) under this

E1EDP19(segment)-QUALF(field) = Z18

E1EDP19(segment)-QUALF(field) = Z39

E1EDP19(segment)-QUALF(field) = Z39

E1EDP19(segment)-QUALF(field) = Z39

E1EDP19(segment)-QUALF(field) = Z39

and the Target structure is like this

E1NTITM(segment) under this-

BAUTL(field)

we need to populate the E1NTITM segment in target system only when

E1EDP19-QUALF = Z39 , so here i got the idea how to get the E1NTITM segement. But BAUTL field will be populate in each E1NTITM segment only when E1EDP19-QUALF = Z18. It means, in the source structure contains one

E1EDP19-QUALF = Z18 and n number of E1EDP19-QUALF = Z39 fields. So E1NTITM segment will appear in the target n number of times and BAUTL field will be appear in each and every E1NTITM segment. if the source doesn't have

E1EDP19-QUALF = Z18 field then BAUTL field could't be there in target E1NTITM segment. For this i just have an idea like, we need to loop the E1EDP01 segment to check if there is any E1EDP19-QUALF = Z18 field is there but i don't no how to do the looping. Please help me how to solve this problem.