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

hi i need function module name regarding dates

Former Member
0 Likes
609

Hi ,

i need some function module which is taken month and year and it will give last date of that month in that year , i think there is some function module

pls can u help me

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
592

use thiod f modules,.

RP_LAST_DAY_OF_MONTHS

LAST_DAY_OF_MONTHS

5 REPLIES 5
Read only

Former Member
0 Likes
593

use thiod f modules,.

RP_LAST_DAY_OF_MONTHS

LAST_DAY_OF_MONTHS

Read only

0 Likes
592

check.

fm <b>LAST_DAY_OF_MONTHS</b>

Read only

Former Member
0 Likes
592

data: start_date type sy-datum,

end_date type sy-datum.

parameters: p_spbup type spbup.

start-of-selection.

start_date = p_spbup.

start_date+6(2) = '01'.

call function 'LAST_DAY_OF_MONTHS'

exporting

day_in = start_date

importing

last_day_of_month = end_date.

write:/ start_date, end_date.

*************************************

Use Function modules for finding last day of month:

RE_LAST_DAY_OF_MONTH

RP_LAST_DAY_OF_MONTHS

SLS_MISC_GET_LAST_DAY_OF_MONTH

***************************************

Regards

Vasu

Read only

Former Member
0 Likes
592

Hi,

Use the function module

SG_PS_GET_LAST_DAY_OF_MONTH

Read only

Former Member
0 Likes
592

resolved thank u