Created
May 30, 2012 23:45
-
-
Save hugo-dc/2839603 to your computer and use it in GitHub Desktop.
Restar días o meses a una fecha
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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