Skip to content

Instantly share code, notes, and snippets.

@hugo-dc
Created May 30, 2012 23:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hugo-dc/2839603 to your computer and use it in GitHub Desktop.
Save hugo-dc/2839603 to your computer and use it in GitHub Desktop.
Restar días o meses a una fecha
REPORT zexample.
DATA:
v_fecha1 LIKE sy-datum,
v_fecha2 LIKE sy-datum.
v_fecha1 = sy-datum.
CALL FUNCTION 'CALCULATE_DATE'
EXPORTING
days = '-10'
* MONTHS = '0'
start_date = sy-datum
IMPORTING
result_date = v_fecha2.
WRITE:/ v_fecha2.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment