cancel
Showing results for 
Search instead for 
Did you mean: 

Movement type is not created for Production order confirmation when Batch(CHARG) is entered

former_member209118
Participant
0 Kudos

HI Experts,

I have a issue for Production order confirmation when Batch is entered in screen.

I'm getting below message

Goods movements: 0, failed 1

I'm using the following bapis to confirm production order

BAPI_PRODORDCONF_GET_HDR_PROP after that I'm using the L_PPIM_BATCH_DETERMIN_INIT_INT to clear the buffer for batch and then for posting I'm using BAPI_PRODORDCONF_CREATE_HDR

call function 'BAPI_PRODORDCONF_CREATE_HDR'
exporting
post_wrong_entries = '0'
importing
return = es_return
tables
athdrlevels = lt_athdrlevels
goodsmovements = lt_gm
link_conf_goodsmov = lt_lcg(1,1 and 1)
detail_return = et_detail_return
LINK_GM_CHAR_BATCH = lt_gcb (I have only one record so I'm passing INDEX_GOODSMVT = 1 and INDEX_CHAR_BATCH = 1).

if it is success then

call function 'BAPI_TRANSACTION_COMMIT'
exporting
wait = '2'
importing
return = ls_return
.

Please let me know if I miss anything.

Thanks,

Ashok.

SimoneMilesi
Active Contributor
0 Kudos

Did you check the warehouse if you have enough available materials for the give batch?

Anyway i do not think you need the LINK... tables if you are not using batch's valuation characteristic.

You just need to fill the BATCH field in the GM table

Accepted Solutions (0)

Answers (0)