cancel
Showing results for 
Search instead for 
Did you mean: 

Date Rule in Activity Transaction

Former Member
0 Kudos

Date Rule: 'Change Date' = Start Date + 5 Days. Can you please verfiy the below code is correct for this rule?

My Rule XML Code:

<?xml version="1.0"?>

<SAPTimeRule>

<TimeRuleTree>

<!-- Begin of Rule Tree -->

<ruleline>

<!-- Begin of new LINE -->

<AssignTimeExp displaytype="AssignTime">

<!-- Assign time -->

<VarTimeExp displayType="VarTime"

name="RESULT"

position='B'>

<!-- Variable: Time -->

</VarTimeExp>

<MoveTimeExp displaytype="MoveTime" direction="+">

<!-- Move -->

<ConstLocTimeExp displaytype="ConstLocTime"

date="*START*"

time="000000"

timeunit="DAY">

<VarObjectExp displaytype="VarObject"

name="SYSTEM"/>

</ConstLocTimeExp>

<ConstDuraExp displaytype="ConstDura"

duration="*5*" timeunit="DAY">

<!-- Constant Duration -->

<VarObjectExp displaytype="VarObject"

name="SYSTEM"/>

<!-- Variable: Timeobject -->

</ConstDuraExp>

</MoveTimeExp>

</AssignTimeExp>

</ruleline>

</TimeRuleTree>

</SAPTimeRule>

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hmmm... What is "START"? Have defined a Date Type for that? If so, you have to define that as a variable. If your intention is to find Result = Start + 5 days where Start is the current system time, then, Start should be defined as a variable or if you want to use the constant varaible use "now" instead of "START".

See PPFDEMO date rule - Today + 2 Days for help...

Former Member
0 Kudos

Hi,

Did you get any error when you tested the date calculation?

regards.