Skip to Content
0
Former Member
Dec 08, 2009 at 09:55 AM

Coding in contextual panel

12 Views

Hi,

I have created an application which has a contextual panel.I am Filling the panel using the below code in SUPPLY_VIEW_SWITCH function:

DATA TAB TYPE WD_THIS->ELEMENTS_N_VIEW_SWITCH.

DATA LINE TYPE WD_THIS->ELEMENT_N_VIEW_SWITCH.

LINE-TEXT = 'Invoice'. "#EC NOTEXT

LINE-ENABLED = ABAP_TRUE.

APPEND LINE TO TAB.

LINE-TEXT = 'Delivery Status'. "#EC NOTEXT

LINE-ENABLED = ABAP_TRUE.

APPEND LINE TO TAB.

Now I want to show an ALV report when the user presses the Invoice button. Please suggest how to write code in method ONACTIONON_VIEW_SWITCH (Action on Selection in View Switch). I guess we have tohandle it using the cases, but dont know the coding part of it.