‎2009 Jun 10 8:39 AM
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.
‎2009 Jun 10 8:44 AM
‎2009 Jun 10 8:47 AM
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.
‎2009 Jun 10 9:28 AM
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
‎2009 Jun 10 8:51 AM
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
‎2009 Jun 10 9:34 AM
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.
‎2009 Dec 02 10:56 AM
Hi all, I have the same problem, any solutions.
My fieldcatalog has the same fieldnames like my output table.
Best regards
Nils