<?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/"
	>

<channel>
	<title>glufke.net &#187; R12</title>
	<atom:link href="http://glufke.net/tag/r12/feed/" rel="self" type="application/rss+xml" />
	<link>http://glufke.net</link>
	<description></description>
	<lastBuildDate>Wed, 30 Nov 2011 17:41:41 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Concorrentes no Oracle EBS com saída em Excel</title>
		<link>http://glufke.net/2010/04/15/concorrentes-no-oracle-ebs-com-saida-em-excel/</link>
		<comments>http://glufke.net/2010/04/15/concorrentes-no-oracle-ebs-com-saida-em-excel/#comments</comments>
		<pubDate>Thu, 15 Apr 2010 03:39:49 +0000</pubDate>
		<dc:creator>ricardo_rauber</dc:creator>
				<category><![CDATA[ERP]]></category>
		<category><![CDATA[Concurrent]]></category>
		<category><![CDATA[EBS]]></category>
		<category><![CDATA[Excel]]></category>
		<category><![CDATA[R11]]></category>
		<category><![CDATA[R12]]></category>

		<guid isPermaLink="false">http://glufke.net/?p=328</guid>
		<description><![CDATA[Este artigo demonstra como criar Concurrents no Oracle EBS com saída para Microsoft Excel. Aí vai um passo a passo:
1 – Adicionar o tipo de saída Microsoft Excel
Na responsabilidade Administrador de Sistema você deve acessar o caminho abaixo:
Instalar -&#62; Idiomas
Insira um registro com estes valores:
Formato do Arquivo = Text
Tipo de Mime = application/vnd.ms-excel
Descrição = Microsoft [...]]]></description>
			<content:encoded><![CDATA[<p>Este artigo demonstra como criar Concurrents no Oracle EBS com saída para Microsoft Excel. Aí vai um passo a passo:</p>
<h3>1 – Adicionar o tipo de saída Microsoft Excel</h3>
<p>Na responsabilidade Administrador de Sistema você deve acessar o caminho abaixo:<br />
Instalar -&gt; Idiomas<br />
Insira um registro com estes valores:<br />
Formato do Arquivo = Text<br />
Tipo de Mime = application/vnd.ms-excel<br />
Descrição = Microsoft Excel<br />
<a href="http://glufke.net/wp-content/uploads/2010/04/ebsexcell11.png"><img class="alignnone size-full wp-image-331" title="Figura1" src="http://glufke.net/wp-content/uploads/2010/04/ebsexcell11.png" alt="" width="540" height="241" /></a><span id="more-328"></span>
<div id="ads_336x280"><script type="text/javascript">// <![CDATA[
 google_ad_client = "pub-8964513116661040"; google_alternate_color = "ffffFF"; google_ad_width = 336; google_ad_height = 280; google_ad_format = "336x280_as"; google_ad_type = "text_image"; //2007-09-07: wp_quadrado_gra google_ad_channel = "0247072216"; google_color_border = "FFFFFF"; google_color_bg = "FFFFff"; google_color_link = "4F82CB"; google_color_text = "000000"; google_color_url = "4F82CB";
// ]]&gt;</script><script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript">
</script></div>
<h3>2 – Criar um procedimento PL/SQL</h3>
<p>A saída deve ter os campos separados pelo caractere TAB.</p>
<pre class="brush: sql;">
CREATE OR REPLACE PACKAGE PKG_REP_EXCEL IS

  PROCEDURE BUILD (ERRBUF OUT VARCHAR2,
                   RETCODE OUT NUMBER);
END PKG_REP_EXCEL;
/

CREATE OR REPLACE PACKAGE BODY PKG_REP_EXCEL IS
  PROCEDURE BUILD (ERRBUF OUT VARCHAR2,
                   RETCODE OUT NUMBER) IS
    CURSOR CUR IS
      SELECT '1' A, '2' B, '3' C FROM DUAL
      UNION
      SELECT '4' A, '5' B, '6' C FROM DUAL
      UNION SELECT '7' A, '8' B, '9' C FROM DUAL;

    REG CUR%ROWTYPE;

    V_DIV VARCHAR2(1) := CHR(9); -- TAB
    V_OUT VARCHAR2(4000);

  BEGIN

    -- HEADER
    V_OUT := 'A' || V_DIV || 'B' || V_DIV || 'C';
    FND_FILE.PUT_LINE(FND_FILE.OUTPUT, V_OUT);

    -- LINES
    FOR REG IN CUR LOOP
      V_OUT := REG.A || V_DIV || REG.B ||   V_DIV || REG.C;
      FND_FILE.PUT_LINE(FND_FILE.OUTPUT, V_OUT);
    END LOOP;

  END BUILD;

END PKG_REP_EXCEL;
/</pre>
<h3>3 – Criar o Concorrente</h3>
<p>O executável é criado normalmente como Procedimento Armazenado do PL/SQL e o programa com formato de saída Texto.<br />
<a href="http://glufke.net/wp-content/uploads/2010/04/ebsexcell2.png"><img src="http://glufke.net/wp-content/uploads/2010/04/ebsexcell2.png" alt="" title="Figura2" width="540" height="255" class="alignnone size-full wp-image-332" /></a></p>
<p><a href="http://glufke.net/wp-content/uploads/2010/04/ebsexcell3.png"><img src="http://glufke.net/wp-content/uploads/2010/04/ebsexcell3.png" alt="" title="Figura3" width="540" height="360" class="alignnone size-full wp-image-333" /></a></p>
<h3>4 – Execução</h3>
<p>Após a visualização da saída, utilize o menu <strong>Ferramentas</strong> e a opção <strong>Copiar Arquivo</strong>. Nesse momento aparecerá uma LOV para você escolher o tipo de saída.<br />
<a href="http://glufke.net/wp-content/uploads/2010/04/ebsexcell4.png"><img src="http://glufke.net/wp-content/uploads/2010/04/ebsexcell4.png" alt="" title="Figura4" width="540" height="300" class="alignnone size-full wp-image-334" /></a></p>
<p><a href="http://glufke.net/wp-content/uploads/2010/04/ebsexcell5.png"><img src="http://glufke.net/wp-content/uploads/2010/04/ebsexcell5.png" alt="" title="Figura5" width="540" height="300" class="alignnone size-full wp-image-335" /></a></p>
<h3>5 – Arquivo Microsoft Excel</h3>
<p>Selecionado o tipo de arquivo <strong>Microsoft Excel</strong>, basta salvar ou abrir e temos o nosso relatório.<br />
<strong>Observação:</strong> Tome cuidado ao salvar o arquivo para não deixar a extensão <strong>TXT</strong>. Caso o arquivo seja gravado com essa extensão, altere para <strong>XLS</strong>.<br />
<a href="http://glufke.net/wp-content/uploads/2010/04/ebsexcell6.png"><img src="http://glufke.net/wp-content/uploads/2010/04/ebsexcell6.png" alt="" title="Figura6" width="540" height="387" class="alignnone size-full wp-image-330" /></a></p>
<p><em>Texto criado por Ricardo Rauber &#8211; Tutorial disponível para download <a href="http://glufke.net/oracle/download/oracle_ebs_concorrentes_em_excel.pdf">AQUI</a><br />
Comentários <a href="http://glufke.net/oracle/viewtopic.php?t=6095">aqui</a></em></p>
]]></content:encoded>
			<wfw:commentRss>http://glufke.net/2010/04/15/concorrentes-no-oracle-ebs-com-saida-em-excel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

