cancel
Showing results for 
Search instead for 
Did you mean: 

Read table entries at runtime

former_member215781
Active Participant
0 Kudos

Hi,

I have a table in which I populate entries by importing a .csv file. Now on clicking OK i want to read this entries on screen in the table and store it in the internal table.

How do I read these entries (can be any number of rows) and store it in an internal table?

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos
DATA lo_nd_cn_popin TYPE REF TO if_wd_context_node.
DATA itab TYPE wd_this->elements_cn_popin.

lo_nd_cn_popin = wd_context->get_child_node( name = wd_this->wdctx_cn_popin ).
lo_nd_cn_popin->get_static_attributes_table( IMPORTING table = itab ).

CN_POPIN is my node binded to table.

former_member215781
Active Participant
0 Kudos

Getting the follwing error

Lead selection not set for context node <VIEW>.1.<TABLE_NODE>

Don't know what is that 1 in between

Former Member
0 Kudos

Hi,

Change the selection property of context node as 0..1 (For single row selection)

former_member215781
Active Participant
0 Kudos

Resolved.

It should be

DATA: lo_nd_tab1 TYPE REF TO if_wd_context_node,

i_tabval TYPE wd_this->elements_tab1.

lo_nd_tab1= wd_context->get_child_node( 'TAB1' ).

lo_nd_tab1->get_static_attributes_table( IMPORTING

table = i_tabval ).

TAB1 is my NODE here