on 02-15-2011 10:13 AM
Hi,
I am running BOMMAT IDOC, taking three filed value form two segment. where first field is from segment 1 and occeurance is one , while second and third field is form segment 2 occeurance is multiple time based on field on of segment 1.
i want to repet the field 1 value of segment 1 multilple time.
when i run the idoc it sends data only one time. like 1, 200,300
segment 1
Field 1 == 1
Segment 2
Field 2 = 200, 201
field 3= 300, 301
Pls suggest
Regards
Laxmi B
use oneasMany function to repeat the first field whose occurrence is once.
http://help.sap.com/saphelp_nw70/helpdata/en/ef/df564b6aa24fc9ab0d685460747de5/content.htm
chirag
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Chirag,
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)
Mapping
MATNR -
(Context = E1STZUM) UseOneAsMany----<PROID>
E1STPOM----- (Context = E1STZUM)
IDNRK-----
Please see the mapping
Regards
Laxmi Bhushan
my segement 1 occeurance is 0:999 and field occeurance is 0:1.
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)
MATNR ---- (Context = E1STZUM) UseOneAsMany----<PROID>
E1STPOM----- (Context = E1STZUM)
IDNRK-----
if your source is going to occur more than one time then how can you use OneAsMany? It is used when the source has just one occurence (1..1) in the entire payload.
Hi,
As said use one as many will suffice your requirement..
pass field1 and segment 2 with the context to the parent level as input parameters to the use one as many function...
fthus field 1 will get generated as manytimes as segment occurences..
HTH
Rajesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
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.