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 to convert calender date to Julian date format

Former Member
0 Likes
875

Hi,

Is there any FM which can convert Calendaer Date to <b>Julian Date</b> format?

Thanks.

Regards,

Madhu

Hi,

Is there any FM which can convert Calendaer Date to <b>Julian Date</b> format?

Thanks.

Regards,

Madhu

1 REPLY 1
Read only

Former Member
0 Likes
498

It is not a func mod... but it is pretty straight forward.

data: julian_day(3) type n,

date_aux type d,

date_I_need type d.

  • first day of the year

concatenate date_I_need(4) '0101' into date_aux.

julian_day = date_I_need - date_aux.

julian_day = julian_day + 1.