cancel
Showing results for 
Search instead for 
Did you mean: 

Function Module to find the Begin Date of the Year

Former Member
0 Kudos
73

Hi Experts,

Could you let me know if there is a FM to find the "Begin Date of the Year".

I appreciate your help.

Thanks a lot.

Accepted Solutions (1)

Accepted Solutions (1)

ferry_lianto
Active Contributor
0 Kudos

Hi,

Please try this FM.

HR_PSF_GET_BEGIN_END_OF_YEAR

FIRST_AND_LAST_DAY_IN_YEAR_GET

FIRST_DAY_IN_PERIOD_GET

Regards,

Ferry Lianto

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Do you want the Begin date of the <b>current</b> year..Try this..



DATA: V_DATE TYPE SY-DATUM.

V_DATE = SY-DATUM.

V_DATE+4(4) = '0101'.

WRITE: / 'Beginning date of the year ' , v_date.

If you are mentioning about the Fiscal year..Then you can use the FM PERIOD_DAY_DETERMINE

Thanks,

Naren

Former Member
0 Kudos

Thanx much.