Show TOC

Process documentationCreating a List for Language-Dependent Texts

 

This document describes how to create a configuration for an FPM List ATS GUIBB for processing language-dependent texts with the MDG Web Dynpro application USMD_OVP_GEN.

You can create a list with one row for each language including columns for descriptions with short text, medium text, and long text to enter a description in the respective language.

MDG delivers the feeder class CL_MDG_BS_GUIBB_LIST to be used in such a configuration. The feeder class gets the attributes of the entity type for which the list is configured. This enables you to configure the layout of the table. During runtime it reads, writes, and checks the data of the entities that are currently being processed.

Prerequisites

You have completed the following:

  1. 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.

  2. There is an entity type with indicator Language-Dependent Texts selected and the length of at least one description type (short, medium, long) is set to a value greater than 0.

  3. You have generated the required structures in the Customizing activity Generate Data Model-Specific Structures under Start of the navigation path General Settings Next navigation step Data Modeling End of the navigation path.

  4. You have set the standard data model in your user profile.

  5. 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.

  6. 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.

Process

Configuration of a FPM List ATS GUIBB

To create a new configuration of an FPM List ATS GUIBB perform the following steps:

  1. 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 Recommendation

    For the configuration ID, follow a naming convention that includes the MDG data model, the entity type and TEXT. For example, Z_MDG_SF_PFLI_TEXT.

    End of the recommendation.
  2. 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:

      Select the entry DTxT<entity type>, for example DTxTPFLI if you want to configure the list for the texts of entity type PFLI.

    • Editable

      Select the Edit checkbox.

  3. Add the field LANGU, optionally LANGU_TXT, and the fields TXTSH, TXTMI, TXTLG as columns to the list and adapt the layout as required. To delete a row, add a row action for the event FPM_BOL_ROW_DELETE. To highlight new and changed rows in a table with an icon, add a column for the data element USMD_CHANGE_INDICATOR.

Caution 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.

End of the caution.

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.

  1. Add the list component and the page on which the texts should be displayed on the OVP.

  2. In the wiring of the page, create a wire for the list.

    This list should be in a layout that displays the texts 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 for the leading entity type, for example PFLI2DTxTPFLIRel.

  3. In the toolbar schema of the FPM OVP, add the following buttons for the list UIBB:

    Text

    Image Source

    Tooltip

    FPM Event ID

    Edit

    ~Icon/Edit

    Edit

    FPM_LOCAL_EDIT

    New

    ~Icon/New Item

    New

    _CREA_