Skip to Content
avatar image
Former Member

Message Mapping Suppress

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Sep 24, 2009 at 08:04 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 24, 2009 at 08:14 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 24, 2009 at 08:18 AM

    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

    Add comment
    10|10000 characters needed characters exceeded