Skip to Content
avatar image
Former Member

Problem in message mapping while generating multiple record

Hi experts,

I am doing an idoc to file scenario in which E1FISEG SEGMENT is coming multiple time and if it contains two field ebeln & sgtxt then only it has to create corresponding data record I used following logic ..............

eibeln[change context to one level upper] --->Exist


> AND -> Createif Target

//

sgtxt[change context to one level upper] -


>Exist

and achived creation of data record but the problem is that if EIFISEG occurs five time and only two time it contains eibeln& sgtxt then its creating only two data record but its taking data from first and second E1FISEG segment instead of corresponding E1FISEG which satisfy the condition......Plz help its bit urgent

Regards

Neha

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Aug 08, 2007 at 08:38 AM

    First take out the Context Change for each element EIBELN and SGTEXT and do the maping . Before the Createif Use the remove context node function. It will work fine.

    So EIBELn and SGTXT exist pass after If condition it will pass the elements with context change inside. Now use the remove context method to combined those values then definetly it wil work out

    Warm Regards,

    Vijay

    Message was edited by:

    Gangisetty Vijaya Bhaskarudu

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 08, 2007 at 10:34 AM

    Thanks a lot vijay it worked............however i have not understood what was the problem priviously however i am giving you u full point which u fully deserve.

    Regards

    Neha

    Add comment
    10|10000 characters needed characters exceeded