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_TABLE_DISPLAY giving dump

Former Member
0 Likes
1,941

class : CL_GUI_ALV_GRID is used to to produce alv grid

when i tried to refresh using REFRESH_TABLE_DISPLAY method

i am getting a dump

Exception condition "DP_ERROR_GET_DATA" raised

Dump is coming from fun module DP_CONTROL_GET_TABLE

IF NOT SELFCREATED IS INITIAL.

CALL FUNCTION 'DP_DESTROY'

CHANGING

H_DP = <H_DPLOCAL>

EXCEPTIONS

OTHERS = 1.

IF SY-SUBRC NE 0.

ERRORLEVEL = 1.

ENDIF.

ENDIF.

CASE ERRORLEVEL.

WHEN 1.

RAISE DP_ERROR_CREATE.

WHEN 2.

RAISE DP_ERROR_GET_PROPERTY.

WHEN 3.

RAISE DP_ERROR_GET_DATA.----


> this exception is being raised

please let me knwo why it is happening like this ...

thanx

ENDCASE.

6 REPLIES 6
Read only

Former Member
0 Likes
1,342

Hi,

Please check your fieldcatalog.

Regards,

Ankur Parab

Read only

0 Likes
1,342

Hi,

Please check that while creating the field catalog you have given the correct field names i.e. similar to that in the table.

Thanks.

Read only

0 Likes
1,342

I have checked filed catalogs with the case it is giving dump to the other case which is not giving dump

both fieldcatlogs are same .

Please let me know in which case generally this exception will get triggered

Read only

Former Member
0 Likes
1,342

Hi,

in ALV, to refresh the table you have to call the method u201Crefresh_table_displayu201D. It has the syntax very similar to creating the table. It has two parameters. In the first one, you can mention if you want to refresh only the data (the icons are not refreshed) or if you want to refresh only the icons around the grid (the data is not refreshed - this option is mostly not used in day to day applications). Please check the filed catalog table

the syntax is :

call method grid (name of grid )->refresh_table_display

exporting

IS_STABLE = (THIS IS FOR DATA REFRESHING)

I_SOFT_REFRESH = (THIS IS FOR ICON REFRESHING).

Please check the following link, for your reference

https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/e8a1d690-0201-0010-b7ad-d9719a41....

http://www.cjzlk.com/%E7%BB%BC%E5%90%88%E6%96%87%E6%A1%A3%E5%A4%A7%E5%85%A8/%E7%94%B5%E5%AD%90%E5%95...

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
1,342

check whether this helps

DATA : cntr TYPE REF TO cl_gui_custom_container,

grid TYPE REF TO cl_gui_alv_grid.

IF cntr IS NOT INITIAL.

cntr->free( ).

CLEAR cntr.

FREE cntr.

ENDIF.

CREATE OBJECT cntr

EXPORTING

container_name = 'CNTR'.

CREATE OBJECT grid

EXPORTING

i_parent = cntr.

Read only

Former Member
0 Likes
1,342

Hi all, I have the same problem, any solutions.

My fieldcatalog has the same fieldnames like my output table.

Best regards

Nils