Creating Lists
This document describes how to configure a Floorplan Manager (FPM) list for a generic user interface building block (GUIBB) using ABAP table services (ATS) for processing data with the MDG Web Dynpro application USMD_OVP_GEN.
You can also use this document when configuring the FPM list GUIBB. However, this FPM list GUIBB has been replaced by the FPM list ATS GUIBB.
In these lists you can display entities of storage and use type 4 that have a 1:many-relationship with a leading entity, which is displayed in a form UIBB. For example, there is a form UIBB on a page that displays a PFLI
entity and all related FLIGHT
entities are displayed in a list UIBB. MDG delivers the feeder class CL_MDG_BS_GUIBB_LIST
to be used in such a configuration. The feeder class retrieves the attributes of the entity type for which the list is configured. Now you can configure the layout of the table. During runtime the feeder class reads, writes, and checks the data of the entities that are being processed.
Note
An FPM list ATS GUIBB is included in the example configuration USMD_SF_OVP_PFLI. The example configuration can be found in the generic MDG Web Dynpro application USMD_OVP_GEN in package MDG_FND_SAMPLE_IMPLEMENTATIONS.
You have completed the following:
You can use an active MDG data model with at least one entity type with storage and use type 1. You have assigned a business object type code (OTC) to this entity type.
You have generated the required structures in the Customizing activity Generate Data Model-Specific Structures
under .
You have set the standard data model in your user profile.
The data model is in the customer namespace. If the data model is not in the customer namespace follow the description in Creating genIL Components and Transaction Handler Manually.
You can use a configuration of the generic MDG Web Dynpro application USMD_OVP_GEN
that includes an FPM overview page (OVP) FPM_OVP_COMPONENT
to which you can add the UIBB. You can open and edit the configuration of this page in the FPM editor. Alternatively, you can create Customizing for this configuration.
For more information, see Creating User Interfaces for Single Object Processing.
Configuration of a FPM List ATS GUIBB
To create a new configuration of a FPM List ATS GUIBB perform the following steps:
Create a new configuration for the list component FPM_LIST_UIBB_ATS by copying the template FPM_LIST_UIBB_ATS_TEMPLATE from package APB_FPM_GUIBB.
Recommendation
For the configuration ID, follow a naming convention that includes the MDG data model, the entity type and LIST
. For example, Z_MDG_SF_FLIGHT_LIST.
In the configuration of the component, enter the following values for the parameters of the feeder class CL_MDG_BS_GUIBB_LIST
:
Component
Enter ZSP<data_model>
. This is the genIL component for single-object processing that was created for your MDG data model, with <data_model>
being the ID of your MDG data model.
Object Name
Enter an entity type for which you want the list to be configured.
Editable
Select the Edit
checkbox.
Add the fields you want to process with the list and adapt the layout as required.
If you want to use features of the Highlight Changes function you need to adjust the UIBB configuration. You can add a column for the element USMD_CHANGE_INDICATOR to indicate whether a row was changed, created or deleted. You can also select the element FPM_ROW_ACTION_COLUMN to add the action DISCARD_DELETE
that is displayed for deleted rows to undo the deletion.
Caution
The highlight changes function uses the tooltip to inform the user about the previous value. This is not possible if a fixed value for the tooltip is either entered in the UI configuration or the UI customizing. In this case this fixed value is displayed.
Add List to Overview Page Component
After you have created the new configuration, you need to add it to the OVP component that is part of the MDG Web Dynpro application USMD_OVP_GEN mentioned in step 3 of the Prerequisites section of this document.
Add the list component and the page on which the entity data should be displayed to the OVP.
In the wiring of the page, create a wire for the list.
This list should be in a layout that displays the dependent entities of a leading entity that is displayed in a separate form UIBB, use the following parameters for the wire:
Component and Config ID: Enter the list that you have added.
Source Component and Source Config Name: Enter the form component in which the leading entity is displayed.
Lead Selection
Connector Class: Enter the class CL_MDG_BS_CONNECTOR_BOL_REL
.
When you have entered the source component and port correctly, the parameter for Relation Name
is automatically set to a matching relation between the entity types that are displayed in both the form and in the list, for example PFLI2FLIGHTRel
.
In the toolbar schema of the FPM OVP, add the following button for the form UIBB:
Text | Image Source | Tooltip | FPM Event ID |
Edit | ~Icon/Edit | Edit |
|