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: 

function module for last date in month

Former Member
0 Kudos

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

anversha_s
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Hi,

Use the FM SLS_MISC_GET_LAST_DAY_OF_MONTH..

Thanks,

Naren

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

Hi,

Use the FM:

<b>RP_LAST_DAY_OF_MONTHS</b>

Determine last day of month

Hope this helps.

Reward if helpful.

Regards,

Sipra

Former Member
0 Kudos

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

Former Member
0 Kudos

TRY THIS FM

LAST_DAY_OF_MONTHS

SHIBA DUTTA

Former Member
0 Kudos

Hi,

Please close the thread if the problem is solved..

Thanks,

Naren