cancel
Showing results for 
Search instead for 
Did you mean: 

Change standard Web dynpro component's attributes

Former Member
0 Kudos

Is it possible to change standard web dynpro components attributes (for example ENABLED property) through enhancement spot / programming.

thanks.

Accepted Solutions (1)

Accepted Solutions (1)

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

You can not change UI element properites directly with the Enhancement Framework. Consider if Componet Configuration can acomplish what you want. Then consider this approach: 1. You can use the Enhancement Framework to hide existing fields. Hide the field in question and then add a new custom field. Bind it to the same context attribute, but change whatever other UI element properties you want. 2. You could use a Post-Exit on the WDDOMODIFYVIEW and extend the logic to manipulate the UI element in Coding.

Former Member
0 Kudos

Hi,

Thanks a lot for your valuable suggestion. It works but i want to enable / disable the custom control by clicking on a button / hyper link.

I bind a value to the enable property. I am able set it or reset. but it didnt reflect in the screen. Do i need to do anything more ?

Former Member
0 Kudos

Hi Thomas,

Thanks for your suggestion. Awesome to work with web dynpro.....which is new to me as an ABAPer...

Regards.

Answers (1)

Answers (1)

vaibhav_tiwari
Contributor
0 Kudos

Hi Candy,

It is possible to change standard WD Components. You have to create Enhancement implementation for that.

steps:

1. There is a spiral icon on the menu in SE80. Just click on that to create an Enhancement implementation or just press ctrl+f4 to create an enhancement.

2. After creating the Enhancement implementation choose the view/component where you need to make changes.

3. To Change a UI Property right click on that or to change the code in methods tab create pre-exit or post-exit methods.

Hope it will be useful.

Regards,

Vaibhav Tiwari.