cancel
Showing results for 
Search instead for 
Did you mean: 

Confirmation using BAPI ,using BAPI_PRODORDCONF_GET_HDR_PROP

former_member184752
Active Participant
0 Kudos

Hi Team,

I had gone with Using std BAPIS

BAPI_PRODORDCONF_GET_HDR_PROP &

BAPI_PRODORDCONF_CREATE_HDR

I am gettingb the result as Confirmation saved , But when I look into the Order The COnfirmation status is not there, ie the order header has not been Confirmed &

The documents has also not beed posted for goods Receipt .

Please reply

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi!

you must use FM 'BAPI_TRANSACTION_COMMIT' after BAPI calls.

BR, Andrei

Former Member
0 Kudos

Andrei is right. The BAPI's you use don't perform an own commit_work to save the data to database.

You have to call BAPI_TRANSACTION_COMMIT to perform the commit_work and save the result to database.

BR Sabine

Answers (2)

Answers (2)

former_member184752
Active Participant
0 Kudos

Hi team,

Thanks all for yr inputs but still my concern is BAPI PP_CATT_CONFBAPI_HDR .

I Have executed , but the results are not saved ..

In production order i dont get CNF/PCNF status .???

Where i would be going wrong ???

any idea

rupesh_brahmankar3
Active Contributor
0 Kudos

Dear,

Please use BAPI_PRODORDCONF_CREATE_HDR,

to update database dont forget to call FM BAPI_TRANSACTION_COMMIT at last. and by passing values ATHDRLEVELS-FIN_CONF = 'X' for Final Confirmations else its partial. tables athdrlevels = itab.

Regards,

R.Brahmankar

rupesh_brahmankar3
Active Contributor
0 Kudos

Dear,

Check this FM PP_CATT_CONFBAPI_HDR..

This calls BAPI_PRODORDCONF_GET_HDR_PROP to get the proposed values for confirmation and then calls BAPI_PRODORDCONF_CREATE_HDR for confirmation.

Also note that go to OPK4 process controlthat originally from T-Code OPKC, Automatic Goods Movement from BAPI always use update task or background task.

Also check . In order type Customizing (transaction CORN for process orders, transaction OPJH for production orders), the indicator for collective orders with goods movement is set may cause this problem.

Also refer the OSS Note 208477 - Consulting: Process control in confirmation.

Regards,

R.Brahmankar