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

Short dump

Former Member
0 Likes
578

hi Friends,

I am new to ABAP OOPS. i am gettign dump in the following code. Please help me out.

WHEN '&PRNT1'.

*

DATA: get_rows TYPE REF TO CL_GUI_ALV_GRID,

lt_rows TYPE LVC_T_ROW,

l_lines TYPE i.

CALL METHOD GET_ROWS->GET_SELECTED_ROWS

IMPORTING

ET_INDEX_ROWS = lt_rows

  • ET_ROW_NO =

.

2 REPLIES 2
Read only

Former Member
0 Likes
442

I am sorry i forgot to add dump description. the dump is as below.

Runtime Errors OBJECTS_OBJREF_NOT_ASSIGNED

Except. CX_SY_REF_IS_INITIAL

Date and Time 19.11.2007 11:43:52

Short text

Access via 'NULL' object reference not possible.

Read only

Former Member
0 Likes
442

hi vijay,

You did not create object for cl gui alv grid.

before using

CALL METHOD GET_ROWS->GET_SELECTED_ROWS

IMPORTING

ET_INDEX_ROWS = lt_rows

  • ET_ROW_NO =

do this :

create object get_rows

exporting i_parent = 'reference for your container'.

YOU CAN REFER TO BCALV_EDIT_01 ,02,03...

PROGRAMS FOR THIS.

Message was edited by:

Kamini Rawat