cancel
Showing results for 
Search instead for 
Did you mean: 

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

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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.

Former Member
0 Kudos

Thanks! Ramesh

are there any manuals, or article on how to go about to implement it.

Regards,

Patrick

Answers (3)

Answers (3)

Former Member
0 Kudos
Former Member
0 Kudos

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

Former Member
0 Kudos

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