FORM USER_COMMAND USING R_UCOMM LIKE SY-UCOMM
RS_SELFIELD TYPE SLIS_SELFIELD.
CASE R_UCOMM.
WHEN '&ENT'.
LOOP AT IT_MARD.
IF IT_MARD-RP_MONTH <> 0.
IT_MARD-COVER = ( IT_MARD-T_STOCK * 26 ) / IT_MARD-RP_MONTH.
ELSE.
IT_MARD-COVER = 0.
ENDIF.
MODIFY IT_MARD.
ENDLOOP.
WHEN '&SAVE'.
LOOP AT IT_MARD.
MOVE-CORRESPONDING IT_MARD TO ZROC.
MODIFY ZROC.
ENDLOOP.
MESSAGE 'Entries are saved in table' TYPE 'I'.
ENDCASE.
in the above zroc is the table created by me for storing datas.
initially i am saving 5000 as default to it_mard-rp_month which is updating in zroc-rp_month.
if i give save it is saving in particular table.if i again execute the same program i should get the
save values.for that how i have to write query for getting it from zroc table.