07-18-2016 2:06 PM
Hi ,
I understand that there area lot of discussion in the community regarding the BAPI : BAPI_PROCORDCONF_CREATE_HDR .
But none of it helped me solve the issue and so this thread.
I am trying to confirm a process order with the BAPI : BAPI_PROCORDCONF_CREATE_HDR . The problem is that the order gets confirmed but there are no Goods Movement created even though i have values passed for Goods Movement table.
If this is not the right BAPI to create Goods Movement along with order confirmation then please let me know if there is any other BAPI to do the same.
Below is the code that i am trying to execute.
I tried populating the table lt_link_conf_goodsmov and also without that as well. I did a get using the BAPI_PROCORDCONF_GET and then modified the values which i actually wanted to modify and passed the rest to the BAPI but no luck
Please help!!
REPORT ZBAPI_REPORT.
Data: ls_return type bapiret1,
lt_athdrlevels type table of bapi_pi_hdrlevel,
lt_goodsmovements type table of bapi2017_gm_item_create,
lt_link_conf_goodsmov type table of bapi_link_conf_goodsmov,
ls_athdrlevels type bapi_pi_hdrlevel,
ls_goodsmovements type bapi2017_gm_item_create,
ls_link_conf_goodsmov type bapi_link_conf_goodsmov,
lt_detail_return type table of bapi_coru_return.
ls_athdrlevels-orderid = '000001029725'.
ls_athdrlevels-fin_conf = ' '.
ls_athdrlevels-clear_res = 'X'.
ls_athdrlevels-postg_date = '20160718'.
ls_athdrlevels-conf_quan_unit = 'TON'.
ls_athdrlevels-yield = '1'.
append ls_athdrlevels to lt_athdrlevels.
ls_goodsmovements-material = '000000000000079723'.
ls_goodsmovements-plant = '0242'.
ls_goodsmovements-stge_loc = 'TSFU'.
ls_goodsmovements-batch = '0000014602'.
ls_goodsmovements-move_type = '101'.
ls_goodsmovements-entry_qnt = '0.02'.
ls_goodsmovements-entry_uom = 'TON'.
ls_goodsmovements-mvt_ind = 'F'.
ls_goodsmovements-PROD_DATE = '20160718'.
ls_goodsmovements-ORDERID = '000001029722'.
ls_goodsmovements-material = '000000000000032105'.
ls_goodsmovements-plant = '0242'.
ls_goodsmovements-stge_loc = ' '.
ls_goodsmovements-batch = 'MZ1'.
ls_goodsmovements-move_type = '261'.
ls_goodsmovements-entry_qnt = '0.02'.
ls_goodsmovements-entry_uom = 'TON'.
ls_goodsmovements-PROD_DATE = '20160718'.
ls_goodsmovements-ORDERID = '000001029722'.
call function 'BAPI_PROCORDCONF_CREATE_HDR'
exporting
post_wrong_entries = '2'
TESTRUN = 'X'
importing
return = ls_return
tables
athdrlevels = lt_athdrlevels
goodsmovements = lt_goodsmovements
* link_conf_goodsmov = lt_link_conf_goodsmov
detail_return = lt_detail_return.
append ls_goodsmovements to lt_goodsmovements.
append ls_goodsmovements to lt_goodsmovements.
Thanks in Advance,
Deepak.M
07-18-2016 2:13 PM
also tried including the transaction commit statement like call function 'BAPI_TRANSACTION_COMMIT'. But still it didnt help.
12-17-2020 6:05 AM
hello deepak
i know its been long but can you help if you got any pointers on issue you have raised?