cancel
Showing results for 
Search instead for 
Did you mean: 

Flat File to IDOC Mapping requirement to generate Multiple Segments

santosh_k3
Active Participant
0 Kudos

Hi Experts,

I got a requirement were i have 2 records in a file and i need to generate 2 IDOCs with multiple segments in it.

FILE :

10/01/2010 101 KRNA ic_quantity 30-0257 3526 1 1 ea 110000 10

10/01/2010 101 KRNA ic_quantity 90-0005 3526 1 2 ea 110000 10

Idoc should generate 2 IDOCs with multiple segments as shown below

I have imported the IDOC and changed the occurrence to " unbounded "

The Basic IDOC Type : WMMBID02

I need to generate Multiple segments of E1MBXY1

i.e.., First IDOC should contain two E1MBXY1 segments

Second IDOC should contain Four E1MBXY1 segments

IDOC1 : WMMBID02

Segment : E1MBXY1( 2 segments)

10/01/2010 101 KRNA ic_quantity 30-0257 3526 1 1 ea 110000 10

10/01/2010 101 KRNA ic_quantity 90-0005 3526 1 2 ea 110000 10

IDOC2 : WMMBID02

Segment : E1MBXY1 ( 4 segments)

10/01/2010 101 KRNA ic_quantity 30-0257 3526 1 1 ea 110000 10

10/01/2010 101 KRNA ic_quantity 30-0257 3521 1 1 ea 110000 10

10/01/2010 101 KRNA ic_quantity 90-0005 3526 1 2 ea 110000 10

10/01/2010 101 KRNA ic_quantity 90-0005 3521 1 2 ea 110000 10

Can anyone suggest me how to generate IDOCs with multiple segments

what are multiple ways of generating it

Whether it can be achieved using Multi-mapping or I need go for UDF

If any one has done has done this type of requirement ,please share the points.

Thanks

Sai

Accepted Solutions (1)

Accepted Solutions (1)

rajasekhar_reddy14
Active Contributor
0 Kudos

Hi Sai,

very simple way is duplicate segment in IDoc stucture in mapping and map it accordingly and change occurace of IDoc egment to 1 to unbounded.

if you are procesisng only one record at a time then duplicte segments one more time no need to change the occurance.

Regards,

Raj

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

1. first you have to import the required idoc under improted objects in ESR.

2. then you have to export iodc xsd into your desktop. then you need change IDOC occurence 1..ounbound,and idoc segment 1 to unbounded.

3. that xsd again you have to import under external defination into ESR.

4.then do necessary mapping.

you dont need to write UDF for this interface.

Baskar provided michale blog refer that blog that will helpful for you.

regards,

ganesh.

baskar_gopalakrishnan2
Active Contributor
0 Kudos

Basically you need to generate idoc per record in the flat file. During fcc conversion you convert flat file to xml structure at the sender side. In the mapping use xml file structure source and idoc as receiver structure. You just export idoc and update the idoc segment 1 to unbounded. Please follow the michael blog for file to idoc multimapping without bpm. Yes without bpm it is possible.

see this link... This will answer your requirement.

https://wiki.sdn.sap.com/wiki/display/XI/File%20to%20Multiple%20IDOC%20Splitting%20without%20BPM

>Whether it can be achieved using Multi-mapping or I need go for UDF

you dont need udf for this.