11-12-2007 8:41 AM
Hi,
I am trying to make one program with object oriented alv.My grid do not be refresh.
My code is like that....
CLEAR G_CONTAINER.
CREATE OBJECT G_CONTAINER
EXPORTING
CONTAINER_NAME = 'CONTAINER'.
CREATE OBJECT ALV_DISP
EXPORTING
I_PARENT = G_CONTAINER.
call method ALV_DISP->set_ready_for_input
exporting i_ready_for_input = 0.
CALL METHOD ALV_DISP->SET_TABLE_FOR_FIRST_DISPLAY
EXPORTING
I_STRUCTURE_NAME = 'ZPMS_OUTPUT_V3'
CHANGING
IT_OUTTAB = IT_PMT
IT_FIELDCATALOG = gt_fieldcatalog
EXCEPTIONS
INVALID_PARAMETER_COMBINATION = 1
PROGRAM_ERROR = 2
TOO_MANY_LINES = 3
OTHERS = 4.
IF SY-SUBRC <> 0.
MESSAGE ' NO DATA FOUND !!!' TYPE 'E'.
ENDIF.
CALL METHOD ALV_DISP->REFRESH_TABLE_DISPLAY
EXCEPTIONS
FINISHED = 1
OTHERS = 2.
Please help me to trace out this situation.
Regards,
Gurprit Bhatia
11-12-2007 8:47 AM
Grid do not refresh in the sense.. i didnt get what you are expecting..
Here Grid refresh in the sense...
first you display 10 records in the gird. after wards u deleted 2 decords. then you will use grid refresh to show 8 records on the Grid instead of 10 records.
Grid refresh doesn't mean that it will clear the contents of grid...
Hope u got it.