cancel
Showing results for 
Search instead for 
Did you mean: 

is it possible to access the context node of another component ?

Former Member
0 Kudos

Dear friends,

I have one basic doubt in webdynpro abap. could you plaese help me on this...

say for eg... i am having 2 webdynpro component ZTEST_1 and ZTEST_2.

now i am planning to include the component ZTEST_1 inside the ZTEST_2, now is it possible to access the context node of ZTEST_1 into the ZTEST_2?

Regards

Deva

Accepted Solutions (1)

Accepted Solutions (1)

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Yes it is possible to access the context node of ZTEST_1 in ZTEST_2, that concept comes

in COMPONENT USAGE.



Simply open the web dynpro component ZTEST_2 and on the USED COMPONENTS TAB
You can declare ZTEST_1 in component column and name of the node in component use
column.

Then you have go to the properties tab of component controller and add the interface and
components of ZTEST_1 and also in the view where you are using.

Now create VIEWCONTAINERUIELEMENT in the view and add the corresponding
functionalities by going to WINDOW where the view is declared. Just right click
view container and select the view to be embed.

NOTE: If the methods of ZTEST_1 need to be accessed in ZTEST_2 then you must tick

INTERFACE check box in the methods tab of component controller.

I hope it gives you some idea.

Regards and Best wishes.