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

Parameters non editable

Former Member
0 Likes
11,144

Hello,

can i get a parameters non editable. I need that this parameters should be non editable once the users has choosen an option.

Thanks.

2 REPLIES 2
Read only

RichHeilman
Developer Advocate
Developer Advocate
3,885

Yes, you can change the screen attributes in the PBO.



parameters: p_rad1 radiobutton group gp1 user-command chk.
parameters: p_rad2 radiobutton group gp1.

parameters: p_field(5) type c.

at selection-screen output.

if p_rad2 = 'X'.
loop at screen.
   if screen-name = 'P_FIELD'.
    screen-input = '0'.
    modify screen.
   endif.
endloop.
endif.

start-of-selection.

Regards,

Rich Heilman

Read only

Former Member
3,885

Hi,

You can use below code :


PARAMETER : text(100) type c DEFAULT 'SRIRAM' MODIF ID SP1.

*WRITE TEXT.

AT SELECTION-SCREEN OUTPUT.
  LOOP AT SCREEN.
    IF SCREEN-GROUP1 = 'SP1'.
      SCREEN-INPUT = '0'.
      MODIFY SCREEN.
    ENDIF.
 ENDLOOP.

Thanks,

Sriram Ponna.