cancel
Showing results for 
Search instead for 
Did you mean: 

How to get Header data into multiple times along with the Line Items

Former Member
0 Kudos

Dear All,

I have problem while mapping the Header data and line item data to the flat file structure, Header data have to repeat along with the Line item data in the flatfile.

Details is below.

Example

Header record is one

E1EDK01

E1EDKA1

Line items are two

E1EDP01

E1EDP01

I want in the flat file two records having duplicate data in the fields which is belongs to header data

Like :

Record # partner data Line item data

Record 1 : WE name1 city 00010 materialname1 156

Record 2 : WE name1 city 00020 materialname2 198

( WE name1 city - data is same in the record 1)

For this what I did is I mapped the node E1EDP01 to the flat file message type node then I got all the line item data and first record is with header data but not in the second record.

I tried all node functions but no result because Idoc itself header data exists one record, I am not able to copy.

If any one knows , please give solution.

It is great help to me.

Thanks in Advance.

Ramarao

Accepted Solutions (1)

Accepted Solutions (1)

moorthy
Active Contributor
0 Kudos

Hi,

Use Mappign Built in functions like UseOneAsMany to achieve the same with context change.

To know more- /people/sravya.talanki2/blog/2005/12/08/message-mapping-simplified-150-part-ii

/people/william.li/blog/2006/03/21/minimize-memory-usage-during-message-mapping-when-replicating-an-element

Regards,

Moorthy

former_member206604
Active Contributor
0 Kudos

Hi,

As Krishna said you can use UseOneAsMany that will solve your problem.

You can also refer this help which is really good

http://help.sap.com/saphelp_nw04/helpdata/en/ef/df564b6aa24fc9ab0d685460747de5/content.htm

Thanks,

Prakash

Answers (3)

Answers (3)

agasthuri_doss
Active Contributor
0 Kudos

Dear Rao,

I hope your problem got resolved,

Have a cool day.

Regards

Agasthuri Doss

agasthuri_doss
Active Contributor
0 Kudos
agasthuri_doss
Active Contributor
0 Kudos

Dear Ramarao,

This will help you,

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f59730fa-0901-0010-df97-c12...

/people/claus.wallacher/blog/2006/04/17/replication-of-nodes-using-the-graphical-mapping-tool

/people/narendra.jain/blog/2005/12/30/various-multi-mappings-and-optimizing-their-implementation-in-integration-processes-bpm-in-xi

/people/sravya.talanki2/blog/2005/12/08/message-mapping-simplified-150-part-ii

Thanks & Regards

Agasthuri Doss