cancel
Showing results for 
Search instead for 
Did you mean: 

Regarding method modifyview (WDDOMODIFYVIEW)

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

If your should work only once then in wddomodifyview()

put first_time = abap_true.condition.

Former Member
0 Kudos

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