Skip to Content
0
Former Member
Mar 30, 2010 at 07:03 PM

Date Rule in Activity Transaction

80 Views

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>