Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Creating month picker

Former Member
0 Likes
514

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.

2 REPLIES 2
Read only

suresh_datti
Active Contributor
0 Likes
489

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.

Read only

jayanthi_jayaraman
Active Contributor
0 Likes
489

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.