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 Logic

Former Member
0 Likes
501

I have date range comming in my selection screen:

for eg: 23/08/2006 and 31/11/2006.

I need to validate these two dates in two select criteria.

a) For Daily -> I need the dates from 23/08/2006 to 31/08/2006.

b) For Monthly -> I need 09/2006 to 11/2006.

Can Anyone tell me how Do i go about this.

Thanks in Advance

Prince

I have date range comming in my selection screen:

for eg: 23/08/2006 and 31/11/2006.

I need to validate these two dates in two select criteria.

a) For Daily -> I need the dates from 23/08/2006 to 31/08/2006.

b) For Monthly -> I need 09/2006 to 11/2006.

Can Anyone tell me how Do i go about this.

Thanks in Advance

Prince

3 REPLIES 3
Read only

rajeshkumar_kaveti
Participant
0 Likes
464

hi,

Put two radiabuttons in selection-screen. and validate the date based on the radiobutton selected.

ex:

if daily eq 'X'.

-


else.

-


endif.

Read only

Former Member
0 Likes
464

Hi

Use the seltab values as such

if seltab-low lt '20060803'

ENDIF.

IF seltab-high gt'20060831'

ENDIF.

Read only

shishupalreddy
Active Contributor
0 Likes
464

Hi ,

To validate the first field ie: sdate-low .

at selection-screen on sdate-low.

< here use the function module to get the last day of the month as entred in selection screen and take the day given in the selection screen .

check for the day between the two.

similarly for sdate-high.

at selection-screen on sdate-high.

<here use the function module to get the periods and check as per your requirement.

regards,