Skip to Content
avatar image
Former Member

Mapping to 3rd hierarchical level in IDoc

Hi, well i have a little problem.

Scenario: File to IDoc

i get this kind of file:

<i>P|67220400|9991233643|

W|71123456|1|4|BPL

K|70100005|15|X|9999

K|70100200|4||1200

K|70100210|3||300

W|71123456|1|4|ABM

K|70100005|15|X|9999

K|70100200|4||1200

K|70100210|3||300</i>

...where P, W, K are keyfields.

The IDoc has three hierarchical levels, whereas P is first, W second and K third.

All these values should be mapped in one IDoc. But everytime a new W occurs there is a new recordset generated, so a new IDoc.

Nevertheless i map as follows:

<i>/ZIDOC/IDOC =/MT_EPLAN/ EPLANRecordSet=

/ZIDOC/IDOC/@BEGIN =const([value=])

/ZIDOC/IDOC/EDI_DC40/@SEGMENT =const([value=])

/ZIDOC/IDOC/EDI_DC40/TABNAM =const([value=])

/ZIDOC/IDOC/EDI_DC40/DIRECT =const([value=])

/ZIDOC/IDOC/EDI_DC40/IDOCTYP =const([value=])

/ZIDOC/IDOC/EDI_DC40/MESTYP =const([value=])

/ZIDOC/IDOC/EDI_DC40/SNDPOR =const([value=])

/ZIDOC/IDOC/EDI_DC40/SNDPRT =const([value=LS])

/ZIDOC/IDOC/EDI_DC40/SNDPRN =const([value=COS])

/ZIDOC/IDOC/EDI_DC40/RCVPOR =const([value=])

/ZIDOC/IDOC/EDI_DC40/RCVPRN =const([value=])

/ZIDOC/IDOC/ ZBC15_EPLAN= /MT_EPLAN/EPLANRecordSet/EPLANHead =

/ZIDOC/IDOC/ZBC15_EPLAN/ @SEGMENT=const([value=])

/ZIDOC/IDOC/ZBC15_EPLAN/EPLAN =/MT_EPLAN/EPLANRecordSet/EPLANHead/ Data1=

/ZIDOC/IDOC/ZBC15_EPLAN/ WERKSTUECK= /MT_EPLAN/EPLANRecordSet/EPLANHead/Data2 =

/ZIDOC/IDOC/ZBC15_EPLAN/ ZBC15_WERK= /MT_EPLAN/EPLANRecordSet/EPLANWerkz =

/ZIDOC/IDOC/ZBC15_EPLAN/ZBC15_WERK/ @SEGMENT=const([value=])

/ZIDOC/IDOC/ZBC15_EPLAN/ZBC15_WERK/ WERKSTUECK= /MT_EPLAN/EPLANRecordSet/EPLANWerkz/Data1 =

/ZIDOC/IDOC/ZBC15_EPLAN/ZBC15_WERK/ POSNR= /MT_EPLAN/EPLANRecordSet/EPLANWerkz/Data2 =

/ZIDOC/IDOC/ZBC15_EPLAN/ZBC15_WERK/ ANZAHL= /MT_EPLAN/EPLANRecordSet/EPLANWerkz/Data3 =

/ZIDOC/IDOC/ZBC15_EPLAN/ZBC15_WERK/ KTEXT= /MT_EPLAN/EPLANRecordSet/EPLANWerkz/Data4 =

/ZIDOC/IDOC/ZBC15_EPLAN/ZBC15_WERK/ ZBC15_KOMP= /MT_EPLAN/EPLANRecordSet/EPLANKomp =

/ZIDOC/IDOC/ZBC15_EPLAN/ZBC15_WERK/ZBC15_KOMP/ @SEGMENT=const([value=])

/ZIDOC/IDOC/ZBC15_EPLAN/ZBC15_WERK/ZBC15_KOMP/ KOMP= /MT_EPLAN/EPLANRecordSet/EPLANKomp/Data1 =

/ZIDOC/IDOC/ZBC15_EPLAN/ZBC15_WERK/ZBC15_KOMP/ ANZAHL= /MT_EPLAN/EPLANRecordSet/EPLANKomp/Data2 =

/ZIDOC/IDOC/ZBC15_EPLAN/ZBC15_WERK/ZBC15_KOMP/ ART= /MT_EPLAN/EPLANRecordSet/EPLANKomp/Data3 =

/ZIDOC/IDOC/ZBC15_EPLAN/ZBC15_WERK/ZBC15_KOMP/ MENGE= /MT_EPLAN/EPLANRecordSet/EPLANKomp/Data4 =

</i>

Can someone help me?!

br

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Oct 10, 2007 at 09:32 AM

    Hi Carsten,

    As per my understanding of u r requirement check the maping for IDOC field in the strucutre.you have mapped with MT_EPLAN/ EPLANRecordSet.Once check the occurence of this.

    Cheers

    Veera

    >>>Reward Points,If it is needful.

    Add comment
    10|10000 characters needed characters exceeded