cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic Table Scroll bar

former_member645692
Participant
0 Kudos

Hi,

i have created a dynamic WD table using cl_wd_dynamic_tool=>create_table_from_node. I have set the number of visible rows to 15. Now when i scroll the table it shows Dump saying 'Null Object Reference".

when i debug i found at the point of cl_wd_dynamic_tool=>SET_VISIBLE_ROW_COUNT it throws the dump.

Initally its not showing any dump but when i scroll the table its throwing the dump. i have written the code in modifyview.

Kindly help me in this.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

set_visible_row_count is in cl_wd_table. Is that right.....

Regards,

Lekha.

former_member645692
Participant
0 Kudos

Hi lekha,

Yes.it is in cl_wd_table

Former Member
0 Kudos

Then have you checked wether you are getting the table reference or not.

Check in st22 for error or paste the code.

former_member645692
Participant
0 Kudos

data: lr_table TYPE REF TO cl_wd_table.

CALL METHOD cl_wd_dynamic_tool=>create_table_from_node

EXPORTING

ui_parent = group_1

table_id = lv_tabname1

node = lr_context_node

RECEIVING

table = lr_table.

CALL METHOD LR_TABLE->SET_VISIBLE_ROW_COUNT

EXPORTING

VALUE = 15.

Former Member
0 Kudos

if lr_table is not initial.

CALL METHOD LR_TABLE->SET_VISIBLE_ROW_COUNT

EXPORTING

VALUE = 15.

endif.

Have you cheked in debuging for this lr_table refereence.

former_member645692
Participant
0 Kudos

Hi lekha,

its woriking now.

thanku.

Answers (0)