cancel
Showing results for 
Search instead for 
Did you mean: 

Reg handling change in selection of ALV in WDA

former_member186491
Contributor
0 Kudos

Hi All,

I am using ALV LINK TO ACTION.

I've followed this link --

[;

It is running fine. I've added smartforms on click action. Again, it is running fine.

In ALV, VBELN column has been defined as link to action type. When one VBELN is clicked, smartforms for the details of that VBELN opens up.

But, my problem arises here. I need to open the respective details but, it is opening only for the first VBELN.

Hence, I tried to search for other options out. Then, I found that the link below can help me out --

[http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/4154%3Fpage%3Dlast] [original link is broken] [original link is broken] [original link is broken];.

But, I'm unable to deploy that. Some of the fields are not clear, at least for me - Like MAINVIEW, ELEMENT_DETAILS and DETAILS.

I took these as --

MAINVIEW should be like that view which is having ALV, is it...?

ELEMENT_DETAILS should be IF_WD_CONTEXT_ELEMENT, is it...?

DETAILS should remain DETAILS, is it....?

For your ready reference, I'd defind my data declaration as below --

DATA LO_ND_VBRKTAB_2 TYPE REF TO IF_WD_CONTEXT_NODE.
    DATA LO_EL_VBRKTAB_2 TYPE REF TO IF_WD_CONTEXT_ELEMENT.
    DATA LS_VBRKTAB_2 TYPE WD_THIS->ELEMENT_VBRKTAB_2.
    DATA LV_VBELN LIKE LS_VBRKTAB_2-VBELN.

Now, I'm adding some of more as --

data: i_ref_componentcontroller TYPE ref to ig_componentcontroller.
data: i_changes TYPE wdr_context_change_list,
      i_subnode type ref to if_wd_context_node,
      i_subnodedata type if_mainview=>element_details.
FIELD-SYMBOLS: <change> type wdr_context_change,
               <new> type data,
               <old> type data.
  i_ref_componentcontroller = WD_THIS->get_componentcontroller_ctr( ).
  i_changes = i_ref_componentcontroller->get_changes( ).
  data: i_node type ref to IF_WD_CONTEXT_NODE.
  i_node = WD_CONTEXT->GET_CHILD_NODE( 'CHANGE_LOG') .
  i_node->bind_table( i_changes ).

Then, coded for loop. But, check objects IF_MAINVIEW=>ELMENT_DETAILS is unknown.

Can you please guide me what is reqd here and how can that be achieved?

Thanks.

Kumar Saurav.

Edited by: Kumar Saurav on Jan 31, 2010 9:02 AM

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

In your case :

Replace IF_MAINVIEW=>ELMENT_DETAILS with IF_<your view name=>element_<your context node name>

former_member186491
Contributor
0 Kudos

Hi Saurav,

Thanks for giving me time.

I've followed the link below and resolved my problem.

[;

Thanks.

Kumar Saurav.

Edited by: Kumar Saurav on Feb 12, 2010 11:17 AM

Edited by: Kumar Saurav on Feb 12, 2010 11:18 AM

former_member186491
Contributor
0 Kudos

Hi Saurav,

Thanks for giving me time.

I've followed the link below and resolved my problem.

[;

Thanks.

Kumar Saurav.