on 06-14-2007 12:27 PM
Hi,
I want to add my custom code to the WDDOMODIFY method of a view .Can anyone help me in implementing the same through Enhancement Framework.
Points will be rewarded !!!!
Hi
You have two options. PREEXIT and POST exit.
The first one is called before the domodify and the second one after the domodify.
Thanks
Anzy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
If you are doing the enhancement for the DOMODIFY method, in the POSTEXIT , you will be getting the view name.
data:lr_transp type ref to cl_wd_transparent_container.
lr_transp ?= view->get_element( 'ROOTUIELEMENTCONTAINER' ).
Now you have the instance of the UI container , now you can edit existing elements or add new elements ....
Reply if you need more clarification
Thanks
Anzy
Award points if this solves your issue.
I don't want to add an element..rather in WDDOMODIFY method I want to set the default values for some select options already created in a view.
Without Postexit I was able to do but I want to know how can I go further with Postexit.
So basically I want to add a source code not elements.
Points will be certainly rewarded if you resolve my query.
Hi
Creating POST EXITS. Go to the method list of your view.Click on the spiral available in the editor.It will ask for an enhancement implementation.
Give an enhancement implementation name and click ok. Now go to the method list again. You will see new create buttons for post exit and preexits against each row.Now create a post exit for WDDOMODIFY , write your code there and activate.
Thanks
Anzy
Hi,
see <a href="http://help.sap.com/saphelp_nw70/helpdata/en/c5/f4b9422e0fb911e10000000a1550b0/frameset.htm">the documentation</a>
Regards, Heidi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.