<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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:slash="http://purl.org/rss/1.0/modules/slash/"
	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>Oracle + Desarrollo + BI</title>
	<atom:link href="http://amosqueda.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://amosqueda.wordpress.com</link>
	<description>Por Alfredo Mosqueda</description>
	<lastBuildDate>Mon, 26 Jul 2010 20:16:15 +0000</lastBuildDate>
	<language>es</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='amosqueda.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Oracle + Desarrollo + BI</title>
		<link>http://amosqueda.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://amosqueda.wordpress.com/osd.xml" title="Oracle + Desarrollo + BI" />
	<atom:link rel='hub' href='http://amosqueda.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Error instalar BI Publisher</title>
		<link>http://amosqueda.wordpress.com/2010/07/26/error-instalar-bi-publisher/</link>
		<comments>http://amosqueda.wordpress.com/2010/07/26/error-instalar-bi-publisher/#comments</comments>
		<pubDate>Mon, 26 Jul 2010 20:16:15 +0000</pubDate>
		<dc:creator>devdb</dc:creator>
				<category><![CDATA[BI Publisher]]></category>

		<guid isPermaLink="false">http://amosqueda.wordpress.com/?p=131</guid>
		<description><![CDATA[" Template Builder Installer failed: Cannot run installer while Microsoft Word is running"..<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=amosqueda.wordpress.com&amp;blog=10126247&amp;post=131&amp;subd=amosqueda&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Al instalar el BI Publisher en Windows, la instalación envia el mensaje &#8221; Template Builder Installer failed: Cannot run installer while Microsoft Word is running&#8221;&#8230;  despues de una busqueda por foros encontre una solución immediata</p>
<p><strong>Solución:</strong> desintalar este programa <span style="text-decoration:underline;">MS Office Live Add-in</span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/amosqueda.wordpress.com/131/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/amosqueda.wordpress.com/131/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/amosqueda.wordpress.com/131/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/amosqueda.wordpress.com/131/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/amosqueda.wordpress.com/131/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/amosqueda.wordpress.com/131/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/amosqueda.wordpress.com/131/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/amosqueda.wordpress.com/131/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/amosqueda.wordpress.com/131/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/amosqueda.wordpress.com/131/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/amosqueda.wordpress.com/131/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/amosqueda.wordpress.com/131/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/amosqueda.wordpress.com/131/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/amosqueda.wordpress.com/131/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=amosqueda.wordpress.com&amp;blog=10126247&amp;post=131&amp;subd=amosqueda&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://amosqueda.wordpress.com/2010/07/26/error-instalar-bi-publisher/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/20fa519790e517c51f83997b513b84d2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">devdb</media:title>
		</media:content>
	</item>
		<item>
		<title>Deshabilitar &#8220;SAVE&#8221; en un bloque</title>
		<link>http://amosqueda.wordpress.com/2009/11/04/deshabilitar-save-en-un-bloque/</link>
		<comments>http://amosqueda.wordpress.com/2009/11/04/deshabilitar-save-en-un-bloque/#comments</comments>
		<pubDate>Thu, 05 Nov 2009 05:07:15 +0000</pubDate>
		<dc:creator>devdb</dc:creator>
				<category><![CDATA[Forms]]></category>
		<category><![CDATA[app_special]]></category>
		<category><![CDATA[plsql]]></category>
		<category><![CDATA[save]]></category>

		<guid isPermaLink="false">http://amosqueda.wordpress.com/?p=123</guid>
		<description><![CDATA[En oracle forms, cuando se tiene el escenario donde un bloque en particular no se permite guardar, es decir, los datos ingresados no son relevantes; se hace uso de paquete APP_SPECIAL ejemplo: en el bloque que se desea deshabilidar usar el disparador &#8220;PRE-BLOCK&#8221; y introducir el código app_special.enable(&#8216;SAVE&#8217;, PROPERTY_OFF); ahora para que este botón se encuentre disponible en [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=amosqueda.wordpress.com&amp;blog=10126247&amp;post=123&amp;subd=amosqueda&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>En oracle forms, cuando se tiene el escenario donde un bloque en particular<span id="more-123"></span> no se permite guardar, es decir, los datos ingresados no son relevantes; se hace uso de paquete APP_SPECIAL</p>
<p>ejemplo:</p>
<p>en el bloque que se desea deshabilidar<br />
usar el disparador &#8220;PRE-BLOCK&#8221; y introducir el código <strong>app_special.enable(&#8216;SAVE&#8217;, PROPERTY_OFF); </strong><br />
ahora para que este botón se encuentre disponible en los demás bloques a nivel módulo en el mismo disparador (PRE-BLOCK)<br />
introducir el código <strong>app_special.Enable(&#8216;SAVE&#8217;, PROPERTY_ON);</strong></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/amosqueda.wordpress.com/123/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/amosqueda.wordpress.com/123/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/amosqueda.wordpress.com/123/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/amosqueda.wordpress.com/123/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/amosqueda.wordpress.com/123/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/amosqueda.wordpress.com/123/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/amosqueda.wordpress.com/123/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/amosqueda.wordpress.com/123/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/amosqueda.wordpress.com/123/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/amosqueda.wordpress.com/123/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/amosqueda.wordpress.com/123/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/amosqueda.wordpress.com/123/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/amosqueda.wordpress.com/123/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/amosqueda.wordpress.com/123/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=amosqueda.wordpress.com&amp;blog=10126247&amp;post=123&amp;subd=amosqueda&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://amosqueda.wordpress.com/2009/11/04/deshabilitar-save-en-un-bloque/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/20fa519790e517c51f83997b513b84d2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">devdb</media:title>
		</media:content>
	</item>
		<item>
		<title>Consultar aplicaciones de Notas de Credito</title>
		<link>http://amosqueda.wordpress.com/2009/11/04/consultar-aplicaciones-de-notas-de-credito/</link>
		<comments>http://amosqueda.wordpress.com/2009/11/04/consultar-aplicaciones-de-notas-de-credito/#comments</comments>
		<pubDate>Thu, 05 Nov 2009 02:08:25 +0000</pubDate>
		<dc:creator>devdb</dc:creator>
				<category><![CDATA[AR]]></category>
		<category><![CDATA[SQL & PLSQL]]></category>
		<category><![CDATA[credit memo]]></category>
		<category><![CDATA[Invoice]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://amosqueda.wordpress.com/?p=119</guid>
		<description><![CDATA[la siguiente consulta ayuda a encontrar las aplicaciones de notas de credito para un cliente en particular SELECT cta.trx_number nota_credito , ara.apply_date  fecha_applicacion , nvl(ARA.amount_applied_from, ara.amount_applied) importe_aplicado , trx.trx_number  factura , trx.trx_date    fecha_factura , hca.account_number cliente from ar_receivable_applications_all ara , ra_customer_trx_all            cta , ra_customer_trx_all            trx , ra_cust_trx_types_all          ctt , hz_cust_accounts               hca where hca.cust_account_id          = trx.bill_to_customer_id [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=amosqueda.wordpress.com&amp;blog=10126247&amp;post=119&amp;subd=amosqueda&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>la siguiente consulta ayuda a encontrar las aplicaciones de notas de credito <span id="more-119"></span><br />
para un cliente en particular</p>
<blockquote><p>SELECT cta.trx_number nota_credito<br />
, ara.apply_date  fecha_applicacion<br />
, nvl(ARA.amount_applied_from, ara.amount_applied) importe_aplicado<br />
, trx.trx_number  factura<br />
, trx.trx_date    fecha_factura<br />
, hca.account_number cliente<br />
from ar_receivable_applications_all ara<br />
, ra_customer_trx_all            cta<br />
, ra_customer_trx_all            trx<br />
, ra_cust_trx_types_all          ctt<br />
, hz_cust_accounts               hca<br />
where hca.cust_account_id          = trx.bill_to_customer_id<br />
and ara.customer_trx_id          = cta.customer_trx_id<br />
and ara.applied_customer_trx_id  = trx.customer_trx_id<br />
and ctt.org_id                   = trx.org_id<br />
and ctt.type                     = &#8216;INV&#8217;<br />
and trx.cust_trx_type_id         =  ctt.cust_trx_type_id<br />
and ara.display                  = &#8216;Y&#8217;<br />
and ara.status                   = &#8216;APP&#8217;<br />
and ara.application_type         = &#8216;CM&#8217;<br />
and cta.org_id                   = trx.org_id<br />
and cta.org_id                   = &amp;operating_unit<br />
and hca.account_number           = &#8216;&amp;customer_number&#8217;</p></blockquote>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/amosqueda.wordpress.com/119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/amosqueda.wordpress.com/119/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/amosqueda.wordpress.com/119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/amosqueda.wordpress.com/119/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/amosqueda.wordpress.com/119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/amosqueda.wordpress.com/119/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/amosqueda.wordpress.com/119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/amosqueda.wordpress.com/119/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/amosqueda.wordpress.com/119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/amosqueda.wordpress.com/119/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/amosqueda.wordpress.com/119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/amosqueda.wordpress.com/119/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/amosqueda.wordpress.com/119/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/amosqueda.wordpress.com/119/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=amosqueda.wordpress.com&amp;blog=10126247&amp;post=119&amp;subd=amosqueda&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://amosqueda.wordpress.com/2009/11/04/consultar-aplicaciones-de-notas-de-credito/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/20fa519790e517c51f83997b513b84d2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">devdb</media:title>
		</media:content>
	</item>
		<item>
		<title>Consultar Recibos y sus aplicaciones</title>
		<link>http://amosqueda.wordpress.com/2009/11/04/consultar-recibos-y-sus-aplicaciones/</link>
		<comments>http://amosqueda.wordpress.com/2009/11/04/consultar-recibos-y-sus-aplicaciones/#comments</comments>
		<pubDate>Thu, 05 Nov 2009 01:56:10 +0000</pubDate>
		<dc:creator>devdb</dc:creator>
				<category><![CDATA[AR]]></category>
		<category><![CDATA[SQL & PLSQL]]></category>
		<category><![CDATA[Applications]]></category>
		<category><![CDATA[Invoice]]></category>
		<category><![CDATA[Receipts]]></category>

		<guid isPermaLink="false">http://amosqueda.wordpress.com/?p=114</guid>
		<description><![CDATA[Como parte del ciclo de vida de una factura en AR es necesario cobrarla.. la consulta siguiente ayuda a conocer el estado de los cobros y sus aplicaciones, buscar por un número de cliente y la unidad operativa donde se desea hacer la busqueda select /*+ INDEX (ara AR_RECEIVABLE_APPLICATIONS_N1), INDEX(acr AR_CHAS_RECEIPTS_N2)*/ acr.receipt_number recibo , nvl(ARA.amount_applied_from, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=amosqueda.wordpress.com&amp;blog=10126247&amp;post=114&amp;subd=amosqueda&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Como parte del ciclo de vida de una factura en AR es necesario cobrarla.. <span id="more-114"></span>la consulta siguiente ayuda a conocer el estado de los cobros y sus aplicaciones, buscar por un número de cliente y la unidad operativa donde se desea hacer la busqueda</p>
<pre>select /*+ INDEX (ara AR_RECEIVABLE_APPLICATIONS_N1), INDEX(acr AR_CHAS_RECEIPTS_N2)*/
           acr.receipt_number                               recibo
         , nvl(ARA.amount_applied_from, ara.amount_applied) importe_aplicado
         , ara.apply_date       fecha_applicacion
         , trx.trx_number       factura
         , hca.account_number   cliente
    from ar_receivable_applications_all ara
       , ar_cash_receipts_all           acr
       , ra_customer_trx_all            trx
       , ra_cust_trx_types_all          ctt
       , hz_cust_accounts               hca
    where hca.cust_account_id          = acr.pay_from_customer
      and acr.cash_receipt_id          = ara.cash_receipt_id
      and ara.applied_customer_trx_id  = trx.customer_trx_id
      and ctt.org_id                   = trx.org_id
      and ctt.type                     = 'INV'
      and trx.cust_trx_type_id         =  ctt.cust_trx_type_id
      and ara.display                  = 'Y'
      and ara.status                   = 'APP'
      and ara.application_type         = 'CASH'
      and acr.org_id                   = trx.org_id
      and acr.org_id                   = &amp;operating_unit
      and hca.account_number           = '&amp;customer_number';
</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/amosqueda.wordpress.com/114/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/amosqueda.wordpress.com/114/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/amosqueda.wordpress.com/114/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/amosqueda.wordpress.com/114/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/amosqueda.wordpress.com/114/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/amosqueda.wordpress.com/114/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/amosqueda.wordpress.com/114/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/amosqueda.wordpress.com/114/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/amosqueda.wordpress.com/114/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/amosqueda.wordpress.com/114/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/amosqueda.wordpress.com/114/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/amosqueda.wordpress.com/114/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/amosqueda.wordpress.com/114/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/amosqueda.wordpress.com/114/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=amosqueda.wordpress.com&amp;blog=10126247&amp;post=114&amp;subd=amosqueda&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://amosqueda.wordpress.com/2009/11/04/consultar-recibos-y-sus-aplicaciones/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/20fa519790e517c51f83997b513b84d2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">devdb</media:title>
		</media:content>
	</item>
		<item>
		<title>evitar &#8220;not a valid month&#8221;</title>
		<link>http://amosqueda.wordpress.com/2009/11/04/evitar-not-a-valid-month/</link>
		<comments>http://amosqueda.wordpress.com/2009/11/04/evitar-not-a-valid-month/#comments</comments>
		<pubDate>Thu, 05 Nov 2009 00:31:15 +0000</pubDate>
		<dc:creator>devdb</dc:creator>
				<category><![CDATA[SQL & PLSQL]]></category>
		<category><![CDATA[date]]></category>
		<category><![CDATA[not valid month]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[to_date]]></category>

		<guid isPermaLink="false">http://amosqueda.wordpress.com/?p=112</guid>
		<description><![CDATA[Para evitar el errorORA-01843: not a valid month antes de usar cualquier función de conversión alterar la sessión con alter session set nls_date_format = &#60;formart&#62; y alter session set nls_date_language=&#60;language&#62; ejemplo: alter session set nls_date_format =&#8217;dd-mon-yyyy&#8217;; alter session set nls_date_language=&#8217;Latin American Spanish&#8217;; &#160;<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=amosqueda.wordpress.com&amp;blog=10126247&amp;post=112&amp;subd=amosqueda&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Para evitar el error<strong>ORA-01843: not a valid month</strong><span id="more-112"></span><br />
antes de usar cualquier función de conversión alterar la sessión con <em>alter session set nls_date_format = &lt;formart&gt; </em> y <em>alter session set nls_date_language=&lt;language&gt;</em><br />
ejemplo:</p>
<p>alter session set nls_date_format =&#8217;dd-mon-yyyy&#8217;;</p>
<p>alter session set nls_date_language=&#8217;Latin American Spanish&#8217;;</p>
<p>&nbsp;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/amosqueda.wordpress.com/112/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/amosqueda.wordpress.com/112/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/amosqueda.wordpress.com/112/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/amosqueda.wordpress.com/112/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/amosqueda.wordpress.com/112/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/amosqueda.wordpress.com/112/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/amosqueda.wordpress.com/112/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/amosqueda.wordpress.com/112/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/amosqueda.wordpress.com/112/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/amosqueda.wordpress.com/112/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/amosqueda.wordpress.com/112/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/amosqueda.wordpress.com/112/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/amosqueda.wordpress.com/112/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/amosqueda.wordpress.com/112/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=amosqueda.wordpress.com&amp;blog=10126247&amp;post=112&amp;subd=amosqueda&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://amosqueda.wordpress.com/2009/11/04/evitar-not-a-valid-month/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/20fa519790e517c51f83997b513b84d2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">devdb</media:title>
		</media:content>
	</item>
		<item>
		<title>Refrescar vistas materializadas</title>
		<link>http://amosqueda.wordpress.com/2009/11/04/refrescar-vistas-materializadas/</link>
		<comments>http://amosqueda.wordpress.com/2009/11/04/refrescar-vistas-materializadas/#comments</comments>
		<pubDate>Wed, 04 Nov 2009 23:33:32 +0000</pubDate>
		<dc:creator>devdb</dc:creator>
				<category><![CDATA[DBI]]></category>
		<category><![CDATA[SQL & PLSQL]]></category>
		<category><![CDATA[materialized]]></category>
		<category><![CDATA[mv]]></category>
		<category><![CDATA[snapshot]]></category>
		<category><![CDATA[view]]></category>

		<guid isPermaLink="false">http://amosqueda.wordpress.com/?p=110</guid>
		<description><![CDATA[Para refrescar la información en una vista materializada.. ejecutar en sqlplus exec dbms_snapshot.refresh('xxam_vista1_mv','C'); después de refrescar en modo completo &#8220;C&#8221;, se puede usar para el modo fast &#8220;F&#8221;; ej. exec dbms_snapshot.refresh('xxam_vista1_mv','F');<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=amosqueda.wordpress.com&amp;blog=10126247&amp;post=110&amp;subd=amosqueda&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Para refrescar la información en una vista materializada..<span id="more-110"></span><br />
ejecutar en sqlplus</p>
<pre> exec dbms_snapshot.refresh('xxam_vista1_mv','C');</pre>
<p>después de refrescar en modo completo &#8220;C&#8221;, se puede usar para el modo fast &#8220;F&#8221;; ej.</p>
<pre> exec dbms_snapshot.refresh('xxam_vista1_mv','F');</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/amosqueda.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/amosqueda.wordpress.com/110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/amosqueda.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/amosqueda.wordpress.com/110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/amosqueda.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/amosqueda.wordpress.com/110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/amosqueda.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/amosqueda.wordpress.com/110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/amosqueda.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/amosqueda.wordpress.com/110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/amosqueda.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/amosqueda.wordpress.com/110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/amosqueda.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/amosqueda.wordpress.com/110/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=amosqueda.wordpress.com&amp;blog=10126247&amp;post=110&amp;subd=amosqueda&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://amosqueda.wordpress.com/2009/11/04/refrescar-vistas-materializadas/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/20fa519790e517c51f83997b513b84d2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">devdb</media:title>
		</media:content>
	</item>
		<item>
		<title>Mover plantillas con XDOLoader</title>
		<link>http://amosqueda.wordpress.com/2009/11/03/mover-plantillas-con-xdoloader/</link>
		<comments>http://amosqueda.wordpress.com/2009/11/03/mover-plantillas-con-xdoloader/#comments</comments>
		<pubDate>Tue, 03 Nov 2009 19:04:38 +0000</pubDate>
		<dc:creator>devdb</dc:creator>
				<category><![CDATA[BI Publisher]]></category>
		<category><![CDATA[Loaders]]></category>
		<category><![CDATA[descargar]]></category>
		<category><![CDATA[mover]]></category>
		<category><![CDATA[subir]]></category>
		<category><![CDATA[XDOloader]]></category>

		<guid isPermaLink="false">http://amosqueda.wordpress.com/?p=108</guid>
		<description><![CDATA[Para subir o descargar alguna plantilla en BI Publisher para Oracle EBS Hago frecuentemente uso de XDOLoader para subirr o descargar (RTF, PDF, XSL-FO, XML, and XSD). Ejemplo para descargar java oracle.apps.xdo.oa.util.XDOLoader DOWNLOAD -DB_USERNAME apps -DB_PASSWORD apps -JDBC_CONNECTION 192.168.1.222:1522:test1 -LOB_TYPE TEMPLATE -APPS_SHORT_NAME XXAM -LOB_CODE XXAMTEM1 -LANGUAGE en -TERRITORY US para subir java oracle.apps.xdo.oa.util.XDOLoader UPLOAD -DB_USERNAME [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=amosqueda.wordpress.com&amp;blog=10126247&amp;post=108&amp;subd=amosqueda&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Para subir o descargar alguna plantilla en BI Publisher para Oracle EBS <span id="more-108"></span><br />
Hago frecuentemente uso de XDOLoader para subirr o descargar (RTF, PDF, XSL-FO, XML, and XSD).</p>
<p>Ejemplo para descargar<br />
<code><br />
<em>java oracle.apps.xdo.oa.util.XDOLoader</em> <strong>DOWNLOAD</strong> -DB_USERNAME apps -DB_PASSWORD apps -JDBC_CONNECTION 192.168.1.222:1522:test1<br />
-LOB_TYPE <strong>TEMPLATE </strong>-APPS_SHORT_NAME <strong>XXAM</strong> -LOB_CODE <strong>XXAMTEM1</strong> -LANGUAGE en -TERRITORY US<br />
</code></p>
<p>para subir<code><br />
<em>java oracle.apps.xdo.oa.util.XDOLoader</em> <strong>UPLOAD</strong> -DB_USERNAME apps -DB_PASSWORD apps -JDBC_CONNECTION 192.168.1.222:1522:test2<br />
-LOB_TYPE <strong>TEMPLATE_SOURCE</strong> -APPS_SHORT_NAME <strong>XXAM</strong> -LOB_CODE <strong>XXAMTEM1</strong> -LANGUAGE en -TERRITORY US -XDO_FILE_TYPE <strong>RTF</strong> -FILE_CONTENT_TYPE 'application/rtf' -FILE_NAME <strong>XXAMTEM1_EN_US.rtf</strong><br />
-NLS_LANG ENGLISH_UNITED STATES.WE8ISO8859P1<br />
</code></p>
<p>Notas:</p>
<ul>
<li>XXAM es la abreviatura de la applicación</li>
<li>XXAMTEM1 es el codigo o nombre corto del template</li>
<li>JDBC_CONNECTION  sigo la sintaxis &lt;dirección ip del servidor&gt;:&lt;puerto&gt;:&lt;sid&gt;</li>
<li>XXAMTEM1_EN_US.rtf nombre del archivo</li>
</ul>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/amosqueda.wordpress.com/108/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/amosqueda.wordpress.com/108/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/amosqueda.wordpress.com/108/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/amosqueda.wordpress.com/108/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/amosqueda.wordpress.com/108/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/amosqueda.wordpress.com/108/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/amosqueda.wordpress.com/108/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/amosqueda.wordpress.com/108/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/amosqueda.wordpress.com/108/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/amosqueda.wordpress.com/108/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/amosqueda.wordpress.com/108/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/amosqueda.wordpress.com/108/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/amosqueda.wordpress.com/108/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/amosqueda.wordpress.com/108/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=amosqueda.wordpress.com&amp;blog=10126247&amp;post=108&amp;subd=amosqueda&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://amosqueda.wordpress.com/2009/11/03/mover-plantillas-con-xdoloader/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/20fa519790e517c51f83997b513b84d2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">devdb</media:title>
		</media:content>
	</item>
		<item>
		<title>Api para Registrar tablas en EBS</title>
		<link>http://amosqueda.wordpress.com/2009/11/03/api-para-registrar-tablas-en-ebs/</link>
		<comments>http://amosqueda.wordpress.com/2009/11/03/api-para-registrar-tablas-en-ebs/#comments</comments>
		<pubDate>Tue, 03 Nov 2009 17:57:32 +0000</pubDate>
		<dc:creator>devdb</dc:creator>
				<category><![CDATA[Forms]]></category>
		<category><![CDATA[SQL & PLSQL]]></category>
		<category><![CDATA[add]]></category>
		<category><![CDATA[aol]]></category>
		<category><![CDATA[FND]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[tables]]></category>

		<guid isPermaLink="false">http://amosqueda.wordpress.com/?p=105</guid>
		<description><![CDATA[Este api sirve para registar una tabla o vista en el repositorio de Oracle EBS DECLARE -- v_table_name VARCHAR2(100):= 'XXAM_VISTA1_V'; v_appl_name VARCHAR2(100):= 'XXAM'; v_dummy NUMBER; v_apps_id NUMBER; -- -- CON ESTE CURSOR SE VALIDA SI EXISTE COMO TABLA -- CURSOR c_exist_table(cp_table_name VARCHAR2 ) IS SELECT 1 FROM all_tables WHERE 1 = 1 AND table_name = [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=amosqueda.wordpress.com&amp;blog=10126247&amp;post=105&amp;subd=amosqueda&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Este api sirve para registar una tabla o vista en el repositorio de Oracle EBS <span id="more-105"></span><br />
<code><br />
DECLARE<br />
--<br />
v_table_name  VARCHAR2(100):= 'XXAM_VISTA1_V';<br />
v_appl_name   VARCHAR2(100):= 'XXAM';<br />
v_dummy       NUMBER;<br />
v_apps_id     NUMBER;<br />
--<br />
-- CON ESTE CURSOR SE VALIDA SI EXISTE COMO TABLA<br />
--<br />
CURSOR c_exist_table(cp_table_name VARCHAR2 ) IS<br />
SELECT 1<br />
FROM all_tables<br />
WHERE 1 = 1<br />
AND table_name = cp_table_name;<br />
--<br />
-- CON ESTE CURSOR SE VALIDA SI EXISTE COMO VISTA<br />
--<br />
CURSOR c_exist_view(cp_view_name VARCHAR2 ) IS<br />
SELECT 1<br />
FROM ALL_VIEWS<br />
WHERE 1 = 1<br />
AND view_name = cp_view_name;<br />
--<br />
-- VALIDAMOS SI LA TABLA YA FUE REGISTRADA<br />
--<br />
CURSOR c_reg_table (cp_appl_name   VARCHAR2<br />
,cp_table_name  VARCHAR2) IS<br />
SELECT 1<br />
FROM  fnd_application fa<br />
,fnd_tables      ft<br />
WHERE 1 = 1<br />
AND fa.application_short_name = UPPER(cp_appl_name)<br />
AND ft.table_name             = cp_table_name<br />
AND ft.application_id         = fa.application_id;<br />
--<br />
-- CON ESTE CURSOR SE OPTIENEN LOS DATOS DE LA COLUMNA<br />
--<br />
CURSOR c3(cp_table_name VARCHAR2 ) IS<br />
SELECT column_id,<br />
column_name,<br />
data_type,<br />
data_length,<br />
data_precision,<br />
nullable<br />
FROM all_tab_columns<br />
WHERE 1= 1<br />
AND table_name = cp_table_name<br />
ORDER BY column_id;</code></p>
<p><code> </code></p>
<p><code>BEGIN<br />
--<br />
DBMS_OUTPUT.PUT_LINE('Proceso para Registrar Tablas en la Aplicacion --&gt;&gt; ');<br />
IF v_table_name IS NOT NULL THEN<br />
--<br />
OPEN c_exist_table(cp_table_name =&gt; v_table_name);<br />
FETCH c_exist_table INTO v_dummy;<br />
IF c_exist_table%NOTFOUND THEN<br />
CLOSE c_exist_table;<br />
--<br />
DBMS_OUTPUT.PUT_LINE('Este Registro no es una Tabla --&gt;&gt; ');<br />
--<br />
OPEN c_exist_view(cp_view_name =&gt; v_table_name);<br />
FETCH c_exist_view INTO v_dummy;<br />
IF c_exist_view%NOTFOUND THEN<br />
CLOSE c_exist_view;<br />
DBMS_OUTPUT.PUT_LINE('Este Registro no es una Vista --&gt;&gt; ');<br />
ELSE<br />
CLOSE c_exist_view;<br />
--<br />
-- REGISTRAMOS LA TABLA POR QUE EXISTE<br />
--<br />
OPEN c_reg_table(cp_appl_name  =&gt; v_appl_name<br />
,cp_table_name =&gt; v_table_name);<br />
FETCH c_reg_table INTO v_dummy;<br />
IF c_reg_table%NOTFOUND THEN<br />
CLOSE c_reg_table;<br />
DBMS_OUTPUT.PUT_LINE('Inicia el Registro de la Vista --&gt;&gt; ');<br />
--<br />
Apps.Ad_Dd.delete_table(v_appl_name, v_table_name);<br />
--<br />
Apps.Ad_Dd.register_table(v_appl_name, v_table_name, 'T',8, 10, 90);<br />
--<br />
FOR reg_data IN c3(cp_table_name =&gt; v_table_name) LOOP<br />
DBMS_OUTPUT.PUT_LINE('Columna Id: '||reg_data.column_id||' Columna Name: '||reg_data.column_name);<br />
Apps.Ad_Dd.register_column(p_appl_short_name =&gt; v_appl_name<br />
,p_tab_name        =&gt; v_table_name<br />
,p_col_name        =&gt; reg_data.column_name<br />
,p_col_seq         =&gt; reg_data.column_id<br />
,p_col_type        =&gt; reg_data.data_type<br />
,p_col_width       =&gt; reg_data.data_length<br />
,p_nullable        =&gt; reg_data.nullable<br />
,p_translate       =&gt; 'N'<br />
,p_precision       =&gt; reg_data.data_precision<br />
,p_scale           =&gt; NULL);<br />
END LOOP;<br />
ELSE<br />
CLOSE c_reg_table;<br />
DBMS_OUTPUT.PUT_LINE('Tabla ya registrada --&gt;&gt; ');<br />
--<br />
IF 1 = 1 THEN<br />
DBMS_OUTPUT.PUT_LINE('Procedemos a borrar la tabla ');<br />
Apps.Ad_Dd.delete_table(v_appl_name, v_table_name);<br />
END IF;<br />
END IF;<br />
END IF;<br />
ELSE<br />
CLOSE c_exist_table;<br />
--<br />
-- REGISTRAMOS LA TABLA POR QUE EXISTE<br />
--<br />
OPEN c_reg_table(cp_appl_name  =&gt; v_appl_name<br />
,cp_table_name =&gt; v_table_name);<br />
FETCH c_reg_table INTO v_dummy;<br />
IF c_reg_table%NOTFOUND THEN<br />
CLOSE c_reg_table;<br />
DBMS_OUTPUT.PUT_LINE('Inicia el Registro de la Tabla --&gt;&gt; ');<br />
--<br />
Apps.Ad_Dd.delete_table(v_appl_name, v_table_name);<br />
--<br />
Apps.Ad_Dd.register_table(v_appl_name, v_table_name, 'T',8, 10, 90);<br />
--<br />
FOR reg_data IN c3(cp_table_name =&gt; v_table_name) LOOP<br />
DBMS_OUTPUT.PUT_LINE('Columna Id: '||reg_data.column_id||' Columna Name: '||reg_data.column_name);<br />
Apps.Ad_Dd.register_column(p_appl_short_name =&gt; v_appl_name<br />
,p_tab_name        =&gt; v_table_name<br />
,p_col_name        =&gt; reg_data.column_name<br />
,p_col_seq         =&gt; reg_data.column_id<br />
,p_col_type        =&gt; reg_data.data_type<br />
,p_col_width       =&gt; reg_data.data_length<br />
,p_nullable        =&gt; reg_data.nullable<br />
,p_translate       =&gt; 'N'<br />
,p_precision       =&gt; reg_data.data_precision<br />
,p_scale           =&gt; NULL);<br />
END LOOP;<br />
ELSE<br />
CLOSE c_reg_table;<br />
END IF;<br />
END IF;<br />
END IF;<br />
END;<br />
/<br />
commit;<br />
</code></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/amosqueda.wordpress.com/105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/amosqueda.wordpress.com/105/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/amosqueda.wordpress.com/105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/amosqueda.wordpress.com/105/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/amosqueda.wordpress.com/105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/amosqueda.wordpress.com/105/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/amosqueda.wordpress.com/105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/amosqueda.wordpress.com/105/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/amosqueda.wordpress.com/105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/amosqueda.wordpress.com/105/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/amosqueda.wordpress.com/105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/amosqueda.wordpress.com/105/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/amosqueda.wordpress.com/105/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/amosqueda.wordpress.com/105/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=amosqueda.wordpress.com&amp;blog=10126247&amp;post=105&amp;subd=amosqueda&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://amosqueda.wordpress.com/2009/11/03/api-para-registrar-tablas-en-ebs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/20fa519790e517c51f83997b513b84d2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">devdb</media:title>
		</media:content>
	</item>
		<item>
		<title>consultar transacciones por subinventario</title>
		<link>http://amosqueda.wordpress.com/2009/10/30/consultar-transacciones-por-subinventario/</link>
		<comments>http://amosqueda.wordpress.com/2009/10/30/consultar-transacciones-por-subinventario/#comments</comments>
		<pubDate>Sat, 31 Oct 2009 04:23:50 +0000</pubDate>
		<dc:creator>devdb</dc:creator>
				<category><![CDATA[INV]]></category>
		<category><![CDATA[SQL & PLSQL]]></category>
		<category><![CDATA[inventory]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[subinventory]]></category>
		<category><![CDATA[transacciones]]></category>

		<guid isPermaLink="false">http://amosqueda.wordpress.com/?p=103</guid>
		<description><![CDATA[esta consulta me enlista todas aquellas transacciones hechas en el modulo de inventarios para un subinventario en particular.. select mtt.transaction_type_name Tipo_Transaccion ,msi.segment1 Articulo ,msi.description Descripcion ,mtp.organization_code Organizacion ,gcc.concatenated_segments Cta_Contable ,mmt.subinventory_code Subinventario ,mmt.transaction_quantity Cantidad ,mmt.transaction_date Fecha_Transaccion ,mmt.transaction_id from mtl_material_transactions mmt , mtl_transaction_types mtt , mtl_system_items_b msi , mtl_parameters mtp , gl_code_combinations_kfv gcc where mmt.source_code ='Inventory' and [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=amosqueda.wordpress.com&amp;blog=10126247&amp;post=103&amp;subd=amosqueda&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>esta consulta me enlista todas aquellas transacciones hechas en el modulo de inventarios para un subinventario en particular..<span id="more-103"></span></p>
<pre>select
 mtt.transaction_type_name Tipo_Transaccion
,msi.segment1              Articulo
,msi.description           Descripcion
,mtp.organization_code     Organizacion
,gcc.concatenated_segments Cta_Contable
,mmt.subinventory_code     Subinventario
,mmt.transaction_quantity  Cantidad
,mmt.transaction_date      Fecha_Transaccion
,mmt.transaction_id
from mtl_material_transactions mmt
   , mtl_transaction_types     mtt
   , mtl_system_items_b        msi
   , mtl_parameters            mtp
   , gl_code_combinations_kfv  gcc
where mmt.source_code       ='Inventory'
and mmt.organization_id     = msi.organization_id
and mmt.inventory_item_id   = msi.inventory_item_id
and mtt.transaction_type_id = mmt.transaction_type_id
and mmt.organization_id     = mtp.organization_id
and mmt.distribution_account_id     = gcc.code_combination_id
and mmt.subinventory_code         = '&amp;subinventory'
order by 2 ;</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/amosqueda.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/amosqueda.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/amosqueda.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/amosqueda.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/amosqueda.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/amosqueda.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/amosqueda.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/amosqueda.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/amosqueda.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/amosqueda.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/amosqueda.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/amosqueda.wordpress.com/103/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/amosqueda.wordpress.com/103/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/amosqueda.wordpress.com/103/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=amosqueda.wordpress.com&amp;blog=10126247&amp;post=103&amp;subd=amosqueda&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://amosqueda.wordpress.com/2009/10/30/consultar-transacciones-por-subinventario/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/20fa519790e517c51f83997b513b84d2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">devdb</media:title>
		</media:content>
	</item>
		<item>
		<title>Consulta para obtener la descripción de la unidad operativa</title>
		<link>http://amosqueda.wordpress.com/2009/10/30/consulta-para-obtener-la-descripcion-de-la-unidad-operativa/</link>
		<comments>http://amosqueda.wordpress.com/2009/10/30/consulta-para-obtener-la-descripcion-de-la-unidad-operativa/#comments</comments>
		<pubDate>Sat, 31 Oct 2009 04:14:02 +0000</pubDate>
		<dc:creator>devdb</dc:creator>
				<category><![CDATA[BI Publisher]]></category>
		<category><![CDATA[R12]]></category>
		<category><![CDATA[SQL & PLSQL]]></category>
		<category><![CDATA[flex]]></category>
		<category><![CDATA[org_id]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://amosqueda.wordpress.com/?p=97</guid>
		<description><![CDATA[la siguiente consulta retorna la descripción de la unidad operativa, de acuerdo valor configurado en el attribute1, esta consulta igual me sirvio para ver en donde se almacenan los valores del flexfield. select  ( select   t.description from   fnd_flex_values_tl t, fnd_flex_values b, fnd_flex_value_sets fvs where   b.flex_value_id          =  t.flex_value_id and   t.language               =  userenv ('LANG') and   b.flex_value_set_id      =  [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=amosqueda.wordpress.com&amp;blog=10126247&amp;post=97&amp;subd=amosqueda&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>la siguiente consulta retorna la descripción de la unidad operativa<span id="more-97"></span>, de acuerdo valor configurado en el attribute1, esta consulta igual me sirvio para ver en donde se almacenan los valores del flexfield.</p>
<pre>select  ( select   t.description
                from   fnd_flex_values_tl         t,
                         fnd_flex_values           b,
                         fnd_flex_value_sets    fvs
              where   b.flex_value_id                =  t.flex_value_id
                 and   t.language                      =  userenv ('LANG')
                 and   b.flex_value_set_id           =  fvs.flex_value_set_id
                 and   fvs.flex_value_set_name    = <em>'VISION_GL_SA'</em>
                 and   b.flex_value                     =  org.attribute1 ) operaing_unit
from  hr_all_organization_units org
where  organization_id = &amp;org_id ;</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/amosqueda.wordpress.com/97/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/amosqueda.wordpress.com/97/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/amosqueda.wordpress.com/97/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/amosqueda.wordpress.com/97/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/amosqueda.wordpress.com/97/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/amosqueda.wordpress.com/97/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/amosqueda.wordpress.com/97/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/amosqueda.wordpress.com/97/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/amosqueda.wordpress.com/97/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/amosqueda.wordpress.com/97/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/amosqueda.wordpress.com/97/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/amosqueda.wordpress.com/97/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/amosqueda.wordpress.com/97/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/amosqueda.wordpress.com/97/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=amosqueda.wordpress.com&amp;blog=10126247&amp;post=97&amp;subd=amosqueda&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://amosqueda.wordpress.com/2009/10/30/consulta-para-obtener-la-descripcion-de-la-unidad-operativa/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/20fa519790e517c51f83997b513b84d2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">devdb</media:title>
		</media:content>
	</item>
	</channel>
</rss>
