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

month end date

Former Member
0 Likes
1,413

Hello all...

Is there any function module to get month end date...if give system date( sy-datum ) as input.

thanks...

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,382

FM LAST_DAY_OF_MONTHS

Hello all...

Is there any function module to get month end date...if give system date( sy-datum ) as input.

thanks...

8 REPLIES 8
Read only

Former Member
0 Likes
1,383

FM LAST_DAY_OF_MONTHS

Read only

suresh_datti
Active Contributor
0 Likes
1,382

RE_LAST_DAY_OF_MONTH

~Suresh

Read only

abdul_hakim
Active Contributor
0 Likes
1,382

hi use

LAST_DAY_OF_MONTHS

Cheers,

Abdul Hakim

Read only

Former Member
0 Likes
1,382

Thanks ferry...but i didnt find that FM in my system...(R/3 4.6C )...

instead i found a FM which served my purpose..

RP_LAST_DAY_OF_MONTHS

thnaks...

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
1,382

You can use the function module, or you can simply code something like this.



report zrich_0001.

data: datum type sy-datum.

datum = sy-datum.
datum+4(2) = datum+4(2) + 1.
datum+6(2) = '01'.

datum = datum - 1.

write:/ datum.

Regards,

Rich Heilman

Read only

Former Member
0 Likes
1,382

thanks guys...i appreciate u'r time..

Read only

0 Likes
1,382

hi

i m in 4.7 and itz there in my system.....

Also allot points for all useful answers..

Cheers,

Abdul Hakim

Read only

Former Member
0 Likes
1,382

sorry ferro its there...i was just confused..

thanks for all replies....