cancel
Showing results for 
Search instead for 
Did you mean: 

Service Confirmation Date Issue

vinayak1
Explorer
0 Kudos

Hi ,

We have an requirment , in Service Confriamtions  we have a requirement where  if "start of work " is given End date should be 1 Hour more than theStart of date + current time , howere when we try to change the Start of Date to any previous date ( that is more than 24 hours ) we are getting a message that

"End date may be a maximum of 24 hours after the start date" , which Is a standard message.

Now Is there any way we can configure date profile such that it should take "Start of Date " = "Date Given " , "Date Work Ends " = " Start of Date + 1 1hour "

Please note that , the days might be 2 or more ( which exceeds 24 hour ) .

Could any one give me some more idea how to fix this ??

Regards

Vinayak

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello Vinayak

The standard behaviour for service confirmation is that it would not accept more than 24 hours for one line item. Because its integrated to time integration in ECC .

If you want to add more than 24 hours then add 2 line item in service confirmation.

Regards

Naresh

vinayak1
Explorer
0 Kudos

Hi Naresh ,

In scenarios we dont have billing based on hours , meaning we are trying to Add , 1 hour to whatever Start Date as is given by user .

I wrote the  XML rule based on the "Start Date " and adding 1 hour as constant , so that it places 1 hour to the "start date " however I am not able to get the desired result .

Here is the XML rule , however it is not working , even after all configs in place.

  

<?xml version="1.0"?>
<TimeRule>
   <TimeRuleTree>
      <ruleline>
         <AssignTimeExp displaytype="AssignTime">
            <VarTimeExp displayType="VarTime"
                               name="RESULT"
                           position='B'>
            </VarTimeExp>
               <MoveTimeExp displaytype="MoveTime" direction="+">
                  <VarTimeExp displayType="VarTime"
                                     name="SRVC_ACTUAL"
                                     position="B">
                  </VarTimeExp>
                  <VarDuraExp displayType="VarDura"
                                     name="ZCONSTANT">
                  </VarDuraExp>
               </MoveTimeExp>
        </AssignTimeExp>
      </ruleline>

   </TimeRuleTree>
</TimeRule>

Regards

Vinayak

vinayak1
Explorer
0 Kudos

Hi ,

Can any one give me some idea on , how to fix this ?

Thanks !

Vinayak

Former Member
0 Kudos

Hi Vinayak,

               You can go for CRM_APPOINTMENT_BADI. write here as u want

in XML

<VarDuraExp displayType="VarDura"

                                     name="ZCONSTANT"> what is ZCONSTANT?

Thanks

suresh

vinayak1
Explorer
0 Kudos

Hi Suresh

Thanks for the answer . I am adding as 1 hour as Constant in ZConstant.

Do CRM_APPOINTMENT_BADI. will be triggered for Service scenarios ?

Regards

Vinayak

Former Member
0 Kudos

Hi Vinayak,

          CRM_APPOINTMENT_BADI badi will trigger for every transaction.

U can create the date rule as below, example

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

               <VarObjectExp displaytype="VarObject" name="SYSTEM"/>

            </ConstLocTimeExp>

                 <ConstDuraExp displaytype="ConstDura"

                                  duration="1" timeunit="HOUR">

                 <!-- Constant Duration -->

                    <VarObjectExp displaytype="VarObject"

                                  name="SYSTEM"/>

                    <!-- Variable: Timeobject -->

                 </ConstDuraExp>

           </MoveTimeExp>

         </AssignTimeExp>

      </ruleline>

   </TimeRuleTree>

Thanks

Suresh

vinayak1
Explorer
0 Kudos

Hi Suresh ,

Thanks for the revert again .

I dont think we can achieve this via Date Rules config , as my requirement is to "read" the start date which is entered by user and add 1 hour to it . I tried to read "SRVC_ACTUAL"  in the XML and based on the value of "SRVC_ACTUAL" , I added 1 HOUR to it .

However it is not taking this up .

Regards

Vinayak

Former Member
0 Kudos

Hi Vinayak,

               My xml will tack the creation date and time of the order and adds 1 hour to it.

If date rule can't fulfill , then use badi.

Thanks

sureshb

Answers (0)