Show TOC

Create Program for Customized Subscreens

In thisIMG activity, you can create a function group of your own by copying function group MGD1 (for industry) or function group MGD2 (for retail). The subscreens are not copied, except for two subscreens which are copied for technical reasons. You can use this copy to create subscreens of your own which you can assign to a data screen in the activity Define Structure of Data Screens for Each Screen Sequence.

Requirements

Be sure to read the program documentation first.

Activities

1. Create a function group of your own by choosing Execute.
2. Enter a name containing up to 25 characters, beginning with the letter Y or Z , and choose Save.
3. Access the Object Navigator.
You do this from the SAP standard menu by choosing Tools -> ABAP Workbench , and then Object Navigator.
4. Display either program SAPLMGD1 (industry) or SAPLMGD2 (retail) as required.
5. Copy the subscreens as required, ensuring that they already contain as many as possible of the field names you want to use in your function group. You do this as follows:
a) Choose Screens, position the cursor on the corresponding subscreen, and choose Copy in the context menu.
b) Enter the program to which you want to copy the subscreen, prefixing it with SAPL , and enter a screen number. Use the screen number of the original subscreen where possible. If the F1 help is specific to a particular subscreen, this ensures that this context-specific help continues to be displayed.
Example
You have called your function group YENTERPRISE, to which you want to copy subscreen SAPLMGD1 2301. Enter SAPLYENTERPRISE as the program to which the subscreen is to be copied, and enter (preferably) 2301 as the screen number.
1. Return to the initial screen of the Object Navigator and display your program. In the example above, you would enter SAPLYENTERPRISE.
2. Choose Update object list.
3. Select the subscreen you have copied and activate it by choosing Activate in the context menu.
Using theScreen Painter, you can remove fields you do not require on the subscreen or include additional fields from other subscreens (see the ABAP Dictionary). For information on the Screen Painter, see the R/3 library documentation BC ABAP Workbench Tools.
Points to consider when removing or adding fields
4. Assign the subscreen to a data screen as required.

Note on transport

Use the

Workbench Organizer to transport the copy you have created.
Proceed