Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Batch determination in production order for a component

Former Member
0 Kudos

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

5 REPLIES 5

Former Member
0 Kudos

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.

Former Member
0 Kudos

BAPI_PRODORD_CHANGE

BAPI_ALM_ORDER_MAINTAIN

Reward Points..

Former Member
0 Kudos

You use the 'VB_BATCH_DETERMINATION' get avaiable batch , then use 'BAPI_ALM_ORDER_MAINTAIN' maintain production order

Former Member
0 Kudos

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?

Former Member
0 Kudos

Use "MB_CHANGE_RESERVATION". It serves the purpose well.

Cheers,

Vishal