Showing posts with label Addition of Day to ABAP Date Field. Show all posts
Showing posts with label Addition of Day to ABAP Date Field. Show all posts

Saturday, May 30, 2015

Add Day, Month, Year to DATE Variable in ABAP

CALL FUNCTION 'RP_CALC_DATE_IN_INTERVAL'
  EXPORTING
    DATE            = SY-DATUM
    DAYS            = 0                  "Give the number of day to add or subtract
    MONTHS          = 1            
"Give the number of months to add or subtract
    SIGNUM          = '-'             " For Addition give (+) and for Subtraction give (-)
    YEARS           = 0               "Give the number of years to add or subtract  
  IMPORTING
    CALC_DATE       = ZFBDT.