Objectives: Develop a web dynpro application to populate default values in the selection
screen & display the label using the text objects from the OTR (Online Text Repository).
DATA:
node_personal_info TYPE REF TO if_wd_context_node,
elem_personal_info TYPE REF TO if_wd_context_element,
stru_personal_info TYPE
if_componentcontroller=>element_personal_info .
* navigate from <CONTEXT> to <PERSONAL_INFO> via lead selection
node_personal_info = wd_context->get_child_node( name =
if_componentcontroller=>wdctx_personal_info ).
DATA:
node_address_info TYPE REF TO if_wd_context_node,
elem_address_info TYPE REF TO if_wd_context_element,
stru_address_info TYPE
if_componentcontroller=>element_address_info .
* navigate from <CONTEXT> to <ADDRESS_INFO> via lead selection
node_address_info = wd_context->get_child_node( name =
if_componentcontroller=>wdctx_address_info ).
endmethod.
11. The method ‘GET_ADDRESS_INFO’ is executed after the navigation, immediately before
the output view is displayed.
• Open method HANDLEFROM_INPUT_VIEW.
• Choose Web Dynpro Code Wizard.
• Select Method Call in Used Controller.
• Select the component controller and enter the name of the method.
12. Activate the component and create an Application and test the same.
13. The output appears as below: