Add time to a date and time using FM C14B_ADD_TIME

Author | Last Updated| | 20 Comments Facebook Share Twitter Share Google Plus Share A+ A-


Adding time to a date and time to determine new date time using function module C14B_ADD_TIME

When developing a SAP ABAP report based on date calculations, we may need to add time to a date and do some reporting, in the below tutorial, we will be learning how to add time to a date.

FUNCTION MODULE: C14B_ADD_TIME

When using below FM we need to pass start date (what is the start date), start time (what is start time) and add time (time to be added), below is the example program.

REPORT zadd_date_time.

DATA: lv_newdate TYPE d.
DATA: lv_newtime TYPE t.

PARAMETERS: p_ntime TYPE t.  "Time to be added
PARAMETERS: p_sdate TYPE d. "Start Date
PARAMETERS: p_stime TYPE t. "Start Time

START-OF-SELECTION.

  CALL FUNCTION 'C14B_ADD_TIME'
    EXPORTING
      i_starttime = p_stime
      i_startdate = p_sdate
      i_addtime   = p_ntime
    IMPORTING
      e_endtime   = lv_newtime
      e_enddate   = lv_newdate.

  WRITE:/ 'Added Date and Time are:'.
  WRITE:/ 'DATE:', lv_newdate.
  WRITE:/ 'TIME:', lv_newtime.

Example 1: With the above program we will be adding time example 13 hours to today date and current time.

add time to date SAP ABAP

add time to date SAP ABAP

Tutorial Comments

Total Comments: Add your Comment
02 May 2021

Aceon https://uspharmus.com/ - Aciphex walmart pharmacy viagra

03 May 2021

uninsured cost of cialis https://asciled.com/ cialis pills overnight

05 May 2021

cialis samples online https://cialisee.com/ - generic cialis prices cialisnonprecription

07 May 2021

how to buy cialis in sydney https://ucialisdas.com/ buy cialis

11 May 2021

Viagra Oral Jelly Tadacip overseas pharmacies

11 May 2021

Viagra Oral Jelly Tadacip overseas pharmacies

11 May 2021

cialis w/o perscription https://rcialisgl.com/ cialis online pharmacy australia

11 May 2021

cialis w/o perscription https://rcialisgl.com/ cialis online pharmacy australia

11 May 2021

cheap cheap viagra https://llviagra.com/ - fast delivery viagra viagra side effects in infants

11 May 2021

cheap cheap viagra https://llviagra.com/ - fast delivery viagra viagra side effects in infants

12 May 2021

where can i buy cialis in the uk http://cialisee.com/ cialis low dose

12 May 2021

where can i buy cialis in the uk http://cialisee.com/ cialis low dose

12 May 2021

what are the side effect of viagra https://loxviagra.com/ over the counter viagra substitute cvs

12 May 2021

what are the side effect of viagra https://loxviagra.com/ over the counter viagra substitute cvs

14 May 2021

cialis canada and paypal https://ucialisdas.com/ - how much does cialis cost without insurance cialis dapoxetine canada

14 May 2021

cialis canada and paypal https://ucialisdas.com/ - how much does cialis cost without insurance cialis dapoxetine canada

15 May 2021

low price viagra http://jokviagra.com/ - can you take viagra with high blood pressure cheapest viagra

15 May 2021

low price viagra http://jokviagra.com/ - can you take viagra with high blood pressure cheapest viagra

17 May 2021

top rated canadian pharmacies online safe canadian pharmacies Trandate

17 May 2021

top rated canadian pharmacies online safe canadian pharmacies Trandate

Leave a Comment

Enter Comment Text