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

select -options

Former Member
0 Likes
616

using select-options, i have to write 1st date of the current date as low and last date of the current month as high value.Can u help me out??

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
585

1st date of current month as lower value and last date of current month as higher value.

5 REPLIES 5
Read only

Former Member
0 Likes
586

1st date of current month as lower value and last date of current month as higher value.

Read only

0 Likes
585

select-options: s_date for sy-datum.

initialization.

s_date-sign = 'I'.

s_date-option = 'BT'.

s_date-low = sy-datum.

call function 'LAST_DAY_OF_MONTHS'

exporting

day_in = sy-datum

importing

LAST_DAY_OF_MONTH = s_date-high

EXCEPTIONS

DAY_IN_NO_DATE = 1.

append s_date.

Read only

0 Likes
585

the lower date value must be the first date of the current month,but here u mentioned it as current date??

Read only

0 Likes
585

Hi,

Make small change to the code...

select-options: s_date for sy-datum.
DATA date LIKE sy-datum.

initialization.

s_date-sign = 'I'.
s_date-option = 'BT'.
date = sy-datum.
date+6(2) = '01'.
s_date-low = date.

call function 'LAST_DAY_OF_MONTHS'
exporting
day_in = sy-datum
importing
LAST_DAY_OF_MONTH = s_date-high
EXCEPTIONS
DAY_IN_NO_DATE = 1.

append s_date.

Ps: Reward helpful posts.

Regards,

Wenceslaus.

Read only

0 Likes
585

lv_firstdate = sy-datum.

lv_firstdate+6(2) = '01'.

s_date-low = lv_firstdate.