2013 Jan 25 10:44 AM
Hello Experts,
My requirement is create batch automatically while saving process order in cor1 in Goods receipt tab,
For this I have maintained Z table for the batch number range.
I tried all user exits / badis but didn’t allow to change batch,
I identified program for cor1 is SAPLCOKO ,In this which include I need to include my code
And this should to be triggred while saving process order, I tried but didn’t get,
Please help me in this.
2013 Jan 25 10:56 AM
Hi,
Did u check this?
SAP enhancement SAPLV01Z
http://help.sap.com/saphelp_40b/helpdata/ru/dc/1d4b6e5733d1118b3f0060b03ca329/content.htm
OR like this
First remove the automatic batch create from Production scheduling profile through OPKP or CORY.
Then Good Receipt Batch number mandatory through transaction variant SHD0
Or Use the Exit EXIT_SAPLCOBT_001 under enhancement PPCO0001 where-in based on your requirement you can create batch for your order.
You can use CALL FUNCTION 'VB_CREATE_BATCH' to create the batchs as per your requirement.
Thanks
Gourav.
2013 Jan 25 11:00 AM
Hello Ram,
You have to code in the userexit of process order while saving...
I think user exit is : PPCO0007 - EXIT_SAPLCOZV_001
At user exit, you need to use bapi to create batch automatically and submit the bapi... read the required data from your custom table...
BAPI: BAPI_BATCH_CREATE