on 04-25-2008 4:46 AM
Hi,
Previously I placed my code in WDDOINIT, in the out put it has Toggle
( ONACTIONON_ENABLED_TOGGLE) which works for another code to work.
Every thing is working fine.
Now due to some other requirement I placed WDDOINIT total code into WDDOMODIFYVIEW, here problem started for me. when I click on toggle its going into that method at the same time its going into WDDOMODIFYVIEW also. I am not getting required output due to this.
Can you please tell me how to solve this problem.
Regards,
sarath.
hi sarath......
the wddomodify method will be called every time there is some action in the view. the wddoinit method will be called onl once. so if you want your wddomodify to act like wddoinit then what you can do is, make use of the parameter first_time.
so you can check it as if first_time = abap_true.
you can write your coding in this part so that it will be called only once.
---regards,
alex b justin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
If your should work only once then in wddomodifyview()
put first_time = abap_true.condition.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sarath,
WDDOINIT method is executed only once while WDDOMODIFYVIEW method is executed every time if any event occurs on particular view. So, u can chek it thru if_firsttime = true for first time checking......
Cheers,
Ravin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.