Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

IDOC/BAPI for production order confirmations

Former Member
0 Kudos

Does anyone know IDOC or a BAPI for confirming a production order? CO11 is the normal transaction for confirmation.

I found one BAPI: BAPI_PRODORDCONF_CREATE_HDR

Is this the right one?

-Thanks

Bhaven

2 REPLIES 2

Former Member
0 Kudos

Refer FM documentation. I am pasting it for you

"You can use this method to enter order confirmations for production orders.

You can also transfer good movements, that are posted together with a confirmation. If no goods movements have been entered for a confirmation , they are determined using the standard logic for backflushing and automatic goods receipt for confirmations."

former_member534411
Participant
0 Kudos

Hi Bhavan,

status can be find using function module <b>STATUS_TEXT_EDIT</b>.

Sample code:

CALL FUNCTION 'STATUS_TEXT_EDIT'

EXPORTING

client = sy-mandt

objnr = >object number of order<

only_active = 'X'

spras = 'E'

IMPORTING

line = hold_status

EXCEPTIONS

object_not_found = 1

OTHERS = 2.

*Exception in case status is not found

IF sy-subrc <> 0.

MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno

WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

ENDIF.

*Check Status of the Order

IF hold_status CS 'CNF'.

confined production orders.

ENDIF.

Best regards

Suresh Babu Karanam