SAP Tech Pro

SAP Technical Blog
Topprice Price Comparison

SAP Web Dynpro - Generated Local Interface for View Controllers

SAP Web Dynpro - Generated Local Interface for View Controllers

View Controller <VIEW>

Generated Interface IF_<VIEW> (e.g., IF_V_MAIN)

METHODS

  • wd_get_api
  • wd_create_action

USED CONTROLLERS

  • methods
    • get_<USED_CONTROLLER>_CTR (e.g., get_componentcontroller_ctr)
    • wd_cpuse_<COMPONENT_USAGE> (e.g., wd_cpuse_model)
    • wd_cpifc_<COMPONENT_USAGE> (e.g., wd_cpifc_model)

INBOUND PLUGS

  • methods
    • handle<INBOUND_PLUG>

OUTBOUND PLUGS

  • methods
    • fire_<OUTBOUND_PLUG>_plg

CONTEXT

  • constants
    • wdctx_<NODE>
  • types
    • element_<NODE>
    • elements_<NODE>

USER-DEFINED ATTRIBUTES

ACTIONS

ORDINARY METHODS

 

SAP Web Dynpro - Generated Local Interface for View Controllers

 

IF_<VIEW> (e.g., IF_VIEW1) generated interface for view controllers - view interfaces always private

<ATTRIBUTE> (e.g., RANKING)
WDCTX_<NODE> (e.g., WDCTX_SEARCH_RESULTS)

WD_GET_API()
WD_CREATE_ACTION()

GET_<USED_CONTROLLER>_CTR() e.g., GET_COMPONENTCONTROLLER_CTR() for all used controllers defined in same component
WD_CPUSE_<COMPONENT_USAGE>() e.g., WD_CPUSE_MODEL() if component usage is added to used controller list
WD_CPIFC_<COMPONENT_USAGE>() e.g., WD_CPIFC_MODEL() if interface controller of used component is used controller
HANDLE<INBOUND_PLUG>()
FIRE_<OUTBOUND_PLUG>_PLG()
GET_<ACTION>_ACT()
ONACTION<ACTION>()
<ORDINARY_METHOD>()

 

 

IG_<WINDOW> generated public interface for window controllers

<ATTRIBUTE> flag PUBLIC checked
WDCTX_<NODE>

WD_GET_API()
FIRE_<OUTBOUND_PLUG>_PLG()
<ORDINARY_METHOD>()

For window controller all ordinary methods and outbound plugs are defined as public.

IF_<WINDOW> generated private interface for window controllers

<ATTRIBUTE> flag PUBLIC not checked

WD_CREATE_ACTION()

GET_<CONTROLLER>_CTR() for all controllers defined in same component
WD_CPUSE_<COMPONENT_USAGE>() if component usage is added to used controller list
WD_CPIFC_<COMPONENT_USAGE>() if interface controller of used component is used controller
HANDLE<INBOUND_PLUG>()
<EVENT_HANDLER_METHOD>()

For window controller all inbound plugs are defined as private.

SAP Web Dynpro - Generated Local Interface for View Controllers

 

Custom controllers similar to window controllers except no inbound or outbound plugs. Instead event and event handlers, both of which are defined in private interface.

IG_<CUSTOM_CTR> generated public interface for custom controllers

<ATTRIBUTE> flag PUBLIC checked
WDCTX_<NODE>

WD_GET_API()
<ORDINARY_METHOD>()

IF_<CUSTOM_CTR> generated private interface for custom controllers

<ATTRIBUTE> flag PUBLIC not checked

WD_CREATE_ACTION()

GET_<CONTROLLER>_CTR() for all controllers defined in same component
WD_CPUSE_<COMPONENT_USAGE>() if component usage is added to used controller list
WD_CPIFC_<COMPONENT_USAGE>() if interface controller of used component is used controller
<EVENT_HANDLER_METHOD>()

FIRE_<EVENT>_EVT

 

SAP Web Dynpro - Generated Local Interface for View Controllers

(Z)IWCI_<COMPONENT> (globally visible)

WD_GET_API()
<ORDINARY_METHOD>() flag INTERFACE checked
<SUPPLY_FUNCTION>() flag INTERFACE checked (automatically initializes context nodes with data)

Can be accessed by controllers in other components via WD_CPIFC_<COMPONENT_USAGE>

IG_COMPONENTCONTROLLER (global)

<ATTRIBUTE> flag PUBLIC checked
WDCTX_<NODE>

<ORDINARY_METHOD>() flag INTERFACE not checked

FIRE_<EVENT>_EVT flag INTERFACE checked

IF_COMPONENTCONTROLLER (local)

<ATTRIBUTE> flag PUBLIC not checked

WD_CREATE_ACTION()

GET_<CONTROLLER>_CTR() for all controllers defined in same component
WD_CPUSE_<COMPONENT_USAGE>() if component usage is added to used controller list
WD_CPIFC_<COMPONENT_USAGE>() if interface controller of used component is used controller
<EVENT_HANDLER_METHOD>()

FIRE_<EVENT>_EVT flag INTERFACE not checked

 

SAP Web Dynpro - Generated Local Interface for View Controllers

Add comment

Before Buying, Compare Prices at Topprice.in

Topprice.in