Documentos de Académico
Documentos de Profesional
Documentos de Cultura
FunctionModulerelatedonDatecalculationsABAPDevelopmentSCNWiki
GettingStarted Newsletters
Welcome,Guest
Login
Register
SearchtheCommunity
Products
Services&Support
AboutSCN
Downloads
Industries
Training&Education
Partnership
DeveloperCenter
LinesofBusiness
UniversityAlliances
Events&Webinars
Innovation
Store
ABAPDevelopment / ABAPDevelopment
FunctionModulerelatedonDatecalculations
CreatedbyAvinashKodarapu,lastmodifiedbyIFFonMay02,2009
FunctionModules
Description
/SAPNEA/J_SC_CONVERT_DATE
CovertDateinJapaneseFormat
/SDF/CMO_DATETIME_DIFFERENCE
Calculatesdifferencebetweentwodates/timestamps.
ADD_TIME_TO_DATE
Addtimetodate
BKK_ADD_MONTH_TO_DATE
Addmonthstodate
BKK_ADD_WORKINGDAY
BWSO_DATE_GET_FIRST_WEEKDAY
GivestheFirstdateoftheweekforthegivendate
CACS_DATE_GET_TIMESTAMP
Concatenatesthedateandtimeformat1112200810:11:11
CACS_DATE_GET_YEAR_MONTH
GivestheYearandmonthforthegivendate
CACS_TIMESTAMP_GET_DATE
GetdateandtimefromTimestamp
CONVERT_TIME_TERMS
DATE_CHECK_WORKINGDAY
Checkthedayisworkingdayornotforgivendate&calendarid
DATE_CHECK_WORKINGDAY_MULTIPLE
Checkthedayisworkingdayornotforgivendateinmuliplecalendarid
DATE_COMPUTE_DAY
Givesthedaynumberintheweek(EX1Mon,2TUEetc)
DATE_CONVERT_TO_WORKINGDAY
DATE_TO_DAY
Givesthedayofthedate(ExMonday,Tuesdayetc)
DATE_TO_DAY
Getthedayofthedate(ExMon.Tueetc)
F4_DATE
FMforF4helpforDate
FIMA_DAYS_AND_MONTHS_AND_YEARS
FIMA_DECIMAL_MONTHS_AND_YEARS
Givesthedifferencebetweenthedatesindecimalfoematofnumberofmonth&years
GET_WEEK_INFO_BASED_ON_DATE
GettheweekNumber,Sundaydate&Mondaydateforthegivendate
HR_99S_DATE_ADD_SUB_DURATION
Add/Subtractmonths(M)/days(D)/years(Y)togivendatetogetthefuturedate
HR_99S_DATE_MINUS_TIME_UNIT
Subtractmonths(M)/days(D)/years(Y)togivendatetogetthefuturedate
HR_99S_DATE_PLUS_TIME_UNIT
Addmonths(M)/days(D)/years(Y)togivendatetogetthefuturedate
HR_99S_INTERVAL_BETWEEN_DATES
Givesthedifferencebetweenthedatesindays,weeks,years
HR_99S_MONTHS_BETWEEN_DATES
*Returnsmonthsbetweentwodates.Bothdatesareincludedinthe
*computation.Anindividualprorataismadeforeachmonth
*Meaningofparameterp_compl:
*'B'accumulateallcompletemonthsandin/completefirstmonth
*'E'accumulateallcompletemonthsandin/completelastmonth
*''accumulateallmonths(incompleteandcomplete)
*'X'accumulateonlycompletemonths
http://wiki.scn.sap.com/wiki/display/ABAP/Function+Module+related+on+Date+calculations
1/4
1/17/2016
FunctionModulerelatedonDatecalculationsABAPDevelopmentSCNWiki
HR_CALC_YEAR_MONTH_DAY
Givesthedifferencebetweenthedatesindays,weeks,years
HR_E_NUM_OF_DAYS_OF_MONTH
Numberofdaysinthegivenmonth
HR_HCP_ADD_MONTH_TO_DATE
Addmonthstodate
HR_IN_GET_DATE_COMPONENTS
SplitsrgegivendateinDAY,MONTH,YEAR,MonthSmallTEXT&MonthLongTEXT
HR_MONTHS_BETWEEN_TWO_DATES
Givesmonthsbteweenthetwodates
HR_SGPBS_YRS_MTHS_DAYS
GivesthedifferencebetweendatesinDay,Months,years7calendarDays
HRAR_SUBTRACT_MONTH_TO_DATE
Subtract'sonemonthfromthedate
IDWT_READ_MONTH_TEXT
ReadthemonthText
LAST_WEEK
GettheLastweekNumber,Sundaydate&MondaydateforthegivenYearandWeeknumber
LOOK_FOR_TIME_TABLE
MONTH_NAMES_GET
Givesthelistof12monthstextinthegivenlanguage
MONTH_PLUS_DETERMINE
Addmonthstodate
MONTHS_BETWEEN_TWO_DATES
Givesmonthsbteweenthetwodates
MONTHS_BETWEEN_TWO_DATES_NEW
NEXT_WEEK
GettheNextweekNumber,Sundaydate&MondaydateforthegivenYearandWeeknumber
NUMBER_OF_DAYS_PER_MONTH_GET
GivesyouthenumberofdayspermonthconsideringtheYear
OIL_LAST_DAY_OF_MONTH
Givesthelastdayofthemonth
OIL_LAST_DAY_OF_PREVIOUS_MONTH
Givesthelastdayoftheprevousmonth
OIL_MONTH_GET_FIRST_LAST
Givesthemonthfirstdaydate&lastdaydate
RE_ADD_MONTH_TO_DATE
Addmonthstodate
RH_GET_DATE_DAYNAME
Givesthedaynumberintheweekanddaytext
RH_PM_CONVERT_DATE_TO_MONTH
RH_PM_CONVERT_DATE_TO_MONTH
Givesthedifferencebetweenthedatesinmonth
RH_PM_CONVERT_DATE_TO_YEAR
RP_CALC_DATE_IN_INTERVAL
Tocalculatethenewdatebyadding/Subdays,months&Year
SG_PS_GET_LAST_DAY_OF_MONTH
Lastdayofthemonth
TIME_CONVERSION
TM_DATE_CHECK_WORKINGDAY
WDKAL_DATE_ADD_FKDAYS
DATE_CHECK_PLAUSIBILITY
DATE_IN_FUTURE
CalculateFutureDates
DURATION_DETERMINE
Calendar:Determinedurationbetweentw
DELTA_TIME_DAY_HOUR
DifferenceBetweenDate&Time
CALCULATE_DATE
Yearentry:2charact.to
HR_SEN_CRULE_0100_DATE
CalculationofaDate(1Year=12Months,1Month=30Days)
DATE_2D_TO_4D_CONVERSION
Nolabels
4Comments
J@Y
GoodoneAvinash.
http://wiki.scn.sap.com/wiki/display/ABAP/Function+Module+related+on+Date+calculations
2/4
1/17/2016
FunctionModulerelatedonDatecalculationsABAPDevelopmentSCNWiki
Guest
manytypo'sindescription.example:Givesmonthsbteweenthetwodates
Guest
HiAvinash,
Someofthefunctionmoduleslistedabovebehaveoddly...andgiveouputwhichdoesnothaveanyreason...
LIke:
RP_CALC_DATE_IN_INTERVAL:
Date:28.01.2011
Days:10
Months:1
SIGNUM:+
Andtheoutput:CALC_DATE:07.03.2011
whereas:
HR_99S_DATE_ADD_SUB_DURATION:
Date:28.01.2011
IM_OPERATOR:+
IM_DURATION:0110
Andtheoutput:CALC_DATE:10.03.2011
sothedifferenceindatecalcutionsdiffer.
CanIknowthereason.
Ineedthefuturedatebygivingthesourcedate,numberofmonths,daysandyearstobeadded.
Needtoknowtheexactfunctionmoduleforthisscenario.
Pleasehelpmeout.
Regards
harish
http://wiki.scn.sap.com/wiki/display/ABAP/Function+Module+related+on+Date+calculations
3/4
1/17/2016
FunctionModulerelatedonDatecalculationsABAPDevelopmentSCNWiki
Guest
HiAvinash,
Someofthefunctionmoduleslistedabovebehaveoddly...andgiveouputwhichdoesnothaveanyreason...
LIke:
RP_CALC_DATE_IN_INTERVAL:
Date:28.01.2011
Days:10
Months:1
SIGNUM:+
Andtheoutput:CALC_DATE:07.03.2011
whereas:
HR_99S_DATE_ADD_SUB_DURATION:
Date:28.01.2011
IM_OPERATOR:+
IM_DURATION:0110
Andtheoutput:CALC_DATE:10.03.2011
sothedifferenceindatecalcutionsdiffer.
CanIknowthereason.
Ineedthefuturedatebygivingthesourcedate,numberofmonths,daysandyearstobeadded.
Needtoknowtheexactfunctionmoduleforthisscenario.
Pleasehelpmeout.
Regards
harish
ContactUs
Privacy
SAPHelpPortal
TermsofUse
LegalDisclosure
Copyright
http://wiki.scn.sap.com/wiki/display/ABAP/Function+Module+related+on+Date+calculations
FollowSCN
4/4