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: 

parameters on report - achieve no input

Former Member
0 Kudos

hi,

i have a parameter field on a report. is there a way to make it uneditable?

what i tried so far is:

AT SELECTION-SCREEN OUTPUT.

  LOOP AT SCREEN.
    IF screen-name EQ 'P_UPDATE'.
      screen-input = '0'.
    ENDIF.
  ENDLOOP.

so i tried a similar approach like in dynpro surrounding.

in the debugger i see, that the code is being processed. still the field is editable.

help appreciated,

thanx, matthias

1 ACCEPTED SOLUTION

suresh_datti
Active Contributor
0 Kudos

try this..


AT SELECTION-SCREEN OUTPUT. 
 LOOP AT SCREEN.    
IF screen-name EQ 'P_UPDATE'.    
  screen-input = '0'.  
modify screen. 
 ENDIF.

 ENDLOOP.


Regards,

Suresh Datti

4 REPLIES 4

suresh_datti
Active Contributor
0 Kudos

try this..


AT SELECTION-SCREEN OUTPUT. 
 LOOP AT SCREEN.    
IF screen-name EQ 'P_UPDATE'.    
  screen-input = '0'.  
modify screen. 
 ENDIF.

 ENDLOOP.


Regards,

Suresh Datti

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

You forgot the MODIFY SCREEN.




report zrich_0002.


parameters: p_update type c.


at selection-screen output.

  loop at screen.

    if screen-name eq 'P_UPDATE'.

      screen-input = '0'.
      modify screen.

    endif.
  endloop.

Regards,

Rich Heilman

0 Kudos

foolish me,

thanx to both of you,

matthias B-]

former_member188685
Active Contributor
0 Kudos
AT SELECTION-SCREEN OUTPUT.
  LOOP AT SCREEN. 
   IF screen-name EQ 'P_UPDATE'. 
     screen-input = '0'.
modify screen. <--"add this..
    ENDIF.  ENDLOOP