Function Module related on Date calculations

来源:互联网 发布:python sys.agv 编辑:程序博客网 时间:2024/06/05 04:25

http://wiki.sdn.sap.com/wiki/display/ABAP/Function+Module+related+on+Date+calculations

 RKE_SELECT_FACTDAYS_FOR_PERIOD     Get working days between two dates according to the Factory Calendar

HOLIDAY_GET                                                   Get holidays between two dates according to the Factory Calendar & Holiday Calendar

Function Modules

Description/SAPNEA/J_SC_CONVERT_DATECovert Date in Japanese Format/SDF/CMO_DATETIME_DIFFERENCECalculates difference between two dates/timestamps.ADD_TIME_TO_DATEAdd time to dateBKK_ADD_MONTH_TO_DATEAdd months to dateBKK_ADD_WORKINGDAY
BWSO_DATE_GET_FIRST_WEEKDAYGives the First date of the week for the given dateCACS_DATE_GET_TIMESTAMPConcatenates the date and time format 11-12-2008 10:11:11CACS_DATE_GET_YEAR_MONTHGives the Year and month for the given dateCACS_TIMESTAMP_GET_DATEGet date and time from TimestampCONVERT_TIME_TERMS
DATE_CHECK_WORKINGDAYCheck the day is working day or not for given date & calendar idDATE_CHECK_WORKINGDAY_MULTIPLECheck the day is working day or not for given date in muliple calendar idDATE_COMPUTE_DAYGives the day number in the week (EX 1-Mon,2-TUE etc)DATE_CONVERT_TO_WORKINGDAY
DATE_TO_DAYGives the day of the date(Ex Monday, Tuesday etc)DATE_TO_DAYGet the day of the date (Ex Mon.Tue etc)F4_DATEFM for F4 help for DateFIMA_DAYS_AND_MONTHS_AND_YEARS
FIMA_DECIMAL_MONTHS_AND_YEARSGives the difference between the dates in decimal foemat of number of month & yearsGET_WEEK_INFO_BASED_ON_DATEGet the week Number, Sunday date & Monday date for the given dateHR_99S_DATE_ADD_SUB_DURATIONAdd/Subtract months(M)/days(D)/years(Y) to given date to get the future dateHR_99S_DATE_MINUS_TIME_UNITSubtract months(M)/days(D)/years(Y) to given date to get the future dateHR_99S_DATE_PLUS_TIME_UNITAdd months(M)/days(D)/years(Y) to given date to get the future dateHR_99S_INTERVAL_BETWEEN_DATESGives the difference between the dates in days, weeks, yearsHR_99S_MONTHS_BETWEEN_DATES*  Returns months between two dates. Both dates are included in the
*  computation. An individual prorata is made for each month
*  Meaning of parameter p_compl:
*  'B' accumulate all complete months and in/complete first month
*  'E' accumulate all complete months and in/complete last month
*  ' ' accumulate all months (incomplete and complete)
*  'X' accumulate only complete monthsHR_CALC_YEAR_MONTH_DAYGives the difference between the dates in days, weeks, yearsHR_E_NUM_OF_DAYS_OF_MONTHNumber of days in the given monthHR_HCP_ADD_MONTH_TO_DATEAdd months to dateHR_IN_GET_DATE_COMPONENTSSplits rge given date in DAY, MONTH, YEAR, Month Small TEXT & Month Long TEXTHR_MONTHS_BETWEEN_TWO_DATESGives months bteween the two datesHR_SGPBS_YRS_MTHS_DAYSGives the difference between dates in Day,Months, years 7 calendar DaysHRAR_SUBTRACT_MONTH_TO_DATESubtract's one month from the dateIDWT_READ_MONTH_TEXTRead the month TextLAST_WEEKGet the Last week Number, Sunday date & Monday date for the given Year and Week numberLOOK_FOR_TIME_TABLE
MONTH_NAMES_GETGives the list of 12 months text in the given languageMONTH_PLUS_DETERMINEAdd months to dateMONTHS_BETWEEN_TWO_DATESGives months bteween the two datesMONTHS_BETWEEN_TWO_DATES_NEW
NEXT_WEEKGet the Next week Number, Sunday date & Monday date for the given Year and Week numberNUMBER_OF_DAYS_PER_MONTH_GETGives you the number of days per month considering the YearOIL_LAST_DAY_OF_MONTHGives the last day of the monthOIL_LAST_DAY_OF_PREVIOUS_MONTHGives the last day of the prevous monthOIL_MONTH_GET_FIRST_LASTGives the month first day date & last day dateRE_ADD_MONTH_TO_DATEAdd months to dateRH_GET_DATE_DAYNAMEGives the day number in the week and day textRH_PM_CONVERT_DATE_TO_MONTH
RH_PM_CONVERT_DATE_TO_MONTHGives the difference between the dates in monthRH_PM_CONVERT_DATE_TO_YEAR
RP_CALC_DATE_IN_INTERVALTo calculate the new date by adding/Sub days, months & YearSG_PS_GET_LAST_DAY_OF_MONTHLast day of the monthTIME_CONVERSION
TM_DATE_CHECK_WORKINGDAY
WDKAL_DATE_ADD_FKDAYS
DATE_CHECK_PLAUSIBILITY
 
   DATE_IN_FUTURECalculate Future Dates   DURATION_DETERMINE
Calendar: Determine duration between twDELTA_TIME_DAY_HOUR
Difference Between  Date & TimeCALCULATE_DATEYear entry: 2-charact. toHR_SEN_CRULE_0100_DATECalculation of a Date (1 Year = 12 Months, 1 Month = 30 Days)  DATE_2D_TO_4D_CONVERSION

 

原创粉丝点击