‎2011 Feb 17 9:44 PM
Hi Experts,
I am using custom container to display report O/P ( class : cl_gui_alv_grid, method: SET_TABLE_FOR_FIRST_DISPLAY ), and generating the columns dynamically according the selection range.
First time its giving the O/P correct, but for the further selections the colums are not getting refreshed even though 'REFRESH_TABLE_DISPLAY ' is used.
Please help me on this.
Thanks
‎2011 Feb 17 10:55 PM
Hi
try this at user command
CALL METHOD grid_log->refresh_table_display.
Edited by: Raul Natu on Feb 18, 2011 12:07 AM
‎2019 Jun 17 2:09 PM
‎2011 Feb 17 11:04 PM
Hi,
method REFRESH_TABLE_DISPLAY must work. You might use this method in the incorrect place.
‎2011 Feb 22 10:48 AM
if obj is initial.
CREATE OBJECT OBJ
EXPORTING
DYNNR = V_DYNNR
REPID = V_REPID
CONTAINER_NAME = 'C_EXTER'.
CREATE OBJECT HGRID
EXPORTING
I_PARENT = OBJ.
*if R_EW = 'X'.
PERFORM FIELD_CATLOG.
CALL METHOD HGRID->SET_TABLE_FOR_FIRST_DISPLAY
EXPORTING
I_BUFFER_ACTIVE =
I_BYPASSING_BUFFER =
I_CONSISTENCY_CHECK =
I_STRUCTURE_NAME =
IS_VARIANT =
I_SAVE = 'X'
I_DEFAULT = 'X'
IS_LAYOUT =
IS_PRINT =
IT_SPECIAL_GROUPS =
IT_TOOLBAR_EXCLUDING =
IT_HYPERLINK =
IT_ALV_GRAPHICS =
IT_EXCEPT_QINFO =
IR_SALV_ADAPTER =
CHANGING
IT_OUTTAB = <t_fs> " dynamic internal table
IT_FIELDCATALOG = IT_dyfcat " dynamic fieldcatalog
IT_SORT =
IT_FILTER =
EXCEPTIONS
INVALID_PARAMETER_COMBINATION = 1
PROGRAM_ERROR = 2
TOO_MANY_LINES = 3
others = 4
.
CALL METHOD CL_GUI_CFW=>FLUSH
EXCEPTIONS
CNTL_SYSTEM_ERROR = 1
CNTL_ERROR = 2
others = 3
.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
endif.
else.
CALL METHOD HGRID->REFRESH_TABLE_DISPLAY.
endif.
If i replace both internal table and filed catalog by static, its working fine( data refreshing ).
note: selection screen and o/p list in the same screen.
Thanks...
*I am closing this issue, becausse i changed this program from screen painter to normal report, so when execute the report, then the ouput also enlarging(dynamic generation of fields) acording to the dates rage in selection screen...*
Edited by: PHANI CHOWDARY on Feb 27, 2011 12:04 PM