on 08-04-2007 2:44 PM
Hi all,
I am doing an idoc to file scenario .In that an idoc segment E!FSEG is occuring five times totally and 3 time with two fields "eibeln"and sgtxt.I have to generate data record 3 times when the field eibelen and sgtxt both are persent in the segment.
I mapped my target datarecord with segment E!FSEG with if conditon that if both field r persent then map E!FSEG wtih data record but data record is getting created 5 times instead of 3.Plz guide me as its very urgent
Regards
Neha
Neha,
Try the below option and let us know.
eibeln[change context to one level upper] --->Exist
> AND-> Createif Target
//
sgtxt[change context to one level upper] -
>Exist
Best regards,
raj.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI Raj& Arvind
I implemented the above logic and achived the desired result also
But one new problem is coming .
that suppose 3 in the 5 segment satisfy the conditon then its creating three segment but its taking first three.If first three segment satisfy the condition and last two doesnot then its working fine.but if the first one and last two does not satisfy the condition then its taking first three and discard last three.......ie its taking first one by default.
Regards
Neha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI Raj
It worked .Thanks a lot
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI Arvind
I have tried this but even though its not working.I am surpised tha when i am usin if condition and only three times this condition is true then why its calling
the E!FSEG segment five time.
Regards
Neha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
try this
map the field eibeln to the target data record but chnage the context of the field ebeln from segment E!FSEG to it's uppernode
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.