cancel
Showing results for 
Search instead for 
Did you mean: 

Restrict external batch number assignment in Production Order

0 Kudos
1,016

Hi All,

My requirement is to deactivate external batch number assignment. We restricted for Material type/Movement type. Internal Batch Number assignment is active and in Number ranges also, we have not defined for external. But the problem, during Order creation in CO01, the system is allowing to enter the external batch number manually in Goods Receipt tab and the same batch number can be GRed in MIGO. System is not throwing any error. Can someone help how to control that?

Accepted Solutions (1)

Accepted Solutions (1)

Hi Sabitha,

You may want to try transaction variant. You could refer to following link to know how to use transaction variant:

https://wiki.scn.sap.com/wiki/x/IgFNAQ

BR,
Sam

0 Kudos
Hi Sam,

Thanks for the response. Transaction variant will help resolving this issue.

Thanks & Regards,

Sabitha

Answers (3)

Answers (3)

roberto_vacca2
Active Contributor

Hi.

In BADI WORKORDER_UPDATE you'll have your AT_SAVE method.

With this you'll access your batch in Goods Receipt Tab

FIELD-SYMBOLS: <fs_charg> TYPE afpod-charg.
MOVE '(SAPLCOKO1)AFPOD-CHARG' TO f_globstr.

Once you have this data you can throws exceptions.

Hope to help

Bye

0 Kudos

Thank you for the response.

Caetano
Product and Topic Expert
Product and Topic Expert

Helll

You can use BAdI WORKORDER_UPDATE to check the batch number.

Regards,

Caetano

0 Kudos

Thank you for the response.

former_member424010
Participant
0 Kudos

Have you tried using the production scheduling profile (transaction CORY). We have a bunch of custom code around that value but I'm pretty sure if you set the Auto Batch Creation to Auto Creation at Order Create or at Order Release, it won't let you manually enter a batch number. Using that would require that you assign the batch either when the order is created or released which then would get carried into the GR .

0 Kudos

Hi,

Thanks for your response. My client does not want the Batch creation during Order creation/ Order release but only during GR. Hence controlling at the Production Scheduling Profile is ruled out.

However the batch field in the Order screen is enabled and there is a possibility that the user may enter any value and the system does not throw any error or warning message.