cancel
Showing results for 
Search instead for 
Did you mean: 

Adjusting time based on rule

kngupta141
Participant
0 Kudos

Hi all,

I two fields in my screen start time and end time.

Based on start time i want adjust my end time.

Here is my rule

The above rule is not working any suggestions will be advisable.

Regards,

Gupta

Accepted Solutions (0)

Answers (1)

Answers (1)

kngupta141
Participant
0 Kudos

Can any one help me please

jason_latko
Active Contributor
0 Kudos

Gupta,

The rule looks fine.  It should add 30 minutes to whatever time is in PlannedStartTime.  Questions:

Where are you using this rule?  As an update rule on another field?  Transaction screen?

What data types are the fields?  DateTime, or Time?

When you say it isn't working, what is it doing then?

Jason Latko - Senior Product Developer at SAP

kngupta141
Participant
0 Kudos

Hi Jason,

It is update rule on end time. the data type is date and time

When i change the value of start time the value of end time is not getting updated.

Regards.

Gupta

kngupta141
Participant
0 Kudos

Please let me know if there is any other option available to do this

jason_latko
Active Contributor
0 Kudos

Gupta,

What platform are you using?  Try using SCREENFIELDVALUE -> PlannedStartTime (Constant) in your rule instead of Current Screenset.  SCREENFIELDVALUE accepts a constant value as a parameter.  Hand type in the field name into the constant.

Jason Latko - Senior Product Developer at SAP

kngupta141
Participant
0 Kudos

Hi Jason,

I am working IOS platform, I didn't understood the remaining.

sorry for that.

Regards,

Gupta

kngupta141
Participant
0 Kudos

Jason,

So, if i understood correctly

create a rule with constant value for start time and in update rule use the previously created rule and 1800 in sum function. is that right?

Gupta.

jason_latko
Active Contributor
0 Kudos

Gupta,

SUM

     SCREENFIELDVALUE

          PlannedStartTime (Constant)

     1800 (Constant)

Create your update rule like above and see if you get a different result.

Jason Latko - Senior Product Developer at SAP