04-08-2015 8:42 AM
Hello ABAPers,
The following is the logic that I have used to make the field 'P_PATH' non editable in the 'AT SELECTION-SCREEN OUTPUT'
LOOP AT SCREEN.
IF screen-name CS 'P_PATH'.
screen-input = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
But, once I execute my program (I have error handling statement at 'START-OF-SELECTION'), when the error message is displayed the field that was made non editable turns out to editable !!
How to handle this issue ?
Thanks and Regards,
Kiran
04-08-2015 9:51 AM
Hello kiran,
Can we explain your issue with much more information ??
can you share your code ??
04-08-2015 10:26 AM
Hi Madhu,
Here is a piece of code.
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF screen-name CS 'P_PATH'.
screen-input = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
START-OF-SELECTION.
IF p_path IS INITIAL.
MESSAGE text DISPLAY LIKE 'E'.
EXIT.
ENDIF.
Regards,
Kiran
04-08-2015 10:40 AM
Hi..
That should be the case...If you are using AT SELECTION-SCREEN OUTPUT event.
Please revisit your code section.
Above code is also not leading to such situation.
BR
Ansumesh
04-08-2015 11:14 AM
Could you please explain what exactly is your requirement?
START-OF-SELECTION will trigger after the selection screen has been processed and hence is not useful to validate the input fields.
AT SELECTION-SCREEN is used for screen validations.