cancel
Showing results for 
Search instead for 
Did you mean: 

ALV table read issue

Former Member
0 Kudos

hi

pls tell how to read the ALV table.

i am trying to do it through the read node code wisdard,but its giving the dump for access via null.

pls tell is any alternate way to read the ALV table of view UI element,

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi,

There is no special way to read ALV table.

Just read it via Code Wizard.

Put breakpoint and see where error is coming.

Former Member
0 Kudos

lo_el_partner_fn

i am gettng this issue, my table node is giving this value & thus

lo_el_partner_fn->get_static_attributes(

IMPORTING

static_attributes = ls_partner_fn ).

resulting in dump.

card for node:0.n

selection:0.1

don know y this error coming,where as my ALV is displying me the data,just i want the data for next user action,which resulting in dump.

Former Member
0 Kudos

Use the following code;

Data: cn_node type ref to if_wd_context_node.

cn_node = wd_context->get_child_node( 'NODENAME' ). " node bound to ALV 

nc_node->get_static_attributes_table( importing table = lt_table ).

" lt_table will now have the contents of your ALV

Thanks,

Radhika.

Former Member
0 Kudos

hi,

With this code :

lo_el_partner_fn->get_static_attributes(

IMPORTING

static_attributes = ls_partner_fn ).

You will be getting lead selected row only.

As your lo_el_partner_fn is null because i think no rows is selected so you are getting dump.

If you want to get lead selected row then use :

if lo_el_partner is not initial.

lo_el_partner_fn->get_static_attributes(

IMPORTING

static_attributes = ls_partner_fn ).

Endif.

If you want to get whole table data then use :

DATA lo_nd_node_flighttab TYPE REF TO if_wd_context_node.

DATA lt_node_flighttab TYPE wd_this->elements_node_flighttab.

lo_nd_node_flighttab = wd_context->get_child_node( 'NODENAME' ).

lo_nd_node_flighttab->get_static_attributes_table( importing table = lt_node_flighttab ).

Here lt_node_flighttab is your internal table with all the data as in table.

Edited by: Saurav Mago on Oct 29, 2009 5:45 PM

Answers (0)