2011 Sep 02 7:29 AM
How to create drop down list in alv reports.?(drop down calendar)
Please give some example code if possible...
Moderator Message: Please search before posting
Edited by: Suhas Saha on Sep 2, 2011 12:25 PM
How to create drop down list in alv reports.?(drop down calendar)
Please give some example code if possible...
Moderator Message: Please search before posting
Edited by: Suhas Saha on Sep 2, 2011 12:25 PM
2011 Sep 02 7:43 AM
Hi,
use the type pool:VRM.
VRM contains two values i.e key,text
key means id.
value means text whatever text we displayed in dropdown list.
DATA: ITab TYPE VRM_VALUES,
WA LIKE LINE OF ITab.
WA-KEY = '1'.
WA-TEXT = TEXT-001.
APPEND WA TO ITab.
..........
use the fm vrm_set_values to display the dropdown list.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
ID = 'xxxx'(whatever fieldname for dropdown list)
VALUES = ITab
Read this fm you get the clear idea.
regards,
haritha.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |