cancel
Showing results for 
Search instead for 
Did you mean: 

Webdynpro - replace action method or cancel it being fired.

RyanK
Explorer
0 Kudos
182

I'm running webdynpro on basis 700 - I'm looking for a way to add additional customer auth object checks to an existing SAP web dynpro application.

When I go the methods tab, I only see a Pre-Exit & Post-Exit button; no Overwrite Exit button. I think reading these forums that is added in version 701.

So: I've been trying to find a way to do this. These are just ideas below.

- Is there any way to "cancel" an action in the pre-exit?

- Is there any way in my version to have the "Overwrite Exit" on the methods that I'm trying to enhance in my version?

- Is there any other way to add authorization to a particular action?

- Is there a method using enhancement to "hide" the UI element that causes the action to be fired?

Thank you in advance for your help.

-Ryan

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

>

> - Is there a method using enhancement to "hide" the UI element that causes the action to be fired?

Hi,

In release 7.0 it is possible to hide a UI element, just create an enhancement implementation for the view, right click on the UI element and choose Remove Element. This will hide( remove) the UI element if enhs implementation is active.

Regards

Manas Dua

RyanK
Explorer
0 Kudos

I doubt he wants to unconditonally hide the element - like me he probably wanted to do an auth check against and use the results of that to conditonally "hide" the element.

I ended up implementing the WDDOMODIFYVIEW method; in there I did the authorization check and then disabled the UI element if it failed the authorization check. It worked fairly well. The option appears on the user screen - just greyed out.

-Ryan

Former Member
0 Kudos

Thank Ryan!

My problem is that there is a method- INIT under the Component Controller. I don't want this method to be executed, instead a different code.

The method WDDOMODIFYVIEW does not exist under Component Controller...it only exist under Views.

So what options do I have. Please advice.

Thank You!

RyanK
Explorer
0 Kudos

Hmmm.. I'm not sure how to do that staying within enhancment then. I think you would need to upgrade to 701 then OR get yourself an object key and modify it directly if your organization allows that.

-Ryan

Former Member
0 Kudos

Ryan,

Did you find any answer. I am also in the same situation...our system don't have Overwrite Exit button when enhancing methods.

Thank You!