SAP® Documentation

Single view

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

ABAP Short Reference   General Data in Customer Master  
This documentation is copyright by SAP AG.
SAP E-Book

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 method INIT_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 visible on 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






Fill RESBD Structure from EBP Component Structure   ABAP Short Reference  
This documentation is copyright by SAP AG.

Length: 2250 Date: 20190618 Time: 185534     sap01-206 ( 21 ms )

Our Service

Looking for Support? Questions?

The

Consolut

Callback-Service

Leave us your contact details and we will call you back. Panels marked with * are mandatory.