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
- Make sure that a field statement exists for
each field on the subscreen since data may not otherwise be transported
correctly. You can use subscreen SAPLMGD1 2002 as an example.
- For the fields you have added, include any
check modules and modules for self-programmed F4 help that are called up for
these fields on the original subscreen. You can do this by displaying the flow
logic for the original subscreen and searching for such modules. They normally
have the same names as the fields themselves. When you find a module, copy the
corresponding module call to your subscreen.
- If you change the order in which fields are
transported that are checked together in the flow logic (such as the safety
stock and minimum safety stock), you must deactivate the check module for the
first field and activate it for the second. The system would otherwise
transport the first field, and carry out the check before the second field is
transported.
- Any error messages that fields are unknown
when activating the subscreen are due to the fields still being included in
checks, even though you have removed the fields from the subscreen. Search for
the fields in the source code and make the lines in which they appear comment
lines. Then reactivate the screen.
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