Skip to Content
0
Former Member
Nov 23, 2008 at 11:14 AM

How does SAP convert the gregorian date to islamic date

867 Views

If the date format in user profile (defaults) is set to Islamic Date 1 format, how does SAP convert the gregorian date to islamic date while displaying or using write statements in ABAP. When the abap program reads the date field from the database, the value in database is stored as YYYYMMDD, while writing the list output, it converts to islamic date.

My requirement is to read the hiring date from HR infotype 0041, convert into islamic date and add 1 Hijra year to the islamic date to come up with one year hijra period (example 1429/11/29 to 1430/11/28). Note this is not the same as reading the gregorian date and find one year period and then converting to islamic date. Islamic calendar has 354 or 355 days instead of 365.