Selection Screen Without Execute Button 

REPORT  ZMAVSARTEST.

tables: sscrfields.

data:it_exc type table of rsexfcode,
wa_exc type rsexfcode.

parameters: p_carrid type s_carr_id,
p_cityfr type s_from_cit.

selection-screen: function key 1,
function key 2.

initialization.
sscrfields-functxt_01 = ‘ONE’.
sscrfields-functxt_02 = ‘TWO’.
wa_exc-fcode = ‘ONLI’.
append wa_exc to it_exc.

at selection-screen.

case sscrfields-ucomm.
when’FC01′.
p_carrid = ‘ONE’.
p_cityfr = ‘HYD’.
when ‘FC02′.
p_carrid = ‘TWO’.
p_cityfr = ‘KKD’.
endcase.

at selection-screen output.

* SET PF-STATUS ‘ ‘ OF PROGRAM ‘RSSYSTDB’ EXCLUDING WA_EXC-FCODE.

call function ‘RS_SET_SELSCREEN_STATUS’
exporting
p_status = ‘%_00′
p_program = ‘RSSYSTDB’
tables
p_exclude = it_exc.