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

function module for last date in month

Former Member
0 Likes
6,984

hi experts,

can u tell me the function module for getting last date of the moth(i mean if i enter some date i should get last date of that month) eg: if i enter 12.1.2006 i have to get 31.1.2006

8 REPLIES 8
Read only

anversha_s
Active Contributor
0 Likes
1,201

hi,

do this.




data: date_beg like sy-datum.
data: date_end like sy-datum.


CALL FUNCTION 'HR_JP_MONTH_BEGIN_END_DATE'
EXPORTING
iv_date = sy-datum
IMPORTING
EV_MONTH_BEGIN_DATE = date_beg     "start date
EV_MONTH_END_DATE = date_end " end date

.

rgds

Anver

Read only

Former Member
0 Likes
1,201

Hi,

Use the FM SLS_MISC_GET_LAST_DAY_OF_MONTH..

Thanks,

Naren

Read only

Former Member
0 Likes
1,201

HI ,

Please Use the Function Module

REAL_ESTATE_CALC_DATE_SLST

Pass the Date Moth Offset as Zero In out put Check the Field E_DATE_MONTH_END

  • Please Mark useFul Answers

Read only

Former Member
0 Likes
1,201

Hi naveen,

Use below FM.

"RP_LAST_DAY_OF_MONTHS " .Give any date in that month as input .you will get last day of month.

Pls. reward points if this is useful answer.

Read only

Former Member
0 Likes
1,201

Hi,

Use the FM:

<b>RP_LAST_DAY_OF_MONTHS</b>

Determine last day of month

Hope this helps.

Reward if helpful.

Regards,

Sipra

Read only

Former Member
0 Likes
1,201

SG_PS_GET_LAST_DAY_OF_MONTH

RE_LAST_DAY_OF_MONTH

HR_HCP_GET_LAST_DAY_OF_MONTH

HRVE_LAST_DAY_OF_MONTH

RP_LAST_DAY_OF_MONTHS

SLS_MISC_GET_LAST_DAY_OF_MONTH

LAST_DAY_OF_MONTHS

WSAF_GET_LAST_DAY_OF_MONTH

Try with any one of the above.

Hope helpful

BR,

Ravi

Read only

Former Member
0 Likes
1,201

TRY THIS FM

LAST_DAY_OF_MONTHS

SHIBA DUTTA

Read only

Former Member
0 Likes
1,201

Hi,

Please close the thread if the problem is solved..

Thanks,

Naren