Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Refresh custom container

Former Member
0 Likes
6,552

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

4 REPLIES 4
Read only

Former Member
0 Likes
2,265

Hi

try this at user command


CALL METHOD grid_log->refresh_table_display.

Edited by: Raul Natu on Feb 18, 2011 12:07 AM

Read only

0 Likes
2,265

this throws dump

Read only

AlexanderOv
Product and Topic Expert
Product and Topic Expert
0 Likes
2,265

Hi,

method REFRESH_TABLE_DISPLAY must work. You might use this method in the incorrect place.

Read only

0 Likes
2,265

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