‎2006 Aug 12 6:41 AM
hai SDNs,
i have written this code for displaying LIST BOX and populating with values..
its working fine..
but if i select any thing i need to process correpondingly.. is there any thing for that. pls check my code and can any one pls help me out
TYPE-POOLS : vrm.
DATA : v TYPE vrm_values.
DATA : vw LIKE LINE OF v.
PARAMETERS : a(10) TYPE c AS LISTBOX VISIBLE LENGTH 10.
INITIALIZATION.
vw-key = '1'.
vw-text = 'Jan'.
APPEND vw TO v.
vw-key = '2'.
vw-text = 'Feb'.
APPEND vw TO v.
vw-key = '3'.
vw-text = 'Mar'.
APPEND vw TO v.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
id = 'A'
values = v
EXCEPTIONS
id_illegal_name = 1
OTHERS = 2.
Thaning you,
Ramu
‎2006 Aug 12 7:01 AM
Hai,
What kind of processing do you want ? Can you exactly specify what you want ? You can manipulate with At selection-screen, start of selection events.
‎2006 Aug 12 7:04 AM
hai Sakthi Seithur ,
see there are 5 items in listbox. is i select any item,
corresponding report program should trigger.
we can do this by submit , but what is the fucncion code, how to find particular thing is seleted . (how to find which item is being selected).
thanks
‎2006 Aug 12 7:06 AM
‎2006 Aug 12 7:09 AM
Hi,
Check the DEMO programs
DEMO_DYNPRO_DROPDOWN_LISTBOX
RSDEMO_DROPDOWN_LISTBOX
Cheers
VJ
‎2006 Aug 12 7:01 AM
‎2006 Aug 12 7:04 AM
Hai,
Whether you want to process in the same screen or in next screen ?
‎2006 Aug 12 7:09 AM
Hai,
The selection item will be stored in the parameter name what you have defined, in your case 'a'. Try the code in the event.
at selection-screen.
case a.
when '1'.
do first option statements.
when '2'.
do second option statements.
when '3'.
do third option statements.
endcase.