Lo_window_manager = lo_api_component->get_window_manager( ). Lo_api_component = wd_comp_controller->wd_get_api( ). * generate a popup window for the 2nd application with the above URLĭATA lo_window_manager TYPE REF TO if_wd_window_manager.ĭATA lo_api_component TYPE REF TO if_wd_component. * have to be passed to the 2nd applicationĬall method cl_http_server=>append_field_url * Attach the parameters and its value with the URL that * make the Value type compatible that has to be passed with the URL Lo_el_ekko_node = lo_nd_ekko_node->get_element( ).Ĭall method cl_wd_utilities=>construct_wd_urlĪpplication_name = 'ZZ_CALLED_APPLICATION' Lo_nd_ekko_node = wd_context->get_child_node( name = wd_this->wdctx_ekko_node ). Reading the value of ebeln in lead selection that has to be passedĭATA lo_nd_ekko_node TYPE REF TO if_wd_context_node.ĭATA lo_el_ekko_node TYPE REF TO if_wd_context_element.ĭATA ls_ekko_node TYPE wd_this->element_ekko_node.
Now double click on the event SHOW_ITEM and write the below code in its method ONACTIONSHOW_ITEM. Now save the application and come back to our first application that is ZZ_CALLING_APPLICATION, in that create a Action in the On lead selection event of the table ‘TABLE’ as SHOW_ITEM as shown below:ġ3. Go to view context and map the node ‘EKPO_NODE’ from Component Controller Context to view context by drag and drop and then go to the layout create a table with name TABLE, give the text as ‘Item data’ in the text property of CAPTION and bind it with the node ‘EKPO_NODE’ as shown below:ġ2. Now select the ‘Add Attribute from Structure’ and select the fields you want in your table as you have done in step 2 and save you application.ġ1. Now go to the Component Controller Context tab and create one node with the name ‘EKPO_NODE’ and take the Dictionary structure as EKPO with Cardinality ‘0.n’ and Selection ‘0.1’. Save the Web Dynpro Application as local object. Create one more WebDynpro component by the name ZZ_CALLIED_APPLICATION, give window name as MAIN_WINDOW and view as FIRST_VIEW. Lo_nd_ekko_node = wd_context->get_child_node( name =ġ0. Ls_ekko_node TYPE wd_this->element_ekko_node. Lo_el_ekko_node TYPE REF TO if_wd_context_element, Lo_nd_ekko_node TYPE REF TO if_wd_context_node, Lo_el_context = wd_context->get_element( ). Ls_context TYPE wd_this->element_context, Lo_el_context TYPE REF TO if_wd_context_element, Now double click in the Action SHOW_PO and write the below piece of code in the method ONACTIONSHOW_PO. Right click on the table and create the binding as shown below, chose the context node as EKKO_NODE, make the Standard Cell Editor property as ‘TextView’ and click on ‘Confirm Entry’ as shown below:ĩ. Now create a table with name TABLE, change the property ‘Layout Data‘ as ‘MatrixHeadData’, give the text as ‘Header data’ in the text property of CAPTION.Ĩ. Create an element type Button with name SHOW and make the text property as ‘Show PO’ and create an action as SHOW_PO as shown below:ħ.
Now bind the property value of element INPUT with attribute date as shown below:Ħ. In element LABEL maintain its property ‘LabelFor’ as INPUT and in ‘Text’ write ‘Enter a date’. Now go to the Layout and create an element with name LABEL type label, INPUT as type Input Field. Create one attribute with name DATE under the View Controller Context tab with type DATUM.ĥ. Now save your Application and go to view context and map the node ‘EKKO_NODE’ from Component Controller Context to view context by drag and drop as shown below.Ĥ. Now select the ‘Add Attribute from Structure’ and select the fields you want in your table.ģ. Now go to the Component Controller Context tab and create one node as shown below with the name ‘EKKO_NODE’ and take the Dictionary structure as EKKO with Cardinality ‘0.n’ and Selection ‘0.1’. Save the Web Dynpro Application as local object as shown below:Ģ. Go to transaction SE80 and select “WebDynpro Comp./Intf” and create a new WebDynpro component by the name ZZ_CALLING_APPLICATION (as shown below), give window name as MAIN_WINDOW and view as FIRST_VIEW. In first Application that is ‘ZZ_CALLING_APPLICATION’ we will create an input parameter where user will enter a date & on clicking on a button it will show all header details of Purchase Order for that particular date and on lead selection of a Purchase Order details it will call our second Application that is ‘ZZ_CALLING_APPLICATION’ and show the item details for that particular PO which we have selected in our first Application means we will call and pass the Purchase Order Number from first to second Application.ġ. We will Create two Applications by name ‘ZZ_CALLING_APPLICATION’ and ‘ZZ_CALLED_APPLICATION’. Summary: Simple example of calling and passing value from one Webdynpro Application to another Webdynpro Application.