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


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 December 10th, 2009, 02:12
Senior Member
 
Join Date: Aug 2008
Posts: 124
Groans: 0
Groaned at 0 Times in 0 Posts
Thanks: 2
Thanked 0 Times in 0 Posts
Rep Power: 3
vsevs is on a distinguished road
Direct SQL Update to clear Late Delivery Date

Hi,
We have a situation. Our customer doesn't want to work with two Pick up and delivery dates. So we planned to have only Early Pickup and delivery Dates.

But we have integrated with EBS. The Purchase Order in EBS populated both early delivery date and late delivery date. But we already hide the late delivery date. But there is a value in it and it causing problems in shipment creation.

Is there anyway, we can clear the late delivery date when the order base is created and if the late delivery date is populated?

Many Thanks in Advance.

Thanks,
Venkat.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old December 10th, 2009, 08:36
Senior Member
 
Join Date: Mar 2007
Location: Bedfordshire England
Posts: 106
Groans: 0
Groaned at 0 Times in 0 Posts
Thanks: 5
Thanked 25 Times in 22 Posts
Rep Power: 4
cunninghamg is on a distinguished road
Send a message via AIM to cunninghamg Send a message via MSN to cunninghamg Send a message via Skype™ to cunninghamg
Re: Direct SQL Update to clear Late Delivery Date

Venkat

Well you can't remove the fields obviously.
Why not populate them with the same value as the early_ dates?
You could get this to happen in the integration layer or by adding an Insert Trigger.

Gary
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old December 10th, 2009, 08:52
Senior Member
 
Join Date: Aug 2008
Posts: 124
Groans: 0
Groaned at 0 Times in 0 Posts
Thanks: 2
Thanked 0 Times in 0 Posts
Rep Power: 3
vsevs is on a distinguished road
Re: Direct SQL Update to clear Late Delivery Date

Hi Gary,
Actually it is coming from Oracle EBS pre package BPEL integration. We don't want to change anything in that. I could hide those two fields (Late Pickup and Late Delievery) in our manager Layout.
But the value for Late Delivery date is populated by Oracle EBS Purchase order promise date.

So when we make changes to early pickup or early delivery which makes late delivery date earlier than early pickup and delivery date some times

This is why i'm looking for a direct sql update to clear late_delivery_date in ob_line.
I tried with two automation agents. Both of them are not working. Can you please help me in correcting them. one is at order base creation event and another one is at order base line creation event.

1. Order Base - Created
UPDATE ob_line
SET late_delivery_date = NULL
WHERE order_base_gid = '$gid'

2. Order Base Line - Created
UPDATE ob_line
SET late_delivery_date = NULL
WHERE ob_line_gid = '$gid'

Thanks,
venkat.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old December 10th, 2009, 09:03
Senior Member
 
Join Date: Mar 2007
Location: Bedfordshire England
Posts: 106
Groans: 0
Groaned at 0 Times in 0 Posts
Thanks: 5
Thanked 25 Times in 22 Posts
Rep Power: 4
cunninghamg is on a distinguished road
Send a message via AIM to cunninghamg Send a message via MSN to cunninghamg Send a message via Skype™ to cunninghamg
Re: Direct SQL Update to clear Late Delivery Date

venkat
the obvious mistake is the quotes around $gid.

It should be:
Where order_base_gid=$gid
and
Where ob_line_gid=$gid

Gary
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old December 10th, 2009, 10:12
Senior Member
 
Join Date: Aug 2008
Posts: 124
Groans: 0
Groaned at 0 Times in 0 Posts
Thanks: 2
Thanked 0 Times in 0 Posts
Rep Power: 3
vsevs is on a distinguished road
Re: Direct SQL Update to clear Late Delivery Date

Hi Gary,
Apologies for bothering you. It is still not working. Can you please check the screenshot attached and correct me if i'm wrong anywhere.

Thanks,
Venkat.
Attached Files
File Type: doc Direct SQL update Agent.doc (91.0 KB, 18 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old December 10th, 2009, 10:42
Senior Member
 
Join Date: Mar 2007
Location: Bedfordshire England
Posts: 106
Groans: 0
Groaned at 0 Times in 0 Posts
Thanks: 5
Thanked 25 Times in 22 Posts
Rep Power: 4
cunninghamg is on a distinguished road
Send a message via AIM to cunninghamg Send a message via MSN to cunninghamg Send a message via Skype™ to cunninghamg
Re: Direct SQL Update to clear Late Delivery Date

Venkat
In the Agent Header - Agent Events ...
Modify your event and add the Restrictions USER, INTEGRATION and INTERNAL (by shift clicking).
The Restrictions are available bu clicking the i in a circle next to the box in edit mode.

Gary
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old December 11th, 2009, 02:09
Senior Member
 
Join Date: Aug 2008
Posts: 124
Groans: 0
Groaned at 0 Times in 0 Posts
Thanks: 2
Thanked 0 Times in 0 Posts
Rep Power: 3
vsevs is on a distinguished road
Re: Direct SQL Update to clear Late Delivery Date

Hi Gary,
Thank you It is working. Thanks a ton.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
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
Role of Early/Late Pickup Dates and the Early/Late Delivery Dates in Order Base Srinu Order Processing 6 September 3rd, 2010 14:43
Hold as Late as Possible planning parameter does not work when early Pick date exists yeowleng Planning 3 October 22nd, 2009 08:17
OM - Choose Ship Method Failing-Delivery Date Eringreen OTM / EBS / JDE E1 Integration 0 February 12th, 2009 17:23
Run RIQ using Date Deliver By and Create Order Shipments Based on Need by date raajamanikandan Rating 5 October 30th, 2008 17:02
Direct SQL Update in Agent. When is it committed? jlgottlieb Workflow and Agents 5 January 18th, 2008 16:30



All times are GMT. The time now is 12:25.
Copyright © 2006-2010, 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 41 42 43 44