cancel
Showing results for 
Search instead for 
Did you mean: 

HANDLEDEFAULT after WDDOINIT

Former Member
0 Kudos

I have a window with a parameter. I need to read the parameter value, and have it available in the controller context when the WDDOINIT method of the default view runs.

I need this, because according to the value of the field, I make some inputfields to read-only (in the wddoinit method).

Problem: The HANDLEDEFAULT is running after the WDDOINIT of the default view.

What I am doing wrong?

Thanks in advance.

Message was edited by:

Joao Sousa

Accepted Solutions (1)

Accepted Solutions (1)

shwetars
Advisor
Advisor
0 Kudos

Hi Joao,

Instead of placing the code in wddoinit place it in wddomodify, however make a check for the variable first_time = abap_true so that this code is executed only once.

Regards,

Shweta

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

you aren't doing anything wrong,

the dohandledefault method should be filled with your ui-coding,

i do the same thing when layout or context should be altered depending on navigation parameters

grtz,

Koen