‎2008 Nov 12 10:19 AM
Hi All,
If Iam having a date, say 28/02/2008. I wan to add '1' to this date.
DATE1 = '20080228'.
DATE2 = DATE1 + 1.
Now DATE2 will gimme '20080229'. But I should get 2008/03/01.
Is it possible ot get the same.
Regards,
Viji
‎2008 Nov 12 10:21 AM
Hi,
Use this Function module
CONVERSION_EXIT_PDATE_OUTPUT Conversion Exit for Domain GBDAT: YYYYMMDD -> DD/MM/YYYY
Regards
Manasa
‎2008 Nov 12 10:21 AM
Hi,
Use this Function module
CONVERSION_EXIT_PDATE_OUTPUT Conversion Exit for Domain GBDAT: YYYYMMDD -> DD/MM/YYYY
Regards
Manasa
‎2008 Nov 12 10:24 AM
Hi Manasa,
I think 'CONVERSION_EXIT_PDATE_OUTPUT' will not help for this.
Regards,
Viji.
‎2008 Nov 12 10:30 AM
hii,
we have 29 days in feb this year.
with regards,
sandeep akella.
‎2008 Nov 12 10:27 AM
Hi,
It is the correct result. Year 2008 is a Leap year and has 29 days. IF you change the year to 2007 or 2009, it will give you 1st March.
If you want 2008 add 2 to the date 20080228 , you will get what you want.
regards,
Advait
‎2008 Nov 12 10:29 AM
This code works.
DATA: l_date TYPE sy-datum.
l_date = sy-datum.
l_date = l_date + 1.
WRITE l_date.
Regards
Sam
‎2008 Nov 12 10:30 AM
REPORT ZSRK_045 .
DATA : V_DATE LIKE SY-DATUM.
DATA : DATE LIKE SY-DATUM.
DATE = '20080228'.
CALL FUNCTION 'RP_CALC_DATE_IN_INTERVAL'
EXPORTING
DATE = DATE
DAYS = 1
MONTHS = 0
SIGNUM = '+'
YEARS = 0
IMPORTING
CALC_DATE = V_DATE.
WRITE : / V_DATE.
‎2008 Nov 12 10:31 AM
hi,
2008 is a leap year
try the same with date 20070228
you will get the desired result.
Regards,
Prakash Pandey
‎2008 Nov 12 10:31 AM
‎2008 Nov 12 10:32 AM
‎2008 Nov 12 10:33 AM
Hi,
The ouput you are getting is correct. 2008 is a leap year.
Thanks.