| | Order Processing Shipment planning and order processing - including data requirements, line items, ship units, order bases and order releases. |  | | 
October 8th, 2008, 11:37
| | Junior Member | | Join Date: Oct 2008
Posts: 21
Groans: 0
Groaned at 0 Times in 0 Posts
Thanks: 2
Thanked 0 Times in 0 Posts
Rep Power: 0 | | | How to assign Itinerary to OR automatically The question is: How to assign Itinerary to Order Release (OR) automatically according some attributes in OR?
For each lane or source\destination we have one standard Itinerary. After OR was created I want system to put this standard Itinerary into field Buy Fixed Itinerary in Constraints tab.
As I know the only way in OTM to do that is to use Auto Assignment Rule. But assignment type choices are limited and there is nothing about Itinerary.
Is it possible to add the assignment type for this situation (Order Release - Buy Fixed Itinerary)?
May be there are another ways to solve it?
Thanks for any help! | 
October 9th, 2008, 01:44
| | Member | | Join Date: Dec 2007
Posts: 87
Groans: 1
Groaned at 1 Time in 1 Post
Thanks: 5
Thanked 16 Times in 16 Posts
Rep Power: 3 | | | Re: How to assign Itinerary to OR automatically We use agents to perform this sort of action.
We have saved Conditions that look for certain refnums on the OB, then we set the Itinerary/Mode based on these.
I am not sure if this is the best way to do it, but it does the job.
Cheers, | 
October 9th, 2008, 05:46
| | Junior Member | | Join Date: Oct 2008
Posts: 21
Groans: 0
Groaned at 0 Times in 0 Posts
Thanks: 2
Thanked 0 Times in 0 Posts
Rep Power: 0 | | | Re: How to assign Itinerary to OR automatically Hi James! Thank's for answering :-)
I thought about agent and I like the idea of saved condition, but how exactly do you set the Itinerary/Mode in OR? Is it direct SQL update or some other action? I tried to make SQL statement for it, but I don't know how to affect ONLY ORs that satisfy saved condition.
If you use statement
update ORDER_RELEASE
set FIXED_ITINERARY_GID='TEST.ITINERARY_1'
you'll update all the ORs... | 
October 9th, 2008, 06:13
| | Member | | Join Date: Nov 2007 Location: Chennai, India
Posts: 90
Groans: 0
Groaned at 0 Times in 0 Posts
Thanks: 10
Thanked 3 Times in 3 Posts
Rep Power: 3 | | | Re: How to assign Itinerary to OR automatically Quote:
Originally Posted by Kiseleva Hi James! Thank's for answering :-)
I thought about agent and I like the idea of saved condition, but how exactly do you set the Itinerary/Mode in OR? Is it direct SQL update or some other action? I tried to make SQL statement for it, but I don't know how to affect ONLY ORs that satisfy saved condition.
If you use statement
update ORDER_RELEASE
set FIXED_ITINERARY_GID='TEST.ITINERARY_1'
you'll update all the ORs... | Add a where condition to your update query, say for e.g if you are going to fix the itinerary based on your source/destination,define those locations in the where condition of your update query,
update ORDER_RELEASE
set FIXED_ITINERARY_GID='TEST.ITINERARY_1'
where SOURCE_LOCATION_GID='XXX' and DEST_LOCATION_GID='YYY'
__________________ Regds
Arun. | 
October 9th, 2008, 06:32
| | Junior Member | | Join Date: Oct 2008
Posts: 21
Groans: 0
Groaned at 0 Times in 0 Posts
Thanks: 2
Thanked 0 Times in 0 Posts
Rep Power: 0 | | | Re: How to assign Itinerary to OR automatically Hi Arun! Thanks for attention to my problems :-)
I understand that I can use where condition in SQL but in this case what sense in saved condition that I've defined in the first tab of the Agent?
Actually saved conditions is more understandable instrument for users to regulate 'default' itineraies than SQL. | 
October 9th, 2008, 06:51
| | Member | | Join Date: Nov 2007 Location: Chennai, India
Posts: 90
Groans: 0
Groaned at 0 Times in 0 Posts
Thanks: 10
Thanked 3 Times in 3 Posts
Rep Power: 3 | | | Re: How to assign Itinerary to OR automatically One way i would suggest is instead of writing IF, ELSE on saved condition, write an agent that looks for OR Created event and in the actions tab do a direct sql update with the query you have created.
__________________ Regds
Arun. | 
October 9th, 2008, 07:17
| | Junior Member | | Join Date: Oct 2008
Posts: 21
Groans: 0
Groaned at 0 Times in 0 Posts
Thanks: 2
Thanked 0 Times in 0 Posts
Rep Power: 0 | | | Re: How to assign Itinerary to OR automatically Good idea, but how exactly can I call OTM saved condition that I've created ( Business Process Automation--> Power Data--> Event Management--> Saved Conditions)
from SQL statement? | 
October 9th, 2008, 07:40
| | Member | | Join Date: Nov 2007 Location: Chennai, India
Posts: 90
Groans: 0
Groaned at 0 Times in 0 Posts
Thanks: 10
Thanked 3 Times in 3 Posts
Rep Power: 3 | | | Re: How to assign Itinerary to OR automatically Quote:
Originally Posted by Kiseleva | Why do you want to call the saved condtions incase if you are going to use a direct SQL update?
Instead of creating saved quries and conditions use the Direct SQL update action in the agent and wite your own SQL there.
Let me know if i didnt understand your question.
__________________ Regds
Arun. | 
October 9th, 2008, 08:18
| | Junior Member | | Join Date: Oct 2008
Posts: 21
Groans: 0
Groaned at 0 Times in 0 Posts
Thanks: 2
Thanked 0 Times in 0 Posts
Rep Power: 0 | | | Re: How to assign Itinerary to OR automatically I understand that it's possible to write SQL which satisfy the conditions we need, but...
Actually I'm trying to find another tool (not SQL) to assign Itineraries to ORs because it'll be too complex for my customer to write their own SQLs for every new condition that will appear. | 
October 9th, 2008, 09:36
| | Member | | Join Date: Nov 2007 Location: Chennai, India
Posts: 90
Groans: 0
Groaned at 0 Times in 0 Posts
Thanks: 10
Thanked 3 Times in 3 Posts
Rep Power: 3 | | | Re: How to assign Itinerary to OR automatically Apart from using Automation agents i really don't have an idea how this can be acheived.
One another way, provided if your OR's are not getting created in OTM and feeded from outside as XML's you can directly update that XML in the integration.
But this is something out of box from OTM.
__________________ Regds
Arun. |  | | | Thread Tools | | | | Display Modes | Linear Mode |
Posting Rules
| | | | |