cancel
Showing results for 
Search instead for 
Did you mean: 

Function to Find Start date & Last date of the month

Former Member
0 Kudos

Dear all,

I have created one selection screen ..... that is

Month name

I have pass Month name through selection screen.

Suppose i pass: From January To April

Then in program how can i get the Start Date of the month means 01.01.2009 and how to get end date Means 30.04.2009.

Means i want the function.

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member208856
Active Contributor
0 Kudos

This question is related to ABAP forum,

You can use FM

HR_JP_MONTH_BEGIN_END_DATE

If you need last day of month, use FM

BKK_GET_MONTH_LASTDAY

for these you have to give year also, give date in importing parameter

IV_DATE.

Pass the value (January, 2009) of first parameter in First FM (HR_JP_MONTH_BEGIN_END_DATE)

& value (April, 2009) in second parameter in Second FM (BKK_GET_MONTH_LASTDAY) & use the Output.