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: 

BAPI/FM for Confirmation of Production order at operation level

Former Member
0 Kudos

Hi ABAPers,

I am using the 'BAPI_PRODORDCONF_CREATE_ACT'for Confirmation of Production order at operation level.

I am able to pass the Production order number and Active Operation get the confirmation done.

But the Confirmed Qty is not being updating in AFKO table.

The 'BAPI_PRODORDCONF_CREATE_HDR' cannot be used for Confirmation of Production order at operation level as there is no Operation/Activity(Vornr) field in the input table. Hence using this bapi confirmation of Prod order can be only at Order level.

Can someone know any FM/BAPI which can be used for the Confirmation of Production order at operation level(not order level).

Thanks in Advance

Ramesh Babu Cikka

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Ramesh,

Please use FUNCTION 'BAPI_PRODORDCONF_CREATE_TT'.

This will work as like as T/Code "CO11".

I hope this will help you.

Example :

CALL FUNCTION 'BAPI_PRODORDCONF_CREATE_TT'

EXPORTING

POST_WRONG_ENTRIES = '0'

TESTRUN = ' '

IMPORTING

RETURN = ZRETURN

TABLES

TIMETICKETS = ZBAPI_PP_TIMETICKET

DETAIL_RETURN = ZBAPI_CORU_RETURN.

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

EXPORTING

WAIT = 'W'.

Lanka

2 REPLIES 2

Former Member
0 Kudos

Hi Ramesh,

Please use FUNCTION 'BAPI_PRODORDCONF_CREATE_TT'.

This will work as like as T/Code "CO11".

I hope this will help you.

Example :

CALL FUNCTION 'BAPI_PRODORDCONF_CREATE_TT'

EXPORTING

POST_WRONG_ENTRIES = '0'

TESTRUN = ' '

IMPORTING

RETURN = ZRETURN

TABLES

TIMETICKETS = ZBAPI_PP_TIMETICKET

DETAIL_RETURN = ZBAPI_CORU_RETURN.

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

EXPORTING

WAIT = 'W'.

Lanka

Former Member
0 Kudos

Hi Everyone,

I'm trying to do the same thing. When I call this BAPI either from ABAP or the Web Service I get the error

"Confirmations may only be created in dialog mode" Is this because the BAPI wants to send a status message back to the user? Is there a way around this?

Thanks for any help ...

Rod