cancel
Showing results for 
Search instead for 
Did you mean: 

JULIEAN DATE

Former Member
0 Kudos

Hi all,

is there any standard function module,to convert sapdate to juliean date?

pleas help

thanx in advance

regards,

keerthi.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

give rewards if it is useful

Answers (2)

Answers (2)

stefan_grube
Active Contributor
0 Kudos

Could you let us know, why you need Julian date?

Former Member
0 Kudos

Hi stefan,

juliean date is used for calculating the stockaging in PP module.This helpws in easier calculation rather than calculating thru SAP dates.

regards,

keerthi

stefan_grube
Active Contributor
0 Kudos

Thank you.

Former Member
0 Kudos

In mapping?

If so use the std Date transformation function. With in a XML, you dont have anything like SAP date or JULIEN date.

Regards,

Jai Shankar

Former Member
0 Kudos

Hi,

this is an abap requirement.

former_member192892
Active Contributor
0 Kudos

keerthi,

You can use DateTrans standard function in your mapping

Former Member
0 Kudos

Hi

  1. Julian Day Number from calendar date

_date2julian() # year-month-day

{

case $1 in "") date_vars; set -- $TODAY ;; esac

split_date $1 d2j_year d2j_month d2j_day || return 2

    1. Calculate number of months from March

d2j_tmpmonth=$((12 * $d2j_year + $d2j_month - 3))

d2j_tmpyear=$(( $d2j_tmpmonth / 12))

DATE2JULIAN=$(( (734 * $d2jtmpmonth + 15) / 24 - 2 * $d2j_tmpyear + \

$d2j_tmpyear/4 - $d2j_tmpyear/100 + $d2j_tmpyear/400 + $d2j_day + 1721119 ))

}

regards

sasi