cancel
Showing results for 
Search instead for 
Did you mean: 

reharding bapi

Former Member
0 Kudos

hi experts,

in my company the pig iron is the main product,suppose for last month we produced 1000MT of pig iron now with the help of co14 ,co11 we will confirm this production under production order manually ,what i want that cant we use any existing BAPI to confirm this production if yes please let me know ,,,i need the bapi for the confirmation of production not how to create the production order......

if possible kindly send me the steps......

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Check the below code :

data: itab like bapi_pp_hdrlevel occurs 0 with header line.

start-of-selection.

itab-orderid = i_zhdrlblqtydtl-aufnr." -> production order number

itab-conf_quan_unit = i_zhdrlblqtydtl-afko_meins. " Unit of measure

itab-yield = confirm_prod_qty." -> qty

append itab.

call function 'BAPI_PRODORDCONF_CREATE_HDR'

tables

athdrlevels = itab.

call function 'BAPI_TRANSACTION_COMMIT'.

Thanks

Seshu

Former Member
0 Kudos

hi sesu cud u plz explain the steps in more details.....

what is i_zhdrlblqtydtl.....

null

Former Member
0 Kudos

Hi Ravi,

In my program i am getting the data from custom table ,and passing custome table data to BAPI FM..

If you have data then you can use my logic to confirm production order

data: itab like bapi_pp_hdrlevel occurs 0 with header line.

start-of-selection.

<b>itab-orderid = 'Production order number'.

itab-conf_quan_unit = 'Unit of measure'.

itab-yield = 'Give the qty'.</b>

append itab.

call function 'BAPI_PRODORDCONF_CREATE_HDR'

tables

athdrlevels = itab.

call function 'BAPI_TRANSACTION_COMMIT'.

for testing purpose pass hardcore values to itab and see the results.

Thanks

Seshu

Former Member
0 Kudos

i m using your logic just for testing purpose it is giving this error:::

00000000000000000001 confirmations are incorrect. For details see parameter DETAIL_RETURN

Former Member
0 Kudos

Hi ,

Try BAPI - BAPI_PRODORDCONF_CREATE_HDR

Also Searh for BAPI in SE37 with BAPI_PRODORDCONF*

Regards,

Lijo Joseph

*Award points if useful

Message was edited by:

Lijo Vazhappilly