cancel
Showing results for 
Search instead for 
Did you mean: 

ALV Link to Action Data

Former Member
0 Kudos

Dear All,

In my ALV i am displaying data, in that first colum as LINK TO ACTION. How to get complete row data in onclick event. By using ASSIGN r_param->value->* i am getting link to action colum value only. How to get complete row data? Please any help.

Thanks,

Venkat.

Accepted Solutions (1)

Accepted Solutions (1)

former_member184578
Active Contributor
0 Kudos

Hi,

You can get the index using r_param->index. then read the internal table with the index, which gives the row data.

Try the below code snippet

DATA:  lr_element TYPE REF TO if_wd_context_element,

            lr_node type ref to if_wd_context_node,

            ls_sflight TYPE wd_this->element_sflight.  " node name

  lr_node = wd_context->get_child_node( name = wd_this->wdctx_sflight ).

" get context element reference

lr_element = lr_node->get_element( index = r_param->index ).

CALL METHOD lr_element->get_static_attributes

  IMPORTING

    static_attributes  = ls_sflight.

Now ls_sflight contains the row data.

Hope this helps u.,

Regards,

Kiran

Former Member
0 Kudos

Thanks kiran.

One more query in ALV, how to change standard button text in alv, i want to change Excel text to download, and i want to set alignment also. I have one custom button, want to display custom button first. Please help.

Thanks

Venkat

Answers (0)