/SAPSRM/CL_CH_WD_MAP_META_INIT - initialization of meta nodes/transport of meta data

BAL_S_LOG - Application Log: Log header data   CPI1466 during Backup  
This documentation is copyright by SAP AG.

Functionality

This class prepares a WebDynpro ViewController for meta handling.

Prerequisites:

- The view context must contain some nodes with a certain structure. The main node must contain a set.Example: For displaying a partner set the structure BBP_PDS_PARTNER (or a structure which includes BBP_PDS_PARTNER as an include) must be used.

- The ViewController must have an instance attribute MO_META_INIT with a reference to an object of this class.

- This class has 2 methods which must be called in certain phases of the ViewController.

In method WDDOINIT you have to add:

DATA: CONTEXT_NODE_INFO TYPE REF TO IF_WD_CONTEXT_NODE_INFO.

CREATE OBJECT WD_THIS->MO_META_INIT.

CONTEXT_NODE_INFO = WD_CONTEXT->GET_NODE_INFO( ).

WD_THIS->MO_META_INIT->iINIT_CONTEXT( IV_ROOT_CONTEXT_NODE_INFO = CONTEXT_NODE_INFO ).

In method WDDOMODIFYVIEW you have to add:

IF ABAP_TRUE = FIRST_TIME.

WD_THIS->MO_META_INIT->iINIT_VIEW_ELEMENTS( IV_VIEW = VIEW ).

ENDIF.

It is allowed that several view contexts are mapped to a component context. In this case, the methodINIT_CONTEXT should be called in method WDDOINIT of the component controller, the method INIT_VIEW_ELEMENTS must be called in method WDDOMODIFYVIEW of each view controller.

The method INIT_CONTEXT looks at the WD context and finds all possible attributes of a set structure.

The method INIT_VIEW_ELEMENTS looks at the UI elements and finds out which of the possible attributes are actually visible on the UI, i.e. which are bound to a UI element.

The method GET_ATTRIBUTES returns a reference to a table which holds all attributes which are visibleon UI (Actually, that depends on the phase: If method INIT_CONTEXT has been called and method INIT_VIEW_ELEMENTS has not been called then the referenced table will contain all attributes).

Relationships

Example

Notes

Further information



CPI1466 during Backup   ROGBILLS - Synchronize billing plans  
This documentation is copyright by SAP AG.


Length: 2060 Date: 20120526 Time: 072248     triton ( 93 ms )