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

ALV Problem

Former Member
0 Likes
632

hi all,

i got this error when using the following code,

"call method ref1->check_changed_data"

1.You address a typed field symbol before it is set using ASSIGN

2.You address a field symbol that points to a line in an internal table that

3.You address a field symbol that had previously been reset using UNASSIGN, or that pointed to a local field that no longer exists

4.You address a global function interface parameter, even though the relevant function module is that is it is not in the list of active calls. You can get the list

of active calls from the.

Please give me ur suggestion,

Rajesh

5 REPLIES 5
Read only

Former Member
0 Likes
603

Hi,

Here you have used REF1,

call method <b>ref1</b>->check_changed_data.

Instead of REF1, use the same variable which you used for displaying ALV.

Eg.

<b>w_gr_alvgrid</b>->set_table_for_first_display.

call method <b>w_gr_alvgrid</b>->check_changed_data.

Best regards,

Prashant

Read only

0 Likes
603

Hi prashant,

I used

'Resuse_ALV_grid_display' for my display.

Thanks,

Rajesh.

Read only

0 Likes
603

Hi,

Actually my problem is that iam not able to get 'X' mark in my internal table after i choose some records in the alv ouput using a checkbox.

my code is as follows,

case rf_ucomm.

when 'PRO'.

data ref1 type ref to cl_gui_alv_grid.

call function 'GET_GLOBALS_FROM_SLVC_FULLSCR'

importing

  • ET_EXCLUDING =

  • E_REPID =

  • E_CALLBACK_PROGRAM =

  • E_CALLBACK_ROUTINE =

e_grid = ref1

  • ET_FIELDCAT_LVC =

  • ER_TRACE =

  • E_FLG_NO_HTML =

  • ES_LAYOUT_KKBLO =

  • ES_SEL_HIDE =

  • ET_EVENT_EXIT =

.

if ref1 is not initial.

call method ref1->check_changed_data. "error over here

  • importing

. et_index_rows = LVC_T_ROWS.

endif.

Please give ur suggestions,

Thanks,

Rajesh.

Read only

Former Member
0 Likes
603

Hi Rajesh,

If you have not used Object oriented way for creating ALV, then you cannot use CHECK_CHANGED_DATA.

<b>Make sure that CHECKBOX is the 1st column in your Internal table.</b>

Pls. refer this thread :

Best regards,

Prashant

Read only

0 Likes
603

Hi,

I USED THE SAME CODE AS GIVEN IN THREAD. BUT I GET THE SAME ERROR.

Waiting for ur suggestions,

Thanks,

rajesh.