You are on page 1of 10

Component Usage Data transfer

1. BSP Component ZBSP711CU1


A. Initially component after Front-End pop-up window added.
a. Component Structure Browser.
Value Node PARTNER from ZPARTNER structure in ABAP Dic in both CC1 and
VIEW1

b. Runtime Repository Editor


Window is Main Window. Component Usage of BSP WD Component ZBSP711CU2 is
also present.

c. Event handler Code for sample button on View1 for the pop-up window in
Component Usage.
method EH_ONSAMPLE_BTN.
*
put in your eventhandlercoding here...
Data lv_popup type ref to IF_BSP_WD_POPUP.
lv_popup = me->comp_controller->window_manager->create_popup(
iv_interface_view_name = 'ZBSP711CU2/MainWindow'
iv_usage_name = 'ZBSP711CU2'
iv_title = 'ZBSP711CU2' ).
lv_popup->open( ).
endmethod.

2. BSP Component ZBSP711CU2


Initially component after Front-End pop-up window added.
a.
Component Structure Browser.
Value Node PARTNER from ZPARTNER structure in ABAP Dic in both CC3 and
VIEW3

b.

Runtime Repository Editor

Window is Main Window. Component Interface -> Interface View of BSP WD


Component ZBSP711CU2 is its MainWindow. It is a pop-up window.

B. Data transfer between two BSP Components ZBSP711CU1 and ZBSP711CU2


Component Controller of both the components are involved in the data transfer between
two components.
a. Component Controller of BSP Component ZBSP711CU1.
The Custom Controller CC1 context node PARTNER is linked to Component Controller
context node PARTNER for data transfer to BSP component ZBSP711CU2.
A new context node PARTNER in Component Controller of ZBSP711CU1 is created
with link to Custom Controller CC1. It is a value node and it is created from the same
SE11 structure ZPARTNER. Thus CC1 value node PARTNER is liked to Component
Controller value node PARTNER for data transfer.
Also Component usage method is written component controller method
WD_USAGE_INITIALIZE. This method is redefined and written.

Code :method WD_USAGE_INITIALIZE.


*CALL METHOD SUPER->WD_USAGE_INITIALIZE
* EXPORTING
*
IV_USAGE =
*
.
CASE iv_usage->usage_name.
WHEN 'ZBSP711CU2'.
iv_usage->bind_context_node(
EXPORTING
iv_controller_type = cl_bsp_wd_controller=>co_type_component
iv_target_node_name = 'PARTNER'
iv_node_2_bind = 'PARTNER' ).
ENDCASE.
endmethod.

b. Component Controller of BSP Component ZBSP711CU2.


The Custom Controller CC3 context node PARTNER is linked to Component Controller
context node PARTNER for data transfer from BSP component ZBSP711CU1.
A new context node PARTNER in Component Controller of ZBSP711CU2 is created
with link to Custom Controller CC3. It is a value node and it is created from the same
SE11 structure ZPARTNER. Thus CC3 value node PARTNER is linked to Component
Controller value node PARTNER for link to data fetched from ZBSP711CU1 Front-End.
Runtime Repository Editor :Window is Main Window. Component Interface -> Interface View of BSP WD
Component ZBSP711CU2 is its MainWindow. It is a pop-up window. (next screen not
screen below).

Runtime Repository Editor :Window is Main Window. Component Interface -> Interface Controller of BSP WD
Component ZBSP711CU2 has a context node (value node. Not the ModelNode
PARTNER is a value node. It is not model node with BOL Entity ). (next screen not
screen below). The Context node is PARTNER node (value node) for Component
Controller. This component controller node PARTNER is used in Interface Controller in
Runtime Repository for Component Usage.

Output1 of Component Usage with pop up window :a.

b. Click Sample Button above and data is transferred to the pop-up window.

Output2 of Component Usage with pop up window :-

a.

b. Click Sample Button above and data is transferred to the pop-up window.

You might also like