cancel
Showing results for 
Search instead for 
Did you mean: 

Coding in contextual panel

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Ashutosh,

In order to use ALV, you have to define the usage of the component SALV_WD_TABLE in your component.

You could refer the below link for the detailed step by step procedure.

[ALV Document|http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3439404a-0801-0010-dda5-8c14514d690d?overridelayout=true]

You can alternatively use Table UI Element to achieve the same.

Edited by: Anurag Chopra on Dec 9, 2009 2:44 PM