<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: SQL view to show items with SOP POP link</title>
	<atom:link href="http://victoriayudin.com/2009/02/04/sql-view-to-show-items-with-sop-pop-link/feed/" rel="self" type="application/rss+xml" />
	<link>http://victoriayudin.com/2009/02/04/sql-view-to-show-items-with-sop-pop-link/</link>
	<description>Ramblings and musings of a Dynamics GP MVP</description>
	<lastBuildDate>Fri, 03 Feb 2012 22:28:27 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Tracey Wright</title>
		<link>http://victoriayudin.com/2009/02/04/sql-view-to-show-items-with-sop-pop-link/#comment-17239</link>
		<dc:creator><![CDATA[Tracey Wright]]></dc:creator>
		<pubDate>Tue, 06 Dec 2011 17:33:18 +0000</pubDate>
		<guid isPermaLink="false">http://victoriayudin.com/?p=1375#comment-17239</guid>
		<description><![CDATA[This is fantastic - thank you! I added the QTYONPO and QTYRECVD from the SOP60100- in this company we only use Each as the unit of measure for everything so that works for us.]]></description>
		<content:encoded><![CDATA[<p>This is fantastic &#8211; thank you! I added the QTYONPO and QTYRECVD from the SOP60100- in this company we only use Each as the unit of measure for everything so that works for us.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://victoriayudin.com/2009/02/04/sql-view-to-show-items-with-sop-pop-link/#comment-10007</link>
		<dc:creator><![CDATA[Mark]]></dc:creator>
		<pubDate>Fri, 29 Apr 2011 19:13:14 +0000</pubDate>
		<guid isPermaLink="false">http://victoriayudin.com/?p=1375#comment-10007</guid>
		<description><![CDATA[Victoria,

It looks like that works.  Thanks for your help.

Mark]]></description>
		<content:encoded><![CDATA[<p>Victoria,</p>
<p>It looks like that works.  Thanks for your help.</p>
<p>Mark</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Victoria Yudin</title>
		<link>http://victoriayudin.com/2009/02/04/sql-view-to-show-items-with-sop-pop-link/#comment-10004</link>
		<dc:creator><![CDATA[Victoria Yudin]]></dc:creator>
		<pubDate>Fri, 29 Apr 2011 18:15:05 +0000</pubDate>
		<guid isPermaLink="false">http://victoriayudin.com/?p=1375#comment-10004</guid>
		<description><![CDATA[Mark,

Without seeing your modifications, the only thing I can think of is putting a DISTINCT after the SELECT at the very top.  Can you try that and let me know if that helps?  

&lt;em&gt;-Victoria&lt;/em&gt;]]></description>
		<content:encoded><![CDATA[<p>Mark,</p>
<p>Without seeing your modifications, the only thing I can think of is putting a DISTINCT after the SELECT at the very top.  Can you try that and let me know if that helps?  </p>
<p><em>-Victoria</em></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://victoriayudin.com/2009/02/04/sql-view-to-show-items-with-sop-pop-link/#comment-9977</link>
		<dc:creator><![CDATA[Mark]]></dc:creator>
		<pubDate>Thu, 28 Apr 2011 20:13:43 +0000</pubDate>
		<guid isPermaLink="false">http://victoriayudin.com/?p=1375#comment-9977</guid>
		<description><![CDATA[Victoria,

I love this SQL view!!!  I have been bashing my head up against the wall trying to design one that would just show the Sales Order/PO numbers without line items.  I have figured out how to remove line items from this view, however, the SO/PO repeats depending on the number of lin items.  Any ideas???]]></description>
		<content:encoded><![CDATA[<p>Victoria,</p>
<p>I love this SQL view!!!  I have been bashing my head up against the wall trying to design one that would just show the Sales Order/PO numbers without line items.  I have figured out how to remove line items from this view, however, the SO/PO repeats depending on the number of lin items.  Any ideas???</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Victoria Yudin</title>
		<link>http://victoriayudin.com/2009/02/04/sql-view-to-show-items-with-sop-pop-link/#comment-1488</link>
		<dc:creator><![CDATA[Victoria Yudin]]></dc:creator>
		<pubDate>Thu, 28 May 2009 15:41:43 +0000</pubDate>
		<guid isPermaLink="false">http://victoriayudin.com/?p=1375#comment-1488</guid>
		<description><![CDATA[John,

Wow!  Thank you for sharing all this detail.  I suspected there were commitment statuses on the POs and Sales Orders, but this is actually more than I thought would be there.  Glad you were able to get it working.

&lt;em&gt;-Victoria&lt;/em&gt;]]></description>
		<content:encoded><![CDATA[<p>John,</p>
<p>Wow!  Thank you for sharing all this detail.  I suspected there were commitment statuses on the POs and Sales Orders, but this is actually more than I thought would be there.  Glad you were able to get it working.</p>
<p><em>-Victoria</em></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John McDonald</title>
		<link>http://victoriayudin.com/2009/02/04/sql-view-to-show-items-with-sop-pop-link/#comment-1487</link>
		<dc:creator><![CDATA[John McDonald]]></dc:creator>
		<pubDate>Thu, 28 May 2009 15:23:04 +0000</pubDate>
		<guid isPermaLink="false">http://victoriayudin.com/?p=1375#comment-1487</guid>
		<description><![CDATA[Thanks for your quick reply.  

I finally figured it out by checking the tables each time I a made a change.  Here&#039;s the code I was able to use. 

I use foxpro to communicate to the database but you get my gist.

***First I update the Purchase Order line Detail and change quantity uncommitted to be equal to the committed quantity

&quot;update pop10110 set qtyuncmtbase=qtycmtbase where ponumber=&#039;&quot;+ALLTRIM(ponumber)+&quot;&#039; AND ord=&quot;+ALLTRIM(STR(ord))

***Then I update the Purchase Order line Detail and change quantity committed base to zero

&quot;update pop10110 set qtycmtbase=0 where ponumber=&#039;&quot;+ALLTRIM(ponumber)+&quot;&#039; AND ord=&quot;+ALLTRIM(STR(ord))

***Then I Update Sales Order Line Detail and change the quantity on the PO to zero and purchase status to 2

&quot;update sop10200 set qtyonpo=0, purchstat=2 where sopnumbe=&#039;&quot;+ALLTRIM(sopnumbe)+&quot;&#039; and lnitmseq=&quot;+ALLTRIM(STR(lnitmseq))

***And Then I finally delete the link

&quot;delete from sop60100 where sopnumbe=&#039;&quot;+ALLTRIM(sopnumbe)+&quot;&#039; and lnitmseq=&quot;+ALLTRIM(STR(lnitmseq))

Before all this I stored the PO number in a user defined field in IV00106.  

The first time I tried months back, I only deleted the record in SOP60100 but it errored back that it was committed still.  These seem to do the trick.]]></description>
		<content:encoded><![CDATA[<p>Thanks for your quick reply.  </p>
<p>I finally figured it out by checking the tables each time I a made a change.  Here&#8217;s the code I was able to use. </p>
<p>I use foxpro to communicate to the database but you get my gist.</p>
<p>***First I update the Purchase Order line Detail and change quantity uncommitted to be equal to the committed quantity</p>
<p>&#8220;update pop10110 set qtyuncmtbase=qtycmtbase where ponumber=&#8217;&#8221;+ALLTRIM(ponumber)+&#8221;&#8216; AND ord=&#8221;+ALLTRIM(STR(ord))</p>
<p>***Then I update the Purchase Order line Detail and change quantity committed base to zero</p>
<p>&#8220;update pop10110 set qtycmtbase=0 where ponumber=&#8217;&#8221;+ALLTRIM(ponumber)+&#8221;&#8216; AND ord=&#8221;+ALLTRIM(STR(ord))</p>
<p>***Then I Update Sales Order Line Detail and change the quantity on the PO to zero and purchase status to 2</p>
<p>&#8220;update sop10200 set qtyonpo=0, purchstat=2 where sopnumbe=&#8217;&#8221;+ALLTRIM(sopnumbe)+&#8221;&#8216; and lnitmseq=&#8221;+ALLTRIM(STR(lnitmseq))</p>
<p>***And Then I finally delete the link</p>
<p>&#8220;delete from sop60100 where sopnumbe=&#8217;&#8221;+ALLTRIM(sopnumbe)+&#8221;&#8216; and lnitmseq=&#8221;+ALLTRIM(STR(lnitmseq))</p>
<p>Before all this I stored the PO number in a user defined field in IV00106.  </p>
<p>The first time I tried months back, I only deleted the record in SOP60100 but it errored back that it was committed still.  These seem to do the trick.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Victoria Yudin</title>
		<link>http://victoriayudin.com/2009/02/04/sql-view-to-show-items-with-sop-pop-link/#comment-1483</link>
		<dc:creator><![CDATA[Victoria Yudin]]></dc:creator>
		<pubDate>Thu, 28 May 2009 08:14:14 +0000</pubDate>
		<guid isPermaLink="false">http://victoriayudin.com/?p=1375#comment-1483</guid>
		<description><![CDATA[John,

I do not have a SQL script for deleting the SOP-POP link, it&#039;s not something that I have been asked about before.  I would recommend running SQL Profiler to see everything that is done when you delete the link manually, that should give you enough information to create a script.

&lt;em&gt;-Victoria&lt;/em&gt;]]></description>
		<content:encoded><![CDATA[<p>John,</p>
<p>I do not have a SQL script for deleting the SOP-POP link, it&#8217;s not something that I have been asked about before.  I would recommend running SQL Profiler to see everything that is done when you delete the link manually, that should give you enough information to create a script.</p>
<p><em>-Victoria</em></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John McDonald</title>
		<link>http://victoriayudin.com/2009/02/04/sql-view-to-show-items-with-sop-pop-link/#comment-1477</link>
		<dc:creator><![CDATA[John McDonald]]></dc:creator>
		<pubDate>Wed, 27 May 2009 15:51:47 +0000</pubDate>
		<guid isPermaLink="false">http://victoriayudin.com/?p=1375#comment-1477</guid>
		<description><![CDATA[Victoria,

Great Blog!

Here&#039;s a question for you about SOP60100 table.

We sell many products that are shipped by case (Purchase Order) but billed by the LB (Sales Order).

We manually delete PO link to the sales order to bill the customer via PO Commitment for Sales Document.   I have set up a macro to do this for me but I am looking for a better way via SQL.

I tried to delete the link in SOP60100 in the past, but It gives me errors and won&#039;t allow me to enter the Quantity Ordered.  

The question is, do you have a script to programmically delete the PO/SO link via sql. 

Thanks 

John]]></description>
		<content:encoded><![CDATA[<p>Victoria,</p>
<p>Great Blog!</p>
<p>Here&#8217;s a question for you about SOP60100 table.</p>
<p>We sell many products that are shipped by case (Purchase Order) but billed by the LB (Sales Order).</p>
<p>We manually delete PO link to the sales order to bill the customer via PO Commitment for Sales Document.   I have set up a macro to do this for me but I am looking for a better way via SQL.</p>
<p>I tried to delete the link in SOP60100 in the past, but It gives me errors and won&#8217;t allow me to enter the Quantity Ordered.  </p>
<p>The question is, do you have a script to programmically delete the PO/SO link via sql. </p>
<p>Thanks </p>
<p>John</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SQL View to Show SOP POP Link - DynamicAccounting.net</title>
		<link>http://victoriayudin.com/2009/02/04/sql-view-to-show-items-with-sop-pop-link/#comment-574</link>
		<dc:creator><![CDATA[SQL View to Show SOP POP Link - DynamicAccounting.net]]></dc:creator>
		<pubDate>Thu, 05 Feb 2009 14:04:07 +0000</pubDate>
		<guid isPermaLink="false">http://victoriayudin.com/?p=1375#comment-574</guid>
		<description><![CDATA[[...] View to Show SOP POP Link   Victoria Yudin has a SQL View to show items with a SOP POP link on her blog.    Published: Wednesday, February 04, 2009, 09:50 [...]]]></description>
		<content:encoded><![CDATA[<p>[...] View to Show SOP POP Link   Victoria Yudin has a SQL View to show items with a SOP POP link on her blog.    Published: Wednesday, February 04, 2009, 09:50 [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

