2008 May 23 6:38 AM
Below given is my Selection Screen
Plant (With Range and mandatory)
WBS Element (With Range not mandatory)
Month / Calender Year (Given in parameters and mandatory)
My question is,
If the user enters the WBS element with range,
Month/ Calender Year should be mandatory.
If the user enters the WBS element without range,
Month/ Calender Year should be disabled.
How can i do this in ALV?.
2008 May 23 6:58 AM
Hi Vennila,
You can handle this in AT SELECTION_SCREEN ON Field event.
Try like below.
AT SELECTION_SCREEN ON s_wbs.
loop at s_wbs.
if not s_wbs-low is initial and
not s_wbs-high is initial.
lw_flag = 'X'.
EXIT.
endif.
endloop.
if lw_flag is initial.
loop at screen.
if screen-name = 'P_CALENDER'.
screen-input = '0'.
modify screen.
endif.
end loop.
AT SELECTION_SCREEN ON p_calender.
IF not lw_flag is initial and p_calender is initial.
raise error message
Endif.
Hope this will help u in resolving this issue..
Below given is my Selection Screen
Plant (With Range and mandatory)
WBS Element (With Range not mandatory)
Month / Calender Year (Given in parameters and mandatory)
My question is,
If the user enters the WBS element with range,
Month/ Calender Year should be mandatory.
If the user enters the WBS element without range,
Month/ Calender Year should be disabled.
How can i do this in ALV?.
2008 May 23 6:40 AM
hi there...
open the report in se80 and go to screen painter.
there set the attribute of the screen field that u want to disable. u can also use the field name and the property name visible in the screen painter to code this thing dyanamically.
Hope it helps. Do reward if it does or get bak with further queries.
2008 May 23 6:50 AM
Hai Prem,
Thank you for your reply. i wll try this.I thought of doing this through coding by as follows.
If the WBS element is enter with out range i will set the satus of month and year as 'X'.
Any way i will try yours. Thanks a lot for your timely help.
2008 May 23 7:05 AM
hi Vennila,
ur welcome. Do lemme know if it helps. i could hav given the entire steps but its better u chk it out urself. wil help in log run.
regards
Prem Sharma
2008 May 23 6:35 PM
2008 May 23 6:58 AM
Hi Vennila,
You can handle this in AT SELECTION_SCREEN ON Field event.
Try like below.
AT SELECTION_SCREEN ON s_wbs.
loop at s_wbs.
if not s_wbs-low is initial and
not s_wbs-high is initial.
lw_flag = 'X'.
EXIT.
endif.
endloop.
if lw_flag is initial.
loop at screen.
if screen-name = 'P_CALENDER'.
screen-input = '0'.
modify screen.
endif.
end loop.
AT SELECTION_SCREEN ON p_calender.
IF not lw_flag is initial and p_calender is initial.
raise error message
Endif.
Hope this will help u in resolving this issue..
2008 May 23 6:37 PM
Hai Babu,
Thanks your for your answer. You coding sample is quite helpfull for me. thanks for your timely help.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |