Application Development 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: 

Verification field for Batch number - Transaction LM05

Former Member
0 Kudos

Hi Experts,

Can some one help on the issue of adding a verification field for BATCH NUMBER on the screen 2502 and make it work.

Requirement : Add Verification field for batch number and build the logic to verify the batch number - as the SAP standard does for other fields.

I have proceeded to some extent and seems like I am not winning.

Steps done :

1. Copied physical screen 2502 (SAPLLMOB) to screen 9502(SAPLXLRF)

2. Changed the screen to subscreen and removed the OK_CODE from the element list.

3. Created the project ZMWMRF502 and assigned user exit MWMRF502 to this project.

4. In the components of the project assigned 9502(SAPLXLRF) to 1502((SAPLLMOB).

5. Assigned the screen 9502 to logical screen 0502 in the config.

6. In the transaction LRFMD given the username and variant '1'.

Now When I execute the transaction LM05 and give the TO number, the system calls my screen 9502 with new field seen in that.

But the screen is completely greyed out with no data in that.

I checked PBO and PAI of my new copied screen.

In all the modules which I received from the copy of SAP standard screen there is no code except name.

I mean to say that names of all modules exist but when I double click on any module it ask me to create a new object.

If I have to create module similar to SAP there is a lot of coding in side. How do I proceed further.

Can some help me.

Thanks and regards

Joshi

7 REPLIES 7

Former Member
0 Kudos

hello,

Do not copy standard code or register object key!!!. You could use Field exit it will definitely solve your problem.

How to create field exit:

call tcode se38 and execute program RSMODPRF, enter data element name (BATCH input's data element name) and press execute, then you will be transferred to se37 with new field exit (FIELD_EXIT_+"data element's name") which've been created for you.

Implement function module - add you logic and if it fails show error message. Furthermore you have to assign your field_exit to specific screen's object/element. call CMOD enter PRFB into command line and press enter. Create new entry (reference between your screen field and field exit). that's all.

br,

dez_

0 Kudos

Hi Des,

Thanks for your reply.

I have done the same way as you suggested with the data element for Batch.

It took me to se37 and with FIELD_EXIT_CHARG but when i clicked on display it says that function module does not exist.

I tried with other domain name as well like MOBBATCH.

It took me to se37 again and showed the FIELD_EXIT_MOBBATCH. and this even does not exist.

Can you please suggest some other way.

Thanks and regards

Joshi

0 Kudos

hi,

sorry for misunderstanding (and for wrong explanation) - then you are transfered to se37 push create button not change, assign function group and edit field exit FM.

P.S. use data element's name not domains.

br,

dez_

0 Kudos

Hi Dez,

Thanks for your reply.

My requirement is to enhance the sap standard screen 2502 of program SAPLLMOB with an extra field and make it work.

But when I did it as explained above it gives a greyed out screen where I have to write logic for my complete screen.

Thanks to you that advise me to go for field exit. I have never done that. Can you please guide me how to do this.

Regards

Joshi

0 Kudos

could you explain why do you need additional field for batch check? (Field exit is mostly used for validation)

br,

dez_

0 Kudos

Hi Dez,

If you go in to transaction LM05 and input a number of TRANSFER ORDER, it will take you to a screen where the system will populate the fields pertaining to that particular transfer order. In that screen we have normal fields as well as verification fields for that particular field. These screens are used on scanners. When the scanner scans the material slip, the corresponding value such as material number, storage bin number etc will be get populated in the verification field. When the user selects next then the system will perform a check for the two values and pops up an error message if required.

So there are verification fields for material number, storage type, quantity etc but not for batch. Our user requirement is to put a verification field just by the side of batch number field and perform same operation as it does for other fields.

Hope you understood.

Thanks and regards

Joshi

0 Kudos

Hi Maddela could you solve your problem, pls... what did you have to do??