Application Development 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: 

Issue with Parameter Field Non Editable

kirankerudi
Active Participant
0 Kudos

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

Former Member
0 Kudos

Hello kiran,

Can we explain your issue with much more information ??

can you share your code ??

0 Kudos

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

0 Kudos

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

prad_k
Explorer
0 Kudos

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.