cancel
Showing results for 
Search instead for 
Did you mean: 

Idoc segement

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

I m using the same concept but no luck, i m getting only first value.

my segement 1 occeurance is 0:999 and field occeurance is 0:1.

Pls suggest

Former Member
0 Kudos

tell me what input are u providing to ur oneasmany function...

chirag

former_member581827
Participant
0 Kudos

Change the occurence to hoigher node and Check.

Former Member
0 Kudos

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

former_member581827
Participant
0 Kudos

Hi,

Change the Context to higher node than E1STZUM for MATNR and all the three elements which you are using in USE ONE AS MANY should be of same context.

Former Member
0 Kudos

I have done that but only first row is going to target.

regards

former_member581827
Participant
0 Kudos

From which segment r u getting PROID.

Kindly give the corrext mapping which you are doing?

Thanks,

Chandra

former_member200962
Active Contributor
0 Kudos
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.

Former Member
0 Kudos

I had considered that one thats why i gave u the occurance.

Please suggest me what other solutions are.

Regards

Laxmi Bhushan

Former Member
0 Kudos

lost can u explain in detail again what u r trying to achieve..

chirag

Answers (1)

Answers (1)

Former Member
0 Kudos

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