Is there a function to convert the Julian date to a calendar date? In our Quoting/Engineering our "Smart" numbers use the Julian date. In order to process this info we have to convert the Julian date.
In our R/2 system this was handled by the statement READ CALENDAR.... R/3 does not support this. I need to be able to convert the 3 digit Julian date to a calendar date, e.g. 031 = Jan 31, etc
Here is some code that will show you how to calculate.
report zrich_0002 . data: julian_day type i value '41'. data: date type sy-datum. data: firstofyear type sy-datum value 'XXXX0101'. replace 'XXXX' with sy-datum(4) into firstofyear. date = ( julian_day + firstofyear ) - 1. write:/ date.
Regards,
Rich Heilman
Add a comment