cancel
Showing results for 
Search instead for 
Did you mean: 

Compare two dates using Rules in Syclo

Former Member
0 Kudos

Hi Friends,

i am using a transaction rule to concatenate the values from Service Order objects and return, Here we have a new requirement like below

Before fetch the values from Object, need to check if it is current date or greater, then allow the user to fetch values or otherwise don`t allow

So to check current date, i compared two date values like below in rule

IF

GTEQ

Date [ this Function will return Current date value right ?

Format String : Date

Format Tokens: mm/dd/yyyy

Current Object: Date value [ Agentry Date ] ex: 10/12/2015

Concatenate

Current Object: Ex1

Current Object: Ex2

Current Object: Ex3

Basically the above function is concatenate the values from Service order object and return the values to the Variable, Before concatenation i am trying to compare two date values.

But this is not working ! Am i missing anything ?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

I made slight changes in Rule like below

if

GTEQ

CurrentDate Property

Date

MM/dd/yyyy

Concatenate

x1

x2

x3

OR

Concatenate

Former Member
0 Kudos

Now the rule is working fine

bill_froelich
Product and Topic Expert
Product and Topic Expert
0 Kudos

Vignesh,

I am glad you found a solutions.  Please mark this Discussion with a Correct Answer and Helpful Answer where appropriate.  See http://scn.sap.com/community/support/blog/2013/04/03/how-to-close-a-discussion-and-why   Even if you discovered the solution without any outside contributions, it helps others to understand what the solution turned out to be.

--Bill

Answers (0)