There are various links in SCN, which guide us on the use of RF programming and the steps to follow while developing a custom program. But what if a standard screen from LMOB function group needs to be modified??
Here is the complete steps, which can be referred to add the customer fields to standard RF screen belongs to LMOB function group.
- Get the Actual Screen Number based on Logical Screen Number in SPRO -> Logistic Execution -> Mobile Data Entry -> Define Screen Management
- For Example, to enhance the RF screen of Pick and Pack (LM45 Transaction) the Logical Screen for Pick and Pack is ‘0650’. In the Define Screen Management (defined above) the actual screen number in Narrow Format (16X20) is ‘2650’ and Large Format(8X40) is ‘0650’
- In the LMOB function group for every logical screen a dummy screen is available which contains the screen exit. The dummy screens can be identified as ‘1(logical screen). So for logical screen ‘650’ the dummy screen is ‘1650’.
The program mentioned in the green color is nothing but the user screen i.e the screen which has to be created in that program as a subscreen.
- Now copy the narrow format screen ‘2650’ in the program ‘SAPLXLHU’ as custom screen ‘9650’ (Follow the naming standards of custom screen number 9(logical screen)).
- In the function group XLHU, screen 9650 gets created. Now remove the OK_CODE from ‘Element list’ tab and screen type is changed to ‘Subscreen’
- Add the additional fields in the screen layout and populate those fields in PBO or get the values in PAI after a certain user action by capturing the SY-UCOMM.
- Now the subscreen ‘9650’ has to be embedded in the dummy screen 1650. To do this create a CMOD project and assign the enhancement component MWMRF650
Note: The enhancement component can be identified by using the F4 help in SMOD transaction. Use the package name as search criteria
- Activate the CMOD project. The screen exit 1650 gets implemented.
- Now the custom screen ‘9650’ is configured in the Screen Management (SPRO) for the narrow format (16X20)
- To run the RF transactions, the user must have a screen format configured in the LRFMD transaction.
Note: The Variant in the Screen Management and in the LRFMD transaction should be same.
- Run the transaction LM45
- If the user doesn’t want the additional fields then remove the variant in LRFMD transaction
- Now run the transaction LM45