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: 

Looking for a BAPI.

Former Member
0 Kudos

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

8 REPLIES 8

mvoros
Active Contributor
0 Kudos

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

aakash_chalasani
Explorer
0 Kudos

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.

former_member206439
Contributor
0 Kudos

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

  1. Time ticket

  1. Time event

  1. Activity confirmation

  1. 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.

Former Member
0 Kudos

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.

0 Kudos

As noted...look at Production Planning inside transaction BAPI. You might benefit by calling BAPI_PRODORD_GET_DETAIL or BAPI_PRODORDCONF_GETLIST first.

0 Kudos

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.

SuhaSaha
Advisor
Advisor
0 Kudos

Moderator message: accidental profanity corrected.

"Funny is all you have, Thomas !!! " Sorry ... Couldn't help it 😛

Former Member
0 Kudos

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.