03-13-2007 1:50 PM
Hi All,
Is there any way to determine batch of a production order item using a BAPI or FM?
I need to do batch determintion of production order item through program and save the production order.
Please advise me other then doing a BDC is there any BAPI or FM?
Thanks in advance
Your valuable inputs will be appreciated.
Thanks,
Rajesh.
03-13-2007 2:08 PM
Hi,
I am not sure whether a BAPI exists for it.
Better to find an User exit and to fetch/check the Batch data for that material in MCH1,MCHA tables and to save PP order.
Regards,
Anji
03-13-2007 3:18 PM
Rajesh,
Look at BAPI <b>'BAPI_MATERIAL_GETBATCHES'</b>. 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.