on 09-01-2007 4:54 AM
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......
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
102 | |
12 | |
11 | |
6 | |
5 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.