on 01-05-2012 11:11 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.