Skip to Content
author's profile photo Former Member
Former Member

IDOC posting for distinct PO records(as header) and article(line item)

Hi! All

It would give me your valuable suggestions and help me with developing the mapping below:

I have a file to IDOC scenario, which has about 10 fields and two of these fields are PO and article no.

I need to post IDOC for each distinct PO number(header) and then article number under these PO should post as line items.For exmaple:

consider sample records having the following PO and artcile number:

PO|article_no

123456|abc123

123456|abc456

123456|abc678

These 3 records should post only as one IDOC, having the header PO 123456 and line items(abc123,abc456,abc678)

On the target side, PO is mapped to the parent segment and artcile is in the child segment.

Thank you for all the help!!

Regards,

Patrick.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Sep 10, 2007 at 06:20 PM

    Hi Jones,

    You can try this,by putting RemoveContexts Function between source and target fields in graphical mapping ,to get the desired result.

    Regards,

    Ramesh.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 10, 2007 at 07:13 PM

    Hello Patrick,

    Please use node function-removeContexts() to resolve this issue. This function will remove context, in this case it is PO and add the article_no to the one context.

    Hope it helps.

    Srinivasa

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 10, 2007 at 06:36 PM

    Patric,

    I think solution is simple...while creating recordset from file create recordset for every occurance of Header..

    I think your File structure would be something like this in FCC..

    header,1,Line_Item,*...hence it wull create recordset for every occurance of header and you can map Line Items to idoc line items...Also specify recordset per messages = *.

    I have done something like this...

    Let me know if you need mode details.

    Nilesh

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 10, 2007 at 07:33 PM
    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.