cancel
Showing results for 
Search instead for 
Did you mean: 

Inbound IDOC change control record

former_member293658
Participant
0 Kudos
475

Hello IDOC Experts,

We have an incoming IDOC of type INVOIC02. In some cases this will be an invoice connected to a PO which needs to be processed with process code INVL and in some cases it will be an invoice not connected to a PO which must be processed by Process Code INVF. How can we handle this scenario since a message type in WE20 can only be linked to one process code on the inbound partner profile?

We were thinking to maybe enhance the incoming idoc such that if the idoc data contained certain value that indicates a PO invoice then change the IDOC control record Message Code to be 'MM' and if the idoc data indicated a non-PO invoice change the IDOC control record Message Code to be 'FI'. Then in the partner profile link INVOIC with message code MM to process code INVL, and link INVOIC with message code FI to INVF.

Can you advise if there is any other option to proceed?

If the above is an option, how can we change the control record on an inbound IDOC so that message code is filled? We tried for example BAdi idoc_data_mapper but it will not allow control record to be changed.

Thank you for any help.


Accepted Solutions (0)

Answers (0)