Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Issue with Parameter Field Non Editable

kirankerudi
Active Participant
0 Likes
899

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

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

4 REPLIES 4
Read only

Former Member
0 Likes
716

Hello kiran,

Can we explain your issue with much more information ??

can you share your code ??

Read only

0 Likes
716

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

Read only

0 Likes
716

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

Read only

prad_k
Explorer
0 Likes
716

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.