cancel
Showing results for 
Search instead for 
Did you mean: 

Message Mapping Suppress

Former Member
0 Kudos

Hi Experts,

I'm struggling with following task:

IDoc structure to IDoc structure (source and target are the same)

DELLVRY05 1

-IDOC 1

-E1EDL20 1-unbounded

-E1EDL24 0-unbounded

|-POSNR 0-1

|-CHARG 0-1

|-E1EDL410-2

E1EDL24 should NOT appear if CHARG or E1EDL41 do not exist!

Thx,

Udo

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Do the mapping as



POSNR --->removeContext--> exists \        E1EDL24-----> then
                                  --------> AND ---> IF without Else --> E1EDL24 
CHARG---> removeContext--->exists  /  
 

exists: Use this function to determine whether a particular source field exists in the XML instance to be processed. If it does, exists() returns the value true, otherwise it returns the value false.

Edited by: Kubra fatima on Sep 24, 2009 10:26 AM

former_member187339
Active Contributor
0 Kudos

Hi Eivind,

Try this:

CHARG (Context E1EDL24)exists--


> OR -- createIF -- E1EDL24

E1EDL41 (Context E1EDL24)CollapseContextexists/

Regards

Suraj

Edited by: S.R.Suraj on Sep 24, 2009 4:14 AM

Former Member
0 Kudos

HI,

You can handle it with standard APIs in mapping.



POSNR ---> Exists   _______> AND ---> IF without Else --> then Pass source side E1EDL24  to ----> E1EDL24 
CHARG---> Exists    

Occurance is 0--unbounded.

Thanks

Swarup