cancel
Showing results for 
Search instead for 
Did you mean: 

Tables Screen and SSCRFIELDS

Former Member
0 Kudos

Hi All

Can anybody plz tell me where to use table sscrfield and where screen , in case of selection screens for dyanamic modifications

Thanks in advance

Accepted Solutions (0)

Answers (1)

Answers (1)

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

If you would like to "execute" your report program simply by hitting ENTER, you can use the SSCRFIELDS table to do this.



report zrich_0001.

tables sscrfields.

parameters: p_test type i obligatory.

at selection-screen.

  if sscrfields-ucomm eq space.
    sscrfields-ucomm = 'ONLI'.
  endif.

start-of-selection.
  write : p_test.


REgards,

RIch Heilman

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

You can change some attributes of fields during the AT SELECTION-SCREEN OUTPUT event.



report zrich_0001.


parameters: p_test1 type i .
parameters: p_test2 type i .

at selection-screen output.

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

start-of-selection.

REgards,

RIch Heilman

Former Member
0 Kudos

Hi

Just a little thing in addition to what Rick wrote.

The table SSCRFIELDS save the function code of a pushbutton inserted in selection-screen or a command to related to a radiobutton or a checkbox.

tables sscrfields.

PARAMETERS: DATE LIKE SY-DATUM,

DIVISION(1) TYPE C MODIF ID AAA.

PARAMETERS: R1 RADIOBUTTON GROUP RAD1 DEFAULT 'X' USER-COMMAND RAD,

R2 RADIOBUTTON GROUP RAD1.

at selection-screen.

if sscrfields-ucomm eq 'RAD'.

...............................

endif.

max