2006 Jan 05 3:55 AM
I'm currently building an application which employs period as an input parameter. Problem is, the functional specification defines that the period is picked from a month whereas the application will took the date from the beginning of the month till the end of the month. It also defines that the user should only pick the month from a drop down list.
I'm still having trouble in creating the month picker. Wonders if anyone could help me solving the problem? Thank you in advance.
I'm currently building an application which employs period as an input parameter. Problem is, the functional specification defines that the period is picked from a month whereas the application will took the date from the beginning of the month till the end of the month. It also defines that the user should only pick the month from a drop down list.
I'm still having trouble in creating the month picker. Wonders if anyone could help me solving the problem? Thank you in advance.
2006 Jan 05 4:01 AM
Hi Wedge,
PL use the following statement.
parameters p_month type month.
this will give the user a dropdown list on the selection screen to pick the month
Regards,
Suresh Datti.
2006 Jan 05 4:01 AM
Hi,
You can use the following sample code for list box.Kindly reward points by clicking the star on the left of reply,if it helps.
PROGRAM zcmtest01.
TYPE-POOLS: vrm.
DATA: name TYPE vrm_id,
list TYPE vrm_values,
value LIKE LINE OF list.
PARAMETERS: ps_parm(10) AS LISTBOX VISIBLE LENGTH 10.
AT SELECTION-SCREEN OUTPUT.
name = 'PS_PARM'.
value-key = '1'.
value-text = '1'.
APPEND value TO list.
value-key = '2'.
value-text = '2'.
APPEND value TO list.
value-key = '3'.
value-text = '3'.
APPEND value TO list.
value-key = '4'.
value-text = '4'.
APPEND value TO list.
....
value-key = '11'.
value-text = '11'.
APPEND value TO list.
value-key = '12'.
value-text = '12'.
APPEND value TO list.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING id = name
values = list.
START-OF-SELECTION.
WRITE: / 'Parameter:', ps_parm.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |