cancel
Showing results for 
Search instead for 
Did you mean: 

IDOC for order confirmation and GR posting in background

krzem30
Explorer
0 Kudos

Hello,

We would like to implement order confirmation IDOC from external system to SAP with auto GR  in background.

We have control key in routing with mark auto GR but the question is how to setup IDOC so we can receive in one IDOC production confirmation and GR of the product. Can it be done user one IDOC? Is the Message type - PPCC2PRETTICKET the correct way?

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

DominikTylczyn
Active Contributor

Hello @krzem30 

Yes, you can use the PPCC2PRETTICKET to post PP time ticket confirmations. The IDoc maps and is processed by the BAPI_PRODORDCONF_PDC_UPLOAD_TT function:

DominikTylczyn_0-1714396747727.png

Notice that the IDoc/BAPI only saved in the AFRU table and need to be processed further with the CORUPROC1. That can be automated with plant data capture configuration - from the BAPI documentation:

DominikTylczyn_1-1714396840166.png

If you don't like that 2-step approach, you can use the BAPI_PRODORDCONF_CREATE_TT function instead. The BAPI can be exposed as an IDoc with BAPI-ALE interface, transaction BDBG.

Of course, you also need regular IDoc settings like a partner profile, transaction WE20.

Best regards

Dominik Tylczynski

 

krzem30
Explorer
thanks for your answer

Answers (0)