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

Generating Batch Number from batch Characteristics

Former Member
0 Likes
998

Hello All,

            I need suggestions for one peculiar requirement.

Scenario:

We want to generate the batch number using the one of the characteristic values while we are carrying out good receipt through MIGO. Currently we are planning to use a characteristic which would have a numerical value and we assign this value as the batch number.

Issue:

Although we have user exit for changing the batch number while creating; we are unable to do use a characteristics value for this purpose. We are using the user exit EXIT_SAPLV01Z_002 to change the batch number, which by itself works fine.But the characteristics values are not available, when we are carrying out the assingment in this user exit.

I debugged and found that, the overall process is handled by the function module VB_CREATE_BATCH, which in turn calls the function module VB_NEXT_BATCH_NUMBER, in which the user exit EXIT_SAPLV01Z_002 is called. By this time the screen for classification is not yet triggered.

Sometime later there is a subroutine CHARGE_KLASSIFIZIEREN, in the function module VB_CREATE_BATCH, which handles the screens for classification data. The classification data are now avaialable (although through memory ID etc). I tried changing the batch number just after the screen processing for the classification data was over in debugging mode. But, doing so terminated the transaction with an abort message (presumably because the system already generated the link to the characteristics using the internal batch number generated and when I change it in debugging it makes the data inconsistent).

Suggestions Needed:

Is there anyway I can achieve this functionality? Or can someone who has tried this provide an alternative approach or process for this.

Best Regards

Barada

1 REPLY 1
Read only

former_member282968
Contributor
0 Likes
618

Hi,

Exits in MIGO for batch:

1.MBCFC003  Maintenance of batch master data for goods movements  

EXIT_SAPMM07M_003:Customer Function Call: Dynamic Master Data Maintenance for New Batches

2.MBCFC004  Maintenance of batch specifications for goods movements

EXIT_SAPMM07M_004: Customer Function Call: Dynamic Characteristic Value Assgmt for Batches

With regards,