otmfaqForumsBlogsRegister
FAQMembers ListCalendarToday's PostsSearch


 Subscribe Blogs:RSS
 Subscribe Forums:RSS
 Follow New Posts:Twitter
OTMFAQ Home
OTMFAQ Blogs
OTMFAQ Forums
OTM Wiki

OTM SIG
OTM Wiki
MavenWire

Go Back   Oracle OTM / G-Log GC3 Community Support > OTM / G-Log - Functional Topics > Order Processing
Reload this Page

Has anyone worked on location based shipment search?


Order Processing Shipment planning and order processing - including data requirements, line items, ship units, order bases and order releases.

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old July 2nd, 2009, 12:24
Junior Member
 
Join Date: May 2009
Posts: 8
Groans: 0
Groaned at 0 Times in 0 Posts
Thanks: 1
Thanked 0 Times in 0 Posts
Rep Power: 0
kabaliganesan is on a distinguished road
Has anyone worked on location based shipment search?

Hi, we are working on a scenario to list all shipments originating within a preset distance radius from a location. i.e., All shipments origination 50 miles from location A has to be listed.

Has anyone worked on this scenario?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old July 3rd, 2009, 05:37
Member
 
Join Date: May 2007
Posts: 43
Groans: 0
Groaned at 0 Times in 0 Posts
Thanks: 4
Thanked 4 Times in 4 Posts
Rep Power: 0
Srivathsana is on a distinguished road
Re: Has anyone worked on location based shipment search?

Hi,

If your Location A is fixed,you can make use of an shipment agent to populate a refnum in all the qualifying shipments and make use of that refnum while searching for these shipments.There is a seeded shipment agent action "EVALUATE PROXIMITY TO LOCATION".
I have not personally evaluated this option so far though.
__________________
Warm Regards,
Srivathsana
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old July 3rd, 2009, 12:33
Senior Member
 
Join Date: May 2007
Posts: 146
Groans: 0
Groaned at 1 Time in 1 Post
Thanks: 16
Thanked 5 Times in 5 Posts
Rep Power: 3
rj5316 is on a distinguished road
Re: Has anyone worked on location based shipment search?

not found on the buy shipments > actions ... where have you seen this ...

rgds--
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old July 3rd, 2009, 12:58
Junior Member
 
Join Date: Oct 2008
Posts: 12
Groans: 0
Groaned at 0 Times in 0 Posts
Thanks: 2
Thanked 3 Times in 2 Posts
Rep Power: 0
sujatha_g is on a distinguished road
Re: Has anyone worked on location based shipment search?

The action gets listed when event (agent event) is not given.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old July 3rd, 2009, 16:06
Senior Member
 
Join Date: May 2007
Posts: 146
Groans: 0
Groaned at 1 Time in 1 Post
Thanks: 16
Thanked 5 Times in 5 Posts
Rep Power: 3
rj5316 is on a distinguished road
Re: Has anyone worked on location based shipment search?

not clear what you are conveying here .....can you explain the navigation to this .......

rgds--
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old July 4th, 2009, 14:20
Member
 
Join Date: May 2007
Posts: 43
Groans: 0
Groaned at 0 Times in 0 Posts
Thanks: 4
Thanked 4 Times in 4 Posts
Rep Power: 0
Srivathsana is on a distinguished road
Re: Has anyone worked on location based shipment search?

Hi rj,

This can be seen as part of the seeded actions present with buy shipment agent.
__________________
Warm Regards,
Srivathsana
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old July 14th, 2009, 10:48
Member and Blogger
 
Join Date: Oct 2007
Location: Netherlands
Posts: 203
Groans: 0
Groaned at 2 Times in 1 Post
Thanks: 18
Thanked 31 Times in 28 Posts
Rep Power: 3
LourensGlog is on a distinguished road
Send a message via AIM to LourensGlog Send a message via Yahoo to LourensGlog
Re: Has anyone worked on location based shipment search?

Assuming you have the long/lats for all your locations in OTM, and you don't mind if the 50 mi is a crow flight distance, then you can take the mathematical route using the Spherical Law of Cosines: d = acos(sin(lat1).sin(lat2)+cos(lat1).cos(lat2).cos(l ong2−long1)).R.
It may be difficult though to convert this formula to sql within the 801 characters limit OTM allows for Saved Queries, but it's worth a try.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old July 14th, 2009, 15:14
Member and Blogger
 
Join Date: Oct 2007
Location: Netherlands
Posts: 203
Groans: 0
Groaned at 2 Times in 1 Post
Thanks: 18
Thanked 31 Times in 28 Posts
Rep Power: 3
LourensGlog is on a distinguished road
Send a message via AIM to LourensGlog Send a message via Yahoo to LourensGlog
Re: Has anyone worked on location based shipment search?

I took a shot and found out it wasn't that bad after all:

Create a Shipment Saved Query and put this in Find All:

select s.shipment_gid from shipment s, location l where s.source_location_gid=l.location_gid and acos(sin(#LAT#/57.29578)*sin(l.lat/57.29578)+cos(#LAT#/57.29578)*cos(l.lat/57.29578)*cos((l.lon-#LON#)/57.29578))*3962<50

Notes:
- Just replace #LAT# (twice!) and #LON# with the lat/long of your location A.
- The 50 at the end represents the maximum distance (crow flight) - change this if needed.
- The 3962 at the end is the radius of the earth in miles
- The 57.29578 stands for 180/pi and is used to convert degrees to radians. A more accurate statement would have been 180/acos(-1), but if I used this I got 'out of range' errors.

Last edited by LourensGlog; July 14th, 2009 at 15:20.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following 2 Users Say Thank You to LourensGlog For This Useful Post:
neoandr (July 30th, 2009), Sachin (July 16th, 2009)
Reply


Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Multistop Shipment With P/d At Same Location nipunlakhotia Planning 19 Yesterday 11:25
Allocatioon of BUY shipment based on Ship Unit Count Sanju Planning 2 July 3rd, 2009 12:30
Order Release and Shipment ID on same Search Resutls page grahampage Branding, Screen Sets, XSL/CSS and Translations 5 February 1st, 2008 14:42
Rate shipment based on distance dynamically soujanya Rating 11 December 18th, 2007 08:38
Adding Refnum to Search tab of Buy Shipment Screen Set moshe Branding, Screen Sets, XSL/CSS and Translations 0 November 12th, 2007 10:30



All times are GMT. The time now is 01:10.
Copyright © 2006-2009, Open Book Solutions LLC. All rights reserved.


Inactive Reminders By Icora Web Design

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40