Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Function for TIME

Former Member
0 Likes
743

Hello ABAP gurus,

what are the functions for time?

i'm working on a program which check hour and add minutes.

please help.

Thank you very much!

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
648

Hello ,

You can use C14B_ADD_TIME . It takes Input as Time , Date and the time to be added as input .

Regards

Saket Sharma

3 REPLIES 3
Read only

Former Member
0 Likes
649

Hello ,

You can use C14B_ADD_TIME . It takes Input as Time , Date and the time to be added as input .

Regards

Saket Sharma

Read only

Former Member
0 Likes
648

Hi

these are the function modules related to Date and time

Hope it will b helpful for you.

CALCULATE_DATE : Calculates the future date based on the input .

DATE_TO_DAY : Returns the Day for the entered date.

DATE_COMPUTE_DAY : Returns weekday for a date

DATE_GET_WEEK : Returns week for a date

DAY_ATTRIBUTES_GET : Returns attributes for a range of dates specified

MONTHS_BETWEEN_TWO_DATES : To get the number of months between the two dates.

END_OF_MONTH_DETERMINE_2 : Determines the End of a Month.

HR_HK_DIFF_BT_2_DATES : Find the difference between two dates in years, months and days.

FIMA_DAYS_AND_MONTHS_AND_YEARS : Find the difference between two dates in years, months and days.

MONTH_NAMES_GET : Get the names of the month

WEEK_GET_FIRST_DAY : Get the first day of the week

HRGPBS_HESA_DATE_FORMAT : Format the date in dd/mm/yyyy format

SD_CALC_DURATION_FROM_DATETIME : Find the difference between two date/time and report the difference in hours

L_MC_TIME_DIFFERENCE : Find the time difference between two date/time

HR_99S_INTERVAL_BETWEEN_DATES : Difference between two dates in days, weeks, months

LAST_DAY_OF_MONTHS : Returns the last day of the month

DATE_CHECK_PLAUSIBILITY :Check for the invalid date.

DATE_2D_TO_4D_CONVERSION :Year entry: 2-character to 4-character.

DAY_IN_WEEK :Input date and will give the name of the day 1-monday,2-Tuesday....

Reward with Points if info is helpful

Regards

Karan

Read only

Former Member
0 Likes
648

dear jologs01 ,

please try to search yourself in SE37 by type TIME* and F4.

you will find lots of time relating function.than use them according your requirement.

please mark if helpful.

Amit.