Application Development 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: 

year-month-week selection screen format?

Former Member
0 Kudos

Hi experts,

I will create sd report but I need selection screen that includes year-month-week,

example;

Year   :   2012

Month :  March    ( Listbox for all months )

Week :  1.week   

I wıll execute report like that.

This report program is going to be comparison of weeks in specific years.

How can I achieve this selection screen ?

any help will be appreciate

best regards

2 REPLIES 2

Former Member
0 Kudos

Hello Kutay,

This is an example of listbox.

PARAMETERS:  listbox(1) AS LISTBOX VISIBLE LENGTH 10 DEFAULT 'N'.

AT SELECTION-SCREEN OUTPUT.

DATA:

name TYPE vrm_id,

list TYPE vrm_values,

value TYPE vrm_value.

name = 'LISTBOX'. " Name should be in UPPER CASE

value-key = '1'.

value-text = 'January'.

APPEND value TO list.

value-key = '2'.

value-text = 'February'.

APPEND value TO list.

CALL FUNCTION 'VRM_SET_VALUES'

EXPORTING

id = name

values = list

EXCEPTIONS

id_illegal_name = 0

OTHERS = 0.

Idem for week field.

I hope you help.

0 Kudos

hi martinez,

for example , when ı choose the january how can I append the range includes 01.01.2014-31.01.2014

any help will be appreciate

best regards...