cancel
Showing results for 
Search instead for 
Did you mean: 

How to know the component name from called component for standard

Former Member
0 Kudos

Hi Experts,

In standard webdynpro, component I need to enhance view by dynamically hiding one button based on the called screen.But called screen and is from differnt standard component and called screen is from differnt standard component. How can i determine from which component it is called? As these are standard components how can i get the indicator or component name from where screen is called.so that i can check and hide the button?

Regards,

Suneetha.M

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

When u are calling the second screen on click of a button then in the post exit of the button action use the export statement.

Now in the second component use import, and based on the value of the import parameter u can Hide the button.

syntex for export statement.

data l_var type string.
l_var =  'a'.
EXPORT lv_var FROM l_var TO MEMORY ID 'memory_temp'.

Former Member
0 Kudos

hi,

You can send the name of the component as a parameter to the "OnActionIn<ViewNAme>" method. Based upon the parameter name, you can enable or disable the Button

Regards

Mrinalini