08-19-2010 12:35 AM
Hello,
This is my first post on this forum. Sorry if I post tit it to a wrong one.
I know Production Order Confirmation number looking a BAPI to get all details like
Production order number, operation number, qty u2026 by passing only confirmation number.
I hope it exist.
Thank you.
Moderator message: please use more descriptive subject lines from now on.
Moderator message: accidental profanity corrected.
Edited by: Thomas Zloch on Aug 19, 2010 4:46 PM
08-19-2010 2:52 AM
Hi,
probably you are looking for BAPI BAPI_PRODORDCONF_GETDETAIL. The easiest way how to find BAPI is to go to transaciton BAPI and see what's there. For example you can switch to tab "Alphabetical" and you can find business object ProdOrdConfirmation. This object has method GetDetail which is implemented by BAPI BAPI_PRODORDCONF_GETDETAIL.
Cheers
08-19-2010 6:04 AM
Hello,
try below code,
CALL FUNCTION 'BAPI_PRODORDCONF_GETDETAIL' "Detailed Data for Production Order Confirmation
EXPORTING
confirmation = " bapi_pp_conf_key-conf_no Confirmation
confirmationcounter = " bapi_pp_conf_key-conf_cnt Confirmation counter
IMPORTING
return = " bapiret1 Return parameter
conf_detail = " bapi_pp_confirm Data from production order confirmation
TABLES
goodsmovements = " bapi2017_gm_item_show Successfully booked goods movements
failedgmoves = " bapi_coru_fgm Incorrect or preselected goods movements
. " BAPI_PRODORDCONF_GETDETAIL
In this method the data for a confirmation for a production order is provided in the ConfDetail parameter. It makes no difference whether the confirmation is entered as a
Time ticket
Time event
Activity confirmation
Order confirmation
Goods movements that are posted together with the confirmation, are also provided. Here the system differentiates between successfully posted goods movements in the Goodsmovements table and goods movements with errors in the Failedgmoves. The latter can be re-processed with the COGI transcation.
08-19-2010 6:33 AM
Try using the BAPI: BAPI_PRODORDCONF_GETDETAIL
CALL FUNCTION 'BAPI_PRODORDCONF_GETDETAIL' "Detailed Data for Production Order Confirmation
EXPORTING
confirmation = " bapi_pp_conf_key-conf_no Confirmation
confirmationcounter = " bapi_pp_conf_key-conf_cnt Confirmation counter
IMPORTING
return = " bapiret1 Return parameter
conf_detail = " bapi_pp_confirm Data from production order confirmation
* TABLES
* goodsmovements = " bapi2017_gm_item_show Successfully booked goods movements
* failedgmoves = " bapi_coru_fgm Incorrect or preselected goods movements
. " BAPI_PRODORDCONF_GETDETAIL
FUNCTIONALITY
In this method the data for a confirmation for a production order is provided in the ConfDetail parameter. It makes no difference whether the confirmation is entered as a
Time ticket
Time event
Activity confirmation
Order confirmation
Goods movements that are posted together with the confirmation, are also provided. Here the system differentiates between successfully posted goods movements in the Goodsmovements table and goods movements with errors in the Failedgmoves. The latter can be re-processed with the COGI transcation.
08-19-2010 3:26 PM
Hello,
BAPI_PRODORDCONF_GETDETAIL required to pass two parameters:
confirmation number
counter
I don't know the counter number that why I got here for a help.
08-19-2010 3:39 PM
As noted...look at Production Planning inside transaction BAPI. You might benefit by calling BAPI_PRODORD_GET_DETAIL or BAPI_PRODORDCONF_GETLIST first.
08-19-2010 3:45 PM
BreakPoint,
You are right but for BAPI_PRODORDCONF_GETLIST required confirmation and counter number and for
BAPI_PRODORD_GET_DETAIL production order.
If you open TC CO11N
providing confirmation number you get all production order data. This is what I'm after.
Thank you.
08-19-2010 4:04 PM
Moderator message: accidental profanity corrected.
"Funny is all you have, Thomas !!! " Sorry ... Couldn't help it 😛
09-08-2010 7:20 PM
For Bapi_PRODORD_GET_DETAIL. What verion of SAP is the bapi available? I don't see in my 4.7 version. Can it be downloaded from SAP into Sap 4.7 version? Thanks for input.