Quantcast
Channel: SCN : All Content - SAP CRM: Webclient UI - Framework
Viewing all articles
Browse latest Browse all 4552

Date rule considering only work days

$
0
0

Hello,

 

I need to create a date rule like Today + 3 days.

 

But I need that the system just considers work days, ie, it should not consider saturday and sunday.

 

I copy one standard rule and changed the parameter to 3 days, but I would need to add some code to consider only work days.

 

Any idea?

 

Thanks and regards!

Susana Messias

 

<?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="now"

                          time="000000"

                          timeunit="DAY">

                     <VarObjectExp displaytype="VarObject"

name="SYSTEM"/>

                   </ConstLocTimeExp>

                 <ConstDuraExp displaytype="ConstDura"

                                  duration="3" timeunit="DAY">

                 <!-- Constant Duration -->

                    <VarObjectExp displaytype="VarObject"

                                  name="SYSTEM"/>

                    <!-- Variable: Timeobject -->

                 </ConstDuraExp>

           </MoveTimeExp>

         </AssignTimeExp>

      </ruleline>

   </TimeRuleTree>


Viewing all articles
Browse latest Browse all 4552

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>