CL_CRM_COMPONENT_UI_MANAGER - UI Servicemethoden für komplexe Objekte

BAL_S_LOG - Application Log: Log header data   CPI1466 during Backup  
Diese Dokumentation steht unter dem Copyright der SAP AG.

Funktionalität

Modification free adaptations to the generated screens for complex objects

The complex objects are shown in a ALV grid control. The subscreen itself does only contain a containeron the screen. All relevant flow logic will be dispatched to a manager class. This class handles centrally all requests, e.g.:

  • build up the field catalogue
  • set excluded fcodes
  • register event handler
  • handle registered events
  • get the data to be displayed
  • get the data to be shown in the f4 help

The UI will always use the super class CL_CRM_COMPONENT_UI_MANAGER as API class. This class knows allit's subclasses and which subclass is responsible for which objects. By default all calls are dispatchedto a default handler class CL_CRM_COMPONENT_DEF_UI_MAN. For any adaptations to the default behavioran special handler class might be created (e. g. CL_YOUR_UI_MANAGER_CLASS). In this class you may redefine the behavior of the super class and adapt it to your needs.

The flow logic in the dynpros doesn't need any knowledge about the concrete handler class. All callsout of the dynpro are calls to the class CL_CRM_COMPONENT_UI_MANAGER. The class dispatches to the responsiblehandler class (one of it's sub classes). Here all data is stored: container instance, grid instance,ui data table #). The class itself serves also as event handler class for arbitrary events raised by the grid instance (e. g. data_changed event).

Beziehungen

Beispiel

If an internal developer or a customer needs some special logic, which is not covered by our standard logic (e. g. different search help functionality), he has to perform the following steps:

  • Copy the default handler implementation class CL_CRM_COMPONENT_DEF_UI_MAN
  • Implement the interface method GET_RELEVANT_OBJECTS
    DATA:
    ,,lv_object_name TYPE crmt_object_name.
    lv_object_name = 'MY_OBJECT_NAME'.
    INSERT lv_object_name INTO TABLE rt_object.

    Add all the objects for which you want to handle the requests.
  • Redefine the methods that should have a different behavior (e.g. get_f4_values)

Hinweise

Weiterführende Informationen



Addresses (Business Address Services)   PERFORM Short Reference  
Diese Dokumentation steht unter dem Copyright der SAP AG.


Length: 2462 Date: 20120527 Time: 140449     triton ( 106 ms )