04-12-2006 1:50 PM
Hi All,
I am assigning batch number externally during the production order creation by using user exit. In my case i have to do
"The same batch number generated for the Main co-product should be assigned to the other co-products at the same time".
Please suggest how to achieve the same.
With regards,
Pravin
04-12-2006 3:47 PM
Hi Pravin,
How are you assigning the batches? I mean which user exit. and how do you create batches. Is it at the runtime?
You can create the batches using BAPI_BATCH_CREATE and use the batch number to be assigned during the prod. ord. creation.
If you can give some more details as to what you are doing and what is the problem area then that will help.
Regards,
Satya
04-13-2006 7:34 AM
Hi satya,
I am using exit ZXVBZU02 & ZXVBZU01 customer exits.
Pravin
04-13-2006 3:42 PM
Hi Pravin,
These exits will help you change the batch number to specific i.e. sales order number or production order number or date or plant etc. as in the function module documentation. But if you want to assign any batch which you've created using MSC1N or BAPI_BATCH_CREATE, then I feel that probably you've to use some other user-exit, these are not the ones which are going to help.
Try these BADI's:
WORKORDER_CONFIRM
WORKORDER_GOODSMVT
WORKORDER_UPDATE
Hope this helps.
Regards,
Satya