[MDE] Verification control function does not work on the new created screen
Here is a problem about MDE (RF) Screen Enhancement.
Generally speaking, MDE Verification Control Function does not work on the screen we customized.
For detailed info:
What we want is to create a new screen for tcode LM07, in the screen we want to add a print button and verification control function can be used (like material verification).
1. We copy a physical screen 2212 from SAPLLMOB to SAPLXLRF 9212. And delete ok_code from 9212, change it to sub-screen.
2. We use User Exit MWMRF212 to write some code to EXIT_SAPLLMOB_170 and EXIT_SAPLLMOB_480
3. Then we create a new entry in the spro (screen management) with screen variant 1.
Till now, we can realize the print function in the new screen of LM04.
However, when we configure the verification control function, we will verify each material in each TO. The verification field (RLMOB-CMATNR) can not be displayed.
We debug the program and find that logical screen which is used in user exit MWMRF212 has only two elements. One is ok_code, another is sub-screen, so that when loop screen in 1212, the verification fields was not displayed.
In flow logic of screen 2212(physical screen) and 1212(logical screen):
PERFORM TAP_DISPLAY. ---> PERFORM SET_VERIFY_FIELDS.
IF VERIFICATION_TYPE-VER_SOURCE_MAT = VER_MAT OR
VERIFICATION_TYPE-VER_SOURCE_MAT = VER_ALTMAT OR
VERIFICATION_TYPE-VER_SOURCE_MAT = VER_EAN.
PERFORM DISPLAY_FIELD USING 'RLMOB-CMATNR'.
PERFORM CHECK_APPLIC_TAB USING 'RLMOB-CMATNR'.
PERFORM DISABLE_FIELD USING 'RLMOB-CMATNR'.
For this problem, could you please help? If there is any solution on this? Thank you so much.