Skip to Content
avatar image
Former Member

IDOC Mapping

Hi,

I have a sceanrio where i have to send value based on field not exit. its IDOC to soap scenario.

E1WBB01 -


MATNR

E1WBB01-- -E1WBB03 E1WBB04 ---EAN11,HPEAN

when HPEAN in E1WBB04 not exit then i have to send MATNR and EAN11 to target. E1WBB04 will occure many times.

there will be one MATNR and multiple E1WBB04 segement.

so 1st data set will be :

MATNR=10001

E1WBB04--EAN11=111

E1WBB04-HPEAN=X

2nd data set will be:

MATNR=10001

E1WBB04--EAN11=222

so i have to send 2nd data set to target.

Pls provide me the mapping.

Regards

Laxmi Bhushan

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • avatar image
    Former Member
    Dec 13, 2011 at 06:35 AM

    Hi,

    when HPEAN in E1WBB04 not exit then i have to send MATNR and EAN11 to target. E1WBB04 will occure many times.

    please go through below blog

    http://wiki.sdn.sap.com/wiki/display/XI/ToExistOrNottoExististheQuestion

    regards,

    ganesh.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 13, 2011 at 06:36 AM

    Hi,

    > I have a sceanrio where i have to send value based on field not exit. its IDOC to soap scenario.

    > E1WBB01 -


    MATNR

    > E1WBB01---E1WBB03E1WBB04---EAN11,HPEAN

    > when HPEAN in E1WBB04 not exit then i have to send MATNR and EAN11 to target. E1WBB04 will occure many times.

    > there will be one MATNR and multiple E1WBB04 segement.

    HPEAN - remove contexts node function - collapse context node function - exists node function - not function - then map MATNR field.

    Change HPEAN context to E1WBB01 segment.

    If you want these field multiple times in target then you need to use OneAsMany node function

    Regards,

    Venkata Ramesh

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 13, 2011 at 06:58 AM

    Hi,

    Try below one.

    if-- >HPEAN >Exist ->not >then >MATNR >Terget

    if-- >HPEAN >Exist ->not >then >EAN11 >Terget

    change context(Parent node) level for MATNR and EAN1 fields.

    GreatDay,

    Girii

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 13, 2011 at 07:00 AM

    Hello,

    You can use this mapping:

    For EAN

    HPEAN -> mapWithDefault: -> equalsS -> ifWithoutElse -> removeContext -> splitByValue:eachValue -> EANTarget
                   Constant: -> / EAN11 -> /
    

    Hope this helps,

    Mark

    Add comment
    10|10000 characters needed characters exceeded