on 06-10-2013 3:34 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
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
User | Count |
---|---|
3 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.