on 02-18-2011 7:01 AM
Hi
I have BOMMAT idoc , where i have to repet MATNR value as many times as IDNRK and MENGE_C is having.
Bommat04 idoc
Segment 1 E1STZUM(1..1)>>E1MASTM(1..999)>> Field is MATNR(0:1)
Segment 2 E1STZUM(1..1)>>E1STPOM(0:99999)>> Field is IDNRK(0:1), MENGE_C(0:1)
Like
segment E1MASTM
MATNR = 1
Segment E1STPOM
IDNRK = 200
MENGE_C= 300
Segment E1STPOM
IDNRK = 201
MENGE_C= 301
So MATNR Shoud repet two times and give the results like 1,200,300 and 1,201,301.
Please suggest me the mapping to achive this.
regards
Laxmi Bhushan
Hi,
I understood what output u want but i hve one doubt...
what happened when MATNAR root segment repeat more than one time...
segment E1MASTM
MATNR = 1
segment E1MASTM
MATNR = 2
Segment E1STPOM
IDNRK = 200
MENGE_C= 300
Segment E1STPOM
IDNRK = 201
MENGE_C= 301
In this case what output u r expecting...
the problem here is ur E1MASTM seg is repeating 0-999 as per ur structure...
chirag
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have got very simple solution for u...
Use graphical variable------- option available in PI 7.1
Right click on target structure say add variable and give MATNR name - Now map the source field MATNR with this field.
Now Go to ur target MATNR structure and drag that target variable and map it to target field..
u can refer this blog for more understanding.../people/william.li/blog/2008/02/13/sap-pi-71-mapping-enhancements-series-using-graphical-variable
I have tried that and It is working very fine for me...U can use that MATNR field as a constant...other mapping will be same -wat I mean is map E1STPOM to root target node....
chirag
You an use Use One as Many function first argument will be Matnr second will be E1PSTOM and thrid IDTNR ...
All three should be of same context which will be higer level than E1MASTM.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
pls give some response
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Laxmi,
When you use function useOneAsMany, before passing IDNRK to useOneAsMany, please change the context of IDNRK to E1MASTM.
(Only in case E1MASTM is the parent node of E1STPOM. Apologies if I have understood the structure incorrectly)
Can you please try this and let us know if it works?
Thanks.
Best Regards,
Shweta
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Laxmi,
You can use Useoneasmany function to repeat the field MATNR. There would be three arguments:
1. First argument u201Cwhat should be repeatedu201D.
2. Second argument u201Chow many times, first argument should repeatu201D.
3. Third argument u201CShould have same context of Item (Second argument)u201D.It maintains the context.
Thanks,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Check useOneAsMany node function , you can use that.l
Thanks,
Pushkar
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 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.