on 12-23-2011 7:59 AM
Hi PI Gems,
I have 1 query on mapping:
Input:
PART
--mode Attri
PART_NUMBER Ele
HIST_PART Ele
-OLD_PART Ele
DISC Ele
-LONG_D Ele
-SHORT_D Ele
PART
--
--
Output:
IDOC
E1MARAM
E1MKTM
IDOC
E1MARAM
E1MKTM
Problem is, that i am getting Multiple IDOC's and Multiple E1MARAM segments in output for each PART & HIST_PART respectively. But getting E1MKTM in first 2 IDOC's, getting E1MKTM in 3rd IDOC too, but with no Field Values.
PART -->index[1,1] -->divide -->split by value >collpcon>IDOC
constant[1]
HIST_PART-->E1MARAM
DESC-->E1MKTM
Please advice what's wrong i am doing.
Regards
Kamal
we are not sure about your bussiness requirement. but if values not coming to target then use disply queue and debug the mapping.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Raja,
We are doing the same....
But problem is, we need new idoc for each part
under that idoc we need e1maram segment for each hist_part
and under e1maram segment, we need e1maktm segment for each desc.
we are getting idocs and e1maram segments correctly, but not e1maktm.
ex:
part
hist_part
desc1
part
hist_part
hist_part
desc2
output
idoc
e1maram
e1maktm --> desc1
idoc
e1maram
e1maktm -->desc2
e1maram
e1maktm --> empty: ideally desc2 should come
here in second idoc, e1maktm is coming out to be empty.
but if we give 1 more desc in input, say desc3
idoc
e1maram
e1maktm --> desc1
idoc
e1maram
e1maktm -->desc2
e1maram
e1maktm --> desc3
but correct will be:
idoc
e1maram
e1maktm --> desc1
idoc
e1maram
e1maktm -->desc2, desc3
e1maram
e1maktm --> desc2, desc3
Please advice and help.
Regards
KDS
Hi Raja,
Where exactly I have to use "useonetomany"??
please find logic i used
part -->IDOC
Hist_Part_No >index[1,1]>divide>ceil>split by value --> E1MARAM
constant[1]
Disc --> E1MAKTM
Here
Part => FILE HEADER LEVEL
Hist_Part_No & Disc are Elements of PART, and at same level
IDOC ==> TARGET HEADER
E1MARAM ==> Segment of IDOC
E1MAKTM ==> Segment of E1MARAM
Regards
Kamal
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.