Skip to Content
author's profile photo Former Member
Former Member

Verification field for Batch number - Transaction LM05

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jul 28, 2011 at 11:56 AM

    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_

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.