Change For Update Value in TMG
Change For Update Value in TMG
Sir, what is gen type???.. I did not understand Is it to get the generator name and display on the output header.
tables ZHYDCHE. data: IT_HYDCHEM type table of ZHYDCHE, WA_HYDCHEM like line of IT_HYDCHEM, TOPNAME1 type LVC_TITLE. selection-screen begin of block b1 with frame title text-001. select-options: SO_R_DAT for ZHYDCHE-R_DATE. selection-screen end of block b1. CONCATENATE 'Generator Details : ' ' Date from ' SO_R_DAT-LOW ' TO ' SO_R_DAT-HIGH into TOPNAME1. CLASS DISPLAY DEFINITION. PUBLIC SECTION. METHODS : DISPLAY_VALUES. DATA : FNAME(30) TYPE C. ENDCLASS. CLASS DISPLAY IMPLEMENTATION. METHOD DISPLAY_VALUES. select * from ZHYDCHE into TABLE IT_HYDCHEM where R_DATE in SO_R_DAT. CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING I_CALLBACK_PROGRAM I_STRUCTURE_NAME I_GRID_TITLE = sy-repid = 'ZHYDCHE' = TOPNAME1
TABLES T_OUTTAB = IT_HYDCHEM EXCEPTIONS PROGRAM_ERROR = 1 OTHERS = 2 . IF SY-SUBRC <> 0. * Implement suitable error handling here ENDIF. ENDMETHOD.
start-of-selection.