<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-9042171415565691672</id><updated>2024-11-08T07:36:51.603-08:00</updated><category term="Technical - AP"/><category term="Technical - SysAdmn"/><category term="Technical - AR"/><category term="Technical - INV"/><category term="Technical - PO"/><category term="Functional - ONT"/><category term="Discoverer"/><category term="ERP Technical Guide"/><category term="Functional - PO"/><category term="Oracle Fusion HCM"/><category term="Welcome to Chaitanya&#39;s Blog"/><title type='text'>Oracle APPS for Technical&#39;s</title><subtitle type='html'>You will get all information about Oracle Apps Technical for 11i/R12 and Fusion Applications.&#xa;Site loaded with Oracle.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://onlineappstech.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9042171415565691672/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://onlineappstech.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/9042171415565691672/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Krishna Chaitanya Vemparala</name><uri>http://www.blogger.com/profile/04369279679684152438</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhN-gapVNPppp930Twb-2ZZOoTw00kAdpx4PNiK2EkSzXr_Lcwa-rVuwnrH8ifjXityHCtEHvmv0PsRtWZ6PsSvbJemqsS5xn08jTJmPxrhx92txGZq9lj7p_cy10KmRA/s220/_DAS9074.JPG'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>30</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-9042171415565691672.post-2709114823162313648</id><published>2013-10-02T08:11:00.001-07:00</published><updated>2013-10-06T23:37:31.262-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ERP Technical Guide"/><title type='text'>Oracle ERP HandBook by Chaitanya</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
----------------------------------------------------------------------------------------&lt;br /&gt;
-- Purpose : Oracle ERP HandBook&lt;br /&gt;
-- Release Date: 03.Jun.2011&lt;br /&gt;
-- Created by : Siri&lt;br /&gt;
---------------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Oracle APPS Technical Handbook gives a complete hands on experience for freshers.&lt;br /&gt;
&lt;br /&gt;
The link is now disabled&amp;nbsp;&lt;a href=&quot;https://docs.google.com/open?id=0BxmNJOFZKZgBblhZbW94b1Z2aEU&quot;&gt;Oracle ERP Handbook.pdf&lt;/a&gt;, Contact kchaitanya.v@gmail.com for the same.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Contents &lt;/b&gt;of the&amp;nbsp;&lt;a href=&quot;https://docs.google.com/open?id=0BxmNJOFZKZgBblhZbW94b1Z2aEU&quot;&gt;Oracle ERP Handbook.pdf&lt;/a&gt;&amp;nbsp;is mentioned below.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhUqdaVXkEM5oBj5Ych3jM5sP-vTk8XmXD7NcwD5DJxHO83Qy_x6IHDZxbaOMwJ6UsxAehcnr9PHSC9JjAt48NhXtJmBziyjQazh-B0Z-rQ8IuncY9gNNloj_YOuSQ4WkKrtHuwnncC75Fs/s1600/ERP+Book+Contents.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhUqdaVXkEM5oBj5Ych3jM5sP-vTk8XmXD7NcwD5DJxHO83Qy_x6IHDZxbaOMwJ6UsxAehcnr9PHSC9JjAt48NhXtJmBziyjQazh-B0Z-rQ8IuncY9gNNloj_YOuSQ4WkKrtHuwnncC75Fs/s1600/ERP+Book+Contents.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Write to us to get more updates on oracle technologies.&lt;br /&gt;
&lt;br /&gt;
-- ----------------------------------------------------------------------------------------------------&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://onlineappstech.blogspot.com/feeds/2709114823162313648/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9042171415565691672/2709114823162313648' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9042171415565691672/posts/default/2709114823162313648'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9042171415565691672/posts/default/2709114823162313648'/><link rel='alternate' type='text/html' href='http://onlineappstech.blogspot.com/2013/10/oracle-erp-handbook-by-chaitanya.html' title='Oracle ERP HandBook by Chaitanya'/><author><name>Krishna Chaitanya Vemparala</name><uri>http://www.blogger.com/profile/04369279679684152438</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhN-gapVNPppp930Twb-2ZZOoTw00kAdpx4PNiK2EkSzXr_Lcwa-rVuwnrH8ifjXityHCtEHvmv0PsRtWZ6PsSvbJemqsS5xn08jTJmPxrhx92txGZq9lj7p_cy10KmRA/s220/_DAS9074.JPG'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhUqdaVXkEM5oBj5Ych3jM5sP-vTk8XmXD7NcwD5DJxHO83Qy_x6IHDZxbaOMwJ6UsxAehcnr9PHSC9JjAt48NhXtJmBziyjQazh-B0Z-rQ8IuncY9gNNloj_YOuSQ4WkKrtHuwnncC75Fs/s72-c/ERP+Book+Contents.jpg" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9042171415565691672.post-3710182138811378814</id><published>2013-09-29T23:25:00.002-07:00</published><updated>2013-10-16T01:40:35.075-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Oracle Fusion HCM"/><title type='text'></title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: large;&quot;&gt;
Watch this Space to get more updates on &lt;u&gt;Fusion HCM&lt;/u&gt;&lt;/span&gt;&lt;/h2&gt;
&lt;div&gt;
&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/div&gt;
&lt;div&gt;
Thanks,&lt;/div&gt;
&lt;div&gt;
Chaitanya&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://onlineappstech.blogspot.com/feeds/3710182138811378814/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9042171415565691672/3710182138811378814' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9042171415565691672/posts/default/3710182138811378814'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9042171415565691672/posts/default/3710182138811378814'/><link rel='alternate' type='text/html' href='http://onlineappstech.blogspot.com/2013/09/blog-post.html' title=''/><author><name>Krishna Chaitanya Vemparala</name><uri>http://www.blogger.com/profile/04369279679684152438</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhN-gapVNPppp930Twb-2ZZOoTw00kAdpx4PNiK2EkSzXr_Lcwa-rVuwnrH8ifjXityHCtEHvmv0PsRtWZ6PsSvbJemqsS5xn08jTJmPxrhx92txGZq9lj7p_cy10KmRA/s220/_DAS9074.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9042171415565691672.post-8212662582802131703</id><published>2012-07-12T23:51:00.003-07:00</published><updated>2012-07-12T23:51:34.382-07:00</updated><title type='text'>Fixed Asset details - R12</title><content type='html'>-- ----------------------------------------------------------------------------------------------------&lt;br /&gt;
-- Purpose : R12 Fixed Asset details &lt;br /&gt;
-- Release Date: 13.Jul.2012&lt;br /&gt;
-- Created by : Siri&lt;br /&gt;
-- .....&lt;br /&gt;
-- ----------------------------------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;
select fab.asset_id &amp;nbsp;&amp;nbsp;&amp;nbsp;      asset_id,&lt;br /&gt;
       fab.asset_number &amp;nbsp;&amp;nbsp;&amp;nbsp;   asset_number,&lt;br /&gt;
       fal.description  &amp;nbsp;&amp;nbsp;&amp;nbsp;  asset_description,&lt;br /&gt;
       fab.current_units &amp;nbsp;&amp;nbsp;&amp;nbsp; units,&lt;br /&gt;
       (select sum(fixed_assets_cost) &lt;br /&gt;
          from apps.fa_invoice_details_v&lt;br /&gt;
         where asset_id = fab.asset_id)&amp;nbsp;&amp;nbsp;&amp;nbsp;cost,&lt;br /&gt;
       fab.serial_number &amp;nbsp;&amp;nbsp;&amp;nbsp; serial_number,&lt;br /&gt;
       fab.model_number &amp;nbsp;&amp;nbsp;&amp;nbsp;  model_number,&lt;br /&gt;
       fab.tag_number   &amp;nbsp;&amp;nbsp;&amp;nbsp;  tag_number,&lt;br /&gt;
       (select ASSIGNMENT_NUMBER &lt;br /&gt;
          from apps.per_all_assignments_f&lt;br /&gt;
         where person_id = fdh.assigned_to&lt;br /&gt;
           and trunc(sysdate) between effective_start_date and effective_end_date   &lt;br /&gt;
      ) &amp;nbsp;&amp;nbsp;&amp;nbsp; assigned_to&lt;br /&gt;
 from apps.fa_additions_b fab,&lt;br /&gt;
      apps.fa_distribution_history fdh,&lt;br /&gt;
      apps.fa_additions_tl fal&lt;br /&gt;
where 1=1&lt;br /&gt;
  and fab.asset_id = fdh.asset_id&lt;br /&gt;
  and fal.asset_id = fab.asset_id&lt;br /&gt;
  and trunc(sysdate) between fdh.date_effective and nvl(fdh.date_ineffective,sysdate+1);&lt;br /&gt;

&lt;br /&gt;&lt;br /&gt;-- ----------------------------------------------------------------------------------------------------</content><link rel='replies' type='application/atom+xml' href='http://onlineappstech.blogspot.com/feeds/8212662582802131703/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9042171415565691672/8212662582802131703' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9042171415565691672/posts/default/8212662582802131703'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9042171415565691672/posts/default/8212662582802131703'/><link rel='alternate' type='text/html' href='http://onlineappstech.blogspot.com/2012/07/fixed-asset-details-r12.html' title='Fixed Asset details - R12'/><author><name>Krishna Chaitanya Vemparala</name><uri>http://www.blogger.com/profile/04369279679684152438</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhN-gapVNPppp930Twb-2ZZOoTw00kAdpx4PNiK2EkSzXr_Lcwa-rVuwnrH8ifjXityHCtEHvmv0PsRtWZ6PsSvbJemqsS5xn08jTJmPxrhx92txGZq9lj7p_cy10KmRA/s220/_DAS9074.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9042171415565691672.post-728587399457047694</id><published>2012-07-12T23:47:00.001-07:00</published><updated>2012-07-12T23:47:55.958-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Technical - AP"/><title type='text'>To get the Internal BankAccount / Bank Branch Details - R12</title><content type='html'>-- ----------------------------------------------------------------------------------------------------&lt;br /&gt;
-- Purpose : R12 To get the Internal BankAccount / Bank Branch Details&lt;br /&gt;
-- Release Date: 13.Jul.2012&lt;br /&gt;
-- Created by : Siri&lt;br /&gt;
-- .....&lt;br /&gt;
-- ----------------------------------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;
select ieba.ext_bank_account_id, &lt;br /&gt;
       ieba.bank_account_num,&lt;br /&gt;
       ieba.bank_account_name,&lt;br /&gt;
       ieba.bank_id,&lt;br /&gt;
       ieba.branch_id,&lt;br /&gt;
       ieb.bank_name,&lt;br /&gt;
       iebb.bank_branch_name,&lt;br /&gt;
       iebb.branch_number,&lt;br /&gt;
       iebb.eft_swift_code,&lt;br /&gt;
       iebb.address_line1,&lt;br /&gt;
       iebb.address_line2,&lt;br /&gt;
       iebb.address_line3,&lt;br /&gt;
       iebb.address_line4,&lt;br /&gt;
       iebb.city,&lt;br /&gt;
       iebb.state,&lt;br /&gt;
       iebb.country,&lt;br /&gt;
       iebb.zip,&lt;br /&gt;
       ieba.creation_date,&lt;br /&gt;
       (select user_name from fnd_user where user_id = ieba.created_by) created_by&lt;br /&gt;
 from&lt;br /&gt;
apps.iby_ext_bank_branches_v iebb,&lt;br /&gt;
apps.iby_ext_banks_v ieb,&lt;br /&gt;
apps.iby_ext_bank_accounts   ieba&lt;br /&gt;
where iebb.bank_party_id = ieba.bank_id&lt;br /&gt;
  and iebb.branch_party_id = ieba.branch_id&lt;br /&gt;
  and ieb.bank_party_id = iebb.bank_party_id&lt;br /&gt;
  and ieb.bank_party_id = ieba.bank_id
&lt;br /&gt;&lt;br /&gt;-- ----------------------------------------------------------------------------------------------------</content><link rel='replies' type='application/atom+xml' href='http://onlineappstech.blogspot.com/feeds/728587399457047694/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9042171415565691672/728587399457047694' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9042171415565691672/posts/default/728587399457047694'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9042171415565691672/posts/default/728587399457047694'/><link rel='alternate' type='text/html' href='http://onlineappstech.blogspot.com/2012/07/to-get-internal-bankaccount-bank-branch.html' title='To get the Internal BankAccount / Bank Branch Details - R12'/><author><name>Krishna Chaitanya Vemparala</name><uri>http://www.blogger.com/profile/04369279679684152438</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhN-gapVNPppp930Twb-2ZZOoTw00kAdpx4PNiK2EkSzXr_Lcwa-rVuwnrH8ifjXityHCtEHvmv0PsRtWZ6PsSvbJemqsS5xn08jTJmPxrhx92txGZq9lj7p_cy10KmRA/s220/_DAS9074.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9042171415565691672.post-947194239435722526</id><published>2009-09-22T10:52:00.000-07:00</published><updated>2012-07-12T23:43:26.655-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Technical - AP"/><title type='text'>To get the selected invoices for the payment batch</title><content type='html'>-- ----------------------------------------------------------------------------------------------------&lt;br /&gt;-- Purpose : 11i To get the selected invoices for the payment batch, After invoice selection Screen&lt;br /&gt;-- Release Date: 22.Sep.2009&lt;br /&gt;-- Created by : Siri&lt;br /&gt;-- .....&lt;br /&gt;-- ----------------------------------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;select ai.INVOICE_NUM,&lt;br /&gt;       ai.INVOICE_AMOUNT,&lt;br /&gt;       ai.AMOUNT_PAID,&lt;br /&gt;       asi.CHECKRUN_NAME,&lt;br /&gt;       asi.CHECK_NUMBER,&lt;br /&gt;       asi.AMOUNT_REMAINING,&lt;br /&gt;       abb.BANK_NAME,&lt;br /&gt;       abb.BANK_BRANCH_NAME,&lt;br /&gt;       asi.BANK_ACCOUNT_NUM,&lt;br /&gt;       asi.BANK_ACCOUNT_TYPE&lt;br /&gt;       from ap_selected_invoices_all asi,&lt;br /&gt;            AP_BANK_ACCOUNTS_all aba,&lt;br /&gt;            AP_BANK_BRANCHES abb,&lt;br /&gt;            ap_invoices_all ai&lt;br /&gt;where 1=1&lt;br /&gt;and asi.checkrun_name = :Payment_Batch_name&lt;br /&gt;and asi.INVOICE_ID = ai.INVOICE_ID&lt;br /&gt;and aba.BANK_ACCOUNT_NUM = asi.BANK_ACCOUNT_NUM&lt;br /&gt;and aba.BANK_ACCOUNT_TYPE = asi.BANK_ACCOUNT_TYPE&lt;br /&gt;and aba.BANK_BRANCH_ID = abb.BANK_BRANCH_ID&lt;br /&gt;order by 4,1;&lt;br /&gt;&lt;br /&gt;-- ----------------------------------------------------------------------------------------------------</content><link rel='replies' type='application/atom+xml' href='http://onlineappstech.blogspot.com/feeds/947194239435722526/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9042171415565691672/947194239435722526' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9042171415565691672/posts/default/947194239435722526'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9042171415565691672/posts/default/947194239435722526'/><link rel='alternate' type='text/html' href='http://onlineappstech.blogspot.com/2009/09/to-get-selected-invoices-for-payment.html' title='To get the selected invoices for the payment batch'/><author><name>Krishna Chaitanya Vemparala</name><uri>http://www.blogger.com/profile/04369279679684152438</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhN-gapVNPppp930Twb-2ZZOoTw00kAdpx4PNiK2EkSzXr_Lcwa-rVuwnrH8ifjXityHCtEHvmv0PsRtWZ6PsSvbJemqsS5xn08jTJmPxrhx92txGZq9lj7p_cy10KmRA/s220/_DAS9074.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9042171415565691672.post-55393319092796957</id><published>2009-08-03T08:49:00.000-07:00</published><updated>2009-08-03T08:53:27.510-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Technical - AP"/><category scheme="http://www.blogger.com/atom/ns#" term="Technical - AR"/><category scheme="http://www.blogger.com/atom/ns#" term="Technical - INV"/><category scheme="http://www.blogger.com/atom/ns#" term="Technical - PO"/><title type='text'>Query to get all the period statuses for all the applications</title><content type='html'>-- ----------------------------------------------------------------------------------------------------&lt;br /&gt;-- Purpose : To get current period statuses for all the application modules at a single query&lt;br /&gt;-- Release Date: 03.Aug.2009&lt;br /&gt;-- Created by : Siri&lt;br /&gt;-- .....&lt;br /&gt;-- ----------------------------------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;select gsob.NAME sob_name,&lt;br /&gt;       fav.APPLICATION_NAME, &lt;br /&gt;       gps.PERIOD_NAME,&lt;br /&gt;       gps.start_date,&lt;br /&gt;       gps.END_DATE,&lt;br /&gt;       (select meaning from fnd_lookups&lt;br /&gt;       where lookup_code = gps.CLOSING_STATUS&lt;br /&gt;        and lookup_type = &#39;IGC_CC_PERIOD_STATUS&#39;) Period_status&lt;br /&gt;from GL_PERIOD_STATUSES gps,&lt;br /&gt;     fnd_application_vl fav,&lt;br /&gt;     gl_sets_of_books gsob&lt;br /&gt;where gps.APPLICATION_ID = fav.APPLICATION_ID&lt;br /&gt;and gsob.set_of_books_id = gps.SET_OF_BOOKS_ID&lt;br /&gt;and fav.APPLICATION_SHORT_NAME = nvl(:appl_short_name,fav.APPLICATION_SHORT_NAME)&lt;br /&gt;and gps.PERIOD_NAME = nvl(:p_period,to_char(sysdate,&#39;Mon-YY&#39;))&lt;br /&gt;order by 1,2&lt;br /&gt;&lt;br /&gt;-- ----------------------------------------------------------------------------------------------------</content><link rel='replies' type='application/atom+xml' href='http://onlineappstech.blogspot.com/feeds/55393319092796957/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9042171415565691672/55393319092796957' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9042171415565691672/posts/default/55393319092796957'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9042171415565691672/posts/default/55393319092796957'/><link rel='alternate' type='text/html' href='http://onlineappstech.blogspot.com/2009/08/query-to-get-all-period-statuses-for.html' title='Query to get all the period statuses for all the applications'/><author><name>Krishna Chaitanya Vemparala</name><uri>http://www.blogger.com/profile/04369279679684152438</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhN-gapVNPppp930Twb-2ZZOoTw00kAdpx4PNiK2EkSzXr_Lcwa-rVuwnrH8ifjXityHCtEHvmv0PsRtWZ6PsSvbJemqsS5xn08jTJmPxrhx92txGZq9lj7p_cy10KmRA/s220/_DAS9074.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9042171415565691672.post-1235399022205828117</id><published>2009-07-28T10:44:00.000-07:00</published><updated>2009-07-28T10:45:55.708-07:00</updated><title type='text'>Query to get the list of all profiles defined at different levels</title><content type='html'>-- ----------------------------------------------------------------------------------------------------&lt;br /&gt;-- Purpose : Query to get the List of all profiles defined at different levels&lt;br /&gt;-- Release Date: 28.July.2009&lt;br /&gt;-- Created by : Siri&lt;br /&gt;-- .....&lt;br /&gt;-- ----------------------------------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;select        fpo.profile_option_name         Profile_name&lt;br /&gt;,             fpot.user_profile_option_name   User_Profile_Name&lt;br /&gt;,             fpot.description                         Description&lt;br /&gt;,             fpo.start_date_active           Start_date&lt;br /&gt;,             fpo.end_date_active             End_Date&lt;br /&gt;,             fpo.creation_date             Creation_Date&lt;br /&gt;,             fu.user_name                 created_by&lt;br /&gt;,             fpov.LAST_UPDATE_DATE        Updated_Date&lt;br /&gt;,             (select user_name from fnd_user fu1&lt;br /&gt;                   where fpov.LAST_UPDATEd_by =  fu1.user_id)     Updated_by&lt;br /&gt;,             decode(fpov.level_id ,10001, &#39;Site&#39;,10002, &#39;Application&#39;,10003, &#39;Responsibility&#39;,10004, &#39;User&#39;) Profile_Level&lt;br /&gt;,             fpov.profile_option_value                Profile_option_value&lt;br /&gt;from       FND_PROFILE_OPTIONS_vl      fpot&lt;br /&gt;,          FND_PROFILE_OPTIONS         fpo&lt;br /&gt;,          FND_PROFILE_OPTION_VALUES   fpov&lt;br /&gt;,          FND_USER                    fu&lt;br /&gt;where    fpot.profile_option_name = fpo.profile_option_name&lt;br /&gt;and      fpo.application_id       = fpov.application_id&lt;br /&gt;and      fpo.profile_option_id    = fpov.profile_option_id&lt;br /&gt;and      fpo.created_by           = fu.user_id&lt;br /&gt;and      fpot.language            = Userenv(&#39;Lang&#39;) &lt;br /&gt;order by fpov.level_id;</content><link rel='replies' type='application/atom+xml' href='http://onlineappstech.blogspot.com/feeds/1235399022205828117/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9042171415565691672/1235399022205828117' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9042171415565691672/posts/default/1235399022205828117'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9042171415565691672/posts/default/1235399022205828117'/><link rel='alternate' type='text/html' href='http://onlineappstech.blogspot.com/2009/07/query-to-get-list-of-all-profiles.html' title='Query to get the list of all profiles defined at different levels'/><author><name>Krishna Chaitanya Vemparala</name><uri>http://www.blogger.com/profile/04369279679684152438</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhN-gapVNPppp930Twb-2ZZOoTw00kAdpx4PNiK2EkSzXr_Lcwa-rVuwnrH8ifjXityHCtEHvmv0PsRtWZ6PsSvbJemqsS5xn08jTJmPxrhx92txGZq9lj7p_cy10KmRA/s220/_DAS9074.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9042171415565691672.post-5140632035557092151</id><published>2009-07-28T10:38:00.001-07:00</published><updated>2009-07-28T10:40:09.403-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Technical - AP"/><title type='text'>Query to get the account details for a particular payable bank</title><content type='html'>-- ----------------------------------------------------------------------------------------------------&lt;br /&gt;-- Purpose : Query to get the account details for a particular payable bank&lt;br /&gt;-- Release Date: 28.July.2009&lt;br /&gt;-- Created by : Siri&lt;br /&gt;-- .....&lt;br /&gt;-- ----------------------------------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;select abb.bank_name,&lt;br /&gt;       aba.BANK_ACCOUNT_NAME, &lt;br /&gt;       aba.BANK_ACCOUNT_NUM,&lt;br /&gt;       aba.DESCRIPTION,&lt;br /&gt;       aba.CURRENCY_CODE curr_code&lt;br /&gt;from AP_BANK_branches abb,&lt;br /&gt;     AP_BANK_ACCOUNTS_ALL aba&lt;br /&gt;where abb.BANK_BRANCH_ID = aba.BANK_BRANCH_ID&lt;br /&gt;and abb.bank_name = :Bank_name</content><link rel='replies' type='application/atom+xml' href='http://onlineappstech.blogspot.com/feeds/5140632035557092151/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9042171415565691672/5140632035557092151' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9042171415565691672/posts/default/5140632035557092151'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9042171415565691672/posts/default/5140632035557092151'/><link rel='alternate' type='text/html' href='http://onlineappstech.blogspot.com/2009/07/query-to-get-account-details-for.html' title='Query to get the account details for a particular payable bank'/><author><name>Krishna Chaitanya Vemparala</name><uri>http://www.blogger.com/profile/04369279679684152438</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhN-gapVNPppp930Twb-2ZZOoTw00kAdpx4PNiK2EkSzXr_Lcwa-rVuwnrH8ifjXityHCtEHvmv0PsRtWZ6PsSvbJemqsS5xn08jTJmPxrhx92txGZq9lj7p_cy10KmRA/s220/_DAS9074.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9042171415565691672.post-4114244943092298155</id><published>2009-06-03T00:00:00.000-07:00</published><updated>2009-06-05T07:21:49.525-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Discoverer"/><title type='text'>Oracle Discoverer Handbook</title><content type='html'>-- ----------------------------------------------------------------------------------------------------&lt;br /&gt;-- Purpose : Discoverer Administrator / Desktop Handbook.&lt;br /&gt;-- Release Date: 03.June.2009&lt;br /&gt;-- Created by : Siri&lt;br /&gt;-- .....&lt;br /&gt;-- ----------------------------------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;Oracle Discoverer Handbook gives a complete hands on experience in Oracle Discoverer Administrator and Discoverer Desktop.&lt;br&gt;&lt;br /&gt;Get the book download from this link &lt;a href=&quot;http://sites.google.com/site/oracleappsfortechnicals/Home/Discoverer_Handbook_v1_1.pdf&quot;&gt;Oracle Discoverer Handbook.pdf&lt;/a&gt; covers all areas in discoverer desktop and discoverer administrator.&lt;br /&gt;&lt;br /&gt;Write to us to get more updates on oracle technologies.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;-- ----------------------------------------------------------------------------------</content><link rel='replies' type='application/atom+xml' href='http://onlineappstech.blogspot.com/feeds/4114244943092298155/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9042171415565691672/4114244943092298155' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9042171415565691672/posts/default/4114244943092298155'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9042171415565691672/posts/default/4114244943092298155'/><link rel='alternate' type='text/html' href='http://onlineappstech.blogspot.com/2009/06/oracle-discoverer-handbook.html' title='Oracle Discoverer Handbook'/><author><name>Siri</name><uri>http://www.blogger.com/profile/06807255845937432176</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgzWlySzNS2Ia31_uTiDAu07yDKP6ULaY9YQdaD-zuGS0fxULsn94dg88m6zcUVU0fL4CaPb6K2m-Oe3h4RKU24C9a8M3qlwYEK7sn7_iPk8CnuLFBMheU0KUKn4qeAlw/s220/_DAS89930.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9042171415565691672.post-8372079224019126503</id><published>2009-06-01T06:34:00.000-07:00</published><updated>2009-06-01T06:37:18.912-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Technical - INV"/><title type='text'>Inventory Stock details of an item</title><content type='html'>-- ----------------------------------------------------------------------------------------------------&lt;br /&gt;-- Purpose : Inventory Stock details of an item by Subinventory / Oranizations&lt;br /&gt;-- Date&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;: 01.June.2009&lt;br /&gt;-- Created by : Siri&lt;br /&gt;-- .....&lt;br /&gt;-- ----------------------------------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;SELECT&lt;br /&gt;msi.SEGMENT1 Item_name,&lt;br /&gt;ood.ORGANIZATION_NAME org_name,&lt;br /&gt;msinv.SECONDARY_INVENTORY_NAME subinv_name,&lt;br /&gt;moq.TRANSACTION_QUANTITY&lt;br /&gt;from &lt;br /&gt;mtl_system_items_b msi,&lt;br /&gt;mtl_onhand_quantities moq,&lt;br /&gt;mtl_secondary_inventories msinv,&lt;br /&gt;org_organization_definitions ood&lt;br /&gt;where msi.INVENTORY_ITEM_ID = moq.INVENTORY_ITEM_ID&lt;br /&gt;and msinv.ORGANIZATION_ID = moq.ORGANIZATION_ID&lt;br /&gt;and msi.ORGANIZATION_ID = moq.ORGANIZATION_ID&lt;br /&gt;and msinv.SECONDARY_INVENTORY_NAME = moq.SUBINVENTORY_CODE&lt;br /&gt;and ood.ORGANIZATION_ID = moq.ORGANIZATION_ID&lt;br /&gt;and msi.segment1 = :item_name;&lt;br /&gt;&lt;br /&gt;-- --------------------------------------------------------</content><link rel='replies' type='application/atom+xml' href='http://onlineappstech.blogspot.com/feeds/8372079224019126503/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9042171415565691672/8372079224019126503' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9042171415565691672/posts/default/8372079224019126503'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9042171415565691672/posts/default/8372079224019126503'/><link rel='alternate' type='text/html' href='http://onlineappstech.blogspot.com/2009/06/inventory-stock-details-of-item.html' title='Inventory Stock details of an item'/><author><name>Siri</name><uri>http://www.blogger.com/profile/06807255845937432176</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgzWlySzNS2Ia31_uTiDAu07yDKP6ULaY9YQdaD-zuGS0fxULsn94dg88m6zcUVU0fL4CaPb6K2m-Oe3h4RKU24C9a8M3qlwYEK7sn7_iPk8CnuLFBMheU0KUKn4qeAlw/s220/_DAS89930.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9042171415565691672.post-4421550846367824841</id><published>2009-05-31T08:00:00.000-07:00</published><updated>2009-06-01T06:33:58.865-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Technical - AR"/><title type='text'>AR Invoice Interface rejected transactions</title><content type='html'>-- ---------------------------------------------------------------------------&lt;br /&gt;-- Purpose    : AR Invoice Interface rejected Records for Analysis&lt;br /&gt;-- Date&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;: 31.May.2009&lt;br /&gt;-- Created by : Siri&lt;br /&gt;--   .....&lt;br /&gt;-- ---------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;SELECT ril.INTERFACE_LINE_ID,&lt;br /&gt;       (select customer_name from ra_customers &lt;br /&gt;         where customer_id = ril.ORIG_SYSTEM_BILL_CUSTOMER_ID&lt;br /&gt;         or customer_number = ril.orig_system_bill_customer_ref) Customer_Name,&lt;br /&gt;       ril.trx_number,&lt;br /&gt;       ril.trx_date, &lt;br /&gt;       ril.gl_date, &lt;br /&gt;       ril.INTERFACE_LINE_CONTEXT,&lt;br /&gt;       ril.INTERFACE_LINE_ATTRIBUTE1,&lt;br /&gt;       ril.BATCH_SOURCE_NAME,&lt;br /&gt;       ril.LINE_TYPE,&lt;br /&gt;       ril.INTERFACE_STATUS Status ,&lt;br /&gt;       rie.INVALID_VALUE,&lt;br /&gt;       rie.MESSAGE_TEXT&lt;br /&gt;from ra_interface_lines_all ril,&lt;br /&gt;     ra_interface_errors_all rie&lt;br /&gt;where rie.INTERFACE_LINE_ID = ril.INTERFACE_LINE_ID&lt;br /&gt;and ril.BATCH_SOURCE_NAME = :batch_source_name;&lt;br /&gt;&lt;br /&gt;-- ---------------------------------------------------------------------------</content><link rel='replies' type='application/atom+xml' href='http://onlineappstech.blogspot.com/feeds/4421550846367824841/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9042171415565691672/4421550846367824841' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9042171415565691672/posts/default/4421550846367824841'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9042171415565691672/posts/default/4421550846367824841'/><link rel='alternate' type='text/html' href='http://onlineappstech.blogspot.com/2009/05/ar-invoice-interface-rejected.html' title='AR Invoice Interface rejected transactions'/><author><name>Siri</name><uri>http://www.blogger.com/profile/06807255845937432176</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgzWlySzNS2Ia31_uTiDAu07yDKP6ULaY9YQdaD-zuGS0fxULsn94dg88m6zcUVU0fL4CaPb6K2m-Oe3h4RKU24C9a8M3qlwYEK7sn7_iPk8CnuLFBMheU0KUKn4qeAlw/s220/_DAS89930.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9042171415565691672.post-1196665497977002739</id><published>2009-05-30T04:19:00.001-07:00</published><updated>2009-05-30T04:21:57.057-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Technical - SysAdmn"/><title type='text'>PID and SID details of a Concurrent Request</title><content type='html'>-- ----------------------------------------------------------------------------------------------------------------&lt;br /&gt;-- Purpose    : Getting the Process ID, session and terminal details for the Concurrent request.&lt;br /&gt;-- Date&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;: 30.May.2009&lt;br /&gt;-- Created by : Siri&lt;br /&gt;--   .....&lt;br /&gt;-- ----------------------------------------------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;SELECT req.request_id ,&lt;br /&gt;        prog.USER_CONCURRENT_PROGRAM_NAME Conc_prg_Name,&lt;br /&gt;        fu.USER_NAME requested_by,&lt;br /&gt;        fr.RESPONSIBILITY_KEY responsibility,&lt;br /&gt;        ses.LOGON_TIME, &lt;br /&gt;        ses.sid,&lt;br /&gt;        ses.serial#,&lt;br /&gt;        proc.SPID,&lt;br /&gt;        proc.pid,&lt;br /&gt;        ses.USERNAME &quot;User&quot;,&lt;br /&gt;        ses.STATUS,&lt;br /&gt;        ses.sql_hash_value sql_hash,&lt;br /&gt;        proc.USERNAME osuser,&lt;br /&gt;        ses.MACHINE,&lt;br /&gt;        nvl(ses.TERMINAL,&#39;Not Available&#39;) Terminal,&lt;br /&gt;        ses.MODULE,&lt;br /&gt;        ses.ACTION,&lt;br /&gt;        ses.MODULE_HASH,&lt;br /&gt;        nvl(ses.PROGRAM,&#39;Not Available&#39;)  Program&lt;br /&gt;from fnd_concurrent_requests req, v$session ses, v$process proc,&lt;br /&gt;v$parameter dest, v$parameter dbnm, fnd_concurrent_programs_vl prog, &lt;br /&gt;fnd_responsibility fr,fnd_user fu,&lt;br /&gt;fnd_executables execname&lt;br /&gt;where &lt;br /&gt;1=1&lt;br /&gt;and req.request_id = :request_id&lt;br /&gt;and req.oracle_process_id=proc.spid(+)&lt;br /&gt;and proc.addr = ses.paddr(+)&lt;br /&gt;and dest.name=&#39;user_dump_dest&#39;&lt;br /&gt;and dbnm.name=&#39;db_name&#39;&lt;br /&gt;and req.concurrent_program_id = prog.concurrent_program_id&lt;br /&gt;and req.program_application_id = prog.application_id&lt;br /&gt;and req.RESPONSIBILITY_ID = fr.RESPONSIBILITY_ID&lt;br /&gt;and fu.USER_ID = req.REQUESTED_BY&lt;br /&gt;and prog.application_id = execname.application_id&lt;br /&gt;and prog.executable_id=execname.executable_id;&lt;br /&gt;&lt;br /&gt;-- --------------------------------------------------------------------------------</content><link rel='replies' type='application/atom+xml' href='http://onlineappstech.blogspot.com/feeds/1196665497977002739/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9042171415565691672/1196665497977002739' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9042171415565691672/posts/default/1196665497977002739'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9042171415565691672/posts/default/1196665497977002739'/><link rel='alternate' type='text/html' href='http://onlineappstech.blogspot.com/2009/05/pid-and-sid-details-of-concurrent.html' title='PID and SID details of a Concurrent Request'/><author><name>Siri</name><uri>http://www.blogger.com/profile/06807255845937432176</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgzWlySzNS2Ia31_uTiDAu07yDKP6ULaY9YQdaD-zuGS0fxULsn94dg88m6zcUVU0fL4CaPb6K2m-Oe3h4RKU24C9a8M3qlwYEK7sn7_iPk8CnuLFBMheU0KUKn4qeAlw/s220/_DAS89930.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9042171415565691672.post-3374606979606604089</id><published>2009-05-29T10:23:00.000-07:00</published><updated>2009-05-30T04:02:53.042-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Technical - PO"/><title type='text'>Purchase order and Receipt Information</title><content type='html'>-- ---------------------------------------------------------------------------------&lt;br /&gt;-- Purpose    : Get the details of the PO, Receipt and line status information&lt;br /&gt;-- Date&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;: 29.May.2009&lt;br /&gt;-- Created by : Siri&lt;br /&gt;--   .....&lt;br /&gt;-- ----------------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;SELECT ph.segment1 po_num, &lt;br /&gt;        pl.LINE_NUM,&lt;br /&gt;        msi.segment1 item_name,&lt;br /&gt;        pv.VENDOR_NAME,&lt;br /&gt;        pll.QUANTITY ord_qty,&lt;br /&gt;        pll.QUANTITY_RECEIVED qty_rcvd,&lt;br /&gt;        pll.QUANTITY_BILLED Invcd_qty,&lt;br /&gt;        decode((select count(distinct rsh.RECEIPT_NUM) from RCV_SHIPMENT_lines rsl,&lt;br /&gt;              rcv_shipment_headers rsh&lt;br /&gt;            where rsl.po_line_id = pl.PO_LINE_ID &lt;br /&gt;            and rsl.SHIPMENT_HEADER_ID = rsh.SHIPMENT_HEADER_ID),1,&lt;br /&gt;            (select distinct rsh.RECEIPT_NUM from RCV_SHIPMENT_lines rsl,&lt;br /&gt;                          rcv_shipment_headers rsh&lt;br /&gt;            where rsl.po_line_id = pl.PO_LINE_ID &lt;br /&gt;            and rsl.SHIPMENT_HEADER_ID = rsh.SHIPMENT_HEADER_ID)&lt;br /&gt;            ,&#39;Received in More than one Receipt&#39;) Receipt_num,&lt;br /&gt;        pll.PO_LINE_ID,&lt;br /&gt;        ph.CLOSED_CODE order_status,&lt;br /&gt;        pl.CLOSED_CODE line_status        &lt;br /&gt;from po_headers_all ph&lt;br /&gt;,po_lines_all pl&lt;br /&gt;,po_line_locations_all pll&lt;br /&gt;,po_vendors pv&lt;br /&gt;,mtl_system_items_b msi&lt;br /&gt;where 1=1&lt;br /&gt;and ph.type_lookup_code = &#39;STANDARD&#39;&lt;br /&gt;and pl.PO_HEADER_ID = ph.PO_HEADER_ID&lt;br /&gt;and pll.PO_HEADER_ID = ph.PO_HEADER_ID&lt;br /&gt;and pl.PO_LINE_ID = pll.PO_LINE_ID&lt;br /&gt;and msi.ORGANIZATION_ID = pll.SHIP_TO_ORGANIZATION_ID&lt;br /&gt;and ph.VENDOR_ID = pv.VENDOR_ID&lt;br /&gt;and msi.INVENTORY_ITEM_ID = pl.ITEM_ID&lt;br /&gt;and ph.SEGMENT1 = :po_num;&lt;br /&gt;&lt;br /&gt;-- ---------------------------------------------------------------------------</content><link rel='replies' type='application/atom+xml' href='http://onlineappstech.blogspot.com/feeds/3374606979606604089/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9042171415565691672/3374606979606604089' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9042171415565691672/posts/default/3374606979606604089'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9042171415565691672/posts/default/3374606979606604089'/><link rel='alternate' type='text/html' href='http://onlineappstech.blogspot.com/2009/05/purchase-order-and-receipt-information.html' title='Purchase order and Receipt Information'/><author><name>Siri</name><uri>http://www.blogger.com/profile/06807255845937432176</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgzWlySzNS2Ia31_uTiDAu07yDKP6ULaY9YQdaD-zuGS0fxULsn94dg88m6zcUVU0fL4CaPb6K2m-Oe3h4RKU24C9a8M3qlwYEK7sn7_iPk8CnuLFBMheU0KUKn4qeAlw/s220/_DAS89930.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9042171415565691672.post-2442395428366615625</id><published>2009-05-28T12:10:00.000-07:00</published><updated>2009-05-30T04:03:08.318-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Technical - AP"/><title type='text'>AP Invoice Interface rejected Records</title><content type='html'>-- ---------------------------------------------------------------------------&lt;br /&gt;-- Purpose    : AP Invoice Interface rejected Records for Analysis&lt;br /&gt;-- Date&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;: 28.May.2009&lt;br /&gt;-- Created by : Siri&lt;br /&gt;--   .....&lt;br /&gt;-- ---------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;SELECT pv.vendor_name,&lt;br /&gt;       aii.INVOICE_ID,&lt;br /&gt;       aii.SOURCE,&lt;br /&gt;       aii.invoice_num,&lt;br /&gt;       (select decode(count(*),0,&#39;Invoice N/A&#39;,&#39;Invoice Available&#39;) from ap_invoices_all&lt;br /&gt;        where org_id = aii.ORG_ID&lt;br /&gt;         and invoice_num = aii.INVOICE_NUM) Inv_in_Base,&lt;br /&gt;       aii.CREATION_DATE,&lt;br /&gt;       aii.invoice_date, &lt;br /&gt;       aii.GL_DATE,&lt;br /&gt;       ail.LINE_NUMBER,&lt;br /&gt;       aii.REQUEST_ID,&lt;br /&gt;       aii.invoice_currency_code,&lt;br /&gt;       nvl(airh.REJECT_LOOKUP_CODE,airl.REJECT_LOOKUP_CODE) Rejection_Reason,&lt;br /&gt;       (select decode(count(INACTIVE_DATE),0,&#39;Site is Active&#39;,&#39;Site is Inactive&#39;) from po_vendor_sites_All&lt;br /&gt;       where  vendor_site_id = aii.VENDOR_SITE_ID) Site_STatus&lt;br /&gt; from ap_invoice_lines_interface ail,&lt;br /&gt;     AP_INTERFACE_REJECTIONS airh,&lt;br /&gt;     AP_INTERFACE_REJECTIONS airl,&lt;br /&gt;     ap_invoices_interface aii,&lt;br /&gt;     po_vendors pv&lt;br /&gt;where aii.INVOICE_ID = ail.INVOICE_ID&lt;br /&gt;and airh.PARENT_ID = aii.INVOICE_ID&lt;br /&gt;and ail.INVOICE_LINE_ID = airl.PARENT_ID&lt;br /&gt;and aii.VENDOR_ID = pv.VENDOR_ID&lt;br /&gt;order by 2,6;&lt;br /&gt;&lt;br /&gt;-- ---------------------------------------------------------------------------</content><link rel='replies' type='application/atom+xml' href='http://onlineappstech.blogspot.com/feeds/2442395428366615625/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9042171415565691672/2442395428366615625' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9042171415565691672/posts/default/2442395428366615625'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9042171415565691672/posts/default/2442395428366615625'/><link rel='alternate' type='text/html' href='http://onlineappstech.blogspot.com/2009/05/ap-invoice-interface-rejected-records.html' title='AP Invoice Interface rejected Records'/><author><name>Siri</name><uri>http://www.blogger.com/profile/06807255845937432176</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgzWlySzNS2Ia31_uTiDAu07yDKP6ULaY9YQdaD-zuGS0fxULsn94dg88m6zcUVU0fL4CaPb6K2m-Oe3h4RKU24C9a8M3qlwYEK7sn7_iPk8CnuLFBMheU0KUKn4qeAlw/s220/_DAS89930.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9042171415565691672.post-9126253393321157453</id><published>2009-05-26T13:40:00.000-07:00</published><updated>2009-05-30T04:03:50.247-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Technical - PO"/><title type='text'>Purchase Order Cancellation Interface</title><content type='html'>-- ---------------------------------------------------------------------------&lt;br /&gt;-- Purpose    : Purchase order Cancellation validations&lt;br /&gt;-- Date&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;: 26.May.2009&lt;br /&gt;-- Created by : Siri&lt;br /&gt;--   .....&lt;br /&gt;-- ---------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;CREATE OR REPLACE PROCEDURE xx_po_can_validation(errbuf OUT VARCHAR2, retcode OUT VARCHAR2)&lt;br /&gt;AS &lt;br /&gt;  l_count NUMBER(2):=0;&lt;br /&gt;  l_header_id NUMBER:=0;&lt;br /&gt;  l_line_id NUMBER:=0;&lt;br /&gt;  l_flag VARCHAR2(1):=NULL;&lt;br /&gt;  CURSOR c_po_cancel_valid IS&lt;br /&gt;                       SELECT *&lt;br /&gt;         FROM xx_tab_po_can_stg&lt;br /&gt;         WHERE row_status IN (&#39;E&#39;,&#39;T&#39;)&lt;br /&gt;         FOR UPDATE;&lt;br /&gt;BEGIN&lt;br /&gt;     FOR c_po_cancel_valid_rec IN c_po_cancel_valid&lt;br /&gt;        LOOP&lt;br /&gt;            BEGIN&lt;br /&gt;                 SELECT COUNT(*) INTO l_count&lt;br /&gt;                 FROM po_headers_all pha&lt;br /&gt;                      ,po_lines_all pla&lt;br /&gt;                 WHERE pha.po_header_id=pla.po_header_id&lt;br /&gt;                       AND UPPER(pha.attribute1)=UPPER(c_po_cancel_valid_rec.po_header_reference)&lt;br /&gt;                       AND UPPER(pla.attribute1)=UPPER(c_po_cancel_valid_rec.po_line_reference);&lt;br /&gt;                 IF l_count=0 THEN&lt;br /&gt;                   UPDATE xx_tab_po_can_stg&lt;br /&gt;                   SET row_status=&#39;E&#39;&lt;br /&gt;                       ,error_message=&#39;This Slip number,Po number is not existing&#39;&lt;br /&gt;                   WHERE CURRENT OF c_po_cancel_valid;&lt;br /&gt;                 ELSIF l_count&gt;0 THEN&lt;br /&gt;                      SELECT pla.cancel_flag INTO l_flag&lt;br /&gt;                      FROM po_headers_all pha&lt;br /&gt;                           ,po_lines_all pla&lt;br /&gt;                      WHERE pha.po_header_id=pla.po_header_id&lt;br /&gt;                            AND UPPER(pha.attribute1)=UPPER(c_po_cancel_valid_rec.po_header_reference)&lt;br /&gt;                            AND UPPER(pla.attribute1)=UPPER(c_po_cancel_valid_rec.po_line_reference);&lt;br /&gt;                      IF l_flag=&#39;Y&#39; THEN&lt;br /&gt;                        UPDATE xx_tab_po_can_stg&lt;br /&gt;                        SET row_status=&#39;R&#39;&lt;br /&gt;                            ,error_message=&#39;This slipno and pono combination is already closed&#39;&lt;br /&gt;                        WHERE CURRENT OF c_po_cancel_valid;&lt;br /&gt;                      ELSE&lt;br /&gt;                          SELECT pha.po_header_id&lt;br /&gt;                                 ,pla.po_line_id&lt;br /&gt;                          INTO l_header_id&lt;br /&gt;                               ,l_line_id&lt;br /&gt;                          FROM po_headers_all pha&lt;br /&gt;                               ,po_lines_all pla&lt;br /&gt;                          WHERE pha.po_header_id=pla.po_header_id&lt;br /&gt;                                AND UPPER(pha.attribute1)=UPPER(c_po_cancel_valid_rec.po_header_reference)&lt;br /&gt;                                AND UPPER(pla.attribute1)=UPPER(c_po_cancel_valid_rec.po_line_reference);&lt;br /&gt;                          UPDATE xx_tab_po_can_stg&lt;br /&gt;                          SET header_id=l_header_id&lt;br /&gt;                              ,line_id=l_line_id&lt;br /&gt;                              ,row_status=&#39;V&#39;&lt;br /&gt;                          WHERE CURRENT OF c_po_cancel_valid;&lt;br /&gt;                      END IF;&lt;br /&gt;                 END IF;&lt;br /&gt;            EXCEPTION&lt;br /&gt;              WHEN OTHERS THEN&lt;br /&gt;              FND_FILE.PUT_LINE(FND_FILE.LOG,SQLERRM());&lt;br /&gt;            END;&lt;br /&gt;        END LOOP;&lt;br /&gt;           COMMIT;&lt;br /&gt;EXCEPTION&lt;br /&gt;  WHEN OTHERS THEN&lt;br /&gt;  FND_FILE.PUT_LINE(FND_FILE.LOG,SQLERRM());&lt;br /&gt;END xx_po_can_validation;&lt;br /&gt;/&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;--======================================================&lt;br /&gt;--Cancelling the Valid Purchase order lines&lt;br /&gt;--======================================================&lt;br /&gt;&lt;br /&gt;CREATE OR REPLACE PROCEDURE xx_po_can_import(errbuf out varchar2, retcode out varchar2)&lt;br /&gt;AS                           &lt;br /&gt;  i NUMBER:=0;&lt;br /&gt;  x NUMBER:=0;&lt;br /&gt;  x_return_status VARCHAR2(1);&lt;br /&gt;  p_look_up_code VARCHAR2(10);&lt;br /&gt;  p_user_id NUMBER:=0;&lt;br /&gt;  p_resp_id NUMBER:=0;&lt;br /&gt;  p_resp_appl_id NUMBER:=0;&lt;br /&gt;  CURSOR c_po_cancel_import IS&lt;br /&gt;                           SELECT *&lt;br /&gt;                   FROM xx_tab_po_can_stg&lt;br /&gt;                           WHERE row_status=&#39;V&#39;;&lt;br /&gt;  BEGIN&lt;br /&gt;       SELECT meai_po_cancel_seq.NEXTVAL INTO x&lt;br /&gt;       FROM DUAL;&lt;br /&gt;       SELECT fnd_profile.value(&#39;user_id&#39;) INTO p_user_id from dual;&lt;br /&gt;       SELECT fnd_profile.value(&#39;resp_id&#39;) INTO p_resp_id from dual;&lt;br /&gt;       SELECT fnd_profile.value(&#39;resp_appl_id&#39;) INTO p_resp_appl_id from dual;&lt;br /&gt;       FND_GLOBAL.apps_initialize ( user_id =&gt; p_user_id,&lt;br /&gt;                                   resp_id =&gt; p_resp_id,&lt;br /&gt;                                   resp_appl_id =&gt; p_resp_appl_id);&lt;br /&gt;        BEGIN&lt;br /&gt;            FOR c_po_cancel_import_rec IN c_po_cancel_import&lt;br /&gt;               LOOP&lt;br /&gt;                SELECT &lt;br /&gt;                distinct(type_lookup_code) &lt;br /&gt;                into p_look_up_code&lt;br /&gt;                from po_headers_all &lt;br /&gt;                where po_header_id = c_po_cancel_import_rec.header_id;&lt;br /&gt;                   PO_Document_Control_PUB.control_document(&lt;br /&gt;                                                            1.0,&lt;br /&gt;                                                            FND_API.G_TRUE,&lt;br /&gt;                                                            FND_API.G_TRUE,&lt;br /&gt;                                                            x_return_status,&lt;br /&gt;                                                            &#39;PO&#39;,&lt;br /&gt;                                                            p_look_up_code,&lt;br /&gt;                                                            c_po_cancel_import_rec.header_id,&lt;br /&gt;                                                            NULL,&lt;br /&gt;                                                            NULL,&lt;br /&gt;                                                            NULL,&lt;br /&gt;                                                            c_po_cancel_import_rec.line_id,&lt;br /&gt;                                                            NULL,&lt;br /&gt;                                                            NULL,&lt;br /&gt;                                                            NULL,&lt;br /&gt;                                                            &#39;CANCEL&#39;,&lt;br /&gt;                                                            c_po_cancel_import_rec.cancelled_date,&lt;br /&gt;                                                            NULL,&lt;br /&gt;                                                            &#39;N&#39;,&lt;br /&gt;                                                            NULL,&lt;br /&gt;                                                            NULL,&lt;br /&gt;                                                            NULL&lt;br /&gt;                                                            );&lt;br /&gt;                   FOR i IN 1..FND_MSG_PUB.count_msg&lt;br /&gt;                      LOOP&lt;br /&gt;                          FND_FILE.put_line(FND_FILE.LOG,FND_MSG_PUB.Get(p_msg_index =&gt; i,p_encoded =&gt; &#39;F&#39;));&lt;br /&gt;                      END LOOP;&lt;br /&gt;               END LOOP;&lt;br /&gt;  DECLARE&lt;br /&gt;  l_cnt number:=0;&lt;br /&gt;  CURSOR c_po_valid IS&lt;br /&gt;        SELECT  Distinct&lt;br /&gt;          RPAD(po_header_reference,16,&#39; &#39;) po_header_reference,&lt;br /&gt;    RPAD(ROW_STATUS,8,&#39; &#39;) ROW_STATUS,&lt;br /&gt;    RPAD(ERROR_MESSAGE,200,&#39; &#39;) ERROR_MESSAGE&lt;br /&gt;        FROM xx_tab_po_can_stg;&lt;br /&gt;     BEGIN    &lt;br /&gt;        FND_FILE.PUT_LINE(FND_FILE.output,&#39;************************|Purchase Order Cancellation Interface Report|****************************&#39;);     &lt;br /&gt;  FND_FILE.PUT_LINE(FND_FILE.output,&#39;*************************************************************************************************&#39;);     &lt;br /&gt;  FND_FILE.PUT_LINE(FND_FILE.output,&#39;   po_header_reference   &#39;||&#39; &#39;||&#39; ROW_STATUS &#39;||&#39; &#39;||&#39;   ERROR_MESSAGE&#39;);          &lt;br /&gt;  FND_FILE.PUT_LINE(FND_FILE.output,&#39;*************************************************************************************************&#39;);     &lt;br /&gt;  l_cnt:=0;&lt;br /&gt;  FOR l_index IN c_po_valid&lt;br /&gt;  LOOP&lt;br /&gt;   FND_FILE.PUT_LINE(FND_FILE.output,&#39;   &#39;||l_index.po_header_reference||&#39;    &#39;||l_index.ROW_STATUS||&#39; &#39;||l_index.ERROR_MESSAGE);&lt;br /&gt;   l_cnt:=l_cnt+1;&lt;br /&gt;  END LOOP ; -- Cursor loop&lt;br /&gt;  FND_FILE.PUT_LINE(FND_FILE.output,&#39;*************************************************************************************************&#39;);     &lt;br /&gt;        FND_FILE.PUT_LINE(FND_FILE.output,&#39; &#39;);     &lt;br /&gt;        FND_FILE.PUT_LINE(FND_FILE.output,l_cnt||&#39; &#39;||&#39;Purchase Order(s) Processed..&#39;);          &lt;br /&gt;  END;&lt;br /&gt;      INSERT INTO xx_tab_po_can_err(&lt;br /&gt;                                               po_header_reference&lt;br /&gt;                                               ,po_line_reference&lt;br /&gt;                                               ,cancelled_date&lt;br /&gt;                                               ,row_status&lt;br /&gt;                                               ,error_message&lt;br /&gt;                                               ,date_of_creation&lt;br /&gt;                                               ,batch_id)&lt;br /&gt;               SELECT po_header_reference&lt;br /&gt;                      ,po_line_reference&lt;br /&gt;                      ,cancelled_date&lt;br /&gt;                      ,row_status&lt;br /&gt;                      ,error_message&lt;br /&gt;                      ,SYSDATE&lt;br /&gt;                      ,x&lt;br /&gt;               FROM xx_tab_po_can_stg;&lt;br /&gt;       EXCEPTION&lt;br /&gt;            WHEN OTHERS THEN&lt;br /&gt;            FND_FILE.PUT_LINE(FND_FILE.LOG,SQLERRM());&lt;br /&gt;       END;&lt;br /&gt;       DELETE xx_tab_po_can_stg;&lt;br /&gt;       COMMIT;&lt;br /&gt;EXCEPTION&lt;br /&gt;     WHEN OTHERS THEN&lt;br /&gt;     FND_FILE.PUT_LINE(FND_FILE.LOG,SQLERRM());&lt;br /&gt;END xx_po_can_import;&lt;br /&gt;/&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;B&gt;Note:&lt;/B&gt; This program only will cancel the PO Lines, order has to be cancelled manually.&lt;br /&gt;&lt;br /&gt;-- ---------------------------------------------------------------------------</content><link rel='replies' type='application/atom+xml' href='http://onlineappstech.blogspot.com/feeds/9126253393321157453/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9042171415565691672/9126253393321157453' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9042171415565691672/posts/default/9126253393321157453'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9042171415565691672/posts/default/9126253393321157453'/><link rel='alternate' type='text/html' href='http://onlineappstech.blogspot.com/2009/05/purchase-order-cancellation-interface.html' title='Purchase Order Cancellation Interface'/><author><name>Siri</name><uri>http://www.blogger.com/profile/06807255845937432176</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='31' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgzWlySzNS2Ia31_uTiDAu07yDKP6ULaY9YQdaD-zuGS0fxULsn94dg88m6zcUVU0fL4CaPb6K2m-Oe3h4RKU24C9a8M3qlwYEK7sn7_iPk8CnuLFBMheU0KUKn4qeAlw/s220/_DAS89930.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9042171415565691672.post-4498493706414858757</id><published>2009-05-26T11:22:00.000-07:00</published><updated>2009-05-30T04:11:23.627-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Technical - PO"/><title type='text'>Creation of Purchase Orders through Interface</title><content type='html'>-- ---------------------------------------------------------------------------------&lt;br /&gt;-- Purpose    : Purchase Order Validations in the Staging Table&lt;br /&gt;-- Date&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;: 26.May.2009&lt;br /&gt;-- Created by : Chaitanya&lt;br /&gt;--   .....&lt;br /&gt;-- ----------------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;CREATE OR REPLACE PROCEDURE xx_po_validations(errbuf OUT VARCHAR2, retcode OUT VARCHAR2)&lt;br /&gt;AS&lt;br /&gt;l_count NUMBER(2);&lt;br /&gt; l_subinv_name VARCHAR2(100):=NULL;&lt;br /&gt;        CURSOR c_po_int_valid IS&lt;br /&gt;        SELECT *&lt;br /&gt;        FROM xx_tab_po_stage&lt;br /&gt;        WHERE NVL(row_status,&#39;T&#39;) IN (&#39;E&#39;,&#39;T&#39;,&#39;R&#39;)&lt;br /&gt;        FOR UPDATE;&lt;br /&gt;BEGIN&lt;br /&gt;         BEGIN&lt;br /&gt;     FOR c_po_int_valid_rec IN c_po_int_valid&lt;br /&gt;     LOOP&lt;br /&gt;          l_count:=0;&lt;br /&gt;                 BEGIN&lt;br /&gt;                SELECT COUNT(*) INTO l_count&lt;br /&gt;               FROM po_headers_all ph&lt;br /&gt;                               ,po_lines_all pl&lt;br /&gt;               WHERE pl.po_header_id=ph.po_header_id&lt;br /&gt;                                AND UPPER(ph.attribute1)=UPPER(c_po_int_valid_rec.PO_HEADER_REFERENCE);&lt;br /&gt;               IF l_count&gt;0 THEN&lt;br /&gt;                    UPDATE xx_tab_po_stage&lt;br /&gt;                  SET row_status=&#39;E&#39;&lt;br /&gt;                      ,error_message=&#39;Header and line combination is already existing.&#39;&lt;br /&gt;                 WHERE CURRENT OF c_po_int_valid;&lt;br /&gt;                          ELSE&lt;br /&gt;         BEGIN&lt;br /&gt;                SELECT COUNT(*) INTO l_count&lt;br /&gt;               FROM po_vendors&lt;br /&gt;               WHERE UPPER(segment1)=UPPER(c_po_int_valid_rec.supplier_code)&lt;br /&gt;                                AND end_date_active IS NULL;&lt;br /&gt;               IF l_count&lt;&gt;1 THEN&lt;br /&gt;                    UPDATE xx_tab_po_stage&lt;br /&gt;                  SET row_status=&#39;E&#39;&lt;br /&gt;                      ,error_message=&#39;Invalid supplier code.&#39;&lt;br /&gt;                 WHERE CURRENT OF c_po_int_valid;&lt;br /&gt;                          ELSE&lt;br /&gt;                              UPDATE xx_tab_po_stage&lt;br /&gt;                              SET row_status=&#39;V&#39;&lt;br /&gt;                                  ,supplier_id=(SELECT vendor_id&lt;br /&gt;                                                FROM po_vendors&lt;br /&gt;                                                WHERE UPPER(segment1)=UPPER(c_po_int_valid_rec.supplier_code))&lt;br /&gt;                                                      --AND end_date_active IS NULL)&lt;br /&gt;                                  ,supplier_site_code=(SELECT max(vendor_site_code)&lt;br /&gt;                                                       FROM po_vendor_sites_all&lt;br /&gt;                                                       WHERE vendor_id=(SELECT vendor_id&lt;br /&gt;                                                                        FROM po_vendors&lt;br /&gt;                                                                        WHERE UPPER(segment1)=UPPER(c_po_int_valid_rec.supplier_code)&lt;br /&gt;                                                                              )--AND end_date_active IS NULL)&lt;br /&gt;                                                             AND inactive_date IS NULL)&lt;br /&gt;                              WHERE CURRENT OF c_po_int_valid;&lt;br /&gt;              END IF;&lt;br /&gt;         EXCEPTION&lt;br /&gt;                   WHEN OTHERS THEN&lt;br /&gt;                  FND_FILE.PUT_LINE(FND_FILE.LOG,SQLERRM());&lt;br /&gt;          END;&lt;br /&gt;          BEGIN&lt;br /&gt;                SELECT COUNT(*) INTO l_count&lt;br /&gt;               FROM org_organization_definitions&lt;br /&gt;               WHERE disable_date IS NULL&lt;br /&gt;                                AND organization_id=c_po_int_valid_rec.inventory_organization_id;&lt;br /&gt;               IF l_count&lt;&gt;1 THEN&lt;br /&gt;                    UPDATE xx_tab_po_stage&lt;br /&gt;                  SET row_status=&#39;E&#39;&lt;br /&gt;                      ,error_message=error_message||&#39; &#39;||&#39;Invalid inventory organization id.&#39;&lt;br /&gt;                 WHERE CURRENT OF c_po_int_valid;&lt;br /&gt;                          ELSE&lt;br /&gt;                              UPDATE xx_tab_po_stage&lt;br /&gt;                              SET ship_to_location_id=(SELECT ship_to_location_id&lt;br /&gt;                                            FROM hr_locations_all&lt;br /&gt;                                            WHERE inventory_organization_id=c_po_int_valid_rec.inventory_organization_id&lt;br /&gt;                                                  AND inactive_date IS NULL)&lt;br /&gt;                                  ,bill_to_location_id=(SELECT location_id&lt;br /&gt;                                            FROM hr_locations_all&lt;br /&gt;                                            WHERE inventory_organization_id=c_po_int_valid_rec.inventory_organization_id&lt;br /&gt;                                                  AND inactive_date IS NULL)&lt;br /&gt;                              WHERE CURRENT OF c_po_int_valid;&lt;br /&gt;              END IF;&lt;br /&gt;         EXCEPTION&lt;br /&gt;                   WHEN OTHERS THEN&lt;br /&gt;                                  UPDATE xx_tab_po_stage&lt;br /&gt;                                  SET row_status=&#39;E&#39;&lt;br /&gt;                                      ,error_message=error_message||&#39; &#39;||&#39;Error while deriving ship to and bill to locations for the given organization id.&#39;&lt;br /&gt;                                  WHERE CURRENT OF c_po_int_valid;&lt;br /&gt;                  FND_FILE.PUT_LINE(FND_FILE.LOG,SQLERRM());&lt;br /&gt;          END;&lt;br /&gt;         BEGIN&lt;br /&gt;            SELECT COUNT(*) INTO l_count&lt;br /&gt;               FROM mtl_system_items_b&lt;br /&gt;               WHERE UPPER(segment1)=c_po_int_valid_rec.item&lt;br /&gt;               AND organization_id=c_po_int_valid_rec.inventory_organization_id;&lt;br /&gt;               IF l_count=0 THEN&lt;br /&gt;                    UPDATE xx_tab_po_stage&lt;br /&gt;                  SET row_status=&#39;E&#39;&lt;br /&gt;                      ,error_message=error_message||&#39; &#39;||&#39;Invalid item.&#39;&lt;br /&gt;                 WHERE CURRENT OF c_po_int_valid;&lt;br /&gt;                          ELSE&lt;br /&gt;         IF c_po_int_valid_rec.inventory_organization_id = 103 THEN&lt;br /&gt;         SELECT max(secondary_inventory_name)&lt;br /&gt;         INTO l_subinv_name&lt;br /&gt;                           FROM mtl_secondary_inventories&lt;br /&gt;                           WHERE organization_id=c_po_int_valid_rec.inventory_organization_id;&lt;br /&gt;                           ELSE&lt;br /&gt;          SELECT max(secondary_inventory_name)&lt;br /&gt;       INTO l_subinv_name&lt;br /&gt;                            FROM mtl_secondary_inventories&lt;br /&gt;                            WHERE organization_id=c_po_int_valid_rec.inventory_organization_id&lt;br /&gt;                            AND secondary_inventory_name NOT IN(SELECT &lt;br /&gt;                                                                default_stage_subinventory&lt;br /&gt;                                                                FROM wsh_shipping_parameters);&lt;br /&gt;         END IF;&lt;br /&gt;                              UPDATE xx_tab_po_stage&lt;br /&gt;                              SET item_category_id=(SELECT DISTINCT category_id FROM mtl_item_categories&lt;br /&gt;                                                WHERE inventory_item_id=(SELECT inventory_item_id&lt;br /&gt;                                                    FROM mtl_system_items_b&lt;br /&gt;                                                  WHERE UPPER(segment1)=c_po_int_valid_rec.item&lt;br /&gt;                                                                    AND organization_id=c_po_int_valid_rec.inventory_organization_id&lt;br /&gt;                                                                    AND end_date_active IS NULL))&lt;br /&gt;                                  ,item_description=(SELECT description&lt;br /&gt;                                                FROM mtl_system_items_b&lt;br /&gt;                                                WHERE UPPER(segment1)=c_po_int_valid_rec.item&lt;br /&gt;                                                      AND organization_id=c_po_int_valid_rec.inventory_organization_id&lt;br /&gt;                                                      AND end_date_active IS NULL)&lt;br /&gt;                                  ,uom_code=(SELECT primary_uom_code&lt;br /&gt;                                        FROM mtl_system_items_b&lt;br /&gt;                                        WHERE UPPER(segment1)=c_po_int_valid_rec.item&lt;br /&gt;                                              AND organization_id=c_po_int_valid_rec.inventory_organization_id&lt;br /&gt;                                              AND end_date_active IS NULL)&lt;br /&gt;                                  ,charge_account=(SELECT mp.material_account FROM MTL_PARAMETERS mp,mtl_system_items_b msi&lt;br /&gt;                                                                                  WHERE &lt;br /&gt;                                                                                      msi.organization_id = c_po_int_valid_rec.inventory_organization_id &lt;br /&gt;                                                                                    AND msi.ORGANIZATION_ID = mp.ORGanization_id &lt;br /&gt;                                                                                    AND UPPER(segment1)=c_po_int_valid_rec.item&lt;br /&gt;                                                                                    AND msi.end_date_active IS NULL)&lt;br /&gt;                                  ,item=(SELECT segment1&lt;br /&gt;                                         FROM mtl_system_items_b&lt;br /&gt;                                         WHERE UPPER(segment1)=c_po_int_valid_rec.item&lt;br /&gt;                                         AND organization_id=c_po_int_valid_rec.inventory_organization_id&lt;br /&gt;                                         AND end_date_active IS NULL)&lt;br /&gt;                                  ,subinventory=l_subinv_name&lt;br /&gt;                              WHERE CURRENT OF c_po_int_valid;&lt;br /&gt;              END IF;&lt;br /&gt;         EXCEPTION&lt;br /&gt;                   WHEN OTHERS THEN&lt;br /&gt;                                  UPDATE xx_tab_po_stage&lt;br /&gt;                                  SET row_status=&#39;E&#39;&lt;br /&gt;                                      ,error_message=error_message||&#39; &#39;||&#39;Error while deriving item category,item description,uom code,item id for the given item.&#39;&lt;br /&gt;                                  WHERE CURRENT OF c_po_int_valid;&lt;br /&gt;                  FND_FILE.PUT_LINE(FND_FILE.LOG,SQLERRM());&lt;br /&gt;          END;&lt;br /&gt;                 END IF;&lt;br /&gt;         EXCEPTION&lt;br /&gt;                   WHEN OTHERS THEN&lt;br /&gt;                  FND_FILE.PUT_LINE(FND_FILE.LOG,SQLERRM());&lt;br /&gt;          END;&lt;br /&gt;     END LOOP;&lt;br /&gt;          Update xx_tab_po_stage&lt;br /&gt;    set row_status = &#39;E&#39;&lt;br /&gt;    ,error_message = &#39;Oracle cant Create Po With 0 or -Ve Qty&#39;&lt;br /&gt;    where QUANTITY &lt;=0; &lt;br /&gt;              UPDATE xx_tab_po_stage&lt;br /&gt;                 SET rate_type=&#39;Corporate&#39;&lt;br /&gt;                     ,rate=(SELECT conversion_rate&lt;br /&gt;                            FROM gl_daily_rates&lt;br /&gt;                            WHERE from_currency=currency&lt;br /&gt;                                  AND to_currency=&#39;INR&#39;&lt;br /&gt;                                  AND conversion_date=po_date&lt;br /&gt;                                  AND conversion_type=&#39;Corporate&#39;)&lt;br /&gt;                 WHERE row_status=&#39;V&#39;&lt;br /&gt;                       AND currency &lt;&gt; &#39;INR&#39;;&lt;br /&gt;                 UPDATE xx_tab_po_stage&lt;br /&gt;                 SET error_message=NULL&lt;br /&gt;                 WHERE row_status=&#39;V&#39;;&lt;br /&gt;                 COMMIT;&lt;br /&gt;         EXCEPTION&lt;br /&gt;         WHEN OTHERS THEN&lt;br /&gt;         FND_FILE.PUT_LINE(FND_FILE.LOG,SQLERRM());&lt;br /&gt;         END;&lt;br /&gt;--Validation for Daily Rates in the General Ledger&lt;br /&gt;--Upadate by Krishna on Date 15-05-2007&lt;br /&gt;DECLARE&lt;br /&gt;           CURSOR c_rate_verify IS&lt;br /&gt;                             SELECT *&lt;br /&gt;                             FROM xx_tab_po_stage&lt;br /&gt;                             Where &lt;br /&gt;                             currency not in &#39;INR&#39;&lt;br /&gt;        and row_status = &#39;V&#39;&lt;br /&gt;                             FOR UPDATE;&lt;br /&gt;    BEGIN&lt;br /&gt;         FOR c_rate_verify_rec IN c_rate_verify&lt;br /&gt;            LOOP&lt;br /&gt;            IF c_rate_verify_rec.rate is null then&lt;br /&gt;            UPDATE xx_tab_po_stage&lt;br /&gt;            SET row_status=&#39;E&#39;&lt;br /&gt;               ,error_message=error_message||&#39; &#39;||&#39;Daily Rate in the GL was not Defined.&#39;&lt;br /&gt;            WHERE CURRENT OF c_rate_verify;&lt;br /&gt;            END IF;&lt;br /&gt;            END LOOP;&lt;br /&gt;    END;&lt;br /&gt;DECLARE&lt;br /&gt; x NUMBER :=NULL;&lt;br /&gt; CURSOR c IS&lt;br /&gt; SELECT DISTINCT PO_HEADER_REFERENCE&lt;br /&gt; FROM xx_tab_po_stage&lt;br /&gt; WHERE row_status=&#39;V&#39;;&lt;br /&gt; BEGIN&lt;br /&gt;  FOR c_rec IN c&lt;br /&gt; LOOP&lt;br /&gt; select meai_po_seq3.nextval into x from dual;&lt;br /&gt; UPDATE xx_tab_po_stage&lt;br /&gt; SET interface_header_id=x&lt;br /&gt; WHERE UPPER(PO_HEADER_REFERENCE )=UPPER(c_rec.PO_HEADER_REFERENCE)&lt;br /&gt;       AND row_status=&#39;V&#39;;&lt;br /&gt;END LOOP;&lt;br /&gt;END;&lt;br /&gt;commit;&lt;br /&gt;DECLARE&lt;br /&gt;x NUMBER;&lt;br /&gt;y NUMBER;&lt;br /&gt;Z NUMBER;&lt;br /&gt;CURSOR c IS&lt;br /&gt;SELECT DISTINCT interface_header_id&lt;br /&gt;FROM xx_tab_po_stage;&lt;br /&gt;BEGIN&lt;br /&gt;FOR c_rec IN c&lt;br /&gt;LOOP&lt;br /&gt;x:=c_rec.interface_header_id;&lt;br /&gt;DECLARE&lt;br /&gt;CURSOR c1 IS&lt;br /&gt;SELECT DISTINCT PCS_pono&lt;br /&gt;FROM xx_tab_po_stage&lt;br /&gt;WHERE interface_header_id=x&lt;br /&gt;AND row_status=&#39;V&#39;;&lt;br /&gt;BEGIN&lt;br /&gt;y:=1;&lt;br /&gt;FOR c1_rec IN c1&lt;br /&gt;LOOP&lt;br /&gt;SELECT meai_po_seq1.NEXTVAL INTO Z&lt;br /&gt;FROM dual;&lt;br /&gt;UPDATE xx_tab_po_stage&lt;br /&gt;SET interface_line_id=Z&lt;br /&gt;    ,lineno=y&lt;br /&gt;WHERE interface_header_id=x&lt;br /&gt;      AND UPPER(PCS_pono)=UPPER(c1_rec.PCS_pono);&lt;br /&gt;y:=y+1;&lt;br /&gt;--Z:=Z+1;&lt;br /&gt;commit;&lt;br /&gt;END LOOP;&lt;br /&gt;END;&lt;br /&gt;END LOOP;&lt;br /&gt;END;&lt;br /&gt;UPDATE xx_tab_po_stage&lt;br /&gt;SET ROW_STATUS = &#39;E&#39;&lt;br /&gt; ,ERROR_MESSAGE = error_message||&#39;Sub inventory Not Picked for Distributions.&#39;&lt;br /&gt;where subinventory is null&lt;br /&gt;and INVENTORY_ORGANIZATION_ID &lt;&gt; 138;&lt;br /&gt;commit;&lt;br /&gt;   DECLARE&lt;br /&gt;           l_count1 NUMBER:=0;&lt;br /&gt;           CURSOR c_verify IS&lt;br /&gt;                             SELECT DISTINCT PO_HEADER_REFERENCE&lt;br /&gt;                             FROM xx_tab_po_stage;&lt;br /&gt;    BEGIN&lt;br /&gt;         FOR c_verify_rec IN c_verify&lt;br /&gt;            LOOP&lt;br /&gt;                SELECT COUNT(*) INTO l_count1&lt;br /&gt;                FROM xx_tab_po_stage&lt;br /&gt;                WHERE row_status=&#39;E&#39;&lt;br /&gt;                     AND UPPER(PO_HEADER_REFERENCE)=UPPER(c_verify_rec.PO_HEADER_REFERENCE);&lt;br /&gt;                IF l_count1&gt;0 THEN&lt;br /&gt;                  UPDATE xx_tab_po_stage&lt;br /&gt;                  SET row_status=&#39;R&#39;&lt;br /&gt;                      ,error_message=error_message||&#39; &#39;||&#39;Some of the lines under this slipno are errored out.&#39;&lt;br /&gt;                  WHERE UPPER(PO_HEADER_REFERENCE)=UPPER(c_verify_rec.PO_HEADER_REFERENCE)&lt;br /&gt;                        AND row_status=&#39;V&#39;;&lt;br /&gt;                END IF;&lt;br /&gt;            END LOOP;&lt;br /&gt;    EXCEPTION&lt;br /&gt;             WHEN OTHERS THEN&lt;br /&gt;             FND_FILE.PUT_LINE(FND_FILE.LOG,SQLERRM());&lt;br /&gt;    END;&lt;br /&gt;    DELETE po_lines_interface where INTERFACE_HEADER_ID in (select interface_header_id from po_headers_interface&lt;br /&gt;                                                         where process_code = &#39;ACCEPTED&#39;);&lt;br /&gt;    DELETE po_distributions_interface where INTERFACE_HEADER_ID in (select interface_header_id from po_headers_interface&lt;br /&gt;                                                         where process_code = &#39;ACCEPTED&#39;);&lt;br /&gt;    DELETE po_headers_interface where upper(process_code) = &#39;ACCEPTED&#39;;&lt;br /&gt;    COMMIT;&lt;br /&gt;EXCEPTION&lt;br /&gt;         WHEN OTHERS THEN&lt;br /&gt;         FND_FILE.PUT_LINE(FND_FILE.LOG,SQLERRM());&lt;br /&gt;END xx_po_validations;&lt;br /&gt;/&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;-- ---------------------------------------------------------&lt;br /&gt;--   Exporting Valid Purchase Order to Interface Tables&lt;br /&gt;-- ---------------------------------------------------------&lt;br /&gt;&lt;br /&gt;CREATE OR REPLACE PROCEDURE xx_po_import(errbuf OUT VARCHAR2, retcode OUT VARCHAR2)&lt;br /&gt;IS&lt;br /&gt; l_request  number;&lt;br /&gt; l_seq  NUMBER:=0;&lt;br /&gt; l_rstatus  varchar2(1):=null;&lt;br /&gt; l_errm   varchar2(1000):=null;&lt;br /&gt; l_slip   number:=null;&lt;br /&gt; l_po   number:=null;&lt;br /&gt; l_cnt       number:=null;&lt;br /&gt; CURSOR c_po_valid IS&lt;br /&gt;        SELECT  Distinct&lt;br /&gt;           PO_HEADER_REFERENCE,&lt;br /&gt;    ROW_STATUS,&lt;br /&gt;           ERROR_MESSAGE&lt;br /&gt;        FROM xx_tab_po_stage&lt;br /&gt;        WHERE row_status IN (&#39;E&#39;,&#39;T&#39;);&lt;br /&gt;        &lt;br /&gt;BEGIN&lt;br /&gt;       /* Inserting into Headers Interface for INR */&lt;br /&gt;&lt;br /&gt; INSERT INTO po_headers_interface(&lt;br /&gt;        document_type_code&lt;br /&gt;        ,creation_date&lt;br /&gt;        ,vendor_id&lt;br /&gt;        ,vendor_site_code&lt;br /&gt;        ,ship_to_location_id&lt;br /&gt;        ,bill_to_location_id&lt;br /&gt;        ,currency_code&lt;br /&gt;        ,agent_id&lt;br /&gt;        ,attribute1&lt;br /&gt;        ,interface_header_id&lt;br /&gt;        ,vendor_doc_num&lt;br /&gt;        ,action&lt;br /&gt;        --,rate&lt;br /&gt;  --,rate_date&lt;br /&gt;        ,rate_type&lt;br /&gt;  ,budget_account_id&lt;br /&gt;  ,created_by&lt;br /&gt;  ,last_update_login&lt;br /&gt;  ,last_update_date&lt;br /&gt;  ,last_updated_by)&lt;br /&gt; SELECT DISTINCT&lt;br /&gt;  &#39;STANDARD&#39;&lt;br /&gt;  ,po_date&lt;br /&gt;  ,supplier_id&lt;br /&gt;  ,supplier_site_code&lt;br /&gt;  ,ship_to_location_id&lt;br /&gt;  ,bill_to_location_id&lt;br /&gt;  ,currency&lt;br /&gt;  ,69&lt;br /&gt;  ,PO_HEADER_REFERENCE&lt;br /&gt;  ,interface_header_id&lt;br /&gt;  ,PO_HEADER_REFERENCE&lt;br /&gt;  ,&#39;ORIGINAL&#39;&lt;br /&gt;  --,rate&lt;br /&gt;  --,po_date&lt;br /&gt;  ,rate_type&lt;br /&gt;  ,1002&lt;br /&gt;  ,FND_GLOBAL.user_id&lt;br /&gt;  ,FND_GLOBAL.login_id  &lt;br /&gt;  ,sysdate&lt;br /&gt;  ,FND_GLOBAL.user_id&lt;br /&gt; FROM xx_tab_po_stage&lt;br /&gt; WHERE row_status=&#39;V&#39;&lt;br /&gt; AND  currency IN (SELECT DISTINCT(CURRENCY_CODE) FROM FND_CURRENCIES)&lt;br /&gt; AND  currency = &#39;INR&#39;;&lt;br /&gt;&lt;br /&gt;       /* Inserting into Headers Interface for other Currencies */&lt;br /&gt;&lt;br /&gt; INSERT INTO po_headers_interface(&lt;br /&gt;        document_type_code&lt;br /&gt;        ,creation_date&lt;br /&gt;        ,vendor_id&lt;br /&gt;        ,vendor_site_code&lt;br /&gt;        ,ship_to_location_id&lt;br /&gt;        ,bill_to_location_id&lt;br /&gt;        ,currency_code&lt;br /&gt;        ,agent_id&lt;br /&gt;        ,attribute1&lt;br /&gt;        ,interface_header_id&lt;br /&gt;        ,vendor_doc_num&lt;br /&gt;        ,action&lt;br /&gt;        --,rate&lt;br /&gt;  ,rate_date&lt;br /&gt;        ,rate_type&lt;br /&gt;  ,budget_account_id&lt;br /&gt;  ,created_by&lt;br /&gt;  ,last_update_login&lt;br /&gt;  ,last_update_date&lt;br /&gt;  ,last_updated_by)&lt;br /&gt; SELECT DISTINCT&lt;br /&gt;  &#39;STANDARD&#39;&lt;br /&gt;  ,po_date&lt;br /&gt;  ,supplier_id&lt;br /&gt;  ,supplier_site_code&lt;br /&gt;  ,ship_to_location_id&lt;br /&gt;  ,bill_to_location_id&lt;br /&gt;  ,currency&lt;br /&gt;  ,69&lt;br /&gt;  ,PO_HEADER_REFERENCE&lt;br /&gt;  ,interface_header_id&lt;br /&gt;  ,PO_HEADER_REFERENCE&lt;br /&gt;  ,&#39;ORIGINAL&#39;&lt;br /&gt;  --,rate&lt;br /&gt;  ,po_date&lt;br /&gt;  ,rate_type&lt;br /&gt;  ,1002&lt;br /&gt;  ,FND_GLOBAL.user_id&lt;br /&gt;  ,FND_GLOBAL.login_id&lt;br /&gt;  ,sysdate  &lt;br /&gt;  ,FND_GLOBAL.user_id&lt;br /&gt; FROM xx_tab_po_stage&lt;br /&gt; WHERE row_status=&#39;V&#39;&lt;br /&gt; AND  currency IN (SELECT DISTINCT(CURRENCY_CODE) FROM FND_CURRENCIES)&lt;br /&gt; AND  currency &lt;&gt; &#39;INR&#39;;&lt;br /&gt; &lt;br /&gt;       /* Inserting into Lines Interface */&lt;br /&gt;&lt;br /&gt;         INSERT INTO po_lines_interface(&lt;br /&gt;   line_num&lt;br /&gt;  ,line_type_id&lt;br /&gt;  ,item&lt;br /&gt;  ,category_id&lt;br /&gt;  ,item_description&lt;br /&gt;  ,uom_code&lt;br /&gt;  ,quantity&lt;br /&gt;  ,unit_price&lt;br /&gt;  ,line_attribute1&lt;br /&gt;  ,shipment_num&lt;br /&gt;  ,ship_to_organization_id&lt;br /&gt;  ,ship_to_location_id&lt;br /&gt;  ,interface_header_id&lt;br /&gt;  ,interface_line_id&lt;br /&gt;  ,action&lt;br /&gt;  ,promised_date&lt;br /&gt;  ,receiving_routing_id&lt;br /&gt;  ,created_by&lt;br /&gt;  ,last_update_login&lt;br /&gt;  ,creation_date&lt;br /&gt;  ,last_update_date&lt;br /&gt;  ,last_updated_by)&lt;br /&gt; SELECT DISTINCT&lt;br /&gt;         lineno&lt;br /&gt;         ,1&lt;br /&gt;                ,item&lt;br /&gt;  ,item_category_id&lt;br /&gt;  ,item_description&lt;br /&gt;  ,uom_code&lt;br /&gt;  ,quantity&lt;br /&gt;  ,price&lt;br /&gt;  ,PCS_pono&lt;br /&gt;  ,1&lt;br /&gt;  ,inventory_organization_id&lt;br /&gt;  ,ship_to_location_id&lt;br /&gt;  ,interface_header_id&lt;br /&gt;  ,interface_line_id&lt;br /&gt;  ,&#39;ORIGINAL&#39;&lt;br /&gt;  ,promised_date&lt;br /&gt;  ,3&lt;br /&gt;  ,FND_GLOBAL.user_id&lt;br /&gt;  ,FND_GLOBAL.login_id  &lt;br /&gt;  ,po_date&lt;br /&gt;  ,sysdate&lt;br /&gt;  ,FND_GLOBAL.user_id&lt;br /&gt; FROM xx_tab_po_stage&lt;br /&gt; WHERE row_status=&#39;V&#39;;&lt;br /&gt;&lt;br /&gt;       /* Inserting into PO Distributions Interface */&lt;br /&gt;&lt;br /&gt; INSERT INTO po_distributions_interface(&lt;br /&gt;   quantity_ordered&lt;br /&gt;  ,distribution_num&lt;br /&gt;  ,destination_type_code&lt;br /&gt;  ,charge_account_id&lt;br /&gt;  ,interface_header_id&lt;br /&gt;  ,interface_line_id&lt;br /&gt;  ,interface_distribution_id&lt;br /&gt;  ,destination_organization_id&lt;br /&gt;  ,destination_subinventory&lt;br /&gt;  ,budget_account_id&lt;br /&gt;  ,created_by&lt;br /&gt;  ,creation_date&lt;br /&gt;  ,last_update_date&lt;br /&gt;  ,last_update_login&lt;br /&gt;  ,last_updated_by)&lt;br /&gt; SELECT DISTINCT&lt;br /&gt;   quantity&lt;br /&gt;  ,1&lt;br /&gt;  ,&#39;INVENTORY&#39;&lt;br /&gt;  ,charge_account&lt;br /&gt;  ,interface_header_id&lt;br /&gt;  ,interface_line_id&lt;br /&gt;  ,interface_line_id&lt;br /&gt;  ,inventory_organization_id&lt;br /&gt;  ,subinventory&lt;br /&gt;  ,1002&lt;br /&gt;  ,FND_GLOBAL.user_id&lt;br /&gt;  ,po_date&lt;br /&gt;  ,sysdate&lt;br /&gt;  ,FND_GLOBAL.login_id  &lt;br /&gt;  ,FND_GLOBAL.user_id&lt;br /&gt; FROM xx_tab_po_stage&lt;br /&gt; WHERE row_status=&#39;V&#39;;&lt;br /&gt; FND_FILE.PUT_LINE(FND_FILE.output,&#39;User: &#39;||FND_GLOBAL.USER_NAME||&#39;                                               &#39;||&#39;         Program Time: &#39;||to_char(sysdate,&#39;DD-MON-YYYY HH:MI:SS AM&#39;));     &lt;br /&gt; FND_FILE.PUT_LINE(FND_FILE.output,&#39; &#39;);     &lt;br /&gt; FND_FILE.PUT_LINE(FND_FILE.output,&#39;*********************************************&#39;);     &lt;br /&gt; FND_FILE.PUT_LINE(FND_FILE.output,&#39;**********************|Purchase Order Interface Report|***********************&#39;);     &lt;br /&gt; FND_FILE.PUT_LINE(FND_FILE.output,&#39;********************************************************************&#39;);     &lt;br /&gt; FND_FILE.PUT_LINE(FND_FILE.output,&#39; PO_HEADER_REFERENCE   &#39;||&#39; &#39;||&#39;ROW_STATUS &#39;||&#39; &#39;||&#39; ERROR_MESSAGE&#39;);          &lt;br /&gt; FND_FILE.PUT_LINE(FND_FILE.output,&#39;***********************************************************************&#39;);     &lt;br /&gt; l_cnt:=0;&lt;br /&gt; FOR l_index IN c_po_valid&lt;br /&gt; LOOP&lt;br /&gt;  FND_FILE.PUT_LINE(FND_FILE.output,&#39;   &#39;||l_index.PO_HEADER_REFERENCE||&#39;      &#39;||l_index.ROW_STATUS||&#39; &#39;||l_index.ERROR_MESSAGE);&lt;br /&gt;  l_cnt:=l_cnt+1;&lt;br /&gt; END LOOP ; -- Cursor loop&lt;br /&gt; FND_FILE.PUT_LINE(FND_FILE.output,&#39;***********************************************************************&#39;);     &lt;br /&gt; FND_FILE.PUT_LINE(FND_FILE.output,&#39; &#39;);     &lt;br /&gt; FND_FILE.PUT_LINE(FND_FILE.output,&#39;  &#39;||l_cnt||&#39; &#39;||&#39;Purchase Order(s) Processed..&#39;);          &lt;br /&gt; FND_FILE.PUT_LINE(FND_FILE.output,&#39; &#39;);     &lt;br /&gt; FND_FILE.PUT_LINE(FND_FILE.output,&#39;*****************|End-Of-Report|*******************************&#39;);     &lt;br /&gt; FND_FILE.PUT_LINE(FND_FILE.output,&#39; &#39;);     &lt;br /&gt;&lt;br /&gt;          /* Inserting Errored records into error table */&lt;br /&gt;&lt;br /&gt; INSERT INTO xx_tab_po_err&lt;br /&gt;        (&lt;br /&gt;         SUPPLIER_CODE&lt;br /&gt;        ,PROMISED_DATE&lt;br /&gt;        ,CURRENCY&lt;br /&gt;        ,PO_HEADER_REFERENCE&lt;br /&gt;        ,ITEM&lt;br /&gt;        ,QUANTITY&lt;br /&gt;        ,PRICE&lt;br /&gt;        ,PCS_PONO&lt;br /&gt;        ,INVENTORY_ORGANIZATION_ID&lt;br /&gt;        ,ROW_STATUS&lt;br /&gt;        ,ERROR_MESSAGE&lt;br /&gt;        ,DATE_OF_CREATION&lt;br /&gt;        ,BATCH_ID&lt;br /&gt;        ,PO_DATE&lt;br /&gt;        )&lt;br /&gt; SELECT SUPPLIER_CODE&lt;br /&gt;  ,PROMISED_DATE&lt;br /&gt;  ,CURRENCY &lt;br /&gt;  ,PO_HEADER_REFERENCE&lt;br /&gt;  ,ITEM  &lt;br /&gt;  ,QUANTITY&lt;br /&gt;  ,PRICE&lt;br /&gt;  ,PCS_PONO&lt;br /&gt;  ,INVENTORY_ORGANIZATION_ID&lt;br /&gt;  ,ROW_STATUS&lt;br /&gt;  ,ERROR_MESSAGE&lt;br /&gt;  ,SYSDATE&lt;br /&gt;  ,xx_po_seq.NEXTVAL &lt;br /&gt;  ,PO_DATE&lt;br /&gt; FROM xx_tab_po_stage&lt;br /&gt;        where row_staus = &#39;E&#39;;&lt;br /&gt;  --l_request:=fnd_request.submit_request(&#39;PO&#39;,&#39;POXPOPDOI&#39;, null, null, FALSE,null,&#39;STANDARD&#39;,null,&#39;Y&#39;,null,&#39;APPROVED&#39;,null,null,null,null);&lt;br /&gt;  FND_FILE.PUT_LINE(FND_FILE.LOG, &#39;Purchasing Documents Import Request ID :&#39;||l_request);&lt;br /&gt;  DELETE xx_tab_po_stage where row_status not in (&#39;T&#39;,&#39;E&#39;,&#39;R&#39;);&lt;br /&gt;EXCEPTION&lt;br /&gt; WHEN others THEN&lt;br /&gt; DBMS_OUTPUT.PUT_LINE(SQLERRM); &lt;br /&gt;        FND_FILE.PUT_LINE(FND_FILE.LOG,SQLERRM);&lt;br /&gt;END xx_po_import;&lt;br /&gt;/&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;-- ----------------------------------------------------------------------------------&lt;br /&gt;--   Running the Purchase order Import&lt;br /&gt;-- ---------------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;Login to Applications&lt;br /&gt;&lt;br /&gt;PO User --&gt; Submit request --&gt; Import Standar Purchase orders&lt;br /&gt;&lt;br /&gt;Now all the orders will be created which are loaded in the interface.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Note:&lt;/B&gt; In po_headers_interface the process_code will be &#39;ACCEPTED&#39; for the orders which are created, The process_code will be &#39;REJECTED&#39; if it errored out.&lt;br /&gt;&lt;br /&gt;-- ---------------------------------------------------------------------------------</content><link rel='replies' type='application/atom+xml' href='http://onlineappstech.blogspot.com/feeds/4498493706414858757/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9042171415565691672/4498493706414858757' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9042171415565691672/posts/default/4498493706414858757'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9042171415565691672/posts/default/4498493706414858757'/><link rel='alternate' type='text/html' href='http://onlineappstech.blogspot.com/2009/05/purchase-orders-interface.html' title='Creation of Purchase Orders through Interface'/><author><name>Krishna Chaitanya Vemparala</name><uri>http://www.blogger.com/profile/04369279679684152438</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhN-gapVNPppp930Twb-2ZZOoTw00kAdpx4PNiK2EkSzXr_Lcwa-rVuwnrH8ifjXityHCtEHvmv0PsRtWZ6PsSvbJemqsS5xn08jTJmPxrhx92txGZq9lj7p_cy10KmRA/s220/_DAS9074.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9042171415565691672.post-6351677121869985203</id><published>2009-05-22T11:57:00.001-07:00</published><updated>2009-05-30T04:04:02.559-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Technical - SysAdmn"/><title type='text'>Getting the Source Code from database using Query</title><content type='html'>-- ---------------------------------------------------------------------------------&lt;br /&gt;-- Purpose    : Get the Source Code from database without junck characters using Query&lt;br /&gt;-- Date&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;: 22.May.2009&lt;br /&gt;-- Created by : Chaitanya&lt;br /&gt;--   .....&lt;br /&gt;-- ----------------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;SELECT&lt;br /&gt;decode(rownum   ,1,&#39;CREATE   OR   REPLACE   &#39;||rTRIM(rTRIM(t.text,CHR(10))),rTRIM(rTRIM(t.text,CHR(10))))  text   &lt;br /&gt;from   dba_source   t   &lt;br /&gt;Where type = &#39;PACKAGE BODY&#39;&lt;br /&gt;  and name = &amp;Package_name&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;-- ---------------------------------------------------------------------------------&lt;br /&gt;-- Purpose    : Anonoumos block to Get the Source Code from database &lt;br /&gt;-- Date       : 22.May.2009&lt;br /&gt;-- Created by : Chaitanya&lt;br /&gt;--   .....&lt;br /&gt;-- ----------------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;DECLARE&lt;br /&gt;x varchar2(200);&lt;br /&gt;n number;&lt;br /&gt;cursor c_rec is &lt;br /&gt;select text,line,name,type from all_source&lt;br /&gt;where name  = &amp;Package_name&lt;br /&gt;and type like &#39;PACKAGE&#39;;&lt;br /&gt;begin&lt;br /&gt;dbms_output.put_line(&#39;================================================ &#39;);&lt;br /&gt;dbms_output.put_line(&#39;============ Package Specifications============= &#39;);&lt;br /&gt;dbms_output.put_line(&#39;================================================ &#39;);&lt;br /&gt;dbms_output.put_line(&#39;  &#39;);&lt;br /&gt;for c in c_rec&lt;br /&gt;loop&lt;br /&gt;n:= c.line;&lt;br /&gt;select rtrim(ltrim(text,chr(10)),chr(10)) &lt;br /&gt;into x&lt;br /&gt;from all_source&lt;br /&gt; where name = c.name&lt;br /&gt; and type = c.type&lt;br /&gt; --and type &lt;&gt; &#39;PACKAGE&#39;&lt;br /&gt; and line = c.line;&lt;br /&gt; dbms_output.put_line(x); &lt;br /&gt; end loop;&lt;br /&gt; exception&lt;br /&gt; when others then&lt;br /&gt; dbms_output.put_line(&#39;Error at &#39;|| n || &#39; &#39;|| &#39;line, &#39; || sqlerrm);  &lt;br /&gt;end;&lt;br /&gt;&lt;br /&gt;-- ---------------------------------------------------------------------------------</content><link rel='replies' type='application/atom+xml' href='http://onlineappstech.blogspot.com/feeds/6351677121869985203/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9042171415565691672/6351677121869985203' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9042171415565691672/posts/default/6351677121869985203'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9042171415565691672/posts/default/6351677121869985203'/><link rel='alternate' type='text/html' href='http://onlineappstech.blogspot.com/2009/05/getting-source-code-from-database-using.html' title='Getting the Source Code from database using Query'/><author><name>Krishna Chaitanya Vemparala</name><uri>http://www.blogger.com/profile/04369279679684152438</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhN-gapVNPppp930Twb-2ZZOoTw00kAdpx4PNiK2EkSzXr_Lcwa-rVuwnrH8ifjXityHCtEHvmv0PsRtWZ6PsSvbJemqsS5xn08jTJmPxrhx92txGZq9lj7p_cy10KmRA/s220/_DAS9074.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9042171415565691672.post-7338008377908926211</id><published>2009-05-22T10:32:00.000-07:00</published><updated>2009-05-30T04:04:13.803-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Technical - SysAdmn"/><title type='text'>Concurrent requests Errors report for the week</title><content type='html'>-- -------------------------------------------------------------------------------------------------------------&lt;br /&gt;-- Purpose    : Get the detials of errors and warnings for the concurrent requests during the week.&lt;br /&gt;-- Date&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;: 22.May.2009&lt;br /&gt;-- Created by : Chaitanya&lt;br /&gt;--   .....&lt;br /&gt;-- -------------------------------------------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;SELECT&lt;br /&gt;       fcr.request_id,&lt;br /&gt;       fcp.user_concurrent_program_name Conc_prog_name,&lt;br /&gt;       fcp.CONCURRENT_PROGRAM_NAME Short_name,&lt;br /&gt;       fe.EXECUTION_FILE_NAME execution_file,&lt;br /&gt;       (select meaning from fnd_lookups&lt;br /&gt;        where  lookup_type = &#39;CP_EXECUTION_METHOD_CODE&#39;&lt;br /&gt;           and lookup_code = fe.EXECUTION_METHOD_CODE) Execution_Method,  &lt;br /&gt;         fa.BASEPATH Application_Top,&lt;br /&gt;       fr.RESPONSIBILITY_KEY Responsibility, &lt;br /&gt;       (select meaning from fnd_lookups&lt;br /&gt;        where  lookup_type = &#39;CP_PHASE_CODE&#39;&lt;br /&gt;           and lookup_code = fcr.PHASE_CODE) Phase_Code,     &lt;br /&gt;       (select meaning from fnd_lookups&lt;br /&gt;        where  lookup_type = &#39;CP_STATUS_CODE&#39;&lt;br /&gt;           and lookup_code = fcr.STATUS_CODE) Status_code,     &lt;br /&gt;       fu.USER_NAME Requested_By&lt;br /&gt;from fnd_concurrent_requests fcr,&lt;br /&gt;     fnd_user fu,&lt;br /&gt;     fnd_concurrent_programs_vl fcp,&lt;br /&gt;     fnd_responsibility fr,&lt;br /&gt;     fnd_executables fe,&lt;br /&gt;     FND_APPLICATION fa&lt;br /&gt;where fcr.REQUESTED_BY = fu.USER_ID&lt;br /&gt; and fcp.CONCURRENT_PROGRAM_ID = fcr.CONCURRENT_PROGRAM_ID&lt;br /&gt; and fr.RESPONSIBILITY_ID = fcr.RESPONSIBILITY_ID&lt;br /&gt; and fcp.executable_ID = fe.executable_ID&lt;br /&gt; and fa.APPLICATION_ID = fe.APPLICATION_ID&lt;br /&gt; and fcr.STATUS_CODE in(&#39;E&#39;,&#39;X&#39;,&#39;G&#39;,&#39;D&#39;)&lt;br /&gt; and fcr.ACTUAL_COMPLETION_DATE &gt; sysdate-7&lt;br /&gt; order by 9;&lt;br /&gt;&lt;br /&gt;-- ----------------------------------------------------------------------------------</content><link rel='replies' type='application/atom+xml' href='http://onlineappstech.blogspot.com/feeds/7338008377908926211/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9042171415565691672/7338008377908926211' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9042171415565691672/posts/default/7338008377908926211'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9042171415565691672/posts/default/7338008377908926211'/><link rel='alternate' type='text/html' href='http://onlineappstech.blogspot.com/2009/05/concurrent-requests-errors-report-for.html' title='Concurrent requests Errors report for the week'/><author><name>Krishna Chaitanya Vemparala</name><uri>http://www.blogger.com/profile/04369279679684152438</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhN-gapVNPppp930Twb-2ZZOoTw00kAdpx4PNiK2EkSzXr_Lcwa-rVuwnrH8ifjXityHCtEHvmv0PsRtWZ6PsSvbJemqsS5xn08jTJmPxrhx92txGZq9lj7p_cy10KmRA/s220/_DAS9074.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9042171415565691672.post-8030808039103490815</id><published>2009-05-22T10:10:00.000-07:00</published><updated>2009-05-30T04:04:33.342-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Technical - AR"/><title type='text'>To Get the Sales order, Line, Delivery and invoice Status</title><content type='html'>-- ---------------------------------------------------------------------------------&lt;br /&gt;-- Purpose    : Query to retrive the Sales order,Line, Delivery and invoice Status.&lt;br /&gt;-- Date&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;: 22.May.2009&lt;br /&gt;-- Created by : Chaitanya&lt;br /&gt;--   .....&lt;br /&gt;-- ---------------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;  SELECT&lt;br /&gt;   ooh.ORDER_NUMBER So_Num,&lt;br /&gt;   ooh.HEADER_ID,&lt;br /&gt;   ool.ordered_quantity ordered_qty,&lt;br /&gt;  (select sum(a.SHIPPED_QUANTITY) from wsh_delivery_details a&lt;br /&gt;  where SOURCE_HEADER_ID =ooh.HEADER_ID) shipped_qty,&lt;br /&gt;   wnd.DELIVERY_ID,&lt;br /&gt;   wnd.NAME delivery_name,&lt;br /&gt;  (select distinct batch_id from wsh_delivery_details&lt;br /&gt;  where SOURCE_HEADER_ID =ooh.HEADER_ID) batch_id,&lt;br /&gt;   initcap(ooh.FLOW_STATUS_CODE) Order_Status,&lt;br /&gt;   initcap(ool.FLOW_STATUS_CODE) Line_status,&lt;br /&gt;   decode(wnd.STATUS_CODE,&#39;CL&#39;,&#39;Closed&#39;,&#39;Open&#39;) Delivery_status,&lt;br /&gt;  (select decode(count(*),0,&#39;Invoice Not Created&#39;,&#39;Invoice Generated&#39;) from ra_customer_trx_lines_all rctl&lt;br /&gt;  where rctl.line_type = &#39;LINE&#39;&lt;br /&gt;  and rctl.interface_line_attribute1 = to_char(ooh.order_number)) inv_Status&lt;br /&gt;from &lt;br /&gt;  oe_order_headers_all ooh,&lt;br /&gt;  wsh_new_deliveries wnd,&lt;br /&gt;  oe_order_lines_all ool&lt;br /&gt;where ooh.HEADER_ID = ool.HEADER_ID&lt;br /&gt;  and wnd.SOURCE_HEADER_ID = ooh.HEADER_ID&lt;br /&gt;  and ooh.order_number = :order_num;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;--=======================================================&lt;br /&gt;--- Query to retrive the Sales order and associate invoice.&lt;br /&gt;--=======================================================&lt;br /&gt;&lt;br /&gt;SELECT&lt;br /&gt;ooh.order_number,&lt;br /&gt;ooh.ORDERED_DATE,&lt;br /&gt;ooh.FLOW_STATUS_CODE SO_Status,&lt;br /&gt;ool.line_number,&lt;br /&gt;msi.SEGMENT1 Item_Name,&lt;br /&gt;ool.ordered_quantity,&lt;br /&gt;rct.TRX_NUMBER Invoice_Num,&lt;br /&gt;rct.TRX_date Invoice_Date,&lt;br /&gt;rct.STATUS_TRX,&lt;br /&gt;decode(rct.COMPLETE_FLAG,&#39;Y&#39;,&#39;Completed&#39;,&#39;In Complete&#39;) Inv_Status,&lt;br /&gt;ool.UNIT_SELLING_price*ool.ordered_quantity line_total&lt;br /&gt;from&lt;br /&gt;oe_order_headers_all ooh,&lt;br /&gt;oe_order_lines_all ool,&lt;br /&gt;hz_cust_accounts hca,&lt;br /&gt;ra_customer_trx_lines_all rctl,&lt;br /&gt;ra_customer_trx_all rct,&lt;br /&gt;mtl_system_items msi&lt;br /&gt;where&lt;br /&gt;ooh.header_id=ool.header_id&lt;br /&gt;and ooh.sold_to_org_id=hca.cust_account_id&lt;br /&gt;and msi.INVENTORY_ITEM_ID=ool.INVENTORY_ITEM_ID&lt;br /&gt;and msi.ORGANIZATION_ID=ool.SHIP_FROM_ORG_ID&lt;br /&gt;and rct.CUSTOMER_TRX_ID = rctl.CUSTOMER_TRX_ID&lt;br /&gt;and rctl.LINE_TYPE = &#39;LINE&#39;&lt;br /&gt;and rctl.interface_line_attribute1 = to_char(ooh.ORDER_NUMBER)&lt;br /&gt;and rctl.QUANTITY_invoiced = ool.ORDERED_QUANTITY&lt;br /&gt;and ooh.order_number= 1195372 --517980&lt;br /&gt;order by ool.line_number;&lt;Br&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Note:&lt;/B&gt; This Query is based on one Invoice for every sales order, and invoice will have those many lines as in the salesorder.&lt;BR&gt;&lt;br /&gt;&lt;br /&gt;-- ---------------------------------------------------------------------------------</content><link rel='replies' type='application/atom+xml' href='http://onlineappstech.blogspot.com/feeds/8030808039103490815/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9042171415565691672/8030808039103490815' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9042171415565691672/posts/default/8030808039103490815'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9042171415565691672/posts/default/8030808039103490815'/><link rel='alternate' type='text/html' href='http://onlineappstech.blogspot.com/2009/05/to-get-sales-order-line-delivery-and.html' title='To Get the Sales order, Line, Delivery and invoice Status'/><author><name>Krishna Chaitanya Vemparala</name><uri>http://www.blogger.com/profile/04369279679684152438</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhN-gapVNPppp930Twb-2ZZOoTw00kAdpx4PNiK2EkSzXr_Lcwa-rVuwnrH8ifjXityHCtEHvmv0PsRtWZ6PsSvbJemqsS5xn08jTJmPxrhx92txGZq9lj7p_cy10KmRA/s220/_DAS9074.JPG'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9042171415565691672.post-7260949474058525393</id><published>2009-05-20T10:43:00.000-07:00</published><updated>2009-05-30T04:05:13.310-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Technical - SysAdmn"/><title type='text'>Getting the concurrent output into Excel Sheet</title><content type='html'>-- ---------------------------------------------------------------------------------&lt;br /&gt;-- Purpose    : Steps to get the concurrent output into Excel Sheet&lt;br /&gt;-- Date&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;: 20.May.2009&lt;br /&gt;-- Created by : Chaitanya&lt;br /&gt;--   .....&lt;br /&gt;-- ---------------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;MARGIN: 0cm 0cm 0pt; TEXT-INDENT: 0cm; LINE-HEIGHT: 150%; TEXT-ALIGN: justify&quot;&gt;&lt;br /&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;LINE-HEIGHT: 150%;font-family:Verdana,sans-serif;&quot; &gt;&lt;span style=&quot;color:#000000;&quot;&gt;1.&lt;span style=&quot;font-size:100%;&quot;&gt;&lt;span style=&quot;FONT: 7pt &#39;Times New Roman&#39;&quot;&gt; &lt;/span&gt;To get the output in the excel format from concurrent output we need to modify any Viewer Options like (PCL).&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;MARGIN-BOTTOM: 0pt; LINE-HEIGHT: 150%; TEXT-ALIGN: justify&quot;&gt;&lt;span style=&quot;color:#000000;&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;LINE-HEIGHT: 150%;font-family:Verdana,sans-serif;&quot; &gt;&lt;b&gt;Navigation path&lt;/b&gt; System Administrator &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;LINE-HEIGHT: 150%;font-family:Wingdings;&quot; &gt;à&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;LINE-HEIGHT: 150%;font-family:Verdana,sans-serif;&quot; &gt; Install &lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;LINE-HEIGHT: 150%;font-family:Wingdings;&quot; &gt;à&lt;/span&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;LINE-HEIGHT: 150%;font-family:Verdana,sans-serif;&quot; &gt; Viewer Options &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;MARGIN-BOTTOM: 0pt; LINE-HEIGHT: 150%; TEXT-ALIGN: justify&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;LINE-HEIGHT: 150%;font-family:Verdana,sans-serif;color:#000000;&quot;  &gt;2. The below is the update statement which will change the PCL viewer&lt;br /&gt;option to excel. After this updates the concurrent programs whichever is having&lt;br /&gt;output type as PCL will open directly in ExcelSheet.&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;MARGIN-BOTTOM: 0pt; LINE-HEIGHT: 150%&quot;&gt;&lt;span style=&quot;color:#000000;&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;LINE-HEIGHT: 150%;font-family:Verdana,sans-serif;&quot; &gt;Statement: &lt;/span&gt;&lt;/b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;LINE-HEIGHT: 150%;font-family:Verdana,sans-serif;&quot; &gt;update fnd_mime_types_tl&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;MARGIN: 0cm 0cm 0pt 35.4pt; LINE-HEIGHT: 150%&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;LINE-HEIGHT: 150%;font-family:Verdana,sans-serif;color:#000000;&quot;  &gt;set mime_type = &#39;application/vnd.ms-excel&#39;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;MARGIN: 0cm 0cm 0pt 35.4pt; LINE-HEIGHT: 150%&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;LINE-HEIGHT: 150%;font-family:Verdana,sans-serif;color:#000000;&quot;  &gt;,description = &#39;Excel (SYLK) used to be application/vnd.hp-PCL: Printer Control Language&#39;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;MARGIN: 0cm 0cm 0pt 35.4pt; LINE-HEIGHT: 150%&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;LINE-HEIGHT: 150%;font-family:Verdana,sans-serif;color:#000000;&quot;  &gt;,last_update_date = sysdate&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;MARGIN: 0cm 0cm 0pt 35.4pt; LINE-HEIGHT: 150%&quot;&gt;&lt;span style=&quot;LINE-HEIGHT: 150%;font-family:Verdana,sans-serif;color:#000000;&quot;  &gt;where file_format_code = &#39;PCL&#39;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;MARGIN: 0cm 0cm 0pt 35.4pt; LINE-HEIGHT: 150%&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;LINE-HEIGHT: 150%;font-family:Verdana,sans-serif;color:#000000;&quot;  &gt;and mime_type = &#39;application/vnd.hp-PCL&#39;;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;MARGIN-BOTTOM: 0pt; TEXT-INDENT: 35.4pt; LINE-HEIGHT: 150%&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;LINE-HEIGHT: 150%;font-family:Verdana,sans-serif;color:#000000;&quot;  &gt;commit;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;MARGIN-BOTTOM: 0pt; LINE-HEIGHT: 150%&quot;&gt;&lt;b&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;LINE-HEIGHT: 150%;font-family:Verdana,sans-serif;color:#000000;&quot;  &gt;Viewer Options Screen.&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;MARGIN-BOTTOM: 0pt; LINE-HEIGHT: 150%&quot; align=&quot;center&quot;&gt;&lt;span style=&quot;color:#000000;&quot;&gt;&lt;img src=&quot;http://sites.google.com/site/oracleappsfortechnicals/Home/vieweroptions.JPG&quot; border=&quot;0&quot; /&gt;&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;MARGIN-BOTTOM: 0pt; LINE-HEIGHT: 150%&quot;&gt;&lt;span lang=&quot;EN-US&quot; style=&quot;LINE-HEIGHT: 150%;font-family:Verdana,sans-serif;color:#000000;&quot;  &gt;3. Run the concurrent program which is having the output type as PCL to test the excel output.&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;MsoNormal&quot; style=&quot;MARGIN-BOTTOM: 0pt; LINE-HEIGHT: 150%&quot; align=&quot;center&quot;&gt;&lt;br /&gt;&lt;span style=&quot;color:#000000;&quot;&gt;&lt;img height=&quot;297&quot; src=&quot;http://6054622317373204234-a-1802744773732722657-s-sites.googlegroups.com/site/oracleappsfortechnicals/Home/ouputexcel.jpg&quot; width=&quot;453&quot; border=&quot;0&quot; /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color:#000000;&quot;&gt;==============================================&lt;/span&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://onlineappstech.blogspot.com/feeds/7260949474058525393/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9042171415565691672/7260949474058525393' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9042171415565691672/posts/default/7260949474058525393'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9042171415565691672/posts/default/7260949474058525393'/><link rel='alternate' type='text/html' href='http://onlineappstech.blogspot.com/2009/05/getting-concurrent-output-into-excel.html' title='Getting the concurrent output into Excel Sheet'/><author><name>Krishna Chaitanya Vemparala</name><uri>http://www.blogger.com/profile/04369279679684152438</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhN-gapVNPppp930Twb-2ZZOoTw00kAdpx4PNiK2EkSzXr_Lcwa-rVuwnrH8ifjXityHCtEHvmv0PsRtWZ6PsSvbJemqsS5xn08jTJmPxrhx92txGZq9lj7p_cy10KmRA/s220/_DAS9074.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9042171415565691672.post-4602338891869699180</id><published>2009-05-20T09:01:00.000-07:00</published><updated>2013-10-02T08:24:09.993-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Functional - PO"/><title type='text'>Resetting the Workflow for Purchase Order</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
-- ---------------------------------------------------------------------------------&lt;br /&gt;
-- Purpose    : Steps to restart/reset the Purchase order workflow.&lt;br /&gt;
-- Date&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;: 20.May.2009&lt;br /&gt;
-- Created by : Chaitanya&lt;br /&gt;
--   .....&lt;br /&gt;
-- ---------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If any Standard Purchase Order got strucked in the Workflow if we need to reset it then follow the process below.&lt;br /&gt;
&lt;br /&gt;
Setps:&lt;br /&gt;
&lt;br /&gt;
1. SELECT ph.segment1 PO_Num,&lt;br /&gt;
ph.ORG_ID,&lt;br /&gt;
ph.TYPE_LOOKUP_CODE PO_TYPE,&lt;br /&gt;
ph.authorization_status,&lt;br /&gt;
ph.WF_ITEM_KEY,&lt;br /&gt;
ph.WF_ITEM_TYPE&lt;br /&gt;
from po_headers_all ph&lt;br /&gt;
where ph.segment1 = &#39;225343&#39; -- PO Number&lt;br /&gt;
and ph.TYPE_LOOKUP_CODE = &#39;STANDARD&#39;;&lt;br /&gt;
&lt;br /&gt;
2. Download the file &lt;a href=&quot;http://sites.google.com/site/oracleappsfortechnicals/Home/poxrespo.sql&quot;&gt;poxrespo.sql &lt;/a&gt;and run the script in the instance where the purchase order got strucked.&lt;br /&gt;
&lt;br /&gt;
3. The workflow will be resetted after the script execution and user can try re-approving the order now.&lt;br /&gt;
&lt;br /&gt;
Suggestion: Make sure that workflow background process is running and scheduled.&lt;br /&gt;
&lt;br /&gt;
If you have any doubts follow the Oracle note.id: 390023.1&lt;br /&gt;
&lt;br /&gt;
=====================================================&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://onlineappstech.blogspot.com/feeds/4602338891869699180/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9042171415565691672/4602338891869699180' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9042171415565691672/posts/default/4602338891869699180'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9042171415565691672/posts/default/4602338891869699180'/><link rel='alternate' type='text/html' href='http://onlineappstech.blogspot.com/2009/05/resetting-workflow-for-purchase-order.html' title='Resetting the Workflow for Purchase Order'/><author><name>Krishna Chaitanya Vemparala</name><uri>http://www.blogger.com/profile/04369279679684152438</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhN-gapVNPppp930Twb-2ZZOoTw00kAdpx4PNiK2EkSzXr_Lcwa-rVuwnrH8ifjXityHCtEHvmv0PsRtWZ6PsSvbJemqsS5xn08jTJmPxrhx92txGZq9lj7p_cy10KmRA/s220/_DAS9074.JPG'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9042171415565691672.post-6790082089946041929</id><published>2009-05-19T07:10:00.000-07:00</published><updated>2013-10-02T08:24:29.888-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Functional - ONT"/><title type='text'>Resolving the exception(WSH_CHANGE_SCHED_DATE) raised</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
-- ---------------------------------------------------------------------------------&lt;br /&gt;
-- Purpose    : Resolving the exception(WSH_CHANGE_SCHED_DATE) raised&lt;br /&gt;
-- Date&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;: 19.May.2009&lt;br /&gt;
-- Created by : Chaitanya&lt;br /&gt;
--   .....&lt;br /&gt;
-- ---------------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Possibilities of the error: If an order has the scheduled shipment date greater than the actual shipping date.&lt;br /&gt;
&lt;br /&gt;
Please follow the steps below.&lt;br /&gt;
&lt;br /&gt;
1. If you want to run like that you may need to disable that exception once after that continue to second step.&lt;br /&gt;
2. Loging to OM Super User --&amp;gt; Shipping --&amp;gt; Exceptions and query for WSH_CHANGE_SCHED_DATE.&lt;br /&gt;
3. Tools --&amp;gt; Resolve/Purge Exceptions&lt;br /&gt;
4. Then enter the exception name which you got, this will purge the exceptions in the interface.&lt;br /&gt;
5. Once all the steps are complete you can proceed with normal Shipping process.&lt;br /&gt;
&lt;br /&gt;
Follow the document &lt;a href=&quot;http://sites.google.com/site/oracleappsfortechnicals/Home/WSHEXCEP.doc&quot;&gt;WSHEXCEP.doc&lt;/a&gt; which will give more information with screenshots. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-- ---------------------------------------------------------------------------------&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://onlineappstech.blogspot.com/feeds/6790082089946041929/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9042171415565691672/6790082089946041929' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9042171415565691672/posts/default/6790082089946041929'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9042171415565691672/posts/default/6790082089946041929'/><link rel='alternate' type='text/html' href='http://onlineappstech.blogspot.com/2009/05/resolving-exceptionwshchangescheddate.html' title='Resolving the exception(WSH_CHANGE_SCHED_DATE) raised'/><author><name>Krishna Chaitanya Vemparala</name><uri>http://www.blogger.com/profile/04369279679684152438</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhN-gapVNPppp930Twb-2ZZOoTw00kAdpx4PNiK2EkSzXr_Lcwa-rVuwnrH8ifjXityHCtEHvmv0PsRtWZ6PsSvbJemqsS5xn08jTJmPxrhx92txGZq9lj7p_cy10KmRA/s220/_DAS9074.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9042171415565691672.post-1599329133189198803</id><published>2009-05-18T09:17:00.000-07:00</published><updated>2009-05-30T04:05:54.875-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Functional - ONT"/><title type='text'>Restarting the Sales Order Workflow</title><content type='html'>-- ------------------------------------------------------------------------------&lt;br /&gt;-- Purpose    : Restarting the Sales Order Workflow&lt;br /&gt;-- Date&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;: 18.May.2009&lt;br /&gt;-- Created by : Chaitanya&lt;br /&gt;--   .....&lt;br /&gt;-- ------------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt;When ever the Sales order got strucked at the shipment with status Interfaced and Sales order status as Fulfilled.&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family:Verdana;&quot;&gt;Please follow the steps given below.&lt;br /&gt;&lt;br /&gt;1. Query for the Order which is having the status as Fulfilled.&lt;br /&gt;2. Go to lines and do right click and select retry activities in the error.&lt;br /&gt;3. Then it will show the activity pending list choose the invoice interface.&lt;br /&gt;4. Invoice will start processing after that.&lt;br /&gt;&lt;br /&gt;Follow the document &lt;a href=&quot;http://sites.google.com/site/oracleappsfortechnicals/Home/SOWFREL.doc&quot;&gt;SOWFREL.doc&lt;/a&gt; which will give more information with screenshots.&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;-- ------------------------------------------------------------------------------</content><link rel='replies' type='application/atom+xml' href='http://onlineappstech.blogspot.com/feeds/1599329133189198803/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9042171415565691672/1599329133189198803' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9042171415565691672/posts/default/1599329133189198803'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9042171415565691672/posts/default/1599329133189198803'/><link rel='alternate' type='text/html' href='http://onlineappstech.blogspot.com/2009/05/restarting-sales-order-workflow.html' title='Restarting the Sales Order Workflow'/><author><name>Krishna Chaitanya Vemparala</name><uri>http://www.blogger.com/profile/04369279679684152438</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhN-gapVNPppp930Twb-2ZZOoTw00kAdpx4PNiK2EkSzXr_Lcwa-rVuwnrH8ifjXityHCtEHvmv0PsRtWZ6PsSvbJemqsS5xn08jTJmPxrhx92txGZq9lj7p_cy10KmRA/s220/_DAS9074.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9042171415565691672.post-5434171954391524306</id><published>2009-05-17T07:02:00.001-07:00</published><updated>2009-05-30T04:06:53.618-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Technical - SysAdmn"/><title type='text'>Query to Get the Trace file location of a concurrent request</title><content type='html'>-- ------------------------------------------------------------------------------&lt;br /&gt;-- Purpose    : Query to Get the Trace file location of a concurrent request&lt;br /&gt;-- Date&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;: 17.May.2009&lt;br /&gt;-- Created by : Chaitanya&lt;br /&gt;--   .....&lt;br /&gt;-- ------------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;SELECT req.request_id ,&lt;br /&gt;&#39;Trace id: &#39;||oracle_Process_id,&lt;br /&gt;&#39;Trace Flag: &#39;||req.enable_trace,&lt;br /&gt;&#39;Trace Name: &lt;br /&gt;&#39;||dest.value||&#39;/&#39;||lower(dbnm.value)||&#39;_ora_&#39;||oracle_process_id||&#39;.trc&#39;,&lt;br /&gt;&#39;Prog. Name: &#39;||prog.user_concurrent_program_name,&lt;br /&gt;&#39;File Name: &#39;||execname.execution_file_name|| execname.subroutine_name ,&lt;br /&gt;&#39;Status : &#39;||decode(phase_code,&#39;R&#39;,&#39;Running&#39;) &lt;br /&gt;||&#39;-&#39;||decode(status_code,&#39;R&#39;,&#39;Normal&#39;),&lt;br /&gt;&#39;SID Serial: &#39;||ses.sid||&#39;,&#39;|| ses.serial#,&lt;br /&gt;&#39;Module : &#39;||ses.module&lt;br /&gt;from fnd_concurrent_requests req, v$session ses, v$process proc,&lt;br /&gt;v$parameter dest, v$parameter dbnm, fnd_concurrent_programs_vl prog, &lt;br /&gt;fnd_executables execname&lt;br /&gt;where &lt;br /&gt;1=1&lt;br /&gt;and req.request_id = :request_id&lt;br /&gt;and req.oracle_process_id=proc.spid(+)&lt;br /&gt;and proc.addr = ses.paddr(+)&lt;br /&gt;and dest.name=&#39;user_dump_dest&#39;&lt;br /&gt;and dbnm.name=&#39;db_name&#39;&lt;br /&gt;and req.concurrent_program_id = prog.concurrent_program_id&lt;br /&gt;and req.program_application_id = prog.application_id&lt;br /&gt;and prog.application_id = execname.application_id&lt;br /&gt;and prog.executable_id=execname.executable_id;&lt;br /&gt;&lt;br /&gt;-- ------------------------------------------------------------------------------</content><link rel='replies' type='application/atom+xml' href='http://onlineappstech.blogspot.com/feeds/5434171954391524306/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9042171415565691672/5434171954391524306' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9042171415565691672/posts/default/5434171954391524306'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9042171415565691672/posts/default/5434171954391524306'/><link rel='alternate' type='text/html' href='http://onlineappstech.blogspot.com/2009/05/query-to-get-trace-file-location-of.html' title='Query to Get the Trace file location of a concurrent request'/><author><name>Krishna Chaitanya Vemparala</name><uri>http://www.blogger.com/profile/04369279679684152438</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhN-gapVNPppp930Twb-2ZZOoTw00kAdpx4PNiK2EkSzXr_Lcwa-rVuwnrH8ifjXityHCtEHvmv0PsRtWZ6PsSvbJemqsS5xn08jTJmPxrhx92txGZq9lj7p_cy10KmRA/s220/_DAS9074.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9042171415565691672.post-1431313853534082004</id><published>2009-05-17T06:56:00.000-07:00</published><updated>2009-05-29T12:05:21.255-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Technical - AR"/><title type='text'>Query to retrive Account Receivable Invoice, Receipt and Payment Status</title><content type='html'>-- ------------------------------------------------------------------------------------------------------&lt;br /&gt;-- Purpose    : Query to retrive Account Receivable Invoice, Receipt and Payment Status&lt;br /&gt;-- Date&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;: 17.May.2009&lt;br /&gt;-- Created by : Chaitanya&lt;br /&gt;--   .....&lt;br /&gt;-- ------------------------------------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt; &lt;br /&gt; SELECT ct.CUSTOMER_TRX_ID,&lt;br /&gt;        ps_inv.TRX_NUMBER, &lt;br /&gt;        ct.ct_reference,&lt;br /&gt;        (select sum(extenDed_amount)  from ra_customer_trx_lines_all&lt;br /&gt;          where customer_trx_id = ct.CUSTOMER_TRX_ID) Invoice_Amount,&lt;br /&gt;        cr.RECEIPT_NUMBER,&lt;br /&gt;        cr.STATUS,&lt;br /&gt;        cr.AMOUNT total_Receipt_amount,&lt;br /&gt;        nvl((select sum(-amount)&lt;br /&gt;            from ar_adjustments_all&lt;br /&gt;            where customer_trx_id = ct.CUSTOMER_TRX_ID),0) Adjustment_Amount&lt;br /&gt;        /*decode((nvl((select sum(-amount)&lt;br /&gt;            from ar_adjustments_all&lt;br /&gt;            where customer_trx_id = ct.CUSTOMER_TRX_ID),0)+cr.AMOUNT) - &lt;br /&gt;             (select sum(extenDed_amount)  from ra_customer_trx_lines_all&lt;br /&gt;             where customer_trx_id = ct.CUSTOMER_TRX_ID),0,&#39;Invoice Fully Paid&#39;, &#39;Partially Paid&#39;) Payment_Status */ &lt;br /&gt;FROM ar_receivable_applications_all app,&lt;br /&gt;     ar_cash_receipts cr,&lt;br /&gt;     ar_payment_schedules_all ps_inv,&lt;br /&gt;     ra_customer_trx_all ct,&lt;br /&gt;     ar_receivables_trx_all art&lt;br /&gt;WHERE 1=1&lt;br /&gt;  AND app.cash_receipt_id = cr.cash_receipt_id&lt;br /&gt;  AND ct.customer_trx_id(+) = ps_inv.customer_trx_id&lt;br /&gt;  AND app.applied_payment_schedule_id = ps_inv.payment_schedule_id&lt;br /&gt;  AND art.receivables_trx_id(+) = app.receivables_trx_id&lt;br /&gt;  --AND cr.RECEIPT_NUMBER = :ar_receipt_num&lt;br /&gt;  AND ct.TRX_NUMBER = :ar_invoice_num;&lt;br /&gt;&lt;br /&gt;-- -----------------------------------------------------------------------------</content><link rel='replies' type='application/atom+xml' href='http://onlineappstech.blogspot.com/feeds/1431313853534082004/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9042171415565691672/1431313853534082004' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9042171415565691672/posts/default/1431313853534082004'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9042171415565691672/posts/default/1431313853534082004'/><link rel='alternate' type='text/html' href='http://onlineappstech.blogspot.com/2009/05/query-to-retrive-account-receivable.html' title='Query to retrive Account Receivable Invoice, Receipt and Payment Status'/><author><name>Krishna Chaitanya Vemparala</name><uri>http://www.blogger.com/profile/04369279679684152438</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='21' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhN-gapVNPppp930Twb-2ZZOoTw00kAdpx4PNiK2EkSzXr_Lcwa-rVuwnrH8ifjXityHCtEHvmv0PsRtWZ6PsSvbJemqsS5xn08jTJmPxrhx92txGZq9lj7p_cy10KmRA/s220/_DAS9074.JPG'/></author><thr:total>2</thr:total></entry></feed>