Skip to Content

Need Help on Mapping Logic for IDOC Segments

Hello Experts,

Need help on mapping we have to create target Idoc Structure(file to IDOC scenario) as mentioned below. Now I need to repeat E1PITYP for every segment(info type), I don't have any condition for this from functional team. How can I achieve this.

  • E1PLOGI
    • E1PITYP
      • E1P0000
    • E1PITYP
      • E1P0002
    • E1PITYP
      • E1P0003
    • E1PITYP
      • E1P0006

Note : Already we have condition to populate segments(E1P0000, E1P0002, E1P003..).

Regards,

Kumar

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Nov 01, 2016 at 11:07 PM

    Kumar i understand your requirement.

    The structure of the HRMD_A idoc is

    E1PLOGI

    E1PITYP

    E1P0000

    E1P0002

    Etc etc

    You just want to insert the parent E1PITYP above each infotype.

    E1PLOGI

    E1PITYP

    E1P0000

    E1PITYP

    E1P0002

    Not entirely sure why you want to do that but anyway!

    Unfortunately i know only one way of doing this with graphical mapping and if you are mapping many infotypes it will be a nightmare as you have to map them individually.

    • On your target message type in your message mapping, select the E1PITYP segment and 'Duplicate Subtree'. Then map one of the infotype segments underneath this. Repeat for the infotypes you want to map, each on underneath its own E1PITYP segment/subtree....

    Not efficient but yea... I'd be interested in any Java mapping solutions as it is not something i am familiar with.

    Add comment
    10|10000 characters needed characters exceeded

  • Jun 11, 2017 at 09:29 AM

    Thanks for your reply.

    Delay in response I am sorry. I have duplicated Parent segment to achieve this.

    Regards,

    Kumar

    Add comment
    10|10000 characters needed characters exceeded