0% found this document useful (0 votes)
74 views4 pages

Change For Update Value in TMG

This document provides code for a report program that displays data from the ZHYDCHE table based on a date selection. It uses ALV grid functionality to display the selected data with a dynamic title reflecting the selected date range. The program creates an object of the DISPLAY class which contains a method to retrieve and display the selected data.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
74 views4 pages

Change For Update Value in TMG

This document provides code for a report program that displays data from the ZHYDCHE table based on a date selection. It uses ALV grid functionality to display the selected data with a dynamic title reflecting the selected date range. The program creates an object of the DISPLAY class which contains a method to retrieve and display the selected data.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Change for update value in TMG

Report program for the table


Selection Screen for the report program

Sir, what is gen type???.. I did not understand Is it to get the generator name and display on the output header.

Output for the selection

Report Program for the above.


REPORT ZHYDCHEM1 .

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.

ENDCLASS. DATA : OBJ1 type ref to DISPLAY.

start-of-selection.

CREATE OBJECT OBJ1. CALL METHOD: OBJ1->DISPLAY_VALUES.

You might also like