Application Development 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: 

Grid do not be refresh.....

Former Member
0 Kudos

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

1 REPLY 1

Former Member
0 Kudos

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.