Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Date check

Former Member
0 Likes
532

Hi Experts,

i have a input date field yyyymmdd format

i need enddate and return value

Points will be rewarded

4 REPLIES 4
Read only

Former Member
0 Likes
502

Hi,

if you are asking about the enetered date it will be stored the variable of the input field.

Reward if helpful.

Read only

Former Member
0 Likes
502

Hi,

Use following FM

DATE_GET_WEEK

DATE_COMPUTE_DAY

DATE_COMPUTE_TO_FACTORYDATE

Reward points if helpful

Regards.

Srikanta Gope

Read only

ferry_lianto
Active Contributor
0 Likes
502

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

Read only

Former Member
0 Likes
502

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