Skip to Content
avatar image
Former Member

flat file to idoc mapping issue

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

8 Answers

  • avatar image
    Former Member
    Nov 06, 2007 at 06:01 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 06, 2007 at 06:10 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 06, 2007 at 06:27 AM

    Use context objects in Mapping....

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 06, 2007 at 06:29 AM

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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 06, 2007 at 06:29 AM

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

    Add comment
    10|10000 characters needed characters exceeded

  • Nov 06, 2007 at 06:35 AM

    Das

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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 06, 2007 at 08:36 AM

    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-adb5e89a6638

    SAP Exchange Infrastructure - Graphical_Mapping

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

    SAP Exchange Infrastructure - Graphical Mapping Exercise

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

    SAP Exchange Infrastructure - Graphical Mapping - Advanced

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

    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-c12f071f7d3b

    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-a862945a5e98

    Mapping Lookups a RFC API

    Mapping lookups - 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-d8f327e1dba7

    I hope these links will be usefull.

    Regards,

    Salvatore

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 08, 2009 at 10:58 AM

    ok

    Add comment
    10|10000 characters needed characters exceeded