01-24-2006 7:45 PM
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
01-24-2006 7:48 PM
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
01-24-2006 7:48 PM
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
03-09-2006 11:07 AM
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