Google Search - Blog...........

ABAP - Fetch Date By Adding Two Time Using ADD_TIME_TO_DATE

report .

data: i_date like SY-DATUM ,
date like SY-DATUM .

i_date = sy-datum .

CALL FUNCTION 'ADD_TIME_TO_DATE'
EXPORTING
I_IDATE = i_date "Original date
I_TIME = '1' " Ammount to add
I_IPRKZ = '3' " unit: 'blank'-days 1-weeks 2-months 3-years
* I_RDMHD =
IMPORTING
O_IDATE = date ."new date

write:/ date .

No comments:

Post a Comment