cancel
Showing results for 
Search instead for 
Did you mean: 

Want to display secondary ALV list with item details in web dynpro

former_member212705
Active Participant
0 Kudos

Hi,

i want to display secondary ALV list with item details(without hotspot ) i.e. when i select header detail's row and click on search button, Is it possible via some event so that when i click on search button it would display item details corresponding to that VBELN. please help.

Thanks in advance

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hai,

//Get the breference of the node

DATA lo_nd_itab TYPE REF TO if_wd_context_node.

DATA lo_el_itab TYPE REF TO if_wd_context_element.

DATA ls_itab TYPE wd_this->Element_itab.

  • navigate from <CONTEXT> to <ITAB> via lead selection

lo_nd_itab = wd_context->get_child_node( name = wd_this->wdctx_itab ).

  • @TODO handle non existant child

  • IF lo_nd_itab IS INITIAL.

  • ENDIF.

  • get element via lead selection

lo_el_itab = lo_nd_itab->get_element( ).

  • alternative access via index

  • lo_el_itab = lo_nd_itab->get_element( index = 1 ).

  • @TODO handle not set lead selection

IF lo_el_itab IS INITIAL.

ENDIF.

  • get all declared attributes // in ls_itab we get the selected value pass this as input like below

lo_el_itab->get_static_attributes(

IMPORTING

static_attributes = ls_itab ).

Ex:

ls_itab-vbeln to secondary alv

former_member212705
Active Participant
0 Kudos

Hi,

thanks for reply but it is not working i am using ALV component and while using

lo_el_itab->get_static_attributes(

IMPORTING

static_attributes = ls_itab ).

it is showing that

"Access via Null refrence object is not possible". Bcoz ls_itab is empty .

Thanks.

Former Member
0 Kudos

Hi,

First get reference to your node and then use the following methods:

Get_static_attributes_table - To read the table displayed in ALV

Get_lead_selection_index - To get the row selected

Read that table with the Index to find the header item selected and get the item details for it.

former_member212705
Active Participant
0 Kudos

hi,

Thanks a lot..

regards,

ashish

Answers (0)