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

Making selection-screen fields output only

Former Member
0 Likes
3,826

Hi all and thanks for the quick replies to my last question!

Here comes another one: Does anyone know how to display a parameter field in a selection screen as output only?

Thanks

Magnus

1 ACCEPTED SOLUTION
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
2,357

Yep, do it in the AT SELECTION-SCREEN OUTPUT event.

parameters: p_check.

at selection-screen output.

loop at screen.
  if screen-name = 'P_CHECK'.
     screen-input = '0'.
     modify screen.
  endif.
endloop.

REgards,

Rich Heilman

4 REPLIES 4
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
2,358

Yep, do it in the AT SELECTION-SCREEN OUTPUT event.

parameters: p_check.

at selection-screen output.

loop at screen.
  if screen-name = 'P_CHECK'.
     screen-input = '0'.
     modify screen.
  endif.
endloop.

REgards,

Rich Heilman

Read only

Former Member
0 Likes
2,357

hi Magnus,

Check event AT SELECTION-SCREEN OUTPUT.

<b>PARAMETERS: P_MNTH RADIOBUTTON GROUP H1 USER-COMMAND ABC DEFAULT 'X'</b>

MODIF ID ABC.

<b>AT SELECTION-SCREEN OUTPUT.
  IF P_DETA = 'X' OR P_STRT = 'X'.
    LOOP AT SCREEN.
      IF SCREEN-GROUP1 = 'ABC'.
        SCREEN-INPUT = '0'.
        MODIFY SCREEN.
      ENDIF.
    ENDLOOP.
  ENDIF.</b>

Regards,

santosh

Message was edited by: Santosh Kumar P

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
2,357

Oh, <b>Output Only</b>. You can do this then.



report zrich_0001.

parameters: p_check(10) type c default 'Testing'.

at selection-screen output.

  loop at screen.
    if screen-name = 'P_CHECK'.
<b>      screen-input = '0'.
      screen-OUTPUT = '1'.
      screen-DISPLAY_3D = '0'.</b>
      modify screen.
    endif.
  endloop.

Regards,

Rich Heilman

Read only

Former Member
0 Likes
2,357

U can do the same in INITIALIZATION event.