on 12-08-2009 9:55 AM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.