04-16-2008 8:10 AM
Hi All,
Is there any FM or BAPI which can determine batch for a component in production order and save it. I don't want to use call transaction method for CO02 as this determines batches for all components in production order during saving process
04-16-2008 8:13 AM
Hi,
Look at BAPI 'BAPI_MATERIAL_GETBATCHES'. This might help you.....
Here ia sample code:
CALL FUNCTION 'BAPI_MATERIAL_GETBATCHES'
EXPORTING
material = MATERIAL
BATCHNUMBER =
plant = PLANT
expirydatefrom = DATE
EXPIRYDATETO = 99991231
AVAILABLEDATEFROM =
AVAILABLEDATETO = 99991231
IMPORTING
RETURN =
TABLES
batches = it_batches.
Regards,
Raj.
04-16-2008 8:17 AM
05-07-2008 12:32 PM
You use the 'VB_BATCH_DETERMINATION' get avaiable batch , then use 'BAPI_ALM_ORDER_MAINTAIN' maintain production order
05-18-2009 7:08 AM
Hi,
Could you update the Batch field in CO02?
I am facing the same issue. BAPI_ALM_ORDER_MAINTAIN is not able to update the Batch field in ECC 6.0.
I dont want to use BDC. Is there any ither BAPI, which can update thye same?
11-23-2009 10:49 AM
Use "MB_CHANGE_RESERVATION". It serves the purpose well.
Cheers,
Vishal