cancel
Showing results for 
Search instead for 
Did you mean: 

flat file to idoc mapping issue

Former Member
0 Kudos

Hi Gurus,

i had a flat file format in sender side as below:

H_ID TYP_CODE line_elemet Quantity

-


-


-


-


5896 STANDARD 1.transmitter 1

5896 STANDARD 2.xxxxxxxxx 1

5896 STANDARD 3.yyyyyyyyy 2

6895 STANDARD 1.aaaaaaaaa 1

9436 STANDARD 1.bbbbbbbbb 4

9436 STANDARD 2.ggggggggg 3

The above file need to be send to an Idoc.

for which same header_ID values should create only one header segment, under that many a line segments should create as many line items appear on that header_id value.

Here my query is how to suppress the repetetive header values to create onlyone header segment. And how to create as many line_item segments as the number of line items appear.

points obvoius for the response

Thanks in advance,

Sekhar.

Accepted Solutions (0)

Answers (8)

Answers (8)

Former Member
0 Kudos

ok

Former Member
0 Kudos

About map problem I suggest youn to see the following link that are really helpful to improve knowledge about mapping:

/people/sravya.talanki2/blog/2005/08/16/message-mapping-simplified--part-i

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

I suggest you to see the following link to learn more about mapping:

Mapping functionality in XI

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/9202d890-0201-0010-1588-adb5e89a...

SAP Exchange Infrastructure - Graphical_Mapping

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/6658bd90-0201-0010-fbb6-afe25fb3...

SAP Exchange Infrastructure - Graphical Mapping Exercise

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/fd5ebd90-0201-0010-d697-91374d5b...

SAP Exchange Infrastructure - Graphical Mapping - Advanced

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/be05e290-0201-0010-e997-b6e55f95...

SAP Exchange Infrastructure: Mapping Patterns - Understand Context Handling in Message Mapping - Webinar Powerpoint

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f59730fa-0901-0010-df97-c12f071f...

SAP NetWeaver Exchange Infrastructure Mapping Troubleshooting - Webinar Powerpoint

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e01e9400-9e81-2910-20a5-a862945a...

Mapping Lookups a RFC API

XI 3.0 New Mapping Features

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/8a57d190-0201-0010-9e87-d8f327e1...

I hope these links will be usefull.

Regards,

Salvatore

prabhu_s2
Active Contributor
0 Kudos

Das

how the line items are differentiated in the flat file u can given?

Former Member
0 Kudos

Can be done easily in mapping...use node functions....

Former Member
0 Kudos

Can be done easily in mapping...use node objects..

Former Member
0 Kudos

Use context objects in Mapping....

Former Member
0 Kudos

Hi,

After u read in the flatfile in an XML format, u can always use a graphical mapping to change the structure to a structure u desire. I think that may be the simplest way....maybe there is a better way...but only this comes to my mind.

Thanks and Regards,

Vikram

Former Member
0 Kudos

hi Das,

>>>><i>how to create as many line_item segments as the number of line items appear.</i>

You need not have to create line item, if the Idoc segment occurance is more than one this will be done automatically in IDoc, need not be explicitly created.

regards

Ramesh P