cancel
Showing results for 
Search instead for 
Did you mean: 

How to genereate multiple IDOCs from multiple rows in a single flat file

Former Member
0 Kudos

HI,

I am working on a scenario where I need to genereate a IDOC per one row in a flat file.

I created DT of following strcuture:

DT_TYPE

--DETAILS -


0..Unbound

-


F1------0..Unbound

-


F2------0..Unbound

-


F3------0..Unbound

IDOC is

ZIDOC

IDOC----1..1

-BEGIN-Required

-SEGMENT1---1..1

-SEGEMENT2-1..1

-SEGMENT3-1..999

To create multiple IDOCs if there are multiple rows in a flat file in MM i choosed occurances as 0..unbound in Signiture tab

Source structure:

Messages------1...1

-Message1--1....1

-


DT_TYPE------0..Unbound

-


DETAILS -


0..Unbound

-


F1------0..Unbound

-


F2------0..Unbound

-


F3------0..Unbound

Target Strcuture:

Messages----1....1

-Message--1....1

-


ZIDOC----1....1

-


IDOC------1..1

-


BEGIN---Required

-


SEGMENT1-----1..1

-


SEGEMENT2---1..1

-


SEGMENT3---1..999

I am unable to generate two IDOCs if there are two rows:

Am I missing some thing?

Thanks

Rajeev

Accepted Solutions (1)

Accepted Solutions (1)

udo_martens
Active Contributor
0 Kudos

Hi Rajeev,

the message split (without BPM) does only work with adapter of Adapter Framework, not with IDoc adapter. But you could use Michal's tricky [XI: IDOC bundling - the "trick" with the occurance change|https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/2762] [original link is broken] [original link is broken] [original link is broken];.

Regards,

Udo

Answers (2)

Answers (2)

abhijitbolakhe
Advisor
Advisor
0 Kudos

Hi Rajeev

In file content conversion...give Recordsets per message as 1.

Regards

Abhijit

Former Member
0 Kudos

Hi,

Use BPM multicast pattern to achieve this.

Regards,

Gourav

Former Member
0 Kudos

HI,

I am working on a scenario where I need to genereate a IDOC per one row in a flat file.

I created DT of following strcuture:

DT_TYPE

--DETAILS -


0..Unbound

-


F1------0..Unbound

-


F2------0..Unbound

-


F3------0..Unbound

IDOC is

ZIDOC

IDOC----1..1

-BEGIN-Required

-SEGMENT1---1..1

-SEGEMENT2-1..1

-SEGMENT3-1..999

To create multiple IDOCs if there are multiple rows in a flat file in MM i choosed occurances as 0..unbound in Signiture tab

Source structure:

Messages------1...1

-Message1--1....1

-


DT_TYPE------0..Unbound

-


DETAILS -


0..Unbound

-


F1------0..Unbound

-


F2------0..Unbound

-


F3------0..Unbound

Target Strcuture:

Messages----1....1

-Message--1....1

-


ZIDOC----0....unbound

-


IDOC------1..1

-


BEGIN---Required

-


SEGMENT1-----1..1

-


SEGEMENT2---1..1

-


SEGMENT3---1..999

I am unable to generate two IDOCs if there are two rows:

Am I missing some thing?

It isnt possible with out BPM?

Thanks

Rajeev

Former Member
0 Kudos

Hi,

You can achive 1:n mapping without BPM. Please see the below link.

/people/jin.shin/blog/2006/02/07/multi-mapping-without-bpm--yes-it146s-possible

Regards,

Shweta.