‎2007 Jul 19 3:27 PM
Hi Experts,
i have a input date field yyyymmdd format
i need enddate and return value
Points will be rewarded
‎2007 Jul 19 3:28 PM
Hi,
if you are asking about the enetered date it will be stored the variable of the input field.
Reward if helpful.
‎2007 Jul 19 3:31 PM
Hi,
Use following FM
DATE_GET_WEEK
DATE_COMPUTE_DAY
DATE_COMPUTE_TO_FACTORYDATE
Reward points if helpful
Regards.
Srikanta Gope
‎2007 Jul 19 3:31 PM
Hi,
Please try FM RP_CALC_DATE_IN_INTERVAL.
Let's say you want to add 5 days from current date and FM will return enddate.
data: wa_sdate like sy-datum,
wa_edate like sy-datum.
move sy-datum to wa_sdate.
call function 'RP_CALC_DATE_IN_INTERVAL'
exporting
date = wa_sdate
days = 5
months = 0
signum = '+'
years = 0
importing
calc_date = wa_edate.
write: / wa_edate.
Regards,
Ferry Lianto
‎2007 Jul 19 3:31 PM
Hi ,
DATE_CHECK_PLAUSIBILITY Check to see if a date is in a valid format for SAP. Works well when validating dates being passed in from other systems.
DATE_COMPUTE_DAY Returns a number indicating what day of the week the date falls on. Monday is returned as a 1, Tuesday as 2, etc.
DATE_GET_WEEK will return the week that a date is in.
DATE_IN_FUTURE Calculate a date N days in the future.
DAY_ATTRIBUTES_GET
<b>Reward pts if found usefull :)</b>
Regards,
Sathish