Application Development and Automation 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: 
Read only

Neeb to create batch automatically while saving process order in cor1

Former Member
0 Likes
1,089

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.

2 REPLIES 2
Read only

gouravkumar64
Active Contributor
0 Likes
741

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.

Read only

surajarafath
Contributor
0 Likes
741

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