Lo_celem_userdata TYPE REF TO if_wd_context_element.ĭATA : lv_username TYPE REF TO wd_this->element_user_data-username. In this example we dont need to define any parameter because the data exhange will flow through the component controller context automatically ( using data binding and context mapping ), next we need to add ABAP Code to call BAPI_USER_GET_DETAIL in GET_USER_DATA method, double click on that’s method.ĭATA : lo_cnode_userdata TYPE REF TO if_wd_context_node, Go to Methods tab in Component Controller. Implementing your method GET_USER_DATA because WDA Component lead to the component controller, this is vital role. until you have attributes context as picture below.Ħ. After Context node USER_DATA is created, you can continue to create context attributes, you can do this by right-clicking on USER_DATA context and select Create->Attribute.ĥ.Create Context Attribute USERNAME with type XUBNAME, this attributes was created is same with exporting parameter ADDRESS from BAPI_USER_GET_DETAIL. this will open up Create Node dialog box, enter the name of context USER_DATA and let’s the rest of fields as default values.Ĥ. In this example we will create Web Dynpro Comp with the name of ZTEST_WEBDYNPRO.Ģ.Open COMPONENTCONTROLLER by double clicking in the Component Controller underneath the WDA Component in the navigation of Web Dynpro Explorer.ģ.Create CONTEXT by right clicking on top level node Context and select Create->Node in menu option.
In this article we will show you how to create Simple Web Dynpro Application.ġ.Go to SE80 and Create Web Dynpro Comp/Intf.
WDA Development is to break the software down into smaller modules that are easier to understand and maintain individually called decomposition. in WDA Development is component based software component. Web Dynpro ABAP Development is unlike other ABAP Object development such as report program, module pools, etc.