<?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: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-144851838473318802</id><updated>2012-01-17T08:49:03.289-08:00</updated><category term='p_datetrack_update_mode in HRMS'/><category term='Pivot queries'/><category term='Workflow Issue'/><category term='Bills of Material'/><category term='GL Setups'/><category term='Query to retrieve Discoverer business areas'/><category term='Purge Employee'/><category term='XDOLOADER'/><category term='Quickest way to generate the columns used in the ctl file'/><category term='delete mode'/><category term='Unbaselined Fundings'/><category term='Change Status'/><category term='ORA-29280: invalid directory path'/><category term='Queries to find the database version with options intalled'/><category term='Script to Update Project Tasks'/><category term='Important Base tables for HRMS'/><category term='R12 HRMS: Single record insertion for Assignment(Jobs'/><category term='BOM Resources'/><category term='PO Quotations'/><category term='Ascii Table'/><category term='Flow of Setup in Order Management'/><category term='PL/Sql script to add System Administrator responsibility'/><category term='Script to Encrypt and Decrypt using PL/SQL'/><category term='Engineering Change Orders'/><category term='update and delete modes'/><category term='11i Oracle General Ledger Technical Document'/><category term='DateTrack History view'/><category term='Query to retrieve active Alert information'/><category term='Apps Documentation'/><category term='How to get the create statement of sql view'/><category term='Oracle 6i Reports/Report Builder - Part I'/><category term='XML Sql Calls Concept'/><category term='AP Source Setup'/><category term='Meaning of status_code and phase_code in FND_CONCURRENT_REQUESTS table'/><category term='Script to Approve PO Requisition'/><category term='Customer Cross Reference'/><category term='Workflow Notifications - Override Email address for all Notifications'/><category term='Off the topic'/><category term='SMSing using PL/SQL'/><category term='HRMS Benefits query to fetch the dependent of the beneficiaries'/><category term='Deleting concurrent Programs'/><category term='FND USER'/><category term='11i Oracle Purchasing Technical Document'/><category term='Position..)'/><category term='PO API'/><category term='Knowledge Management for Sales Order conversion in 11.5.10'/><category term='Knowledge Management for Routes Conversion in 11.5.10'/><category term='Key EUL tables for the different Discoverer components.'/><category term='POAPPRV'/><category term='Query to find the workflow overrider address in test instances'/><category term='Units of Measure'/><category term='Knowledge Management for Attachments conversion in 11.5.10'/><category term='Knowledge Management for AP Invoices conversion in 11.5.10'/><category term='Profile Options in HRMS'/><category term='Deadlocks and how to break them?'/><category term='Types of table extensions in Oracle'/><category term='Workflow - WFLOAD - through UNIX'/><category term='Delete stock locators by using API'/><category term='Retrieve the correct person type in HRMS'/><category term='Good Practices for Beginners'/><category term='Script to update Supplier Bank Payment Method'/><category term='is not a valid role or user name'/><category term='Knowledge Management for Employees Conversion in 11.5.10'/><category term='Important table information in Oracle'/><category term='Simple Script to load the HR Locations using API'/><category term='How to assign workflow to another version'/><category term='Employee contact'/><category term='wf_purge.items'/><category term='R12 HRMS: Single record insertion for Assignment'/><category term='Bounce Apache Server in Oracle Apps 11i'/><category term='Important questions to be remembered by a Oracle Consultant'/><category term='Oracle Expense Report (Approval Limits)'/><category term='Imp Sales Order Queries'/><category term='How to add comments on a table or a column.'/><category term='Package to delete the pricelist lines from Oracle.'/><category term='Datetrack'/><category term='Tips in Oracle 6i report customizations'/><category term='Excellent information on all Oracle Application module topics'/><category term='PA_PROJECT_PUB'/><category term='Index on Clob datatype'/><category term='PO_STANDARD_XSLFO'/><category term='R12 HRMS: Single record insertion for Address'/><category term='wf_engine.startprocess'/><category term='Query that shows all the repsonsibilities and what functions are attached to these responsibilities.'/><category term='Run a UNIX shell script as a concurrent program'/><category term='CRP (Conference Room Pilot)'/><category term='&apos;FRM-40654: Record has been updated.  Requery block to see change&apos;'/><category term='Understanding and Using API User Hooks'/><category term='Audittrail'/><category term='Complete Order Management Cycle(O2C)'/><category term='Script to exclude the control M(^M) from unix files'/><category term='sysadmin resp'/><category term='Chr(13) appended to column values while performing sqlload'/><category term='Import errors while loading Item Costs'/><category term='Script to display status of all the Concurrent Managers'/><category term='Script to print the Oracle Apps Version Number'/><category term='Oracle Receivables Module Technical Details'/><category term='Query to link a Responsibility to a Set of Books in Oracle'/><category term='Oracle AIM Document Templates'/><category term='Glasses icon in AR Transaction Form'/><category term='SQL*Loader'/><category term='Miracles of Wordle from my blog'/><category term='API to delete a person from Oracle HRMS'/><category term='Oracle Support and Why upgrading to R12?'/><category term='PA_PROJECT_PUB.UPDATE_TASK'/><category term='Steps to customize the PO Approval Workflow'/><category term='PO Archive'/><category term='R12 HRMS: Single record insertion for Creating Employee'/><category term='Commonly used scripts'/><category term='Bank Payment Method'/><category term='Multiple Agreements funded for same project query'/><category term='Script to cancel PO Requisition'/><category term='Oracle Project task Update API'/><category term='R12 HRMS: Single record insertion for salary'/><category term='11i Oracle Payables Technical Information'/><category term='wf_engine.createprocess'/><category term='Workflow Error'/><category term='BENSSCNF_en'/><category term='PL/Sql Script to assign responsibilities to Oracle Users'/><category term='POXPRPOL.rdf'/><category term='Some Sql Queries'/><category term='11i Oracle Fixed Asset Technical Document'/><category term='ECO'/><category term='PO Blanket Release'/><category term='Clear Apache'/><category term='Respond FYI Notification'/><category term='How to authorize an employee to enter expense reports for another employee'/><category term='All about the DUAL table'/><category term='Close FYI Noticiation'/><category term='Person Types'/><category term='FND_NEW_MESSAGES'/><category term='PO_STANDARD_XSLFO.xsl'/><category term='Restrict &apos;Change Status&apos; button on Projects Screen'/><category term='Understanding the p_validate Control Parameter in HRMS API&apos;s'/><category term='How to Compile and port a Form (fmb) in Oracle'/><category term='wf_engine.abortProcess'/><category term='Oracle Order Management Tables'/><category term='Understanding the importance of Object Version Number in HRMS'/><category term='Script to reset OM Records'/><category term='Install Base Serial Number Update'/><category term='Script to create an Oracle directory entry in dba_directories table'/><category term='Expense report number postfixed with &quot;-1&quot;'/><category term='Oracle Inventory'/><category term='Vendor Status report Query'/><category term='Spool data from sql*plus to a .csv file'/><category term='Oracle Code Tuning Tips'/><category term='BEN'/><category term='How to restrict Who columns from being updated in HRMS'/><category term='Update mode'/><category term='delete employee'/><category term='Flow of Setup in Pricing'/><category term='Approved Supplier List (ASL)'/><category term='Knowledge Management for Purchase Order conversion 11.5.10'/><category term='BENSSCNF'/><category term='Beneficiary Dependent'/><category term='How to make a Oracle form &apos;Query Only&apos;'/><category term='Profile Options'/><category term='users and privileges'/><category term='Effective Date Tracking'/><category term='create FND USER'/><category term='Query that covers P2P life cycle'/><category term='Script to get the invoice and supplier details'/><category term='Query to extract all application users and associated privileges information'/><category term='All About &apos;FND_GLOBAL&apos; in Oracle'/><category term='FND_LOAD commands.'/><category term='PO Requisition'/><category term='HRMS: Employee Extraction Query'/><category term='How to preserve leading zeros in a CSV file using Oracle'/><category term='Purge person'/><category term='How to find the Quantity on hand.'/><category term='A comparative analysis between SQL*LOADER and UTL_FILE utility'/><category term='Commit every X records for UPDATE/DELETE in a loop'/><category term='ORA-06502: PL/SQL: numeric or value error: host bind array too small'/><category term='WFNTF_ROLE'/><category term='Workflow Table Information'/><category term='Puchasing and Payables Module: Technical Details'/><category term='while performing the conversions using interface approach'/><category term='Overview of Inventory Transactions'/><category term='Apps 11i Keys shortcut'/><category term='Beneficiaries query'/><category term='Validating notification response'/><category term='Single Record Script to link &apos;BOM Resources&apos; to &apos;BOM Departments&apos;'/><category term='Normalization'/><category term='Attachments in Oracle'/><category term='All about MRP Sourcing Rules API and Single record insertion script'/><category term='Benefits of the Oracle E-Business Suite'/><category term='Query to fetch Error workflow details for &apos;HRSSA&apos; workflow'/><category term='How to remove page breaks from 6i reports'/><category term='Steps for finding the Request Group of Concurrent Programs'/><category term='BOM Department'/><category term='Different types of Oracle Applications Updates.'/><category term='Audit Trail'/><category term='Upload/Download XML RTF Templates in Oracle from UNIX'/><category term='Steps to enable/display the Legal Disclaimer page and text in Employee Self Service'/><category term='Mfg Cross References'/><category term='Query to extract Employee Contact Information'/><category term='User Profiles'/><category term='R12 Architecture'/><category term='Oracle HRMS Address Style'/><category term='Some of the Key Flexfields in Oracle Apps'/><category term='API to close Purchase Orders'/><category term='Oracle R12: Script to update Serial Numbers on Install Base'/><title type='text'>Oracle Apps Gurus</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://arunrathod.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://arunrathod.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default?start-index=101&amp;max-results=100'/><author><name>Arun Kumar S.R</name><uri>http://www.blogger.com/profile/14745466774124137964</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_pBTgD4-jQls/SC-82Kq7MJI/AAAAAAAAAOs/e_Invzqp9e0/S220/DSC05800.JPG'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>179</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-144851838473318802.post-6081858669930104658</id><published>2011-12-02T07:52:00.001-08:00</published><updated>2011-12-02T07:52:46.407-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Profile Options'/><title type='text'>Query to find profile Option values using SQL</title><content type='html'>SELECT   po.profile_option_name "NAME", po.user_profile_option_name,&lt;br /&gt;         DECODE (TO_CHAR (pov.level_id),&lt;br /&gt;                 '10001', 'SITE',&lt;br /&gt;                 '10002', 'APP',&lt;br /&gt;                 '10003', 'RESP',&lt;br /&gt;                 '10005', 'SERVER',&lt;br /&gt;                 '10006', 'ORG',&lt;br /&gt;                 '10004', 'USER',&lt;br /&gt;                 '???'&lt;br /&gt;                ) "LEV",&lt;br /&gt;         DECODE (TO_CHAR (pov.level_id),&lt;br /&gt;                 '10001', '',&lt;br /&gt;                 '10002', app.application_short_name,&lt;br /&gt;                 '10003', rsp.responsibility_key,&lt;br /&gt;                 '10005', svr.node_name,&lt;br /&gt;                 '10006', org.NAME,&lt;br /&gt;                 '10004', usr.user_name,&lt;br /&gt;                 '???'&lt;br /&gt;                ) "CONTEXT",&lt;br /&gt;         pov.profile_option_value "VALUE"&lt;br /&gt;    FROM fnd_profile_options_vl po,&lt;br /&gt;         fnd_profile_option_values pov,&lt;br /&gt;         fnd_user usr,&lt;br /&gt;         fnd_application app,&lt;br /&gt;         fnd_responsibility rsp,&lt;br /&gt;         fnd_nodes svr,&lt;br /&gt;         hr_operating_units org&lt;br /&gt;   WHERE 1 = 1&lt;br /&gt;     AND pov.application_id = po.application_id&lt;br /&gt;     AND pov.profile_option_id = po.profile_option_id&lt;br /&gt;     AND usr.user_id(+) = pov.level_value&lt;br /&gt;     AND rsp.application_id(+) = pov.level_value_application_id&lt;br /&gt;     AND rsp.responsibility_id(+) = pov.level_value&lt;br /&gt;     AND app.application_id(+) = pov.level_value&lt;br /&gt;     AND svr.node_id(+) = pov.level_value&lt;br /&gt;     AND org.organization_id(+) = pov.level_value&lt;br /&gt;ORDER BY "NAME", pov.level_id, "VALUE";&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/144851838473318802-6081858669930104658?l=arunrathod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrathod.blogspot.com/feeds/6081858669930104658/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=144851838473318802&amp;postID=6081858669930104658' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/6081858669930104658'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/6081858669930104658'/><link rel='alternate' type='text/html' href='http://arunrathod.blogspot.com/2011/12/query-to-find-profile-option-values.html' title='Query to find profile Option values using SQL'/><author><name>Arun Kumar S.R</name><uri>http://www.blogger.com/profile/14745466774124137964</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_pBTgD4-jQls/SC-82Kq7MJI/AAAAAAAAAOs/e_Invzqp9e0/S220/DSC05800.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-144851838473318802.post-4593963048400517348</id><published>2011-06-18T16:47:00.000-07:00</published><updated>2011-06-18T16:50:27.969-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='users and privileges'/><category scheme='http://www.blogger.com/atom/ns#' term='Query to retrieve Discoverer business areas'/><title type='text'>Query to retrieve Discoverer business areas, users and privileges</title><content type='html'>SELECT eu_username&lt;br /&gt;  FROM eul5_eul_users a, eul5_access_privs b, eul5_bas c&lt;br /&gt; WHERE a.eu_id = b.ap_eu_id&lt;br /&gt;   AND b.gba_ba_id = c.ba_id&lt;br /&gt;   AND c.ba_name = --- BA_NAME&lt;br /&gt;&lt;br /&gt;Thanks to &lt;span style="font-weight:bold;"&gt;Juntaletras&lt;/span&gt; for sharing the script.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/144851838473318802-4593963048400517348?l=arunrathod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrathod.blogspot.com/feeds/4593963048400517348/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=144851838473318802&amp;postID=4593963048400517348' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/4593963048400517348'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/4593963048400517348'/><link rel='alternate' type='text/html' href='http://arunrathod.blogspot.com/2011/06/query-to-retrieve-discoverer-business.html' title='Query to retrieve Discoverer business areas, users and privileges'/><author><name>Arun Kumar S.R</name><uri>http://www.blogger.com/profile/14745466774124137964</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_pBTgD4-jQls/SC-82Kq7MJI/AAAAAAAAAOs/e_Invzqp9e0/S220/DSC05800.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-144851838473318802.post-2805446861415067125</id><published>2011-06-18T16:39:00.000-07:00</published><updated>2011-06-18T16:44:14.069-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Bank Payment Method'/><category scheme='http://www.blogger.com/atom/ns#' term='Script to update Supplier Bank Payment Method'/><title type='text'>Script to update Supplier Bank Payment Method</title><content type='html'>DECLARE&lt;br /&gt;   x_return_status             VARCHAR2 (200)                         := NULL;&lt;br /&gt;   x_msg_count                 NUMBER                                    := 0;&lt;br /&gt;   x_msg_data                  VARCHAR2 (200)                         := NULL;&lt;br /&gt;   t_output                    VARCHAR2 (200)                         := NULL;&lt;br /&gt;   t_msg_dummy                 VARCHAR2 (200)                         := NULL;&lt;br /&gt;   l_payee_upd_status          iby_disbursement_setup_pub.ext_payee_update_tab_type;&lt;br /&gt;   p_external_payee_tab_type   iby_disbursement_setup_pub.external_payee_tab_type;&lt;br /&gt;   --IBY_PAYMENT_METHODS_B.payment_method_code%TYPE :='CHECK';&lt;br /&gt;   p_ext_payee_id_tab_type     iby_disbursement_setup_pub.ext_payee_id_tab_type;&lt;br /&gt;   --IBY_EXTERNAL_PAYEES_ALL.payee_party_id%TYPE:=12193;&lt;br /&gt;   i                           NUMBER                                    := 0;&lt;br /&gt;BEGIN&lt;br /&gt;   fnd_msg_pub.delete_msg (NULL);&lt;br /&gt;   fnd_msg_pub.initialize;&lt;br /&gt;--for xyz in abc&lt;br /&gt;--loop&lt;br /&gt;   i := i + 1;&lt;br /&gt;   p_external_payee_tab_type (i).default_pmt_method := 'EFT';&lt;br /&gt;   p_external_payee_tab_type (i).payment_function := 'PAYABLES_DISB';&lt;br /&gt;   p_external_payee_tab_type (i).exclusive_pay_flag := 'N';&lt;br /&gt;   p_external_payee_tab_type (i).payee_party_id := 167912;&lt;br /&gt;   p_ext_payee_id_tab_type (i).ext_payee_id := 17030;&lt;br /&gt;--end loop&lt;br /&gt;   apps.fnd_global.apps_initialize (1774, 51308, 200);&lt;br /&gt;   mo_global.set_policy_context ('S', 305);&lt;br /&gt;   iby_disbursement_setup_pub.update_external_payee&lt;br /&gt;                              (p_api_version               =&gt; 1.0,&lt;br /&gt;                               p_init_msg_list             =&gt; 'T',&lt;br /&gt;                               --fnd_api.g_true,&lt;br /&gt;                               p_ext_payee_tab             =&gt; p_external_payee_tab_type,&lt;br /&gt;                               p_ext_payee_id_tab          =&gt; p_ext_payee_id_tab_type,&lt;br /&gt;                               x_return_status             =&gt; x_return_status,&lt;br /&gt;                               x_msg_count                 =&gt; x_msg_count,&lt;br /&gt;                               x_msg_data                  =&gt; x_msg_data,&lt;br /&gt;                               x_ext_payee_status_tab      =&gt; l_payee_upd_status&lt;br /&gt;                              );&lt;br /&gt;   DBMS_OUTPUT.put_line ('Return Status : ' || x_return_status);&lt;br /&gt;   DBMS_OUTPUT.put_line ('Error Message : ' || x_msg_data);&lt;br /&gt;&lt;br /&gt;   IF x_return_status &lt;&gt; 'S'&lt;br /&gt;   THEN&lt;br /&gt;      IF x_msg_count &gt; 0&lt;br /&gt;      THEN&lt;br /&gt;         FOR i IN 1 .. x_msg_count&lt;br /&gt;         LOOP&lt;br /&gt;            fnd_msg_pub.get (i, fnd_api.g_false, x_msg_data, t_msg_dummy);&lt;br /&gt;            DBMS_OUTPUT.put_line ('Error Message : ' || x_msg_data);&lt;br /&gt;            t_output := (TO_CHAR (i) || ': ' || x_msg_data);&lt;br /&gt;         END LOOP;&lt;br /&gt;      END IF;&lt;br /&gt;&lt;br /&gt;      DBMS_OUTPUT.put_line&lt;br /&gt;                         (   'Error occured while updating the Payment Method'&lt;br /&gt;                          || t_output&lt;br /&gt;                         );&lt;br /&gt;   END IF;&lt;br /&gt;&lt;br /&gt;   FOR j IN l_payee_upd_status.FIRST .. l_payee_upd_status.LAST&lt;br /&gt;   LOOP&lt;br /&gt;      DBMS_OUTPUT.put_line (   'Error Message from table type : '&lt;br /&gt;                            || l_payee_upd_status (j).payee_update_msg&lt;br /&gt;                           );&lt;br /&gt;   END LOOP;&lt;br /&gt;END;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Thanks to &lt;span style="font-weight:bold;"&gt;Kiran Kammili, Apps Associates LLC&lt;/span&gt; for sharing the code.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/144851838473318802-2805446861415067125?l=arunrathod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrathod.blogspot.com/feeds/2805446861415067125/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=144851838473318802&amp;postID=2805446861415067125' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/2805446861415067125'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/2805446861415067125'/><link rel='alternate' type='text/html' href='http://arunrathod.blogspot.com/2011/06/script-to-update-supplier-bank-payment.html' title='Script to update Supplier Bank Payment Method'/><author><name>Arun Kumar S.R</name><uri>http://www.blogger.com/profile/14745466774124137964</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_pBTgD4-jQls/SC-82Kq7MJI/AAAAAAAAAOs/e_Invzqp9e0/S220/DSC05800.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-144851838473318802.post-2491564859201817268</id><published>2011-01-28T06:26:00.000-08:00</published><updated>2011-01-28T06:28:36.318-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='XDOLOADER'/><category scheme='http://www.blogger.com/atom/ns#' term='Upload/Download XML RTF Templates in Oracle from UNIX'/><title type='text'>Upload/Download XML RTF Templates in Oracle from UNIX</title><content type='html'>&lt;span style="font-weight:bold;"&gt;For Downloading RTF template:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;java oracle.apps.xdo.oa.util.XDOLoader DOWNLOAD &lt;br /&gt;-DB_USERNAME &lt;br /&gt;-DB_PASSWORD &lt;br /&gt;-JDBC_CONNECTION &lt;br /&gt;-LOB_TYPE &lt;br /&gt;-APPS_SHORT_NAME &lt;br /&gt;-LOB_CODE &lt;br /&gt;-LANGUAGE &lt;br /&gt;-TERRITORY &lt;br /&gt;-LOG_FILE &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;For Uploading RTF template:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;java oracle.apps.xdo.oa.util.XDOLoader UPLOAD &lt;br /&gt;-DB_USERNAME &lt;br /&gt;-DB_PASSWORD &lt;br /&gt;-JDBC_CONNECTION &lt;br /&gt;-LOB_TYPE &lt;br /&gt;-APPS_SHORT_NAME &lt;br /&gt;-LOB_CODE &lt;br /&gt;-LANGUAGE &lt;br /&gt;-TERRITORY &lt;br /&gt;-XDO_FILE_TYPE &lt;br /&gt;-NLS_LANG &lt;br /&gt;-FILE_CONTENT_TYPE &lt;br /&gt;-FILE_NAME &lt;br /&gt;-OWNER &lt;br /&gt;-CUSTOM_MODE [FORCE|NOFORCE] &lt;br /&gt;-LOG_FILE&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/144851838473318802-2491564859201817268?l=arunrathod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrathod.blogspot.com/feeds/2491564859201817268/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=144851838473318802&amp;postID=2491564859201817268' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/2491564859201817268'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/2491564859201817268'/><link rel='alternate' type='text/html' href='http://arunrathod.blogspot.com/2011/01/uploaddownload-xml-rtf-templates-in.html' title='Upload/Download XML RTF Templates in Oracle from UNIX'/><author><name>Arun Kumar S.R</name><uri>http://www.blogger.com/profile/14745466774124137964</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_pBTgD4-jQls/SC-82Kq7MJI/AAAAAAAAAOs/e_Invzqp9e0/S220/DSC05800.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-144851838473318802.post-17178572120467844</id><published>2011-01-25T11:09:00.000-08:00</published><updated>2011-01-25T11:11:09.554-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle R12: Script to update Serial Numbers on Install Base'/><category scheme='http://www.blogger.com/atom/ns#' term='Install Base Serial Number Update'/><title type='text'>Oracle R12: Script to update Serial Numbers on Install Base</title><content type='html'>/* Formatted on 2011/01/25 14:10 (Formatter Plus v4.8.0) */&lt;br /&gt;DECLARE&lt;br /&gt;   CURSOR ib_cur&lt;br /&gt;   IS&lt;br /&gt;      SELECT   cii.instance_id, cii.serial_number, cii.inventory_item_id,&lt;br /&gt;               cii.object_version_number&lt;br /&gt;          FROM csi_item_instances cii&lt;br /&gt;         WHERE 1 = 1 AND cii.instance_id = :ip_instance_id&lt;br /&gt;      ORDER BY 1;&lt;br /&gt;&lt;br /&gt;   TYPE ib_rec_tbl_type IS TABLE OF ib_cur%ROWTYPE;&lt;br /&gt;&lt;br /&gt;   ib_rec_tbl                ib_rec_tbl_type;&lt;br /&gt;   l_api_version    CONSTANT NUMBER                                    := 1.0;&lt;br /&gt;   l_msg_count               NUMBER;&lt;br /&gt;   l_msg_data                VARCHAR2 (2000);&lt;br /&gt;   l_msg_index               NUMBER;&lt;br /&gt;   l_instance_id_lst         csi_datastructures_pub.id_tbl;&lt;br /&gt;   l_instance_header_rec     csi_datastructures_pub.instance_header_rec;&lt;br /&gt;   l_party_header_tbl        csi_datastructures_pub.party_header_tbl;&lt;br /&gt;   l_party_acct_header_tbl   csi_datastructures_pub.party_account_header_tbl;&lt;br /&gt;   l_org_unit_header_tbl     csi_datastructures_pub.org_units_header_tbl;&lt;br /&gt;   l_instance_rec            csi_datastructures_pub.instance_rec;&lt;br /&gt;   l_party_tbl               csi_datastructures_pub.party_tbl;&lt;br /&gt;   l_account_tbl             csi_datastructures_pub.party_account_tbl;&lt;br /&gt;   l_pricing_attrib_tbl      csi_datastructures_pub.pricing_attribs_tbl;&lt;br /&gt;   l_org_assignments_tbl     csi_datastructures_pub.organization_units_tbl;&lt;br /&gt;   l_asset_assignment_tbl    csi_datastructures_pub.instance_asset_tbl;&lt;br /&gt;   l_ext_attrib_values_tbl   csi_datastructures_pub.extend_attrib_values_tbl;&lt;br /&gt;   l_pricing_attribs_tbl     csi_datastructures_pub.pricing_attribs_tbl;&lt;br /&gt;   l_ext_attrib_tbl          csi_datastructures_pub.extend_attrib_values_tbl;&lt;br /&gt;   l_ext_attrib_def_tbl      csi_datastructures_pub.extend_attrib_tbl;&lt;br /&gt;   l_asset_header_tbl        csi_datastructures_pub.instance_asset_header_tbl;&lt;br /&gt;   l_txn_rec                 csi_datastructures_pub.transaction_rec;&lt;br /&gt;   l_return_status           VARCHAR2 (5);&lt;br /&gt;   lc_init_msg_lst           VARCHAR2 (1)                              := 'T';&lt;br /&gt;   ln_validation_level       NUMBER;&lt;br /&gt;   lc_error_text             VARCHAR2 (4000);&lt;br /&gt;BEGIN&lt;br /&gt;   OPEN ib_cur;&lt;br /&gt;&lt;br /&gt;   FETCH ib_cur&lt;br /&gt;   BULK COLLECT INTO ib_rec_tbl;&lt;br /&gt;&lt;br /&gt;   CLOSE ib_cur;&lt;br /&gt;&lt;br /&gt;   IF ib_rec_tbl.COUNT &gt; 0&lt;br /&gt;   THEN&lt;br /&gt;      DBMS_OUTPUT.put_line ('Begin loop');&lt;br /&gt;&lt;br /&gt;      FOR i IN ib_rec_tbl.FIRST .. ib_rec_tbl.LAST&lt;br /&gt;      LOOP&lt;br /&gt;         l_instance_header_rec.instance_id := ib_rec_tbl (i).instance_id;&lt;br /&gt;         csi_item_instance_pub.get_item_instance_details&lt;br /&gt;                           (p_api_version                =&gt; l_api_version,&lt;br /&gt;                            p_commit                     =&gt; fnd_api.g_false,&lt;br /&gt;                            p_init_msg_list              =&gt; fnd_api.g_false,&lt;br /&gt;                            p_validation_level           =&gt; fnd_api.g_valid_level_full,&lt;br /&gt;                            p_instance_rec               =&gt; l_instance_header_rec,&lt;br /&gt;                            p_get_parties                =&gt; fnd_api.g_true,&lt;br /&gt;                            p_party_header_tbl           =&gt; l_party_header_tbl,&lt;br /&gt;                            p_get_accounts               =&gt; fnd_api.g_true,&lt;br /&gt;                            p_account_header_tbl         =&gt; l_party_acct_header_tbl,&lt;br /&gt;                            p_get_org_assignments        =&gt; fnd_api.g_true,&lt;br /&gt;                            p_org_header_tbl             =&gt; l_org_unit_header_tbl,&lt;br /&gt;                            p_get_pricing_attribs        =&gt; fnd_api.g_false,&lt;br /&gt;                            p_pricing_attrib_tbl         =&gt; l_pricing_attribs_tbl,&lt;br /&gt;                            p_get_ext_attribs            =&gt; fnd_api.g_false,&lt;br /&gt;                            p_ext_attrib_tbl             =&gt; l_ext_attrib_tbl,&lt;br /&gt;                            p_ext_attrib_def_tbl         =&gt; l_ext_attrib_def_tbl,&lt;br /&gt;                            p_get_asset_assignments      =&gt; fnd_api.g_false,&lt;br /&gt;                            p_asset_header_tbl           =&gt; l_asset_header_tbl,&lt;br /&gt;                            p_resolve_id_columns         =&gt; fnd_api.g_false,&lt;br /&gt;                            p_time_stamp                 =&gt; SYSDATE,&lt;br /&gt;                            x_return_status              =&gt; l_return_status,&lt;br /&gt;                            x_msg_count                  =&gt; l_msg_count,&lt;br /&gt;                            x_msg_data                   =&gt; l_msg_data&lt;br /&gt;                           );&lt;br /&gt;         lc_error_text := NULL;&lt;br /&gt;         l_instance_rec.instance_id := l_instance_header_rec.instance_id;&lt;br /&gt;         l_txn_rec.transaction_id := fnd_api.g_miss_num;&lt;br /&gt;         l_txn_rec.transaction_date := SYSDATE;&lt;br /&gt;         l_txn_rec.source_transaction_date := SYSDATE;&lt;br /&gt;         l_txn_rec.transaction_type_id := 205;&lt;br /&gt;         l_instance_rec.serial_number := :ip_new_serial_number;&lt;br /&gt;         l_instance_rec.object_version_number :=&lt;br /&gt;                                   l_instance_header_rec.object_version_number;&lt;br /&gt;         DBMS_OUTPUT.put_line (   'Updating IB record for IB# '&lt;br /&gt;                               || ib_rec_tbl (i).instance_id&lt;br /&gt;                              );&lt;br /&gt;         csi_item_instance_pub.update_item_instance&lt;br /&gt;                          (p_api_version                =&gt; l_api_version,&lt;br /&gt;                           p_commit                     =&gt; 'F',&lt;br /&gt;                           p_init_msg_list              =&gt; lc_init_msg_lst,&lt;br /&gt;                           p_validation_level           =&gt; ln_validation_level,&lt;br /&gt;                           p_instance_rec               =&gt; l_instance_rec,&lt;br /&gt;                           p_ext_attrib_values_tbl      =&gt; l_ext_attrib_values_tbl,&lt;br /&gt;                           p_party_tbl                  =&gt; l_party_tbl,&lt;br /&gt;                           p_account_tbl                =&gt; l_account_tbl,&lt;br /&gt;                           p_pricing_attrib_tbl         =&gt; l_pricing_attrib_tbl,&lt;br /&gt;                           p_org_assignments_tbl        =&gt; l_org_assignments_tbl,&lt;br /&gt;                           p_asset_assignment_tbl       =&gt; l_asset_assignment_tbl,&lt;br /&gt;                           p_txn_rec                    =&gt; l_txn_rec,&lt;br /&gt;                           x_instance_id_lst            =&gt; l_instance_id_lst,&lt;br /&gt;                           x_return_status              =&gt; l_return_status,&lt;br /&gt;                           x_msg_count                  =&gt; l_msg_count,&lt;br /&gt;                           x_msg_data                   =&gt; l_msg_data&lt;br /&gt;                          );&lt;br /&gt;&lt;br /&gt;         IF l_return_status &lt;&gt; 'S'&lt;br /&gt;         THEN&lt;br /&gt;            DBMS_OUTPUT.put_line&lt;br /&gt;                               (   'Error updating the install base for IB# '&lt;br /&gt;                                || ib_rec_tbl (i).instance_id&lt;br /&gt;                               );&lt;br /&gt;&lt;br /&gt;            FOR i IN 1 .. l_msg_count&lt;br /&gt;            LOOP&lt;br /&gt;               fnd_msg_pub.get (p_msg_index          =&gt; -1,&lt;br /&gt;                                p_encoded            =&gt; 'F',&lt;br /&gt;                                p_data               =&gt; l_msg_data,&lt;br /&gt;                                p_msg_index_out      =&gt; l_msg_index&lt;br /&gt;                               );&lt;br /&gt;               lc_error_text := lc_error_text&lt;br /&gt;                                || (SUBSTR (l_msg_data, 1, 255));&lt;br /&gt;            END LOOP;&lt;br /&gt;&lt;br /&gt;            DBMS_OUTPUT.put_line (lc_error_text);&lt;br /&gt;         ELSE&lt;br /&gt;            DBMS_OUTPUT.put_line&lt;br /&gt;                                (   'Install base update successful for IB# '&lt;br /&gt;                                 || ib_rec_tbl (i).instance_id&lt;br /&gt;                                );&lt;br /&gt;            lc_error_text := 'SUCCESS!';&lt;br /&gt;            COMMIT;&lt;br /&gt;         END IF;&lt;br /&gt;      END LOOP;&lt;br /&gt;   END IF;&lt;br /&gt;EXCEPTION&lt;br /&gt;   WHEN NO_DATA_FOUND&lt;br /&gt;   THEN&lt;br /&gt;      DBMS_OUTPUT.put_line ('No records to process');&lt;br /&gt;   WHEN OTHERS&lt;br /&gt;   THEN&lt;br /&gt;      DBMS_OUTPUT.put_line ('Error in update_ib procedure');&lt;br /&gt;      DBMS_OUTPUT.put_line (TO_CHAR (SQLCODE) || ' - ' || SQLERRM);&lt;br /&gt;END;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/144851838473318802-17178572120467844?l=arunrathod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrathod.blogspot.com/feeds/17178572120467844/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=144851838473318802&amp;postID=17178572120467844' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/17178572120467844'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/17178572120467844'/><link rel='alternate' type='text/html' href='http://arunrathod.blogspot.com/2011/01/oracle-r12-script-to-update-serial.html' title='Oracle R12: Script to update Serial Numbers on Install Base'/><author><name>Arun Kumar S.R</name><uri>http://www.blogger.com/profile/14745466774124137964</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_pBTgD4-jQls/SC-82Kq7MJI/AAAAAAAAAOs/e_Invzqp9e0/S220/DSC05800.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-144851838473318802.post-308062007661964714</id><published>2011-01-20T11:33:00.000-08:00</published><updated>2011-01-20T11:52:12.944-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle Receivables Module Technical Details'/><title type='text'>Oracle Receivables Module Technical Details</title><content type='html'>Oracle Accounts Receivable uses the following tables for recording customer account information:&lt;br /&gt;&lt;br /&gt;The major tables containing parties and customer accounts information in Oracle Receivables are grouped by business function.&lt;br /&gt;• HZ_PARTIES&lt;br /&gt;• HZ_CUST_ACCOUNTS&lt;br /&gt;• HZ_PARTY_SITES&lt;br /&gt;• HZ_CUST_ACCT_SITES_ALL&lt;br /&gt;• HZ_CUST_SITE_USES_ALL&lt;br /&gt;• HZ_LOCATIONS&lt;br /&gt;• HZ_PARTY_RELATIONSHIPS&lt;br /&gt;• HZ_ORGANIZATION_PROFILES&lt;br /&gt;• HZ_CONTACT_POINTS&lt;br /&gt;• HZ_CUST_ACCOUNT_ROLES&lt;br /&gt;• HZ_PERSON_PROFILES&lt;br /&gt;• HZ_ORG_CONTACTS&lt;br /&gt;&lt;br /&gt;Transaction Tables&lt;br /&gt;• RA_CUSTOMER_TRX_ALL&lt;br /&gt;• RA_CUSTOMER_TRX_LINES_ALL&lt;br /&gt;• RA_CUST_TRX_LINE_GL_DIST_ALL&lt;br /&gt;• AR_PAYMENT_SCHEDULES_ALL&lt;br /&gt;• AR_CASH_RECEIPTS_ALL&lt;br /&gt;• AR_CASH_RECEIPT_HISTORY_ALL&lt;br /&gt;• AR_RECEIVABLE_APPLICATIONS_ALL&lt;br /&gt;• AR_ADJUSTMENTS_ALL&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;HZ_PARTIES&lt;/span&gt;&lt;br /&gt;A party is an entity that can enter into a business relationship.&lt;br /&gt;This table stores basic information about parties, which is true regardless of this relationship to the deploying company.  Entities are modeled only once in HZ_PARTIES, regardless of how many roles they play.  For example, if an organization is a customer, a distributor, and a partner, there is still only one record for them in HZ_PARTIES.&lt;br /&gt;&lt;br /&gt;Parties can be one of four types:&lt;br /&gt;Organization - Oracle Corporation&lt;br /&gt;Person       - Jane Doe&lt;br /&gt;Group        – Doc Household&lt;br /&gt;Relationship - Jane Doe at Oracle Corporation&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;HZ_LOCATIONS&lt;/span&gt;&lt;br /&gt;A location is a point in geographical space described by an address and/or geographical Indicators such as latitude or longitude.&lt;br /&gt;• This table stores information about an address such as: street address and postal code.&lt;br /&gt;• This table provides physical location information about parties (organizations and people) and customer accounts.&lt;br /&gt;• Records in HZ_LOCATIONS can store delivery and postal code information about a location, store latitude and longitude, and can be used to determine the appropriate calculations and tax rates for sales tax and VAT calculations.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;HZ_PARTY_SITES&lt;/span&gt;&lt;br /&gt;This table links a party (HZ_PARTIES) and a location (HZ_LOCATIONS) and stores location-Specific party information such as a person’s mail stops at their work address.&lt;br /&gt;• One party can point to one or more party sites.&lt;br /&gt;• One location can point to one or more party site.&lt;br /&gt;• Party sites serve as the intersection between parties and locations, allowing for a many-to-many relationship between the two.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;HZ_RELATIONSHIPS&lt;/span&gt;&lt;br /&gt;This table stores information about relationships between two entities, for example, one party and another party.&lt;br /&gt;• The SUBJECT_ID and OBJECT_ID columns specify the relationship that exists between two parties.  For example, if the party relationship type is “Parent Of,” then a holding company could be the “SUBJECT_ID” in the relationship while one of its subsidiaries could be the OBJECT_ID.  Creating a party contact causes a party relationship to be created.&lt;br /&gt;• A party can have different relationships with one or more other parties that can change over time.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;HZ_ORGANIZATION_PROFILES&lt;/span&gt;&lt;br /&gt;This table stores a variety of information about a party of type Organization.&lt;br /&gt;• This table gets populated when a party of type ORGANIZATION is created.  &lt;br /&gt;• Historical data is also stored in this table.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;HZ_PERSON_PROFILES&lt;/span&gt;&lt;br /&gt;This table stores a variety of information about a party of type Person.&lt;br /&gt;• For example, this table could contain the correct spelling and phonetic pronunciation of the person’s name.&lt;br /&gt;• Some information in this table may also be entered into the HZ_PARTIES table.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;HZ_ORG_CONTACTS&lt;/span&gt;&lt;br /&gt;This table stores a variety of information about an organization contact.&lt;br /&gt;• The records in this table provide information about a contact position such as job title, rank, and department.&lt;br /&gt;• This table is not used to store information about a specific person or organization. For example, this table may include a record for the position of Vice President of Manufacturing that indicates that the contact is a senior executive, but it would not include the name of the person in that position.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;HZ_CUST_ACCOUNTS&lt;/span&gt;&lt;br /&gt;This table stores information about customer/financial relationships established between a Party and the deploying company.&lt;br /&gt;• Because a party can have multiple customer accounts, this table may contain several records for a single party. For example, an individual person may establish a personal account, a family account, and a professional account for a consulting practice.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;HZ_CUST_ACCT_SITES_ALL&lt;/span&gt;&lt;br /&gt;This table stores information about customer/financial account sites information.&lt;br /&gt;Stores information about customer sites. One customer account can have multiple sites.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;HZ_CUST_SITE_USES_ALL&lt;/span&gt;&lt;br /&gt;This table stores information about the business purposes assigned to a customer account site.&lt;br /&gt;• A customer account site can have multiple purposes, but each record in this table only specifies one purpose for a customer account site.  For example, a customer account site may be assigned as a ship-to site in one record and as a bill-to site in another record.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;HZ_CUST_ACCOUNT_ROLES&lt;/span&gt;&lt;br /&gt;This table stores information about a role or function that a party performs as related to a customer account.  For example, Jane Doe might be the Legal Contact for a specific customer account of Corporation ABC. Note that account ownership such as financial responsibility for an account is determined by the single party ID that is stored directly on the HZ_CUST_ACCOUNTS table.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;HZ_CONTACT_POINTS&lt;/span&gt;&lt;br /&gt;This table stores information about how to communicate with parties or party sites using electronic media or methods such as Electronic Data Interchange (EDI), e-mail, telephone, telex, and the Internet.&lt;br /&gt;• Each medium or method should be stored as a separate method in this table. For example, the attributes of a complete telephone number connection should be stored in a record, while EDI information should be stored in a different record.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;RA_CUSTOMER_TRX_ALL&lt;/span&gt;&lt;br /&gt;This table stores invoice, debit memo, commit-ment, chargeback, bills receivable, and credit memo header information.&lt;br /&gt;• Each row includes general invoice information such as customer, transaction type, and printing instructions.&lt;br /&gt;• You need one row for each invoice, debit memo, commitment, and credit memo you create in Oracle Receivables and these are all distinguished by their transaction types stored in RA_CUST_ TRX_ TYPES_ALL.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;RA_CUSTOMER_TRX_LINES_ALL&lt;/span&gt;&lt;br /&gt;This table stores information about invoice, debit memo, credit memo, bills receivable, and commitment lines. It describes to the customer the charges that appear on these documents.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;AR_PAYMENT_SCHEDULES_ALL&lt;/span&gt;&lt;br /&gt;This table stores all transactions except adjust-ments and miscellaneous cash receipts. A miscellaneous cash receipt is one that is not connected to a customer.&lt;br /&gt;• All customer-related activity is logged in this table.&lt;br /&gt;• This table is updated when an activity occurs against an invoice, debit memo, chargeback, credit memo, on-account credit, bills receivable,&lt;br /&gt;receipt, or commitments.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;RA_CUST_TRX_TYPES_ALL&lt;/span&gt;&lt;br /&gt;This table stores information about each transaction type for all classes of transactions, for example, invoices, commitments, and credit memos.&lt;br /&gt;• Each row includes Auto Accounting information&lt;br /&gt;as well as standard defaults for the resulting invoices. The primary key for this table is CUST_TRX_TYPE_ID.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;AR_TRANSACTION_HISTORY_ALL&lt;/span&gt;&lt;br /&gt;This table is a Bills Receivable-specific table containing the history of a transaction’s lifecycle.&lt;br /&gt;• A new row is created each time there is activity on the transaction or the status of the transaction has changed.&lt;br /&gt;• This table stores the header for the Receivables posting information.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;AR_DISTRIBUTIONS_ALL&lt;/span&gt;&lt;br /&gt;This table stores the accounting distributions for cash receipts, miscellaneous receipts, adjustments, credit memo applications, cash receipt applications, and bills receivable transactions.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;AR_CASH_RECEIPTS_ALL&lt;/span&gt;&lt;br /&gt;This table stores one record for each receipt entry.&lt;br /&gt;• All cash receipts are logged in this table.&lt;br /&gt;• Oracle Receivables creates records concurrently in the AR_CASH _RECEIPT_ HISTORY_ ALL, AR_PAYMENT_ SCHEDULES_ ALL, AR_DISTRI-BUTIONS_ALL, and  AR_ RECEIVABLE_ APPLICA-TIONS_ALL tables for invoice-related receipts.&lt;br /&gt;• For receipts that are not related to invoices, records are created in the AR_MISC_CASH_ DISTRIBUTIONS_ALL table instead of the AR_RECEIVABLE_APPLICATIONS_ ALL table.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;AR_CASH_RECEIPT_HISTORY_ALL&lt;/span&gt;&lt;br /&gt;This table stores all of the activity that is contained for the life cycle of a receipt.&lt;br /&gt;• Each row represents one step.&lt;br /&gt;• The status field for that row tells you which step the receipt has reached.&lt;br /&gt;• Possible statuses are Approved, Confirmed, Remitted, Cleared, and Reversed.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;AR_RECEIVABLE_APPLICATIONS_ALL&lt;/span&gt;&lt;br /&gt;This table stores all accounting entries for cash and credit memo applications.&lt;br /&gt;• Each row includes the amount applied, status, and accounting flex field information.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;AR_MISC_CASH_DISTRIBUTIONS_ALL&lt;/span&gt;&lt;br /&gt;This table stores all accounting entries for miscellaneous cash applications.&lt;br /&gt;• Miscellaneous cash cannot be invoiced, such as stock revenue, interest income, and investment income.&lt;br /&gt;• AR_CASH_RECEIPTS_ALL stores one record for each payment, and this table stores one record for each distribution of the receipt.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;AR_RECEIPT_CLASSES&lt;/span&gt;&lt;br /&gt;This table stores the different receipt classes that you define.&lt;br /&gt;• Receipt classes determine whether the receipt[s] belonging to this class are created manually or automatically, and whether the receipts go through the different steps in a receipt’s life-cycle.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;AR_RECEIPT_METHODS&lt;/span&gt;&lt;br /&gt;This table stores information about Payment Methods, receipt attributes that you define and assign to Receipt Classes to account for receipts and their applications.&lt;br /&gt;• For automatically created receipts, a Payment Method defines the rules for creating these receipts.&lt;br /&gt;• For manually created receipts, a Payment Method defines a user-definable type for the receipt.&lt;br /&gt;• Each Payment Method is associated with a set of bank accounts, which forms the set of bank accounts you can assign to your receipt.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;AR_ADJUSTMENTS_ALL&lt;/span&gt;&lt;br /&gt;This table stores information about the adjustment applied to the Invoices.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/144851838473318802-308062007661964714?l=arunrathod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrathod.blogspot.com/feeds/308062007661964714/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=144851838473318802&amp;postID=308062007661964714' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/308062007661964714'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/308062007661964714'/><link rel='alternate' type='text/html' href='http://arunrathod.blogspot.com/2011/01/oracle-receivables-module-technical.html' title='Oracle Receivables Module Technical Details'/><author><name>Arun Kumar S.R</name><uri>http://www.blogger.com/profile/14745466774124137964</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_pBTgD4-jQls/SC-82Kq7MJI/AAAAAAAAAOs/e_Invzqp9e0/S220/DSC05800.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-144851838473318802.post-6348538476971331586</id><published>2011-01-20T11:28:00.000-08:00</published><updated>2011-01-20T11:33:14.440-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Puchasing and Payables Module: Technical Details'/><title type='text'>Puchasing and Payables Module: Technical Details</title><content type='html'>&lt;span style="font-weight:bold;"&gt;PO_VENDORS&lt;/span&gt;&lt;br /&gt;This table stores information about your suppliers. Oracle Purchasing uses this information to determine active suppliers. The primary key is VENDOR_ID.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;PO_VENDOR_SITES_ALL&lt;/span&gt;&lt;br /&gt;This table stores information about supplier sites. Oracle Purchasing uses this information to store supplier address information. The primary key is VENDOR_SITE_ID.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;PO_VENDOR_CONTACTS&lt;/span&gt;&lt;br /&gt;This table stores information about supplier site contacts. The primary key is VENDOR_CONTACT_ID.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;PO_REQUISITION_HEADERS_ALL&lt;/span&gt;&lt;br /&gt;PO_REQUISITION_HEADERS_ALL stores information about requisition headers. Each row contains the requisition number, preparer status, and description. It is one of three tables that stores requisition information. The primary key is REQUISITION_HEADER_ID.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;PO_REQUISITION_LINES_ALL&lt;/span&gt;&lt;br /&gt;This table stores information about requisition lines. Each row contains the line number, item number, item category, item description, need-by date, deliver-to location, item quantities, units, prices, requestor, notes, and suggested supplier information for the requisition line. This table is one of three tables that stores requisition information. The primary key is REQUISITION_LINE_ID.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;PO_REQ_DISTRIBUTIONS_ALL&lt;/span&gt;&lt;br /&gt;PO_REQ_DISTRIBUTIONS_ALL stores information about the accounting distributions associated with each requisition line. Each requisition line must have at least one accounting distribution. Each row includes the Accounting Flex field ID and requisition line quantity. This table is one of three tables that stores requisition information. The primary key is DISTRIBUTION_ID.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;PO_HEADERS_ALL&lt;/span&gt;&lt;br /&gt;PO_HEADERS_ALL contains information for your purchasing documents. Each row contains buyer information, supplier information, notes, foreign currency information, terms and conditions information, and the document status. Oracle Purchasing uses this information to record information related to a complete document. The primary key is PO-HEADER_ID.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;PO_LINES_ALL&lt;/span&gt;&lt;br /&gt;PO_LINES_ALL stores current information about each purchase order line. You need one row for each line you attach to a document. Each row includes the line number, item number and category unit, price, tax information, and quantity ordered for the line. Oracle Purchasing uses this information to record and update item and price information for purchase orders, quotations, and RFQs. The primary key is PO_LINE_ID.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;PO_LINE_LOCATIONS_ALL&lt;/span&gt;&lt;br /&gt;This table contains information about purchase order shipment schedules and blanket agreement price breaks. You must have one row for each schedule or price break you attach to a document line. Each row contains the location, quantity, and dates for each shipment schedule. Oracle Purchasing uses this information to record delivery schedule information for purchase orders and price break information for blanket purchase orders, quotations, and RFQs. The primary key is LINE_LOCATION_ID.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;PO_DISTRIBUTIONS_ALL&lt;/span&gt;&lt;br /&gt;PO_DISTRIBUTIONS_ALL contains accounting information for a purchase order shipment line. Oracle Purchasing uses this information to record accounting and requisition information for purchase orders and releases. It is one of five tables that stores purchase orders and releases. The primary key is PO_DISTRIBUTION_ID.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;RCV_SHIPMENT_HEADERS&lt;/span&gt;&lt;br /&gt;This table stores common information about the source of your receipts or expected receipts. You group your receipts by the source type and the source of the receipt. Oracle Purchasing does not allow you to group receipts from different sources under one receipt header. The primary key is SHIPMENT_HEADER_ID.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;RCV_SHIPMENT_LINES&lt;/span&gt;&lt;br /&gt;This table stores information about items that have been shipped or received from a specific receipt source. This table also stores information about the default destination for in-transit shipments. The primary key is SHIPMENT_LINE_ID.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;RCV_TRANSACTIONS&lt;/span&gt;&lt;br /&gt;This table stores historical information about receiving transactions that you have performed. When you enter a receiving transaction and the receiving transaction processor processes your transaction, the transaction is recorded in this table.&lt;br /&gt;Once a row has been inserted into this table, it will never be updated. When you correct a transaction, the net transaction quantity is maintained in RCV_SUPPLY. The original transaction does not get updated. You can only delete rows from this table using the Purge feature of Oracle Purchasing. The primary key is TRANSACTION_ID.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;PO_RELEASES_ALL&lt;/span&gt;&lt;br /&gt;This table contains information about blanket and planned purchase order releases. You need one row for each release you issue for a blanket or planned purchase order. Each row includes the buyer, date, release status, and release number. Each release must have at least one purchase order shipment (PO_LINE_LOCATIONS_ALL). The primary key is PO_RELEASE_ID. &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;AP_INVOICES_ALL&lt;/span&gt;&lt;br /&gt;This table contains records for supplier invoices and has one row for each invoice.&lt;br /&gt;To pass Invoice Validation, the INVOICE_AMOUNT in the AP_INVOICES_ALL table must equal the sum of the AMOUNT columns in the AP_DISTRIBUTIONS_ALL table. The primary key is INVOICE_ID.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;AP_INVOICE_DISTRIBUTIONS_ALL&lt;/span&gt;&lt;br /&gt;This table holds the distribution line information.&lt;br /&gt;There is a row for each invoice distribution. If matching is used, distribution information is copied from PO_DISTRIBUTIONS_ALL during the matching process.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;AP_PAYMENT_SCHEDULES_ALL&lt;/span&gt;&lt;br /&gt;This table contains information about scheduled payments for an invoice. &lt;br /&gt;Oracle Payables uses this information to determine when to make payments on an invoice and how much to pay in an automatic payment batch.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;AP_HOLDS_ALL&lt;/span&gt;&lt;br /&gt;This table contains a record for each hold placed on an invoice.&lt;br /&gt;An invoice might have multiple records in this table.&lt;br /&gt;An invoice cannot be paid until all holds placed on it have been released.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;AP_CHECKS_ALL&lt;/span&gt;&lt;br /&gt;This table stores information about payments issued to suppliers.&lt;br /&gt;Each row includes the supplier name, address, and bank account name for auditing purposes, in case any of them change after you make the payment.&lt;br /&gt;If the payment is electronic, the supplier bank account information is stored in the payment record.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;AP_INVOICE_PAYMENTS_ALL&lt;/span&gt;&lt;br /&gt;This table provides the link between a payment (CHECK_ID) and the invoice(s) paid by that payment.&lt;br /&gt;This table contains records of invoice payments that you make to suppliers. Oracle Payables updates this table when you confirm an automatic payment batch, enter a manual payment, or process a Quick Payment. This table contains one row for each payment made for each invoice.&lt;br /&gt;Void payments are also entered into this table as a negative record of the original payment line.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;AP_BANK_ACCOUNTS_ALL&lt;/span&gt;&lt;br /&gt;This table stores information about your bank accounts and your suppliers’ and customers’ bank accounts. This table contains one row for every bank account, whether it is an internal (supplier) or external (customer) account.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;AP_BANK_BRANCHES&lt;/span&gt;&lt;br /&gt;This table stores information about the bank branches and details about the branches.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;Thanks to my friend Sairam Malla for sharing this technical information&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/144851838473318802-6348538476971331586?l=arunrathod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrathod.blogspot.com/feeds/6348538476971331586/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=144851838473318802&amp;postID=6348538476971331586' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/6348538476971331586'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/6348538476971331586'/><link rel='alternate' type='text/html' href='http://arunrathod.blogspot.com/2011/01/puchasing-and-payables-module-technical.html' title='Puchasing and Payables Module: Technical Details'/><author><name>Arun Kumar S.R</name><uri>http://www.blogger.com/profile/14745466774124137964</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_pBTgD4-jQls/SC-82Kq7MJI/AAAAAAAAAOs/e_Invzqp9e0/S220/DSC05800.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-144851838473318802.post-651565046140701195</id><published>2011-01-17T13:23:00.000-08:00</published><updated>2011-01-17T13:24:11.473-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sysadmin resp'/><category scheme='http://www.blogger.com/atom/ns#' term='PL/Sql script to add System Administrator responsibility'/><title type='text'>PL/Sql script to add System Administrator responsibility</title><content type='html'>BEGIN&lt;br /&gt;fnd_user_pkg.addresp&lt;br /&gt;                            (username            =&gt; UPPER&lt;br /&gt;                                                       ('arathod'),&lt;br /&gt;                             resp_app            =&gt; 'SYSADMIN',&lt;br /&gt;                             resp_key            =&gt; 'SYSTEM_ADMINISTRATOR',&lt;br /&gt;                             security_group      =&gt; 'STANDARD',&lt;br /&gt;                             description         =&gt; 'DESCRIPTION',&lt;br /&gt;                             start_date          =&gt; SYSDATE,&lt;br /&gt;                             end_date            =&gt; NULL&lt;br /&gt;                            );&lt;br /&gt;        COMMIT;&lt;br /&gt;        DBMS_OUTPUT.put_line ('Responsibility Added Successfully');&lt;br /&gt;EXCEPTION&lt;br /&gt;        WHEN OTHERS&lt;br /&gt;        THEN&lt;br /&gt;        DBMS_OUTPUT.put_line ('Responsibility is not added due to'|| SQLCODE|| SUBSTR (SQLERRM, 1, 100));&lt;br /&gt;        ROLLBACK;&lt;br /&gt;END;&lt;br /&gt;/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/144851838473318802-651565046140701195?l=arunrathod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrathod.blogspot.com/feeds/651565046140701195/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=144851838473318802&amp;postID=651565046140701195' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/651565046140701195'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/651565046140701195'/><link rel='alternate' type='text/html' href='http://arunrathod.blogspot.com/2011/01/plsql-script-to-add-system.html' title='PL/Sql script to add System Administrator responsibility'/><author><name>Arun Kumar S.R</name><uri>http://www.blogger.com/profile/14745466774124137964</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_pBTgD4-jQls/SC-82Kq7MJI/AAAAAAAAAOs/e_Invzqp9e0/S220/DSC05800.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-144851838473318802.post-8797929689553113966</id><published>2011-01-17T13:20:00.000-08:00</published><updated>2011-01-17T13:22:15.942-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='create FND USER'/><category scheme='http://www.blogger.com/atom/ns#' term='FND USER'/><title type='text'>Script to create a FND user using PL/SQL</title><content type='html'>DECLARE&lt;br /&gt;   l_responsibility_id   NUMBER;&lt;br /&gt;   l_application_id      NUMBER;&lt;br /&gt;   l_user_id             NUMBER          := fnd_global.user_id;&lt;br /&gt;   x_user_id             NUMBER;&lt;br /&gt;   l_password            VARCHAR2 (2000) := 'welcome1';&lt;br /&gt;BEGIN&lt;br /&gt;   apps.hr_user_acct_internal.create_fnd_user (p_user_name            =&gt; 'arathod',&lt;br /&gt;                                               p_password             =&gt; l_password,&lt;br /&gt;                                               p_employee_id          =&gt; NULL,&lt;br /&gt;                                               p_user_id              =&gt; x_user_id,&lt;br /&gt;                                               p_user_start_date      =&gt; SYSDATE,&lt;br /&gt;                                               p_email_address        =&gt; NULL,&lt;br /&gt;                                               p_description          =&gt; NULL,&lt;br /&gt;                                               p_password_date        =&gt; NULL&lt;br /&gt;                                              );&lt;br /&gt;   DBMS_OUTPUT.put_line (x_user_id);&lt;br /&gt;&lt;br /&gt;   IF x_user_id IS NOT NULL&lt;br /&gt;   THEN&lt;br /&gt;      UPDATE fnd_user&lt;br /&gt;         SET password_lifespan_days = 90&lt;br /&gt;       WHERE user_id = x_user_id;&lt;br /&gt;&lt;br /&gt;      COMMIT;&lt;br /&gt;   END IF;&lt;br /&gt;END;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/144851838473318802-8797929689553113966?l=arunrathod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrathod.blogspot.com/feeds/8797929689553113966/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=144851838473318802&amp;postID=8797929689553113966' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/8797929689553113966'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/8797929689553113966'/><link rel='alternate' type='text/html' href='http://arunrathod.blogspot.com/2011/01/script-to-create-fnd-user-using-plsql.html' title='Script to create a FND user using PL/SQL'/><author><name>Arun Kumar S.R</name><uri>http://www.blogger.com/profile/14745466774124137964</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_pBTgD4-jQls/SC-82Kq7MJI/AAAAAAAAAOs/e_Invzqp9e0/S220/DSC05800.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-144851838473318802.post-558489119731624084</id><published>2011-01-17T13:16:00.000-08:00</published><updated>2011-01-17T13:17:20.735-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PO Archive'/><title type='text'>Oracle PO Archive extract</title><content type='html'>SELECT po_number, creation_date po_date, vendor_num, vendor_name,&lt;br /&gt;       revision_num, approved_date, closed_date,&lt;br /&gt;       change_type type_of_modification&lt;br /&gt;  FROM (SELECT   pv.segment1 vendor_num, pv.vendor_name, pha.po_header_id,&lt;br /&gt;                 pha.segment1 po_number, pha.agent_id, pha.creation_date,&lt;br /&gt;                 pha.vendor_id, phaa.submit_date, pha.revision_num rev_num,&lt;br /&gt;                 phaa.revision_num, pha.approved_flag, pha.approved_date,&lt;br /&gt;                 pha.closed_date, phaa.closed_code, pha.cancel_flag,&lt;br /&gt;                 CASE&lt;br /&gt;                    WHEN (    NVL (pha.approved_flag, '01-JAN-1951') &lt;&gt;&lt;br /&gt;                                                                 '01-JAN-1951'&lt;br /&gt;                          AND NVL (pha.closed_date, '01-JAN-1951') &lt;&gt;&lt;br /&gt;                                                                 '01-JAN-1951'&lt;br /&gt;                          AND NVL (phaa.closed_code, 'OPEN') = 'OPEN'&lt;br /&gt;                          AND pha.approved_flag &lt;&gt; 'F'&lt;br /&gt;                          AND phaa.revision_num = pha.revision_num&lt;br /&gt;                         )&lt;br /&gt;                       THEN 'APPROVED &amp; CLOSED'&lt;br /&gt;                    WHEN (    NVL (pha.approved_flag, '01-JAN-1951') &lt;&gt;&lt;br /&gt;                                                                 '01-JAN-1951'&lt;br /&gt;                          AND NVL (pha.closed_date, '01-JAN-1951') =&lt;br /&gt;                                                                 '01-JAN-1951'&lt;br /&gt;                          AND pha.approved_flag = 'Y'&lt;br /&gt;                          AND phaa.revision_num = pha.revision_num&lt;br /&gt;                         )&lt;br /&gt;                       THEN 'APPROVED'&lt;br /&gt;                    WHEN (    NVL (phaa.closed_code, 'OPEN') = 'CLOSED'&lt;br /&gt;                          AND pha.cancel_flag = 'Y'&lt;br /&gt;                         )&lt;br /&gt;                       THEN 'CANCELLED'&lt;br /&gt;                    WHEN (pha.approved_flag = 'F')&lt;br /&gt;                       THEN 'REJECTED'&lt;br /&gt;                    WHEN phaa.submit_date IS NULL&lt;br /&gt;                       THEN 'NEW'&lt;br /&gt;                    WHEN phaa.revision_num &lt; pha.revision_num&lt;br /&gt;                       THEN 'CHANGE'&lt;br /&gt;                 END change_type&lt;br /&gt;            FROM po_headers_all pha,&lt;br /&gt;                 po_headers_archive_all phaa,&lt;br /&gt;                 po_vendors pv&lt;br /&gt;           WHERE 1 = 1&lt;br /&gt;             AND phaa.po_header_id(+) = pha.po_header_id&lt;br /&gt;             AND pv.vendor_id = pha.vendor_id&lt;br /&gt;        ORDER BY pha.po_header_id, phaa.revision_num) po_archive&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/144851838473318802-558489119731624084?l=arunrathod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrathod.blogspot.com/feeds/558489119731624084/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=144851838473318802&amp;postID=558489119731624084' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/558489119731624084'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/558489119731624084'/><link rel='alternate' type='text/html' href='http://arunrathod.blogspot.com/2011/01/oracle-po-archive-extract.html' title='Oracle PO Archive extract'/><author><name>Arun Kumar S.R</name><uri>http://www.blogger.com/profile/14745466774124137964</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_pBTgD4-jQls/SC-82Kq7MJI/AAAAAAAAAOs/e_Invzqp9e0/S220/DSC05800.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-144851838473318802.post-3330778053756004682</id><published>2011-01-17T12:33:00.000-08:00</published><updated>2011-01-17T13:18:37.809-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Audittrail'/><category scheme='http://www.blogger.com/atom/ns#' term='Audit Trail'/><title type='text'>Enabling AuditTrail Functionality to capture changes to project status</title><content type='html'>&lt;span style="font-weight:bold;"&gt;Set profile Option&lt;/span&gt; &lt;br /&gt;1. Log in with the responsibility: System Administrator&lt;br /&gt;   Navigation Path: System/profile&lt;br /&gt;2. Query on profile option: AuditTrail:Activate&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_pBTgD4-jQls/TTSoGN037NI/AAAAAAAABjI/5uDXi5O5D7E/s1600/capture1.bmp"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 151px;" src="http://2.bp.blogspot.com/_pBTgD4-jQls/TTSoGN037NI/AAAAAAAABjI/5uDXi5O5D7E/s320/capture1.bmp" border="0" alt=""id="BLOGGER_PHOTO_ID_5563256264453516498" /&gt;&lt;/a&gt;&lt;br /&gt;3. Ensure that this profile option is set to yes at site level and not overwriten by a No at application level ( valid values are yes or null when it is defined at site level as indicated above)&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Install&lt;/span&gt;&lt;br /&gt;1. Log in with the responsibility: System Administrator&lt;br /&gt;   Navigation Path: Security/AuditTrail/Install&lt;br /&gt;2. Query on profile option: Oracle Username : PA&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_pBTgD4-jQls/TTSoGN037NI/AAAAAAAABjI/5uDXi5O5D7E/s1600/capture1.bmp"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 151px;" src="http://2.bp.blogspot.com/_pBTgD4-jQls/TTSoGN037NI/AAAAAAAABjI/5uDXi5O5D7E/s320/capture2.bmp" border="0" alt=""id="BLOGGER_PHOTO_ID_5563256264453516498" /&gt;&lt;/a&gt;&lt;br /&gt;3. Ensure that the user account for Oracle Project Accounts is checked as enabled for audit &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Define the Audit Group&lt;/span&gt;&lt;br /&gt;1. Log in with the responsibility: System Administrator&lt;br /&gt;   Navigation Path: Security/AuditTrail/Groups&lt;br /&gt;2. Create an audit group for the application projects&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_pBTgD4-jQls/TTSoGN037NI/AAAAAAAABjI/5uDXi5O5D7E/s1600/capture1.bmp"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 151px;" src="http://2.bp.blogspot.com/_pBTgD4-jQls/TTSoGN037NI/AAAAAAAABjI/5uDXi5O5D7E/s320/capture3.bmp" border="0" alt=""id="BLOGGER_PHOTO_ID_5563256264453516498" /&gt;&lt;/a&gt;&lt;br /&gt;3. Add PA_PROJECTS_ALL table in the audit tables list&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Define the Audit Columns&lt;/span&gt;&lt;br /&gt;1. Log in with the responsibility: System Administrator&lt;br /&gt;   Navigation Path: Security/AuditTrail/Tables&lt;br /&gt;2. Query on the Table Name PA_PROJECTS_ALL and add the column PROJECT_STATUS_CODE to it&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_pBTgD4-jQls/TTSoGN037NI/AAAAAAAABjI/5uDXi5O5D7E/s1600/capture1.bmp"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 151px;" src="http://2.bp.blogspot.com/_pBTgD4-jQls/TTSoGN037NI/AAAAAAAABjI/5uDXi5O5D7E/s320/capture4.bmp" border="0" alt=""id="BLOGGER_PHOTO_ID_5563256264453516498" /&gt;&lt;/a&gt; &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;AuditTrail Update tables&lt;/span&gt;&lt;br /&gt;1. Log in with the responsibility: System Administrator&lt;br /&gt;   Navigation Path: Requests/Run&lt;br /&gt;2. Submit the report: AuditTrail Update Tables&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Tables Schema created&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;select * from dba_objects&lt;br /&gt;where object_name like 'PA_PROJECTS_ALL_A'&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;AuditTrail Report for Audit Group Validation&lt;/span&gt;&lt;br /&gt;1. Log in with the responsibility: System Administrator&lt;br /&gt;   Navigation Path: Requests/Run&lt;br /&gt;2. Submit the report: AuditTrail Report for Audit Group Validation by choosing the audit group in parameters&lt;br /&gt; &lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_pBTgD4-jQls/TTSoGN037NI/AAAAAAAABjI/5uDXi5O5D7E/s1600/capture1.bmp"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 151px;" src="http://2.bp.blogspot.com/_pBTgD4-jQls/TTSoGN037NI/AAAAAAAABjI/5uDXi5O5D7E/s320/capture5.bmp" border="0" alt=""id="BLOGGER_PHOTO_ID_5563256264453516498" /&gt;&lt;/a&gt; &lt;br /&gt;This process creates Shadow Tables with the same data type columns. Shadow Tables have the name &lt;tablename&gt;_A which mirror the audited tables. (in our example the audited table is PA_PROJECTS_ALL and the shadow table is PA_PROJECTS_ALL _A).It also creates views on the Shadow Tables with the name &lt;tablename&gt;_AC1 and &lt;tablename&gt;_AV1 which allow access to the data in the Shadow Tables.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/144851838473318802-3330778053756004682?l=arunrathod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrathod.blogspot.com/feeds/3330778053756004682/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=144851838473318802&amp;postID=3330778053756004682' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/3330778053756004682'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/3330778053756004682'/><link rel='alternate' type='text/html' href='http://arunrathod.blogspot.com/2011/01/enabling-audittrail-functionality-to.html' title='Enabling AuditTrail Functionality to capture changes to project status'/><author><name>Arun Kumar S.R</name><uri>http://www.blogger.com/profile/14745466774124137964</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_pBTgD4-jQls/SC-82Kq7MJI/AAAAAAAAAOs/e_Invzqp9e0/S220/DSC05800.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_pBTgD4-jQls/TTSoGN037NI/AAAAAAAABjI/5uDXi5O5D7E/s72-c/capture1.bmp' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-144851838473318802.post-4810884261403634603</id><published>2010-10-22T10:35:00.000-07:00</published><updated>2010-10-22T10:37:13.156-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PA_PROJECT_PUB.UPDATE_TASK'/><category scheme='http://www.blogger.com/atom/ns#' term='Script to Update Project Tasks'/><category scheme='http://www.blogger.com/atom/ns#' term='Oracle Project task Update API'/><category scheme='http://www.blogger.com/atom/ns#' term='PA_PROJECT_PUB'/><title type='text'>Script to Update Oracle Project Tasks: pa_project_pub.update_task</title><content type='html'>DECLARE&lt;br /&gt;   l_msg_count               NUMBER;&lt;br /&gt;   l_msg_data                VARCHAR2 (2000);&lt;br /&gt;   l_return_status           VARCHAR2 (1);&lt;br /&gt;   l_pm_product_code         VARCHAR2 (10);&lt;br /&gt;   l_out_pa_task_id          NUMBER;&lt;br /&gt;   l_out_pm_task_reference   VARCHAR2 (2000);&lt;br /&gt;   l_output                  VARCHAR2 (2000);&lt;br /&gt;   l_msg_dummy               VARCHAR2 (2000);&lt;br /&gt;   api_error                 EXCEPTION;&lt;br /&gt;   n                         NUMBER          := 0;&lt;br /&gt;   l_pa_project_id           NUMBER          := :project_id;&lt;br /&gt;BEGIN&lt;br /&gt;   pa_interface_utils_pub.set_global_info (p_api_version_number      =&gt; 1.0,&lt;br /&gt;                                           p_responsibility_id       =&gt; :Responsibility_id,&lt;br /&gt;                                           p_user_id                 =&gt; :User_id,&lt;br /&gt;                                           p_msg_count               =&gt; l_msg_count,&lt;br /&gt;                                           p_msg_data                =&gt; l_msg_data,&lt;br /&gt;                                           p_return_status           =&gt; l_return_status&lt;br /&gt;                                          );&lt;br /&gt;   pa_project_pub.update_task&lt;br /&gt;                           (p_api_version_number         =&gt; '1.0',&lt;br /&gt;                            p_commit                     =&gt; 'F',&lt;br /&gt;                            p_init_msg_list              =&gt; 'F',&lt;br /&gt;                            p_msg_count                  =&gt; l_msg_count,&lt;br /&gt;                            p_msg_data                   =&gt; l_msg_data,&lt;br /&gt;                            p_return_status              =&gt; l_return_status,&lt;br /&gt;                            p_pm_product_code            =&gt; l_pm_product_code,&lt;br /&gt;                            p_pa_project_id              =&gt; l_pa_project_id,&lt;br /&gt;                            p_pa_task_id                 =&gt; :pa_task_id,&lt;br /&gt;--                            p_task_description           =&gt; 'TEST DESC1',&lt;br /&gt;                            p_tasks_dff                  =&gt; 'N',&lt;br /&gt;                            p_out_pa_task_id             =&gt; l_out_pa_task_id,&lt;br /&gt;                            p_out_pm_task_reference      =&gt; l_out_pm_task_reference&lt;br /&gt;                           );&lt;br /&gt;   COMMIT;&lt;br /&gt;&lt;br /&gt;   IF l_return_status &lt;&gt; 'S'&lt;br /&gt;   THEN&lt;br /&gt;      FOR n IN 1 .. l_msg_count&lt;br /&gt;      LOOP&lt;br /&gt;         fnd_msg_pub.get (n, fnd_api.g_false, l_msg_data, l_msg_dummy);&lt;br /&gt;         l_output := (TO_CHAR (n) || ': ' || l_msg_data);&lt;br /&gt;         DBMS_OUTPUT.put_line&lt;br /&gt;                (   'Error: API Error while updating the Task: '&lt;br /&gt;                 || l_output&lt;br /&gt;                );&lt;br /&gt;         COMMIT;&lt;br /&gt;      END LOOP;&lt;br /&gt;   ELSE&lt;br /&gt;      DBMS_OUTPUT.put_line ('Sucessfully Update the task');&lt;br /&gt;      COMMIT;&lt;br /&gt;   END IF;&lt;br /&gt;EXCEPTION&lt;br /&gt;   WHEN api_error&lt;br /&gt;   THEN&lt;br /&gt;      DBMS_OUTPUT.put_line ('API Error in Project: ');&lt;br /&gt;   WHEN OTHERS&lt;br /&gt;   THEN&lt;br /&gt;      DBMS_OUTPUT.put_line ('Other Error in Project: ' || SQLERRM);&lt;br /&gt;END;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/144851838473318802-4810884261403634603?l=arunrathod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrathod.blogspot.com/feeds/4810884261403634603/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=144851838473318802&amp;postID=4810884261403634603' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/4810884261403634603'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/4810884261403634603'/><link rel='alternate' type='text/html' href='http://arunrathod.blogspot.com/2010/10/script-to-update-oracle-project-tasks.html' title='Script to Update Oracle Project Tasks: pa_project_pub.update_task'/><author><name>Arun Kumar S.R</name><uri>http://www.blogger.com/profile/14745466774124137964</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_pBTgD4-jQls/SC-82Kq7MJI/AAAAAAAAAOs/e_Invzqp9e0/S220/DSC05800.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-144851838473318802.post-4483363074431484732</id><published>2010-10-13T18:36:00.000-07:00</published><updated>2010-10-13T18:37:15.357-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Steps to customize the PO Approval Workflow'/><category scheme='http://www.blogger.com/atom/ns#' term='POAPPRV'/><title type='text'>Steps to customize the PO Approval Workflow.</title><content type='html'>1. Take the seeded workflow (POAPPRV)&lt;br /&gt;2. Right click on the Item TYpe and create a new Item TYpe .&lt;br /&gt;3. Open the Seeded Workflow(POAPPRV) in other window .&lt;br /&gt;4. Copy and paste ATTRIBUTES, NOTIFICATIONs, FUNCTIONS and PROCESSES etc from the the seeded workflow to the Newly named workflow .&lt;br /&gt;5. Verify the workflow&lt;br /&gt;6. Customize the new workflow according to your needs.&lt;br /&gt;7. Save the changes and port it to Oracle.&lt;br /&gt;&lt;br /&gt;Login with a PO Super User responsibility, go to Setup -&gt; Document Types, select the PO types for which you want to use the custom workflow, and change workflow fields 'Approval Workflow' and 'Workflow Startup Process' to the new ones.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/144851838473318802-4483363074431484732?l=arunrathod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrathod.blogspot.com/feeds/4483363074431484732/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=144851838473318802&amp;postID=4483363074431484732' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/4483363074431484732'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/4483363074431484732'/><link rel='alternate' type='text/html' href='http://arunrathod.blogspot.com/2010/10/steps-to-customize-po-approval-workflow.html' title='Steps to customize the PO Approval Workflow.'/><author><name>Arun Kumar S.R</name><uri>http://www.blogger.com/profile/14745466774124137964</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_pBTgD4-jQls/SC-82Kq7MJI/AAAAAAAAAOs/e_Invzqp9e0/S220/DSC05800.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-144851838473318802.post-7149836509231914871</id><published>2010-10-02T17:53:00.000-07:00</published><updated>2010-10-02T17:57:05.257-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PO API'/><category scheme='http://www.blogger.com/atom/ns#' term='API to close Purchase Orders'/><title type='text'>API to Close Purchase Order</title><content type='html'>po_actions.close_po&lt;br /&gt;&lt;br /&gt;To Close the PO we need to pass 'CLOSE' to the p_action variable and make sure to pass 'N' to the p_auto_close.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/144851838473318802-7149836509231914871?l=arunrathod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrathod.blogspot.com/feeds/7149836509231914871/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=144851838473318802&amp;postID=7149836509231914871' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/7149836509231914871'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/7149836509231914871'/><link rel='alternate' type='text/html' href='http://arunrathod.blogspot.com/2010/10/api-to-close-purchase-order.html' title='API to Close Purchase Order'/><author><name>Arun Kumar S.R</name><uri>http://www.blogger.com/profile/14745466774124137964</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_pBTgD4-jQls/SC-82Kq7MJI/AAAAAAAAAOs/e_Invzqp9e0/S220/DSC05800.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-144851838473318802.post-7438475155483654286</id><published>2010-09-14T20:11:00.001-07:00</published><updated>2010-09-14T20:12:05.269-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Unbaselined Fundings'/><title type='text'>Sql Query to find Unbaselined Fundings</title><content type='html'>SELECT   ppf.project_number, ppf.project_name,&lt;br /&gt;         pps.project_system_status_code project_status, ppf.task_number,&lt;br /&gt;         ppf.task_name, paa.agreement_num, paa.agreement_type,&lt;br /&gt;         paa.amount agreement_amount, ppf.allocated_amount funding_amount,&lt;br /&gt;         ppf.date_allocated, ppf.funding_category,&lt;br /&gt;         ppf.budget_type_code baseline_status, ppf.last_update_date,&lt;br /&gt;         fu.user_name last_updated_by&lt;br /&gt;    FROM pa_agreements_all paa,&lt;br /&gt;         pa_project_fundings_v ppf,&lt;br /&gt;         fnd_user fu,&lt;br /&gt;         pa_projects_all ppa,&lt;br /&gt;         pa_project_statuses pps&lt;br /&gt;   WHERE paa.agreement_id = ppf.agreement_id&lt;br /&gt;     AND ppa.project_status_code = pps.project_status_code&lt;br /&gt;     AND ppa.project_id = ppf.project_id&lt;br /&gt;     AND fu.user_id = ppf.last_updated_by&lt;br /&gt;     AND ppf.budget_type_code &lt;&gt; 'BASELINE'&lt;br /&gt;ORDER BY paa.agreement_id;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/144851838473318802-7438475155483654286?l=arunrathod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrathod.blogspot.com/feeds/7438475155483654286/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=144851838473318802&amp;postID=7438475155483654286' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/7438475155483654286'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/7438475155483654286'/><link rel='alternate' type='text/html' href='http://arunrathod.blogspot.com/2010/09/sql-query-to-find-unbaselined-fundings.html' title='Sql Query to find Unbaselined Fundings'/><author><name>Arun Kumar S.R</name><uri>http://www.blogger.com/profile/14745466774124137964</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_pBTgD4-jQls/SC-82Kq7MJI/AAAAAAAAAOs/e_Invzqp9e0/S220/DSC05800.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-144851838473318802.post-3483594144617187688</id><published>2010-09-14T20:08:00.000-07:00</published><updated>2010-09-14T20:10:45.553-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Multiple Agreements funded for same project query'/><title type='text'>Sql Script to find Projects which are funded by multiple Sales Order (Agreement)</title><content type='html'>SELECT paa.agreement_num sales_order, ppa.segment1 project_number,&lt;br /&gt;       paps.project_status_name project_status,&lt;br /&gt;       pspf.total_baselined_amount funding_amount,&lt;br /&gt;       TRUNC (pspf.last_update_date) last_funding_date, '-Budget-',&lt;br /&gt;       pbv.revenue,PA.FULL_NAME PROJECT_MANAGER &lt;br /&gt;  FROM pa_projects_all ppa,&lt;br /&gt;       (SELECT   pspf.project_id&lt;br /&gt;            FROM pa_summary_project_fundings pspf&lt;br /&gt;           WHERE 1 = 1&lt;br /&gt;        GROUP BY pspf.project_id&lt;br /&gt;          HAVING COUNT (*) &gt; 1) multi,&lt;br /&gt;       (SELECT *&lt;br /&gt;          FROM pa_budget_versions&lt;br /&gt;         WHERE budget_type_code = 'Revenue Budget'&lt;br /&gt;           AND budget_status_code = 'B'&lt;br /&gt;           AND current_flag = 'Y') pbv,&lt;br /&gt;       pa_summary_project_fundings pspf,&lt;br /&gt;       pa_project_classes ppct,&lt;br /&gt;       pa_agreements_all paa,&lt;br /&gt;        pa_employees pa,&lt;br /&gt;       pabv_key_members pkm&lt;br /&gt; WHERE multi.project_id = ppa.project_id&lt;br /&gt;   AND pspf.project_id = ppa.project_id&lt;br /&gt;   AND paa.agreement_id = pspf.agreement_id&lt;br /&gt;   AND paps.project_status_code = ppa.project_status_code&lt;br /&gt;   AND ppa.project_id = pbv.project_id(+)&lt;br /&gt;   AND pa.person_id = pkm.person_id&lt;br /&gt;   AND pkm.project_id = ppa.project_id&lt;br /&gt;   AND pkm.project_role_type = 'PROJECT MANAGER'&lt;br /&gt;   and NVL (PKM.END_EFFECTIVE_DATE, TRUNC (sysdate)) &gt;= TRUNC (sysdate)&lt;br /&gt;   and NVL (PA.EFFECTIVE_END_DATE, TRUNC (sysdate)) &gt;= TRUNC (sysdate)   &lt;br /&gt;   AND current_flag = 'Y'&lt;br /&gt;   AND paps.project_status_name &lt;&gt; 'Not Acquired'&lt;br /&gt;   AND ppa.template_flag = 'N'&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/144851838473318802-3483594144617187688?l=arunrathod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrathod.blogspot.com/feeds/3483594144617187688/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=144851838473318802&amp;postID=3483594144617187688' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/3483594144617187688'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/3483594144617187688'/><link rel='alternate' type='text/html' href='http://arunrathod.blogspot.com/2010/09/sql-script-to-find-projects-which-are.html' title='Sql Script to find Projects which are funded by multiple Sales Order (Agreement)'/><author><name>Arun Kumar S.R</name><uri>http://www.blogger.com/profile/14745466774124137964</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_pBTgD4-jQls/SC-82Kq7MJI/AAAAAAAAAOs/e_Invzqp9e0/S220/DSC05800.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-144851838473318802.post-6268162974346704605</id><published>2010-09-14T19:57:00.000-07:00</published><updated>2010-09-14T20:00:14.105-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Vendor Status report Query'/><title type='text'>Sql Script to extract Vendor, Project, Receipt information for a PO</title><content type='html'>SELECT pha.po_header_id, pha.segment1 po_number, pov.vendor_name,&lt;br /&gt;          pov.segment1 vendor_num, pla.line_num po_line_number, pla.item_id,&lt;br /&gt;          (SELECT MAX (segment1)&lt;br /&gt;             FROM mtl_system_items_b&lt;br /&gt;            WHERE inventory_item_id = pla.item_id) item,&lt;br /&gt;          DECODE (NVL (pla.item_id, 0),&lt;br /&gt;                  0, NULL,&lt;br /&gt;                  pla.item_description&lt;br /&gt;                 ) item_description,&lt;br /&gt;          DECODE (pla.cancel_flag,&lt;br /&gt;                  'Y', 'CANCELLED',&lt;br /&gt;                  DECODE (pha.authorization_status,&lt;br /&gt;                          'IN PROCESS', 'PENDING APPROVAL',&lt;br /&gt;                          NVL (pha.authorization_status, 'INCOMPLETE')&lt;br /&gt;                         )&lt;br /&gt;                 ) authorization_status,&lt;br /&gt;          DECODE (pla.cancel_flag,&lt;br /&gt;                  'Y', 'N/A',&lt;br /&gt;                  DECODE (pha.authorization_status,&lt;br /&gt;                          'APPROVED', DECODE (NVL (pla.closed_code, 'b'),&lt;br /&gt;                                              'CLOSED', 'CLOSED',&lt;br /&gt;                                              'FINALLY CLOSED', 'CLOSED',&lt;br /&gt;                                              'OPEN'&lt;br /&gt;                                             ),&lt;br /&gt;                          'N/A'&lt;br /&gt;                         )&lt;br /&gt;                 ) po_status,&lt;br /&gt;          pha.creation_date date_issued, pla.creation_date line_creation_date,&lt;br /&gt;          (pda.quantity_ordered - pda.quantity_cancelled) po_quantity,&lt;br /&gt;          (NVL (pla.unit_price, 0) * NVL (pda.quantity_ordered, 0)&lt;br /&gt;          ) po_line_amt,&lt;br /&gt;          (NVL (pla.unit_price, 0) * NVL (pda.quantity_cancelled, 0)&lt;br /&gt;          ) po_cancelled_amount,&lt;br /&gt;          (NVL (pla.unit_price, 0) * NVL (pda.quantity_delivered, 0)&lt;br /&gt;          ) po_line_received_amount,&lt;br /&gt;          rt.transaction_date receipt_date,&lt;br /&gt;          TO_CHAR (rt.transaction_date, 'MON-RR') receipt_month,&lt;br /&gt;          rsh.receipt_num,&lt;br /&gt;          (DECODE (NVL (rt.transaction_type, 'a'),&lt;br /&gt;                   'RETURN TO VENDOR', NVL (rt.quantity * (-1), 0),&lt;br /&gt;                   'RETURN TO RECEIVING', NVL (rt.quantity * (-1), 0),&lt;br /&gt;                   NVL (rt.quantity, 0)&lt;br /&gt;                  )&lt;br /&gt;          ) receipt_quantity,&lt;br /&gt;          (  NVL (rt.po_unit_price, 0)&lt;br /&gt;           * DECODE (NVL (rt.transaction_type, 'a'),&lt;br /&gt;                     'RETURN TO VENDOR', NVL (rt.quantity * (-1), 0),&lt;br /&gt;                     'RETURN TO RECEIVING', NVL (rt.quantity * (-1), 0),&lt;br /&gt;                     NVL (rt.quantity, 0)&lt;br /&gt;                    )&lt;br /&gt;          ) receipt_amount,&lt;br /&gt;          ai.invoice_id, ai.invoice_num, ai.invoice_amount, ai.amount_paid,&lt;br /&gt;          ai.invoice_date, aid.quantity_invoiced, aid.amount inv_line_amount,&lt;br /&gt;          ppa.project_id, ppa.segment1 project_number, ppa.NAME project_name,&lt;br /&gt;          (SELECT full_name&lt;br /&gt;             FROM pa_project_players_v&lt;br /&gt;            WHERE project_id = ppa.project_id&lt;br /&gt;              AND UPPER (ROLE) = 'PROJECT MANAGER'&lt;br /&gt;              AND NVL (end_date_active, SYSDATE) IN (&lt;br /&gt;                     SELECT MAX (NVL (end_date_active, SYSDATE))&lt;br /&gt;                       FROM pa_project_players_v&lt;br /&gt;                      WHERE 1 = 1&lt;br /&gt;                        AND project_id = ppa.project_id&lt;br /&gt;                        AND UPPER (ROLE) = 'PROJECT MANAGER')&lt;br /&gt;              AND ROWNUM &lt; 2) "Project Manager",&lt;br /&gt;          total_billings.invoice_amount total_actual_billings&lt;br /&gt;     FROM po_headers_all pha,&lt;br /&gt;          po_lines_all pla,&lt;br /&gt;          po_distributions_all pda,&lt;br /&gt;          ap_invoices_all ai,&lt;br /&gt;          ap_invoice_distributions_all aid,&lt;br /&gt;          rcv_transactions rt,&lt;br /&gt;          rcv_shipment_headers rsh,&lt;br /&gt;          po_vendors pov,&lt;br /&gt;          pa_projects_all ppa,&lt;br /&gt;          (SELECT   i.project_id, SUM (NVL (ii.inv_amount, 0)) invoice_amount&lt;br /&gt;               FROM pa_draft_invoices_all i, pa_draft_inv_items_bas ii&lt;br /&gt;              WHERE 1 = 1&lt;br /&gt;                AND ii.project_id(+) = i.project_id&lt;br /&gt;                AND ii.draft_invoice_num(+) = i.draft_invoice_num&lt;br /&gt;                AND i.pa_date &lt; ((SELECT end_date&lt;br /&gt;                                    FROM pa_periods_all ppi&lt;br /&gt;                                   WHERE ppi.current_pa_period_flag = 'Y') + 1)&lt;br /&gt;           GROUP BY i.project_id) total_billings&lt;br /&gt;   WHERE  pha.po_header_id = pla.po_header_id&lt;br /&gt;      AND pda.po_header_id = pla.po_header_id&lt;br /&gt;      AND pda.po_line_id = pla.po_line_id&lt;br /&gt;      AND pda.po_header_id = pha.po_header_id&lt;br /&gt;      AND pha.vendor_id = pov.vendor_id&lt;br /&gt;      AND pda.po_distribution_id = aid.po_distribution_id(+)&lt;br /&gt;      AND aid.invoice_id = ai.invoice_id(+)&lt;br /&gt;      AND pla.po_line_id = rt.po_line_id(+)&lt;br /&gt;      AND rt.shipment_header_id = rsh.shipment_header_id(+)&lt;br /&gt;      AND rt.destination_type_code(+) = 'RECEIVING'&lt;br /&gt;      AND pda.project_id = ppa.project_id(+)&lt;br /&gt;      AND ppa.project_id = total_billings.project_id(+)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/144851838473318802-6268162974346704605?l=arunrathod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrathod.blogspot.com/feeds/6268162974346704605/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=144851838473318802&amp;postID=6268162974346704605' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/6268162974346704605'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/6268162974346704605'/><link rel='alternate' type='text/html' href='http://arunrathod.blogspot.com/2010/09/sql-script-to-extract-vendor-project.html' title='Sql Script to extract Vendor, Project, Receipt information for a PO'/><author><name>Arun Kumar S.R</name><uri>http://www.blogger.com/profile/14745466774124137964</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_pBTgD4-jQls/SC-82Kq7MJI/AAAAAAAAAOs/e_Invzqp9e0/S220/DSC05800.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-144851838473318802.post-7074600039241464013</id><published>2010-09-14T19:51:00.000-07:00</published><updated>2010-09-14T19:54:34.921-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Script to Approve PO Requisition'/><category scheme='http://www.blogger.com/atom/ns#' term='PO Requisition'/><title type='text'>Script to Approve PO Requisition</title><content type='html'>/* Formatted on 2010/05/15 11:23 (Formatter Plus v4.8.0) */&lt;br /&gt;DECLARE&lt;br /&gt;   l_itemkey     VARCHAR2 (200);&lt;br /&gt;   l_po_id       NUMBER         := :PO_HEADER_ID;&lt;br /&gt;   l_po_number   VARCHAR2 (200) := :REQUISITION_NUMBER;&lt;br /&gt;BEGIN&lt;br /&gt;   SELECT l_po_id || '-' || TO_CHAR (po_wf_itemkey_s.NEXTVAL)&lt;br /&gt;     INTO l_itemkey&lt;br /&gt;     FROM DUAL;&lt;br /&gt;&lt;br /&gt;   wf_engine.createprocess ('REQAPPRV',&lt;br /&gt;                            l_itemkey,&lt;br /&gt;                            'MAIN_REQAPPRV_PROCESS',&lt;br /&gt;                            NULL,&lt;br /&gt;                            :USER_NAME&lt;br /&gt;                           );&lt;br /&gt;   wf_engine.setitemattrnumber (itemtype      =&gt; 'REQAPPRV',&lt;br /&gt;                                itemkey       =&gt; l_itemkey,&lt;br /&gt;                                aname         =&gt; 'RESPONSIBILITY_ID',&lt;br /&gt;                                avalue        =&gt; :RESPONSIBILITY_ID&lt;br /&gt;                               );&lt;br /&gt;   wf_engine.setitemattrnumber (itemtype      =&gt; 'REQAPPRV',&lt;br /&gt;                                itemkey       =&gt; l_itemkey,&lt;br /&gt;                                aname         =&gt; 'APPLICATION_ID',&lt;br /&gt;                                avalue        =&gt; :APPLICATION_ID&lt;br /&gt;                               );&lt;br /&gt;   wf_engine.setitemattrnumber (itemtype      =&gt; 'REQAPPRV',&lt;br /&gt;                                itemkey       =&gt; l_itemkey,&lt;br /&gt;                                aname         =&gt; 'USER_ID',&lt;br /&gt;                                avalue        =&gt; :USER_ID&lt;br /&gt;                               );&lt;br /&gt;   wf_engine.setitemattrnumber (itemtype      =&gt; 'REQAPPRV',&lt;br /&gt;                                itemkey       =&gt; l_itemkey,&lt;br /&gt;                                aname         =&gt; 'SUBMITTER_ID',&lt;br /&gt;                                avalue        =&gt; :BUYER_ID&lt;br /&gt;                               );&lt;br /&gt;   wf_engine.setitemattrnumber (itemtype      =&gt; 'REQAPPRV',&lt;br /&gt;                                itemkey       =&gt; l_itemkey,&lt;br /&gt;                                aname         =&gt; 'DOCUMENT_ID',&lt;br /&gt;                                avalue        =&gt; l_po_id&lt;br /&gt;                               );&lt;br /&gt;   wf_engine.setitemattrtext (itemtype      =&gt; 'REQAPPRV',&lt;br /&gt;                              itemkey       =&gt; l_itemkey,&lt;br /&gt;                              aname         =&gt; 'DOCUMENT_NUMBER',&lt;br /&gt;                              avalue        =&gt; l_po_number&lt;br /&gt;                             );&lt;br /&gt;   wf_engine.setitemattrnumber (itemtype      =&gt; 'REQAPPRV',&lt;br /&gt;                                itemkey       =&gt; l_itemkey,&lt;br /&gt;                                aname         =&gt; 'ORG_ID',&lt;br /&gt;                                avalue        =&gt; :ORG_ID&lt;br /&gt;                               );&lt;br /&gt;   wf_engine.setitemattrtext (itemtype      =&gt; 'REQAPPRV',&lt;br /&gt;                              itemkey       =&gt; l_itemkey,&lt;br /&gt;                              aname         =&gt; 'DOCUMENT_SUBTYPE',&lt;br /&gt;                              avalue        =&gt; 'PURCHASE'&lt;br /&gt;                             );&lt;br /&gt;   wf_engine.setitemattrtext (itemtype      =&gt; 'REQAPPRV',&lt;br /&gt;                              itemkey       =&gt; l_itemkey,&lt;br /&gt;                              aname         =&gt; 'DOCUMENT_TYPE',&lt;br /&gt;                              avalue        =&gt; 'REQUISITION'&lt;br /&gt;                             );&lt;br /&gt;   wf_engine.setitemattrtext (itemtype      =&gt; 'REQAPPRV',&lt;br /&gt;                              itemkey       =&gt; l_itemkey,&lt;br /&gt;                              aname         =&gt; 'DOCUMENT_TYPE_DISP',&lt;br /&gt;                              avalue        =&gt; 'Purchase Requisition'&lt;br /&gt;                             );&lt;br /&gt;   wf_engine.setitemattrtext (itemtype      =&gt; 'REQAPPRV',&lt;br /&gt;                              itemkey       =&gt; l_itemkey,&lt;br /&gt;                              aname         =&gt; 'AUTHORIZATION_STATUS',&lt;br /&gt;                              avalue        =&gt; 'APPROVED'&lt;br /&gt;                             );&lt;br /&gt;   wf_engine.setitemattrtext (itemtype      =&gt; 'REQAPPRV',&lt;br /&gt;                              itemkey       =&gt; l_itemkey,&lt;br /&gt;                              aname         =&gt; 'AUTHORIZATION_STATUS_DISP',&lt;br /&gt;                              avalue        =&gt; 'Approved'&lt;br /&gt;                             );&lt;br /&gt;   wf_engine.setitemattrtext (itemtype      =&gt; 'REQAPPRV',&lt;br /&gt;                              itemkey       =&gt; l_itemkey,&lt;br /&gt;                              aname         =&gt; 'SEND_CREATEPO_TO_BACKGROUND',&lt;br /&gt;                              avalue        =&gt; 'Y'&lt;br /&gt;                             );&lt;br /&gt;   wf_engine.setitemattrtext (itemtype      =&gt; 'REQAPPRV',&lt;br /&gt;                              itemkey       =&gt; l_itemkey,&lt;br /&gt;                              aname         =&gt; 'INTERFACE_SOURCE_CODE',&lt;br /&gt;                              avalue        =&gt; 'PO_FORM'&lt;br /&gt;                             );&lt;br /&gt;&lt;br /&gt;   DBMS_OUTPUT.put_line (l_itemkey);&lt;br /&gt;   wf_engine.startprocess ('REQAPPRV', l_itemkey);&lt;br /&gt;   COMMIT;&lt;br /&gt;END;&lt;br /&gt;/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/144851838473318802-7074600039241464013?l=arunrathod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrathod.blogspot.com/feeds/7074600039241464013/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=144851838473318802&amp;postID=7074600039241464013' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/7074600039241464013'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/7074600039241464013'/><link rel='alternate' type='text/html' href='http://arunrathod.blogspot.com/2010/09/script-to-approve-po-requisition.html' title='Script to Approve PO Requisition'/><author><name>Arun Kumar S.R</name><uri>http://www.blogger.com/profile/14745466774124137964</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_pBTgD4-jQls/SC-82Kq7MJI/AAAAAAAAAOs/e_Invzqp9e0/S220/DSC05800.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-144851838473318802.post-3319503560528270475</id><published>2010-09-14T19:48:00.000-07:00</published><updated>2010-09-14T19:50:30.707-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Script to cancel PO Requisition'/><category scheme='http://www.blogger.com/atom/ns#' term='PO Requisition'/><title type='text'>Script to cancel PO Requisition</title><content type='html'>DECLARE&lt;br /&gt;   l_return_status   VARCHAR2 (1000);&lt;br /&gt;   l_msg_count       NUMBER;&lt;br /&gt;   l_msg_data        VARCHAR2 (1000);&lt;br /&gt;   lv_header_id      po_tbl_number;&lt;br /&gt;   lv_line_id        po_tbl_number;&lt;br /&gt;   m                 NUMBER          := NULL;&lt;br /&gt;   l_msg_dummy       VARCHAR2 (2000);&lt;br /&gt;   l_output          VARCHAR2 (2000);&lt;br /&gt;BEGIN&lt;br /&gt;   m := 1;&lt;br /&gt;   lv_header_id := po_tbl_number (:REQ_HEADER_ID);&lt;br /&gt;   lv_line_id := po_tbl_number (:REQ_LINE_ID);&lt;br /&gt;   po_req_document_cancel_grp.cancel_requisition&lt;br /&gt;                       (p_api_version        =&gt; 1.0,&lt;br /&gt;                        p_req_header_id      =&gt; lv_header_id,&lt;br /&gt;                        p_req_line_id        =&gt; lv_line_id,&lt;br /&gt;                        p_cancel_date        =&gt; SYSDATE,&lt;br /&gt;                        p_cancel_reason      =&gt; 'Cancelled Requisition',&lt;br /&gt;                        p_source             =&gt; 'REQUISITION',&lt;br /&gt;                        x_return_status      =&gt; l_return_status,&lt;br /&gt;                        x_msg_count          =&gt; l_msg_count,&lt;br /&gt;                        x_msg_data           =&gt; l_msg_data&lt;br /&gt;                       );&lt;br /&gt;   COMMIT;&lt;br /&gt;   DBMS_OUTPUT.put_line (l_return_status);&lt;br /&gt;&lt;br /&gt;   IF l_return_status &lt;&gt; 'S'&lt;br /&gt;   THEN&lt;br /&gt;      fnd_msg_pub.get (m, fnd_api.g_false, l_msg_data, l_msg_dummy);&lt;br /&gt;      l_output := (TO_CHAR (m) || ': ' || l_msg_data);&lt;br /&gt;      DBMS_OUTPUT.put_line (l_output);&lt;br /&gt;   END IF;&lt;br /&gt;END;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/144851838473318802-3319503560528270475?l=arunrathod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrathod.blogspot.com/feeds/3319503560528270475/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=144851838473318802&amp;postID=3319503560528270475' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/3319503560528270475'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/3319503560528270475'/><link rel='alternate' type='text/html' href='http://arunrathod.blogspot.com/2010/09/script-to-cancel-po-requisition.html' title='Script to cancel PO Requisition'/><author><name>Arun Kumar S.R</name><uri>http://www.blogger.com/profile/14745466774124137964</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_pBTgD4-jQls/SC-82Kq7MJI/AAAAAAAAAOs/e_Invzqp9e0/S220/DSC05800.JPG'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-144851838473318802.post-1218139592938607172</id><published>2010-07-17T07:52:00.000-07:00</published><updated>2010-07-17T07:56:42.381-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Restrict &apos;Change Status&apos; button on Projects Screen'/><category scheme='http://www.blogger.com/atom/ns#' term='Change Status'/><title type='text'>Restrict 'Change Status' button on Projects Screen</title><content type='html'>1. Navigation:  System Administrator -&gt; Responsibility -&gt; Define&lt;br /&gt;2. Query for the Responsibility Name to which we want to restrict the button&lt;br /&gt;3. Under the Menu Exclusions tab include the Menu ‘Project Status Function Security Menu’&lt;br /&gt;&lt;br /&gt;This will grey out the 'Change Status' button and the user will not be able to update the status.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/144851838473318802-1218139592938607172?l=arunrathod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrathod.blogspot.com/feeds/1218139592938607172/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=144851838473318802&amp;postID=1218139592938607172' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/1218139592938607172'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/1218139592938607172'/><link rel='alternate' type='text/html' href='http://arunrathod.blogspot.com/2010/07/restrict-change-status-button-on.html' title='Restrict &apos;Change Status&apos; button on Projects Screen'/><author><name>Arun Kumar S.R</name><uri>http://www.blogger.com/profile/14745466774124137964</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_pBTgD4-jQls/SC-82Kq7MJI/AAAAAAAAAOs/e_Invzqp9e0/S220/DSC05800.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-144851838473318802.post-5597113947618895782</id><published>2010-07-17T07:41:00.000-07:00</published><updated>2010-07-17T07:46:51.846-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='&apos;FRM-40654: Record has been updated.  Requery block to see change&apos;'/><title type='text'>Form error while trying to update Projects 'FRM-40654: Record has been updated.  Requery block to see change'</title><content type='html'>While trying to update a Project we were getting the following error:&lt;br /&gt;&lt;br /&gt;'FRM-40654: Record has been updated.  Requery block to see change'&lt;br /&gt;&lt;br /&gt;On investigation we found that the issue is due to trailing or leading spaces in attribute columns for the project. Oracle has provided a fix for this:&lt;br /&gt; &lt;br /&gt;Refer to the &lt;span style="font-weight:bold;"&gt;Metalink DOC ID 362800.1&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Run this script with the 'Automatically Fix all the errors Found' parameter as 'N' initially to determine the columns with the trailing or leading spaces. Once you analyze the data and everything looks good then we can run the script again with 'Automatically Fix all the errors Found' parameter as 'Y'.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/144851838473318802-5597113947618895782?l=arunrathod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrathod.blogspot.com/feeds/5597113947618895782/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=144851838473318802&amp;postID=5597113947618895782' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/5597113947618895782'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/5597113947618895782'/><link rel='alternate' type='text/html' href='http://arunrathod.blogspot.com/2010/07/form-error-while-trying-to-update.html' title='Form error while trying to update Projects &apos;FRM-40654: Record has been updated.  Requery block to see change&apos;'/><author><name>Arun Kumar S.R</name><uri>http://www.blogger.com/profile/14745466774124137964</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_pBTgD4-jQls/SC-82Kq7MJI/AAAAAAAAAOs/e_Invzqp9e0/S220/DSC05800.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-144851838473318802.post-2658785551611543570</id><published>2010-05-09T08:07:00.000-07:00</published><updated>2010-05-09T08:15:12.548-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PO_STANDARD_XSLFO.xsl'/><category scheme='http://www.blogger.com/atom/ns#' term='PO_STANDARD_XSLFO'/><category scheme='http://www.blogger.com/atom/ns#' term='POXPRPOL.rdf'/><title type='text'>How to add logo on 'PO Output for Communication' report - PO_STANDARD_XSLFO</title><content type='html'>1. Login as a user with the XML Publisher Administrator responsibility and then navigate to the Home: Templates page.&lt;br /&gt;2. From the XML Publisher Templage page, query for 'PO_STANDARD_XSLFO' code and click on the 'Standard Purchase Order Stylesheet' in the Create Template section.&lt;br /&gt;3. On the View Template page Scroll down to the Add File section and click the Download link. This will pop save/Open option for the 'PO_STANDARD_XSLFO.xsl' spreadsheet. Save the file to your local disk.&lt;br /&gt;4. Scroll up again to the General section and click the Update button.&lt;br /&gt;5. Apply the end date with history date. Preferably the end date should be (SYSDATE-1) and click Apply button. This will end date the standard template.&lt;br /&gt;6. Locate the 'PO_STANDARD_XSLFO.xsl' on your local drive. Open the file in Wordpad and press ctl+f to find the 'Logo' string in the file. Uncomment the &lt;fo: inline&gt; and &lt;/fo:inline&gt; strings. This code is used to display the image at top left corner in the first page. The complete block after changes should read as below:&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_pBTgD4-jQls/S-bRRzRtkuI/AAAAAAAABdE/xxR2HFCrjx8/s1600/123.gif"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 68px;" src="http://1.bp.blogspot.com/_pBTgD4-jQls/S-bRRzRtkuI/AAAAAAAABdE/xxR2HFCrjx8/s320/123.gif" border="0" alt=""id="BLOGGER_PHOTO_ID_5469288901240525538" /&gt;&lt;/a&gt;&lt;br /&gt;7. Save the file and make sure that you have taken appropiate backup of the XSL spreadsheet before doing any updates.&lt;br /&gt;8. Navigate to XML Publisher Template page again. Click the Create Template button link and enter data per the following steps:&lt;br /&gt;&lt;br /&gt;i.   Enter a unique name in the Name field -- Custom Purchase Order Stylesheet&lt;br /&gt;ii.  Enter unique code in the Code field -- PO_STANDARD_XSLFO1&lt;br /&gt;iii. Enter Purchasing in the Application field&lt;br /&gt;iv.  Select XSL-FO from the Type drop-down list box &lt;br /&gt;v.   Enter Standard Purchase Order Data Source in the Data Definitionbox -- Standard Purchase Order Data Source&lt;br /&gt;vi.  Click the Browse button and navigate to the edited PO_STANDARD_XSLFO.xsl file where it is located on your &lt;br /&gt;     computer&lt;br /&gt;vii. Enter English in the Language box&lt;br /&gt;Viii.Click Apply button&lt;br /&gt;&lt;br /&gt;9. Login with Purchasing Super User responsibility and then navigate to Setup / Organizations / Purchasing Options / Control TAB / set 'PO Output Format' = 'PDF'&lt;br /&gt;&lt;br /&gt;10. Navigate to setup / purchasing / document types / select "Standard Purchase Order" / Set the Document Type Layout to your new template.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/144851838473318802-2658785551611543570?l=arunrathod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrathod.blogspot.com/feeds/2658785551611543570/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=144851838473318802&amp;postID=2658785551611543570' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/2658785551611543570'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/2658785551611543570'/><link rel='alternate' type='text/html' href='http://arunrathod.blogspot.com/2010/05/how-to-add-logo-on-po-output-for.html' title='How to add logo on &apos;PO Output for Communication&apos; report - PO_STANDARD_XSLFO'/><author><name>Arun Kumar S.R</name><uri>http://www.blogger.com/profile/14745466774124137964</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_pBTgD4-jQls/SC-82Kq7MJI/AAAAAAAAAOs/e_Invzqp9e0/S220/DSC05800.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_pBTgD4-jQls/S-bRRzRtkuI/AAAAAAAABdE/xxR2HFCrjx8/s72-c/123.gif' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-144851838473318802.post-230829779612125158</id><published>2010-01-11T01:05:00.001-08:00</published><updated>2010-01-11T01:11:16.749-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='delete mode'/><category scheme='http://www.blogger.com/atom/ns#' term='Update mode'/><category scheme='http://www.blogger.com/atom/ns#' term='update and delete modes'/><title type='text'>p_datetrack_update_mode, p_datetrack_delete_mode</title><content type='html'>&lt;span style="font-weight:bold;"&gt;Understanding the &lt;u&gt;p_datetrack_update_mode&lt;/u&gt; Control Parameter in HRMS API&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The p_datetract_update_mode control parameter enables you to define the type of DateTrack change to be made. This mandatory parameter must be set to one of the values as mentioned below:&lt;br /&gt;&lt;br /&gt;UPDATE - Keep history of existing information&lt;br /&gt;CORRECTION - Correct existing information&lt;br /&gt;UPDATE_OVERRIDE - Replace all scheduled changes&lt;br /&gt;UPDATE_CHANGE_INSERT - Insert this change before next scheduled change&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Understanding the &lt;u&gt;p_datetrack_delete_mode&lt;/u&gt; Control Parameter&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The p_datetract_update_mode control parameter enables you to define the type of DateTrack deletion to be made. This mandatory parameter must be set to one of the following values:&lt;br /&gt;&lt;br /&gt;ZAP - Completely remove from the database&lt;br /&gt;DELETE - Set end date to effective date&lt;br /&gt;FUTURE_CHANGE - Remove all scheduled changes&lt;br /&gt;DELETE_NEXT_CHANGE - Remove next change&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/144851838473318802-230829779612125158?l=arunrathod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrathod.blogspot.com/feeds/230829779612125158/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=144851838473318802&amp;postID=230829779612125158' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/230829779612125158'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/230829779612125158'/><link rel='alternate' type='text/html' href='http://arunrathod.blogspot.com/2010/01/pdatetrackupdatemode.html' title='p_datetrack_update_mode, p_datetrack_delete_mode'/><author><name>Arun Kumar S.R</name><uri>http://www.blogger.com/profile/14745466774124137964</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_pBTgD4-jQls/SC-82Kq7MJI/AAAAAAAAAOs/e_Invzqp9e0/S220/DSC05800.JPG'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-144851838473318802.post-5609196043434342078</id><published>2010-01-10T23:34:00.000-08:00</published><updated>2010-01-10T23:45:53.374-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Clear Apache'/><title type='text'>How to clear Apache Cache from Application without bouncing listener.</title><content type='html'>While going through one of the HRMS blogs i stumbled on a very interesting article on how to clear the Apache cache without bouncing the listener. Here are the steps:&lt;br /&gt;&lt;br /&gt;1. Navigate to "Functional Administrator" responsibility.&lt;br /&gt;2. Once logged in  click on the "Core Services" tab.&lt;br /&gt;3. Click on "Caching Framework" link in the blue menu bar.&lt;br /&gt;4. Click on "Global Configuration" link in the left vertical menu.&lt;br /&gt;5. In the "Cache Policy" region click on the "Clear All Cache" button.&lt;br /&gt;6. Click the "Yes" button to confirm the action.&lt;br /&gt;7. Click the "Apply" button to apply the changes.&lt;br /&gt;&lt;br /&gt;The above steps will clear the apache cache without the need of bouncing by the DBA's&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Reference:&lt;/span&gt; http://oraclehrmsways.blogspot.com&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/144851838473318802-5609196043434342078?l=arunrathod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrathod.blogspot.com/feeds/5609196043434342078/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=144851838473318802&amp;postID=5609196043434342078' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/5609196043434342078'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/5609196043434342078'/><link rel='alternate' type='text/html' href='http://arunrathod.blogspot.com/2010/01/how-to-clear-apache-cache-from.html' title='How to clear Apache Cache from Application without bouncing listener.'/><author><name>Arun Kumar S.R</name><uri>http://www.blogger.com/profile/14745466774124137964</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_pBTgD4-jQls/SC-82Kq7MJI/AAAAAAAAAOs/e_Invzqp9e0/S220/DSC05800.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-144851838473318802.post-5584787213111367125</id><published>2009-12-31T01:15:00.000-08:00</published><updated>2009-12-31T01:16:12.115-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Beneficiary Dependent'/><category scheme='http://www.blogger.com/atom/ns#' term='HRMS Benefits query to fetch the dependent of the beneficiaries'/><title type='text'>HRMS Benefits query to fetch the dependent of the beneficiaries</title><content type='html'>SELECT DISTINCT emp_papf.full_name employee_full_name,&lt;br /&gt;                emp_papf.national_identifier employee_ssn,&lt;br /&gt;                ppf.full_name dependent_name,&lt;br /&gt;                ppf.national_identifier dependent_ssn&lt;br /&gt;           FROM ben_elig_per_elctbl_chc epe,&lt;br /&gt;                ben_prtt_enrt_rslt_f pen,&lt;br /&gt;                ben_elig_cvrd_dpnt_f pdp,&lt;br /&gt;                per_contact_relationships pcr,&lt;br /&gt;                per_all_people_f ppf,&lt;br /&gt;                per_all_people_f emp_papf,&lt;br /&gt;                ben_per_in_ler pil&lt;br /&gt;          WHERE epe.prtt_enrt_rslt_id = pen.prtt_enrt_rslt_id&lt;br /&gt;            AND pen.prtt_enrt_rslt_id = pdp.prtt_enrt_rslt_id&lt;br /&gt;            AND pen.prtt_enrt_rslt_stat_cd IS NULL&lt;br /&gt;            AND pen.enrt_cvg_thru_dt = TO_DATE ('4712/12/31', 'rrrr/mm/dd')&lt;br /&gt;            AND pdp.dpnt_person_id = pcr.contact_person_id&lt;br /&gt;            AND pcr.contact_person_id = ppf.person_id&lt;br /&gt;            AND pcr.person_id = emp_papf.person_id&lt;br /&gt;            AND pcr.personal_flag = 'Y'&lt;br /&gt;            AND epe.prtt_enrt_rslt_id IS NOT NULL&lt;br /&gt;            AND epe.per_in_ler_id = pil.per_in_ler_id&lt;br /&gt;            AND pcr.person_id = pil.person_id&lt;br /&gt;            AND pil.per_in_ler_stat_cd NOT IN ('VOIDD', 'BCKDT')&lt;br /&gt;            AND  TO_DATE (sysdate, 'rrrr/mm/dd') BETWEEN pdp.effective_start_date&lt;br /&gt;                                                   AND pdp.effective_end_date&lt;br /&gt;            AND  TO_DATE (sysdate, 'rrrr/mm/dd')&lt;br /&gt;                   BETWEEN NVL (pcr.date_start,&lt;br /&gt;                                 TO_DATE (sysdate, 'rrrr/mm/dd'))&lt;br /&gt;                       AND NVL (pcr.date_end,  TO_DATE (sysdate, 'rrrr/mm/dd'))&lt;br /&gt;            AND  TO_DATE (sysdate, 'rrrr/mm/dd') BETWEEN ppf.effective_start_date&lt;br /&gt;                                                   AND ppf.effective_end_date&lt;br /&gt;            AND  TO_DATE (sysdate, 'rrrr/mm/dd')&lt;br /&gt;                   BETWEEN emp_papf.effective_start_date&lt;br /&gt;                       AND emp_papf.effective_end_date&lt;br /&gt;            AND  TO_DATE (sysdate, 'rrrr/mm/dd') BETWEEN pen.effective_start_date&lt;br /&gt;                                                   AND pen.effective_end_date&lt;br /&gt;            AND pdp.cvg_thru_dt = TO_DATE ('4712/12/31', 'rrrr/mm/dd')&lt;br /&gt;            AND pdp.per_in_ler_id = pil.per_in_ler_id&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/144851838473318802-5584787213111367125?l=arunrathod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrathod.blogspot.com/feeds/5584787213111367125/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=144851838473318802&amp;postID=5584787213111367125' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/5584787213111367125'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/5584787213111367125'/><link rel='alternate' type='text/html' href='http://arunrathod.blogspot.com/2009/12/hrms-benefits-query-to-fetch-dependent.html' title='HRMS Benefits query to fetch the dependent of the beneficiaries'/><author><name>Arun Kumar S.R</name><uri>http://www.blogger.com/profile/14745466774124137964</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_pBTgD4-jQls/SC-82Kq7MJI/AAAAAAAAAOs/e_Invzqp9e0/S220/DSC05800.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-144851838473318802.post-4985736836847663170</id><published>2009-12-31T01:13:00.000-08:00</published><updated>2009-12-31T01:14:53.293-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Beneficiaries query'/><category scheme='http://www.blogger.com/atom/ns#' term='BEN'/><title type='text'>HRMS Benefits query to fetch the beneficiaries</title><content type='html'>SELECT DISTINCT emp_papf.full_name employee_name,&lt;br /&gt;                emp_papf.national_identifier employee_ssn,&lt;br /&gt;                ppf.full_name beneficiary_name,&lt;br /&gt;                ppf.national_identifier beneficiary_ssn&lt;br /&gt;           FROM per_all_people_f ppf,&lt;br /&gt;                per_contact_relationships pcr,&lt;br /&gt;                ben_prtt_enrt_rslt_f pen,&lt;br /&gt;                ben_pl_bnf_f pbn,&lt;br /&gt;                per_all_people_f emp_papf&lt;br /&gt;          WHERE 1 = 1&lt;br /&gt;            AND pen.prtt_enrt_rslt_id = pbn.prtt_enrt_rslt_id&lt;br /&gt;            AND pen.prtt_enrt_rslt_stat_cd IS NULL&lt;br /&gt;            AND pen.enrt_cvg_thru_dt = TO_DATE ('4712/12/31', 'rrrr/mm/dd')&lt;br /&gt;            AND pcr.personal_flag(+) = 'Y'&lt;br /&gt;            AND pbn.bnf_person_id = pcr.contact_person_id(+)&lt;br /&gt;            AND pbn.bnf_person_id = ppf.person_id(+)&lt;br /&gt;            AND emp_papf.person_id = pcr.person_id&lt;br /&gt;            AND TO_DATE (SYSDATE, 'rrrr/mm/dd') BETWEEN pbn.effective_start_date&lt;br /&gt;                                                    AND pbn.effective_end_date&lt;br /&gt;            AND TO_DATE (SYSDATE, 'rrrr/mm/dd')&lt;br /&gt;                   BETWEEN NVL (ppf.effective_start_date,&lt;br /&gt;                                TO_DATE (SYSDATE, 'rrrr/mm/dd'))&lt;br /&gt;                       AND NVL (ppf.effective_end_date,&lt;br /&gt;                                TO_DATE (SYSDATE, 'rrrr/mm/dd'))&lt;br /&gt;            AND TO_DATE (SYSDATE, 'rrrr/mm/dd')&lt;br /&gt;                   BETWEEN NVL (emp_papf.effective_start_date,&lt;br /&gt;                                TO_DATE (SYSDATE, 'rrrr/mm/dd'))&lt;br /&gt;                       AND NVL (emp_papf.effective_end_date,&lt;br /&gt;                                TO_DATE (SYSDATE, 'rrrr/mm/dd'))&lt;br /&gt;            AND TO_DATE (SYSDATE, 'rrrr/mm/dd') BETWEEN pen.effective_start_date&lt;br /&gt;                                                    AND pen.effective_end_date&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/144851838473318802-4985736836847663170?l=arunrathod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrathod.blogspot.com/feeds/4985736836847663170/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=144851838473318802&amp;postID=4985736836847663170' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/4985736836847663170'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/4985736836847663170'/><link rel='alternate' type='text/html' href='http://arunrathod.blogspot.com/2009/12/hrms-benefits-query-to-fetch.html' title='HRMS Benefits query to fetch the beneficiaries'/><author><name>Arun Kumar S.R</name><uri>http://www.blogger.com/profile/14745466774124137964</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_pBTgD4-jQls/SC-82Kq7MJI/AAAAAAAAAOs/e_Invzqp9e0/S220/DSC05800.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-144851838473318802.post-3833471580150952154</id><published>2009-11-15T22:29:00.001-08:00</published><updated>2009-11-15T22:34:01.449-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='FND_NEW_MESSAGES'/><title type='text'>FND_NEW_MESSAGES</title><content type='html'>The FND_NEW_MESSAGES table in the database stores all Oracle Applications messages for all languages. The below API is used to load new error messages in FND_NEW_MESSAGES table.&lt;br /&gt;&lt;br /&gt;fnd_new_messages_pkg.load_row&lt;br /&gt;&lt;br /&gt;Ex: &lt;br /&gt;&lt;br /&gt;DECLARE&lt;br /&gt;BEGIN&lt;br /&gt;   fnd_new_messages_pkg.load_row&lt;br /&gt;      (x_application_id        =&gt; 800, -- Application id&lt;br /&gt;       x_message_name          =&gt; 'INVALID_VALUES', -- error message name&lt;br /&gt;       x_message_number        =&gt; NULL,&lt;br /&gt;       x_message_text          =&gt; 'Cannot update values in CANCEL mode.', -- Message&lt;br /&gt;       x_description           =&gt; 'Cannot update values in CANCEL mode.',&lt;br /&gt;       x_type                  =&gt; 'ERROR', -- message type&lt;br /&gt;       x_max_length            =&gt; NULL,&lt;br /&gt;       x_category              =&gt; NULL,&lt;br /&gt;       x_severity              =&gt; NULL,&lt;br /&gt;       x_fnd_log_severity      =&gt; NULL,&lt;br /&gt;       x_owner                 =&gt; NULL,&lt;br /&gt;       x_custom_mode           =&gt; NULL,&lt;br /&gt;       x_last_update_date      =&gt; SYSDATE&lt;br /&gt;      );&lt;br /&gt;&lt;br /&gt;   COMMIT;&lt;br /&gt;END;&lt;br /&gt;/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/144851838473318802-3833471580150952154?l=arunrathod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrathod.blogspot.com/feeds/3833471580150952154/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=144851838473318802&amp;postID=3833471580150952154' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/3833471580150952154'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/3833471580150952154'/><link rel='alternate' type='text/html' href='http://arunrathod.blogspot.com/2009/11/fndnewmessages.html' title='FND_NEW_MESSAGES'/><author><name>Arun Kumar S.R</name><uri>http://www.blogger.com/profile/14745466774124137964</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_pBTgD4-jQls/SC-82Kq7MJI/AAAAAAAAAOs/e_Invzqp9e0/S220/DSC05800.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-144851838473318802.post-6269029320796141714</id><published>2009-09-23T09:16:00.000-07:00</published><updated>2009-09-23T09:18:56.851-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='User Profiles'/><title type='text'>User Profiles</title><content type='html'>If you are looking for information on User profiles then i think you should navigate to the below link. This link provides very good information on user profiles.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://sbllc3.solutionbeacon.net/pls/a159vis2/fndgfm/fnd_help.get/US@PSA_US/PER/@profiles"&gt;User Profiles (Click Here)&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/144851838473318802-6269029320796141714?l=arunrathod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrathod.blogspot.com/feeds/6269029320796141714/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=144851838473318802&amp;postID=6269029320796141714' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/6269029320796141714'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/6269029320796141714'/><link rel='alternate' type='text/html' href='http://arunrathod.blogspot.com/2009/09/user-profiles.html' title='User Profiles'/><author><name>Arun Kumar S.R</name><uri>http://www.blogger.com/profile/14745466774124137964</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_pBTgD4-jQls/SC-82Kq7MJI/AAAAAAAAAOs/e_Invzqp9e0/S220/DSC05800.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-144851838473318802.post-6958768588565991503</id><published>2009-09-10T21:49:00.000-07:00</published><updated>2009-09-10T21:55:08.395-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='delete employee'/><category scheme='http://www.blogger.com/atom/ns#' term='Purge Employee'/><category scheme='http://www.blogger.com/atom/ns#' term='API to delete a person from Oracle HRMS'/><category scheme='http://www.blogger.com/atom/ns#' term='Purge person'/><title type='text'>API to Purge an person from Oracle HRMS</title><content type='html'>DECLARE&lt;br /&gt;   l_person_org_manager_warning   VARCHAR2 (200);&lt;br /&gt;BEGIN&lt;br /&gt;   hr_person_api.delete_person&lt;br /&gt;                (p_validate                        =&gt; FALSE,&lt;br /&gt;                 p_effective_date                  =&gt; SYSDATE,&lt;br /&gt;                 p_person_id                       =&gt; :person_id,&lt;br /&gt;                 p_perform_predel_validation       =&gt; FALSE,&lt;br /&gt;                 p_person_org_manager_warning      =&gt; l_person_org_manager_warning&lt;br /&gt;                );&lt;br /&gt;   COMMIT;&lt;br /&gt;END;&lt;br /&gt;&lt;br /&gt;Before purging the person from Oracle HRMS we need to make sure that the employee and fnd_user link is been deleted and also the person should not have an active payroll. &lt;br /&gt;&lt;br /&gt;If the employee has an active payroll then we cannot purge the record. The alternative way is to either end date the employee using the termination screen or you need to change the person from 'Employee' to 'Applicant' and then use the above API again to purge the record.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/144851838473318802-6958768588565991503?l=arunrathod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrathod.blogspot.com/feeds/6958768588565991503/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=144851838473318802&amp;postID=6958768588565991503' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/6958768588565991503'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/6958768588565991503'/><link rel='alternate' type='text/html' href='http://arunrathod.blogspot.com/2009/09/api-to-purge-person-from-oracle-hrms.html' title='API to Purge an person from Oracle HRMS'/><author><name>Arun Kumar S.R</name><uri>http://www.blogger.com/profile/14745466774124137964</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_pBTgD4-jQls/SC-82Kq7MJI/AAAAAAAAAOs/e_Invzqp9e0/S220/DSC05800.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-144851838473318802.post-9032623625835575577</id><published>2009-09-10T21:32:00.000-07:00</published><updated>2009-09-10T21:36:35.264-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='BENSSCNF_en'/><category scheme='http://www.blogger.com/atom/ns#' term='BENSSCNF'/><title type='text'>How to upload customized Oracle Benefits Confirmation Page (BENSSCNF)</title><content type='html'>1. Navigate to the XML Publisher Administrator Responsibility &gt; Templates. &lt;br /&gt;2. Use the search engine to find the 'BENSSCNF' template. The seeded report should now display. &lt;br /&gt;3. Click the "Duplicate" icon next to the seeded report. &lt;br /&gt;4. Change the required Code field from Copy of BENSSCNF to BENSSCNF2. Please note that these codes are non-updateable, so we need to make sure to rename them while duplicating the template itself. &lt;br /&gt;5. Change the required Name field to 'xx Custom Benefit Enrollment Confirmation' and click the Apply button. &lt;br /&gt;6. Click the Add File button and upload the new or customized replacement file. &lt;br /&gt;7. Go back to Templates and find the seeded report we have duplicated. &lt;br /&gt;8. Click the link for the seeded template and click the Update button. &lt;br /&gt;9. End date the seeded template.&lt;br /&gt;10. Generate the report in the application. The generated report will reflect the updated RTF.&lt;br /&gt;&lt;br /&gt;&lt;em&gt;For any reason if we want to revert back to the Original template then we need to follow the below mentioned steps:&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;1. Go to XML Publisher Administrator Responsibility &gt; Templates. &lt;br /&gt;2. Use the search engine to find the template you wish to copy. &lt;br /&gt;3. Click on the link for the copy previously created. &lt;br /&gt;4. Click the Update button and enter an end date into the End Date field. (Use the creation date to completely remove the incorrect copy.)&lt;br /&gt;5. Repeat this for every incorrect copy that may exist.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/144851838473318802-9032623625835575577?l=arunrathod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrathod.blogspot.com/feeds/9032623625835575577/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=144851838473318802&amp;postID=9032623625835575577' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/9032623625835575577'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/9032623625835575577'/><link rel='alternate' type='text/html' href='http://arunrathod.blogspot.com/2009/09/how-to-upload-customized-oracle.html' title='How to upload customized Oracle Benefits Confirmation Page (BENSSCNF)'/><author><name>Arun Kumar S.R</name><uri>http://www.blogger.com/profile/14745466774124137964</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_pBTgD4-jQls/SC-82Kq7MJI/AAAAAAAAAOs/e_Invzqp9e0/S220/DSC05800.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-144851838473318802.post-6116104496410226222</id><published>2009-08-25T02:12:00.000-07:00</published><updated>2009-08-25T02:35:13.728-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Effective Date Tracking'/><title type='text'>Setup to enable Effective Date Tracking popup in Oracle HRMS</title><content type='html'>This setup will turn on the switch that allows the effective date tracking in HRMS to pop up when someone navigates into Oracle employee record so that users do not forget to date track.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Navigation:&lt;/strong&gt; Application Developer -&gt; Profile -&gt; System&lt;br /&gt;Uncheck Site and check the Application &lt;br /&gt;Application Field:  Human Resources&lt;br /&gt;Profile field    :  DateTrack:Reminder&lt;br /&gt;&lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/_pBTgD4-jQls/SpOtSj6t6LI/AAAAAAAABLg/v07McNDoD3o/s1600-h/1.bmp"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 230px;" src="http://1.bp.blogspot.com/_pBTgD4-jQls/SpOtSj6t6LI/AAAAAAAABLg/v07McNDoD3o/s320/1.bmp" border="0" alt=""id="BLOGGER_PHOTO_ID_5373829314773903538" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Press the find button and then a screen will popup&lt;br /&gt;&lt;br /&gt;&lt;a href="http://4.bp.blogspot.com/_pBTgD4-jQls/SpOtTJKS8rI/AAAAAAAABLo/g0IUEwESW8Y/s1600-h/2.bmp"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 231px;" src="http://4.bp.blogspot.com/_pBTgD4-jQls/SpOtTJKS8rI/AAAAAAAABLo/g0IUEwESW8Y/s320/2.bmp" border="0" alt=""id="BLOGGER_PHOTO_ID_5373829324771357362" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;In the Application field where we have the white background we need to give the value as ‘Always pop warning window’ and then save the form.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/_pBTgD4-jQls/SpOtTg5B5pI/AAAAAAAABLw/S_iJKwQq9zQ/s1600-h/3.bmp"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 231px;" src="http://1.bp.blogspot.com/_pBTgD4-jQls/SpOtTg5B5pI/AAAAAAAABLw/S_iJKwQq9zQ/s320/3.bmp" border="0" alt=""id="BLOGGER_PHOTO_ID_5373829331141387922" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://4.bp.blogspot.com/_pBTgD4-jQls/SpOtUECODDI/AAAAAAAABL4/2_hmm3utv-E/s1600-h/4.bmp"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 232px;" src="http://4.bp.blogspot.com/_pBTgD4-jQls/SpOtUECODDI/AAAAAAAABL4/2_hmm3utv-E/s320/4.bmp" border="0" alt=""id="BLOGGER_PHOTO_ID_5373829340575173682" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/144851838473318802-6116104496410226222?l=arunrathod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrathod.blogspot.com/feeds/6116104496410226222/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=144851838473318802&amp;postID=6116104496410226222' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/6116104496410226222'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/6116104496410226222'/><link rel='alternate' type='text/html' href='http://arunrathod.blogspot.com/2009/08/setup-to-enable-effective-date-tracking.html' title='Setup to enable Effective Date Tracking popup in Oracle HRMS'/><author><name>Arun Kumar S.R</name><uri>http://www.blogger.com/profile/14745466774124137964</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_pBTgD4-jQls/SC-82Kq7MJI/AAAAAAAAAOs/e_Invzqp9e0/S220/DSC05800.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_pBTgD4-jQls/SpOtSj6t6LI/AAAAAAAABLg/v07McNDoD3o/s72-c/1.bmp' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-144851838473318802.post-6612712496193342745</id><published>2009-08-22T08:50:00.000-07:00</published><updated>2009-08-22T09:17:05.302-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle HRMS Address Style'/><title type='text'>How to change the Address Style from US to Generic Addess Style in Oracle HRMS</title><content type='html'>Select any HRMS or Super HRMS Manager Responsibility (Example: US Super HRMS Manager) &lt;br /&gt;&lt;br /&gt;1. Open the 'Define Taskflow' form. ( Security -&gt; Task Flow Definitions ) &lt;br /&gt;2. Query the Taskflow that is used by the Person form function (For Example: 'US HR PERSON TASKFLOW').  &lt;br /&gt;3. Go to 'Node section – Name field' and delete the 'USADDRESS' node (This node is used by the US Address Style) and then add a new node 'ADDRESS' (This node is used by the international Address Style) with the same sequence number as the 'USADDRESS' node.  &lt;br /&gt;&lt;br /&gt;Save and Exit the “Define Taskflow” form. &lt;br /&gt;&lt;br /&gt;Logout the current applications and re-login to check that the new Address form with international address style is launched instead of old US Address Style form when “Address” button is selected in People Window.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/144851838473318802-6612712496193342745?l=arunrathod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrathod.blogspot.com/feeds/6612712496193342745/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=144851838473318802&amp;postID=6612712496193342745' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/6612712496193342745'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/6612712496193342745'/><link rel='alternate' type='text/html' href='http://arunrathod.blogspot.com/2009/08/how-to-change-address-style-from-us-to.html' title='How to change the Address Style from US to Generic Addess Style in Oracle HRMS'/><author><name>Arun Kumar S.R</name><uri>http://www.blogger.com/profile/14745466774124137964</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_pBTgD4-jQls/SC-82Kq7MJI/AAAAAAAAAOs/e_Invzqp9e0/S220/DSC05800.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-144851838473318802.post-1474046373779528940</id><published>2009-08-16T05:06:00.001-07:00</published><updated>2009-08-16T05:07:43.023-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Engineering Change Orders'/><category scheme='http://www.blogger.com/atom/ns#' term='ECO'/><title type='text'>Single record insert script for Engineering Change Orders</title><content type='html'>DECLARE&lt;br /&gt;   p_eco_rec                eng_eco_pub.eco_rec_type;&lt;br /&gt;   p_eco_revision_tbl       eng_eco_pub.eco_revision_tbl_type;&lt;br /&gt;   p_revised_item_tbl       eng_eco_pub.revised_item_tbl_type;&lt;br /&gt;   p_rev_component_tbl      bom_bo_pub.rev_component_tbl_type;&lt;br /&gt;   p_ref_designator_tbl     bom_bo_pub.ref_designator_tbl_type;&lt;br /&gt;   p_sub_component_tbl      bom_bo_pub.sub_component_tbl_type;&lt;br /&gt;   x_return_status          VARCHAR2 (10);&lt;br /&gt;   x_msg_count              NUMBER;&lt;br /&gt;   x_message_list           error_handler.error_tbl_type;&lt;br /&gt;   x_eco_rec                eng_eco_pub.eco_rec_type;&lt;br /&gt;   x_eco_revision_tbl       eng_eco_pub.eco_revision_tbl_type;&lt;br /&gt;   x_revised_item_tbl       eng_eco_pub.revised_item_tbl_type;&lt;br /&gt;   x_rev_component_tbl      bom_bo_pub.rev_component_tbl_type;&lt;br /&gt;   x_ref_designator_tbl     bom_bo_pub.ref_designator_tbl_type;&lt;br /&gt;   x_sub_component_tbl      bom_bo_pub.sub_component_tbl_type;&lt;br /&gt;   x_rev_operation_tbl      bom_rtg_pub.rev_operation_tbl_type;&lt;br /&gt;   x_rev_op_resource_tbl    bom_rtg_pub.rev_op_resource_tbl_type;&lt;br /&gt;   x_rev_sub_resource_tbl   bom_rtg_pub.rev_sub_resource_tbl_type;&lt;br /&gt;   x_change_line_tbl        eng_eco_pub.change_line_tbl_type;&lt;br /&gt;   l_change_line_tbl        eng_eco_pub.change_line_tbl_type;&lt;br /&gt;   error_msg                error_handler.error_tbl_type;&lt;br /&gt;BEGIN&lt;br /&gt;   p_eco_rec.eco_name := 'ECO009';&lt;br /&gt;   p_eco_rec.organization_code := 'V1';&lt;br /&gt;   p_eco_rec.change_name := 'A Test ECO History';&lt;br /&gt;   p_eco_rec.description := 'A Test ECO History';&lt;br /&gt;   p_eco_rec.status_name := 'Scheduled';&lt;br /&gt;   p_eco_rec.approval_status_name := 'Approved';&lt;br /&gt;   p_eco_rec.approval_date := SYSDATE;&lt;br /&gt;   p_eco_rec.approval_request_date := SYSDATE;&lt;br /&gt;   p_eco_rec.change_type_code := 'ECO';&lt;br /&gt;   p_eco_rec.transaction_type := 'CREATE';&lt;br /&gt;   p_eco_rec.plm_or_erp_change := 'ERP';&lt;br /&gt;&lt;br /&gt;   -----ECO REVISIONS&lt;br /&gt;   IF p_eco_revision_tbl.EXISTS (1) IS NOT NULL&lt;br /&gt;   THEN&lt;br /&gt;      p_eco_revision_tbl.DELETE;&lt;br /&gt;   END IF;&lt;br /&gt;&lt;br /&gt;   p_eco_revision_tbl (1).eco_name := 'ECO009';&lt;br /&gt;   p_eco_revision_tbl (1).organization_code := 'V1';&lt;br /&gt;   p_eco_revision_tbl (1).revision := 'A';&lt;br /&gt;   p_eco_revision_tbl (1).transaction_type := 'CREATE';&lt;br /&gt;&lt;br /&gt;   -----REVISED ITEMS&lt;br /&gt;   IF p_revised_item_tbl.EXISTS (1) IS NOT NULL&lt;br /&gt;   THEN&lt;br /&gt;      p_revised_item_tbl.DELETE;&lt;br /&gt;   END IF;&lt;br /&gt;&lt;br /&gt;   p_revised_item_tbl (1).eco_name := 'ECO009';&lt;br /&gt;   p_revised_item_tbl (1).organization_code := 'V1';&lt;br /&gt;   p_revised_item_tbl (1).revised_item_name := 'ASO0012';&lt;br /&gt;   p_revised_item_tbl (1).start_effective_date := SYSDATE;&lt;br /&gt;   p_revised_item_tbl (1).new_effective_date := SYSDATE + 2;&lt;br /&gt;   p_revised_item_tbl (1).transaction_type := 'CREATE';&lt;br /&gt;&lt;br /&gt;   /*  ----history&lt;br /&gt;   l_change_line_tbl (1).eco_name := 'ECO002';&lt;br /&gt;   l_change_line_tbl (1).scheduled_date := SYSDATE;&lt;br /&gt;   l_change_line_tbl (1).assignee_name := '60805 Open';&lt;br /&gt;   l_change_line_tbl (1).transaction_type := 'CREATE';&lt;br /&gt;   p_revised_item_tbl (1).reschedule_comments := 'Testing revised items';&lt;br /&gt;   */ ---COMPONENT------------&lt;br /&gt;   IF p_rev_component_tbl.EXISTS (1) IS NOT NULL&lt;br /&gt;   THEN&lt;br /&gt;      p_rev_component_tbl.DELETE;&lt;br /&gt;   END IF;&lt;br /&gt;&lt;br /&gt;   p_rev_component_tbl (1).eco_name := 'ECO009';&lt;br /&gt;   p_rev_component_tbl (1).organization_code := 'V1';&lt;br /&gt;   p_rev_component_tbl (1).revised_item_name := 'ASO0012';&lt;br /&gt;   p_rev_component_tbl (1).start_effective_date := SYSDATE;&lt;br /&gt;   p_rev_component_tbl (1).operation_sequence_number := 1;&lt;br /&gt;   p_rev_component_tbl (1).component_item_name := '060 1918';&lt;br /&gt;   p_rev_component_tbl (1).acd_type := 1;&lt;br /&gt;   p_rev_component_tbl (1).old_operation_sequence_number := 1;&lt;br /&gt;   p_rev_component_tbl (1).new_operation_sequence_number := 1;&lt;br /&gt;   p_rev_component_tbl (1).transaction_type := 'CREATE';&lt;br /&gt;&lt;br /&gt;   -----REFERENCE DESIGNATOR-------------&lt;br /&gt;   IF p_ref_designator_tbl.EXISTS (1) IS NOT NULL&lt;br /&gt;   THEN&lt;br /&gt;      p_ref_designator_tbl.DELETE;&lt;br /&gt;   END IF;&lt;br /&gt;&lt;br /&gt;   p_ref_designator_tbl (1).eco_name := 'ECO009';&lt;br /&gt;   p_ref_designator_tbl (1).organization_code := 'V1';&lt;br /&gt;   p_ref_designator_tbl (1).revised_item_name := 'ASO0012';&lt;br /&gt;   p_ref_designator_tbl (1).start_effective_date := SYSDATE;&lt;br /&gt;   p_ref_designator_tbl (1).operation_sequence_number := 1;&lt;br /&gt;   p_ref_designator_tbl (1).component_item_name := '060 1918';&lt;br /&gt;   p_ref_designator_tbl (1).reference_designator_name := 'ECO009_dsg';&lt;br /&gt;   p_ref_designator_tbl (1).acd_type := 1;&lt;br /&gt;   p_ref_designator_tbl (1).transaction_type := 'CREATE';&lt;br /&gt;    ----- SUBSTITUTE COMPONENT ----------------&lt;br /&gt;    IF p_sub_component_tbl.EXISTS (1) IS NOT NULL&lt;br /&gt;    THEN&lt;br /&gt;       p_sub_component_tbl.DELETE;&lt;br /&gt;    END IF;&lt;br /&gt;&lt;br /&gt;    p_sub_component_tbl (1).eco_name := 'ECO009';&lt;br /&gt;    p_sub_component_tbl (1).organization_code := 'V1';&lt;br /&gt;    p_sub_component_tbl (1).revised_item_name := 'ASO0012';&lt;br /&gt;    p_sub_component_tbl (1).start_effective_date := SYSDATE;&lt;br /&gt;    p_sub_component_tbl (1).operation_sequence_number := 1;&lt;br /&gt;    p_sub_component_tbl (1).component_item_name := '060 1918';&lt;br /&gt;    p_sub_component_tbl (1).substitute_component_name := '10-016-0063';&lt;br /&gt;    p_sub_component_tbl (1).new_substitute_component_name := '10-016-0063';&lt;br /&gt;    p_sub_component_tbl (1).acd_type := 1;&lt;br /&gt;    p_sub_component_tbl (1).transaction_type := 'CREATE';&lt;br /&gt;    p_sub_component_tbl (1).row_identifier := NULL;&lt;br /&gt;    --fnd_client_info.set_org_context (204);&lt;br /&gt;    &lt;br /&gt;   fnd_global.apps_initialize (1007941, 20567, 703);&lt;br /&gt;   DBMS_OUTPUT.put_line ('Before API');&lt;br /&gt;   &lt;br /&gt;                           &lt;br /&gt;   eng_eco_pub.process_eco (p_api_version_number        =&gt; 1.0,&lt;br /&gt;                            p_init_msg_list             =&gt; FALSE,&lt;br /&gt;                            x_return_status             =&gt; x_return_status,&lt;br /&gt;                            x_msg_count                 =&gt; x_msg_count,&lt;br /&gt;                            p_bo_identifier             =&gt; 'ECO',&lt;br /&gt;                            p_eco_rec                   =&gt; p_eco_rec,&lt;br /&gt;                            p_eco_revision_tbl          =&gt; p_eco_revision_tbl,&lt;br /&gt;                            p_change_line_tbl           =&gt; l_change_line_tbl,&lt;br /&gt;                            p_revised_item_tbl          =&gt; p_revised_item_tbl,&lt;br /&gt;                            p_rev_component_tbl         =&gt; p_rev_component_tbl,&lt;br /&gt;                            p_ref_designator_tbl        =&gt; p_ref_designator_tbl,&lt;br /&gt;                            p_sub_component_tbl         =&gt; p_sub_component_tbl,&lt;br /&gt;                            p_rev_operation_tbl         =&gt; x_rev_operation_tbl,&lt;br /&gt;                            p_rev_op_resource_tbl       =&gt; x_rev_op_resource_tbl,&lt;br /&gt;                            p_rev_sub_resource_tbl      =&gt; x_rev_sub_resource_tbl,&lt;br /&gt;                            x_eco_rec                   =&gt; x_eco_rec,&lt;br /&gt;                            x_eco_revision_tbl          =&gt; x_eco_revision_tbl,&lt;br /&gt;                            x_change_line_tbl           =&gt; x_change_line_tbl,&lt;br /&gt;                            x_revised_item_tbl          =&gt; x_revised_item_tbl,&lt;br /&gt;                            x_rev_component_tbl         =&gt; x_rev_component_tbl,&lt;br /&gt;                            x_ref_designator_tbl        =&gt; x_ref_designator_tbl,&lt;br /&gt;                            x_sub_component_tbl         =&gt; x_sub_component_tbl,&lt;br /&gt;                            x_rev_operation_tbl         =&gt; x_rev_operation_tbl,&lt;br /&gt;                            x_rev_op_resource_tbl       =&gt; x_rev_op_resource_tbl,&lt;br /&gt;                            x_rev_sub_resource_tbl      =&gt; x_rev_sub_resource_tbl,&lt;br /&gt;                            p_debug                     =&gt; 'N',&lt;br /&gt;                            p_output_dir                =&gt; NULL,&lt;br /&gt;                            p_debug_filename            =&gt; 'ECO_BO_Debug.log'&lt;br /&gt;                           );&lt;br /&gt;   DBMS_OUTPUT.put_line ('Return Status   ' || x_return_status);&lt;br /&gt;&lt;br /&gt;   IF (x_return_status &lt;&gt; fnd_api.g_ret_sts_success)&lt;br /&gt;   THEN&lt;br /&gt;      error_handler.get_message_list (x_message_list);&lt;br /&gt;&lt;br /&gt;      FOR i IN 1 .. x_msg_count&lt;br /&gt;      LOOP&lt;br /&gt;         error_msg (i).MESSAGE_TEXT := x_message_list (i).MESSAGE_TEXT;&lt;br /&gt;         DBMS_OUTPUT.put_line (error_msg (i).MESSAGE_TEXT);&lt;br /&gt;      END LOOP;&lt;br /&gt;   END IF;&lt;br /&gt;&lt;br /&gt;   COMMIT;&lt;br /&gt;END;&lt;br /&gt;/&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;Base Tables and views involved:&lt;/span&gt;&lt;br /&gt;ENG_ENGINEERING_CHANGES, ENG_CHANGE_ORDER_REVISIONS, ENG_REVISED_ITEMS, BOM_REFERENCE_DESIGNATORS, BOM_BILL_OF_MATERIALS, BOM_INVENTORY_COMPONENTS, BOM_SUBSTITUTE_COMPONENTS&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/144851838473318802-1474046373779528940?l=arunrathod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrathod.blogspot.com/feeds/1474046373779528940/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=144851838473318802&amp;postID=1474046373779528940' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/1474046373779528940'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/1474046373779528940'/><link rel='alternate' type='text/html' href='http://arunrathod.blogspot.com/2009/08/single-record-insert-script-for.html' title='Single record insert script for Engineering Change Orders'/><author><name>Arun Kumar S.R</name><uri>http://www.blogger.com/profile/14745466774124137964</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_pBTgD4-jQls/SC-82Kq7MJI/AAAAAAAAAOs/e_Invzqp9e0/S220/DSC05800.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-144851838473318802.post-3738091406529038219</id><published>2009-08-16T05:04:00.000-07:00</published><updated>2009-08-16T05:05:42.326-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Customer Cross Reference'/><title type='text'>Single Record script to load Customer Cross Reference</title><content type='html'>INSERT INTO mtl_ci_interface&lt;br /&gt;                        (customer_id,&lt;br /&gt;                         customer_item_number,&lt;br /&gt;                         commodity_code,&lt;br /&gt;                         item_definition_level, process_flag, process_mode,&lt;br /&gt;                         inactive_flag, transaction_type, lock_flag,&lt;br /&gt;                         last_updated_by, created_by, last_update_date,&lt;br /&gt;                         creation_date&lt;br /&gt;                        )&lt;br /&gt;                 VALUES (1290,&lt;br /&gt;                         'Test_customer_item2',&lt;br /&gt;                         'Finished Good',&lt;br /&gt;                         1, 1, 1,&lt;br /&gt;                         '2', 'CREATE', 'N',&lt;br /&gt;                         1007941, 1007941, SYSDATE,&lt;br /&gt;                         SYSDATE&lt;br /&gt;                        );&lt;br /&gt;&lt;br /&gt;commit;&lt;br /&gt;&lt;br /&gt;---After inserting customer items into the interface table &lt;br /&gt;---run the Import program Import Customer Items&lt;br /&gt;---Navigation to run the program: Inventory--&gt; Reports --&gt; All.&lt;br /&gt;---Parameters: Abort On Error=N, Delete Record =Y&lt;br /&gt;---After running import program verify the base table MTL_CUSTOMER_ITEMS&lt;br /&gt;&lt;br /&gt;INSERT INTO mtl_ci_xrefs_interface&lt;br /&gt;                        (customer_id,&lt;br /&gt;                         customer_item_number,&lt;br /&gt;                         preference_number,&lt;br /&gt;                         inventory_item,&lt;br /&gt;                         master_organization_id,&lt;br /&gt;                         item_definition_level, process_flag, process_mode,&lt;br /&gt;                         inactive_flag, transaction_type, lock_flag,&lt;br /&gt;                         last_updated_by, created_by, last_update_date,&lt;br /&gt;                         creation_date&lt;br /&gt;                        )&lt;br /&gt;                 VALUES (1290,&lt;br /&gt;                         'Test_customer_item2',&lt;br /&gt;                         1,&lt;br /&gt;                         'MC31324',&lt;br /&gt;                         204,&lt;br /&gt;                         1, 1, 1,&lt;br /&gt;                         '2', 'CREATE', 'N',&lt;br /&gt;                         1007941,1007941, SYSDATE,&lt;br /&gt;                         SYSDATE&lt;br /&gt;                        );&lt;br /&gt;&lt;br /&gt;commit;&lt;br /&gt;      &lt;br /&gt;---After inserting customer items cross references into the interface table &lt;br /&gt;---run the Import program, Import Customer Item Cross References&lt;br /&gt;---Navigation to run the program: Inventory--&gt; Reports --&gt; All.&lt;br /&gt;---Parameters: Abort On Error=N, Delete Record =Y&lt;br /&gt;---After running import program verify the base table MTL_CUSTOMER_ITEM_XREFS&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/144851838473318802-3738091406529038219?l=arunrathod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrathod.blogspot.com/feeds/3738091406529038219/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=144851838473318802&amp;postID=3738091406529038219' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/3738091406529038219'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/3738091406529038219'/><link rel='alternate' type='text/html' href='http://arunrathod.blogspot.com/2009/08/single-record-script-to-load-customer.html' title='Single Record script to load Customer Cross Reference'/><author><name>Arun Kumar S.R</name><uri>http://www.blogger.com/profile/14745466774124137964</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_pBTgD4-jQls/SC-82Kq7MJI/AAAAAAAAAOs/e_Invzqp9e0/S220/DSC05800.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-144851838473318802.post-6844472671763775401</id><published>2009-08-16T05:02:00.000-07:00</published><updated>2009-08-16T05:04:36.585-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PO Quotations'/><title type='text'>Single insert script for PO Quotations</title><content type='html'>INSERT INTO po_headers_interface&lt;br /&gt;            (interface_header_id, batch_id, action, document_type_code,&lt;br /&gt;             document_subtype, vendor_id, vendor_site_id, org_id,&lt;br /&gt;             currency_code, rate, rate_type_code, agent_id,&lt;br /&gt;             bill_to_location_id, approval_status, approved_date, created_by,&lt;br /&gt;             creation_date, last_updated_by, last_update_date, comments,&lt;br /&gt;             attribute11, quote_warning_delay&lt;br /&gt;            )&lt;br /&gt;     VALUES (po_headers_interface_s.NEXTVAL, 5, 'ORIGINAL', 'QUOTATION',&lt;br /&gt;             'STANDARD', 8943, 4754, 204,&lt;br /&gt;             'USD', NULL, NULL, 2159,&lt;br /&gt;             204, 'APPROVED', SYSDATE, 1007941,&lt;br /&gt;             SYSDATE, 1007941, SYSDATE, 'test_po_for_status',&lt;br /&gt;             NULL, 10&lt;br /&gt;            );&lt;br /&gt;      &lt;br /&gt;COMMIT ;&lt;br /&gt;&lt;br /&gt;INSERT INTO po_lines_interface&lt;br /&gt;            (interface_line_id, interface_header_id,&lt;br /&gt;             action, line_type, line_num, item_id, item,&lt;br /&gt;             item_description, uom_code,&lt;br /&gt;             quantity, unit_price, created_by, creation_date,&lt;br /&gt;             last_updated_by, last_update_date, line_attribute11&lt;br /&gt;            )&lt;br /&gt;     VALUES (po_lines_interface_s.NEXTVAL, po_headers_interface_s.CURRVAL,&lt;br /&gt;             'ORIGINAL', 'Goods', 1, 8063, '10-40W Oil',&lt;br /&gt;             '10-40W Car / Truck Motor Oil', 'QT',&lt;br /&gt;             2, 0.89, 1007941, SYSDATE,&lt;br /&gt;             1007941, SYSDATE, NULL&lt;br /&gt;            );&lt;br /&gt;   &lt;br /&gt;COMMIT ;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;After inserting into interface tables, run the import program &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Import Price Catalogs.&lt;br /&gt;Navigation: Purchasing: Requests&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;Parameters: &lt;/span&gt;&lt;br /&gt;1. Document Type = QUOTATION&lt;br /&gt;2. Create or Update Items= NO&lt;br /&gt;3. Create Sourcing Rules= NO&lt;br /&gt;4. Approval Status= Approved&lt;br /&gt;5. Batch Id=5&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;Base Tables&lt;/span&gt;&lt;br /&gt;PO_HEADERS_ALL, PO_LINES_ALL&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/144851838473318802-6844472671763775401?l=arunrathod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrathod.blogspot.com/feeds/6844472671763775401/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=144851838473318802&amp;postID=6844472671763775401' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/6844472671763775401'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/6844472671763775401'/><link rel='alternate' type='text/html' href='http://arunrathod.blogspot.com/2009/08/single-insert-script-for-po-quotations.html' title='Single insert script for PO Quotations'/><author><name>Arun Kumar S.R</name><uri>http://www.blogger.com/profile/14745466774124137964</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_pBTgD4-jQls/SC-82Kq7MJI/AAAAAAAAAOs/e_Invzqp9e0/S220/DSC05800.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-144851838473318802.post-5464454227524343828</id><published>2009-08-16T05:01:00.001-07:00</published><updated>2009-08-16T05:02:21.295-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Mfg Cross References'/><title type='text'>Mfg Cross References Single Record Script</title><content type='html'>DECLARE&lt;br /&gt;   l_rowid   VARCHAR2 (30);&lt;br /&gt;BEGIN&lt;br /&gt;   fnd_global.apps_initialize (1007941, 20567, 703);&lt;br /&gt;   mtl_mfg_part_numbers_pkg.insert_row&lt;br /&gt;                         (l_rowid,&lt;br /&gt;                          69,             --mfg_xref_load_rec.manufacturer_id,&lt;br /&gt;                          'Test Part', --mfg_xref_load_rec.ls_mfg_part_number,&lt;br /&gt;                          173,          --mfg_xref_load_rec.inventory_item_id,&lt;br /&gt;                          SYSDATE,&lt;br /&gt;                          1007941,                                --l_user_id,&lt;br /&gt;                          SYSDATE,&lt;br /&gt;                          1007941,                                --l_user_id,&lt;br /&gt;                          1007941,                                --l_user_id,&lt;br /&gt;                          204,            --mfg_xref_load_rec.organization_id,&lt;br /&gt;                          '',&lt;br /&gt;                          '',&lt;br /&gt;                          NULL,   --mfg_xref_load_rec.ls_authorization_status,&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;   COMMIT;&lt;br /&gt;END;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Base table involved:&lt;/span&gt; MTL_MFG_PART_NUMBERS&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/144851838473318802-5464454227524343828?l=arunrathod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrathod.blogspot.com/feeds/5464454227524343828/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=144851838473318802&amp;postID=5464454227524343828' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/5464454227524343828'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/5464454227524343828'/><link rel='alternate' type='text/html' href='http://arunrathod.blogspot.com/2009/08/mfg-cross-references-single-record.html' title='Mfg Cross References Single Record Script'/><author><name>Arun Kumar S.R</name><uri>http://www.blogger.com/profile/14745466774124137964</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_pBTgD4-jQls/SC-82Kq7MJI/AAAAAAAAAOs/e_Invzqp9e0/S220/DSC05800.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-144851838473318802.post-5573957250601311991</id><published>2009-08-16T04:56:00.000-07:00</published><updated>2009-08-16T04:59:18.726-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PO Blanket Release'/><title type='text'>PO Blanket Releases Single Insert script</title><content type='html'>INSERT INTO po_requisitions_interface_all&lt;br /&gt;            (quantity, unit_price, authorization_status, unit_of_measure,&lt;br /&gt;             destination_organization_id, last_updated_by, last_update_date,&lt;br /&gt;             requisition_header_id, source_type_code, requisition_line_id,&lt;br /&gt;             need_by_date, org_id, amount, uom_code, document_type_code,&lt;br /&gt;             interface_source_code, destination_type_code, charge_account_id,&lt;br /&gt;             preparer_id, category_id, deliver_to_requestor_id,&lt;br /&gt;             deliver_to_location_id, item_id, batch_id, line_type_id,&lt;br /&gt;             currency_code, creation_date, requisition_type,&lt;br /&gt;             suggested_buyer_id,                       ---suggested_vendor_id,&lt;br /&gt;                                autosource_doc_header_id,&lt;br /&gt;             autosource_doc_line_num, req_number_segment1,&lt;br /&gt;             req_dist_sequence_id&lt;br /&gt;            )&lt;br /&gt;     VALUES (10, 20, 'APPROVED', 'Each',&lt;br /&gt;             207, 1111, SYSDATE,&lt;br /&gt;             123492, 'VENDOR', 101198,&lt;br /&gt;             SYSDATE + 1, 204, NULL, 'Ea', 'RELEASE',&lt;br /&gt;             'test', 'EXPENSE', 13401,&lt;br /&gt;             15516, 1, 15516,&lt;br /&gt;             207, 10928, 100, 1,&lt;br /&gt;             'USD', SYSDATE, 'PURCHASE',&lt;br /&gt;             15516, 34333,&lt;br /&gt;             1, 'Req-106',&lt;br /&gt;             1&lt;br /&gt;            );&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style:italic;"&gt;After inserting into interface tables, run the following import program with the parameters&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Requisition Import.&lt;br /&gt;Navigation: Purchasing: Requests&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Parameters:&lt;/span&gt; &lt;br /&gt;1. Import Source       =  test  &lt;br /&gt;(Select given interface_source_code value from LOV )&lt;br /&gt;&lt;br /&gt;2. Import Batch ID      =  100   &lt;br /&gt;(Give batch_id which u gave for the header)&lt;br /&gt;&lt;br /&gt;3. Group By       =  Item+  (Default value)&lt;br /&gt;&lt;br /&gt;4. Last Requisition Number     =  NULL&lt;br /&gt;&lt;br /&gt;5. Multiple Distributions     =  No  (Select YES only if u have multiple lines in distribution table)&lt;br /&gt;&lt;br /&gt;6. Initiate Approval after ReqImport    =  YES  (Select YES only if u want to auto approve the requisition)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/144851838473318802-5573957250601311991?l=arunrathod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrathod.blogspot.com/feeds/5573957250601311991/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=144851838473318802&amp;postID=5573957250601311991' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/5573957250601311991'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/5573957250601311991'/><link rel='alternate' type='text/html' href='http://arunrathod.blogspot.com/2009/08/po-blanket-releases-single-insert.html' title='PO Blanket Releases Single Insert script'/><author><name>Arun Kumar S.R</name><uri>http://www.blogger.com/profile/14745466774124137964</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_pBTgD4-jQls/SC-82Kq7MJI/AAAAAAAAAOs/e_Invzqp9e0/S220/DSC05800.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-144851838473318802.post-8609108353284142483</id><published>2009-08-16T04:45:00.000-07:00</published><updated>2009-08-16T04:46:18.951-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Single Record Script to link &apos;BOM Resources&apos; to &apos;BOM Departments&apos;'/><title type='text'>Single Record Script to link 'BOM Resources' to 'BOM Departments'</title><content type='html'>DECLARE&lt;br /&gt;   l_rowid   VARCHAR2 (2000);&lt;br /&gt;BEGIN&lt;br /&gt;   bom_department_resources_pkg.insert_row (x_rowid                        =&gt; l_rowid,&lt;br /&gt;                                            x_department_id                =&gt; 21773,&lt;br /&gt;                                            x_resource_id                  =&gt; 8270,&lt;br /&gt;                                            x_last_update_date             =&gt; SYSDATE,&lt;br /&gt;                                            x_last_updated_by              =&gt; 1007911,&lt;br /&gt;                                            x_creation_date                =&gt; SYSDATE,&lt;br /&gt;                                            x_created_by                   =&gt; 1007911,&lt;br /&gt;                                            x_last_update_login            =&gt; 3156870,&lt;br /&gt;                                            x_share_capacity_flag          =&gt; 2,&lt;br /&gt;                                            x_share_from_dept_id           =&gt; NULL,&lt;br /&gt;                                            x_capacity_units               =&gt; 1,&lt;br /&gt;                                            x_resource_group_name          =&gt; NULL,&lt;br /&gt;                                            x_available_24_hours_flag      =&gt; 1,&lt;br /&gt;                                            x_ctp_flag                     =&gt; 2,&lt;br /&gt;                                            x_attribute_category           =&gt; NULL,&lt;br /&gt;                                            x_attribute1                   =&gt; NULL,&lt;br /&gt;                                            x_attribute2                   =&gt; NULL,&lt;br /&gt;                                            x_attribute3                   =&gt; NULL,&lt;br /&gt;                                            x_attribute4                   =&gt; NULL,&lt;br /&gt;                                            x_attribute5                   =&gt; NULL,&lt;br /&gt;                                            x_attribute6                   =&gt; NULL,&lt;br /&gt;                                            x_attribute7                   =&gt; NULL,&lt;br /&gt;                                            x_attribute8                   =&gt; NULL,&lt;br /&gt;                                            x_attribute9                   =&gt; NULL,&lt;br /&gt;                                            x_attribute10                  =&gt; NULL,&lt;br /&gt;                                            x_attribute11                  =&gt; NULL,&lt;br /&gt;                                            x_attribute12                  =&gt; NULL,&lt;br /&gt;                                            x_attribute13                  =&gt; NULL,&lt;br /&gt;                                            x_attribute14                  =&gt; NULL,&lt;br /&gt;                                            x_attribute15                  =&gt; NULL,&lt;br /&gt;                                            x_exception_set_name           =&gt; NULL,&lt;br /&gt;                                            x_atp_rule_id                  =&gt; NULL,&lt;br /&gt;                                            x_utilization                  =&gt; NULL,&lt;br /&gt;                                            x_efficiency                   =&gt; NULL,&lt;br /&gt;                                            x_schedule_to_instance         =&gt; 2&lt;br /&gt;                                           );&lt;br /&gt;   COMMIT;&lt;br /&gt;END;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/144851838473318802-8609108353284142483?l=arunrathod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrathod.blogspot.com/feeds/8609108353284142483/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=144851838473318802&amp;postID=8609108353284142483' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/8609108353284142483'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/8609108353284142483'/><link rel='alternate' type='text/html' href='http://arunrathod.blogspot.com/2009/08/single-record-script-to-link-bom.html' title='Single Record Script to link &apos;BOM Resources&apos; to &apos;BOM Departments&apos;'/><author><name>Arun Kumar S.R</name><uri>http://www.blogger.com/profile/14745466774124137964</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_pBTgD4-jQls/SC-82Kq7MJI/AAAAAAAAAOs/e_Invzqp9e0/S220/DSC05800.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-144851838473318802.post-6538026100676737146</id><published>2009-08-16T04:44:00.000-07:00</published><updated>2009-08-16T04:45:18.606-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='BOM Resources'/><title type='text'>Single Record Script to load 'BOM Resources'</title><content type='html'>DECLARE&lt;br /&gt;   l_rowid         VARCHAR2 (2000);&lt;br /&gt;   l_resource_id   NUMBER;&lt;br /&gt;BEGIN&lt;br /&gt;   bom_resources_pkg.insert_row (x_rowid                         =&gt; l_rowid,&lt;br /&gt;                                 x_resource_id                   =&gt; l_resource_id,&lt;br /&gt;                                 x_resource_code                 =&gt; 'XXTEST123',&lt;br /&gt;                                 x_organization_id               =&gt; 204,&lt;br /&gt;                                 x_last_update_date              =&gt; SYSDATE,&lt;br /&gt;                                 x_last_updated_by               =&gt; 1007911,&lt;br /&gt;                                 x_creation_date                 =&gt; SYSDATE,&lt;br /&gt;                                 x_created_by                    =&gt; 1007911,&lt;br /&gt;                                 x_last_update_login             =&gt; 3156870,&lt;br /&gt;                                 x_description                   =&gt; NULL,&lt;br /&gt;                                 x_disable_date                  =&gt; NULL,&lt;br /&gt;                                 x_cost_element_id               =&gt; 3,&lt;br /&gt;                                 x_purchase_item_id              =&gt; 17817,&lt;br /&gt;                                 x_cost_code_type                =&gt; 3,&lt;br /&gt;                                 x_functional_currency_flag      =&gt; 2,&lt;br /&gt;                                 x_unit_of_measure               =&gt; 'EA',&lt;br /&gt;                                 x_default_activity_id           =&gt; 4,&lt;br /&gt;                                 x_resource_type                 =&gt; 2,&lt;br /&gt;                                 x_autocharge_type               =&gt; 1,&lt;br /&gt;                                 x_standard_rate_flag            =&gt; 2,&lt;br /&gt;                                 x_default_basis_type            =&gt; 1,&lt;br /&gt;                                 x_absorption_account            =&gt; 13735,&lt;br /&gt;                                 x_allow_costs_flag              =&gt; 1,&lt;br /&gt;                                 x_rate_variance_account         =&gt; NULL,&lt;br /&gt;                                 x_expenditure_type              =&gt; NULL,&lt;br /&gt;                                 x_attribute_category            =&gt; NULL,&lt;br /&gt;                                 x_attribute1                    =&gt; NULL,&lt;br /&gt;                                 x_attribute2                    =&gt; NULL,&lt;br /&gt;                                 x_attribute3                    =&gt; NULL,&lt;br /&gt;                                 x_attribute4                    =&gt; NULL,&lt;br /&gt;                                 x_attribute5                    =&gt; NULL,&lt;br /&gt;                                 x_attribute6                    =&gt; NULL,&lt;br /&gt;                                 x_attribute7                    =&gt; NULL,&lt;br /&gt;                                 x_attribute8                    =&gt; NULL,&lt;br /&gt;                                 x_attribute9                    =&gt; NULL,&lt;br /&gt;                                 x_attribute10                   =&gt; NULL,&lt;br /&gt;                                 x_attribute11                   =&gt; NULL,&lt;br /&gt;                                 x_attribute12                   =&gt; NULL,&lt;br /&gt;                                 x_attribute13                   =&gt; NULL,&lt;br /&gt;                                 x_attribute14                   =&gt; NULL,&lt;br /&gt;                                 x_attribute15                   =&gt; NULL,&lt;br /&gt;                                 x_request_id                    =&gt; NULL,&lt;br /&gt;                                 x_program_application_id        =&gt; NULL,&lt;br /&gt;                                 x_program_id                    =&gt; NULL,&lt;br /&gt;                                 x_program_update_date           =&gt; NULL,&lt;br /&gt;                                 x_batchable                     =&gt; 1,&lt;br /&gt;                                 x_min_batch_capacity            =&gt; NULL,&lt;br /&gt;                                 x_max_batch_capacity            =&gt; NULL,&lt;br /&gt;                                 x_batch_capacity_uom            =&gt; NULL,&lt;br /&gt;                                 x_batch_window                  =&gt; NULL,&lt;br /&gt;                                 x_batch_window_uom              =&gt; NULL,&lt;br /&gt;                                 x_competence_id                 =&gt; NULL,&lt;br /&gt;                                 x_rating_level_id               =&gt; NULL,&lt;br /&gt;                                 x_qualification_type_id         =&gt; NULL,&lt;br /&gt;                                 x_billable_item_id              =&gt; NULL,&lt;br /&gt;                                 x_supply_subinventory           =&gt; NULL,&lt;br /&gt;                                 x_supply_locator_id             =&gt; NULL&lt;br /&gt;                                );&lt;br /&gt;   COMMIT;&lt;br /&gt;END;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/144851838473318802-6538026100676737146?l=arunrathod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrathod.blogspot.com/feeds/6538026100676737146/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=144851838473318802&amp;postID=6538026100676737146' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/6538026100676737146'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/6538026100676737146'/><link rel='alternate' type='text/html' href='http://arunrathod.blogspot.com/2009/08/single-record-script-to-load-bom_16.html' title='Single Record Script to load &apos;BOM Resources&apos;'/><author><name>Arun Kumar S.R</name><uri>http://www.blogger.com/profile/14745466774124137964</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_pBTgD4-jQls/SC-82Kq7MJI/AAAAAAAAAOs/e_Invzqp9e0/S220/DSC05800.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-144851838473318802.post-8115143105340389959</id><published>2009-08-16T04:41:00.000-07:00</published><updated>2009-08-16T04:44:19.521-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='BOM Department'/><title type='text'>Single Record Script to load 'BOM Department'</title><content type='html'>DECLARE&lt;br /&gt;   l_rowid           VARCHAR2 (2000);&lt;br /&gt;   l_department_id   NUMBER;&lt;br /&gt;BEGIN&lt;br /&gt;   bom_departments_pkg.insert_row (x_rowid                       =&gt; l_rowid,&lt;br /&gt;                                   x_department_id               =&gt; l_department_id,&lt;br /&gt;                                   x_department_code             =&gt; 'XXTEST',&lt;br /&gt;                                   x_organization_id             =&gt; 204,&lt;br /&gt;                                   x_last_update_date            =&gt; SYSDATE,&lt;br /&gt;                                   x_last_updated_by             =&gt; 1007911,&lt;br /&gt;                                   x_creation_date               =&gt; SYSDATE,&lt;br /&gt;                                   x_created_by                  =&gt; 1007911,&lt;br /&gt;                                   x_last_update_login           =&gt; 3156870,&lt;br /&gt;                                   x_description                 =&gt; 'Test Department',&lt;br /&gt;                                   x_disable_date                =&gt; NULL,&lt;br /&gt;                                   x_department_class_code       =&gt; NULL,&lt;br /&gt;                                   x_pa_expenditure_org_id       =&gt; NULL,&lt;br /&gt;                                   x_attribute_category          =&gt; NULL,&lt;br /&gt;                                   x_attribute1                  =&gt; NULL,&lt;br /&gt;                                   x_attribute2                  =&gt; NULL,&lt;br /&gt;                                   x_attribute3                  =&gt; NULL,&lt;br /&gt;                                   x_attribute4                  =&gt; NULL,&lt;br /&gt;                                   x_attribute5                  =&gt; NULL,&lt;br /&gt;                                   x_attribute6                  =&gt; NULL,&lt;br /&gt;                                   x_attribute7                  =&gt; NULL,&lt;br /&gt;                                   x_attribute8                  =&gt; NULL,&lt;br /&gt;                                   x_attribute9                  =&gt; NULL,&lt;br /&gt;                                   x_attribute10                 =&gt; NULL,&lt;br /&gt;                                   x_attribute11                 =&gt; NULL,&lt;br /&gt;                                   x_attribute12                 =&gt; NULL,&lt;br /&gt;                                   x_attribute13                 =&gt; NULL,&lt;br /&gt;                                   x_attribute14                 =&gt; NULL,&lt;br /&gt;                                   x_attribute15                 =&gt; NULL,&lt;br /&gt;                                   x_location_id                 =&gt; NULL,&lt;br /&gt;                                   x_scrap_account               =&gt; NULL,&lt;br /&gt;                                   x_est_absorption_account      =&gt; NULL,&lt;br /&gt;                                   x_maint_cost_category         =&gt; NULL&lt;br /&gt;                                  );&lt;br /&gt;   DBMS_OUTPUT.put_line (l_department_id);&lt;br /&gt;   COMMIT;&lt;br /&gt;END;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/144851838473318802-8115143105340389959?l=arunrathod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrathod.blogspot.com/feeds/8115143105340389959/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=144851838473318802&amp;postID=8115143105340389959' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/8115143105340389959'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/8115143105340389959'/><link rel='alternate' type='text/html' href='http://arunrathod.blogspot.com/2009/08/single-record-script-to-load-bom.html' title='Single Record Script to load &apos;BOM Department&apos;'/><author><name>Arun Kumar S.R</name><uri>http://www.blogger.com/profile/14745466774124137964</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_pBTgD4-jQls/SC-82Kq7MJI/AAAAAAAAAOs/e_Invzqp9e0/S220/DSC05800.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-144851838473318802.post-2509840859838514896</id><published>2009-07-13T03:08:00.000-07:00</published><updated>2009-07-13T03:09:32.908-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Query to find the workflow overrider address in test instances'/><title type='text'>Query to find the workflow overrider address in test instances</title><content type='html'>SELECT fscpv.parameter_value override_email_address&lt;br /&gt;  FROM fnd_svc_comp_params_tl fscpt, fnd_svc_comp_param_vals fscpv&lt;br /&gt; WHERE 1 = 1&lt;br /&gt;   AND fscpt.display_name = 'Test Address'&lt;br /&gt;   AND fscpt.parameter_id = fscpv.parameter_id;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/144851838473318802-2509840859838514896?l=arunrathod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrathod.blogspot.com/feeds/2509840859838514896/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=144851838473318802&amp;postID=2509840859838514896' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/2509840859838514896'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/2509840859838514896'/><link rel='alternate' type='text/html' href='http://arunrathod.blogspot.com/2009/07/query-to-find-workflow-overrider.html' title='Query to find the workflow overrider address in test instances'/><author><name>Arun Kumar S.R</name><uri>http://www.blogger.com/profile/14745466774124137964</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_pBTgD4-jQls/SC-82Kq7MJI/AAAAAAAAAOs/e_Invzqp9e0/S220/DSC05800.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-144851838473318802.post-7465730371125750568</id><published>2009-07-08T09:41:00.001-07:00</published><updated>2009-07-08T09:44:33.238-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Query to fetch Error workflow details for &apos;HRSSA&apos; workflow'/><title type='text'>Query to fetch Error workflow details for 'HRSSA' workflow</title><content type='html'>The below query will show you the error workflow for a particular time period for the item type 'HRSSA'. You can also fetch the error for other workflows too, for that instead of 'HRSSA' you need to give the item type for which you want to fetch the data.&lt;br /&gt;&lt;br /&gt;SELECT   ias.begin_date, ias.item_key, ac.NAME activity, &lt;br /&gt;         ias.activity_result_code RESULT, ias.error_name error_name, &lt;br /&gt;         ias.error_message error_message &lt;br /&gt;FROM     wf_item_activity_statuses ias, &lt;br /&gt;         wf_process_activities pa, &lt;br /&gt;         wf_activities ac, &lt;br /&gt;         wf_activities ap, &lt;br /&gt;         wf_items i &lt;br /&gt;   WHERE ias.item_type = 'HRSSA' &lt;br /&gt;     AND ias.activity_status = 'ERROR' &lt;br /&gt;     AND ias.process_activity = pa.instance_id &lt;br /&gt;     AND pa.activity_name = ac.NAME &lt;br /&gt;     AND pa.activity_item_type = ac.item_type &lt;br /&gt;     AND pa.process_name = ap.NAME &lt;br /&gt;     AND pa.process_item_type = ap.item_type &lt;br /&gt;     AND pa.process_version = ap.VERSION &lt;br /&gt;     AND i.item_type = 'HRSSA' &lt;br /&gt;     AND i.item_key = ias.item_key &lt;br /&gt;     AND i.begin_date &gt;= ac.begin_date &lt;br /&gt;     AND i.begin_date &lt; NVL (ac.end_date, i.begin_date + 1) &lt;br /&gt;       and trunc(i.begin_date) between to_date(:begin_date) and trunc(:end_date) &lt;br /&gt;ORDER BY ias.begin_date DESC&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/144851838473318802-7465730371125750568?l=arunrathod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrathod.blogspot.com/feeds/7465730371125750568/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=144851838473318802&amp;postID=7465730371125750568' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/7465730371125750568'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/7465730371125750568'/><link rel='alternate' type='text/html' href='http://arunrathod.blogspot.com/2009/07/query-to-fetch-error-workflow-details.html' title='Query to fetch Error workflow details for &apos;HRSSA&apos; workflow'/><author><name>Arun Kumar S.R</name><uri>http://www.blogger.com/profile/14745466774124137964</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_pBTgD4-jQls/SC-82Kq7MJI/AAAAAAAAAOs/e_Invzqp9e0/S220/DSC05800.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-144851838473318802.post-4916071599183853209</id><published>2009-06-10T21:41:00.001-07:00</published><updated>2011-03-10T09:43:36.627-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Query to link a Responsibility to a Set of Books in Oracle'/><title type='text'>Query to link a Responsibility to a Set of Books/Operating Unit in Oracle</title><content type='html'>--- Link to Set of Books&lt;br /&gt;SELECT fr.responsibility_name, fpov.profile_option_value set_of_books_name&lt;br /&gt;  FROM fnd_profile_options_vl fpo,&lt;br /&gt;       fnd_profile_option_values fpov,&lt;br /&gt;       applsys.fnd_responsibility_tl fr&lt;br /&gt; WHERE fpo.user_profile_option_name = 'GL Set of Books Name'&lt;br /&gt;   AND fpo.profile_option_id = fpov.profile_option_id&lt;br /&gt;   AND fpov.level_value = fr.responsibility_id&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;--- Link to Operating Unit&lt;br /&gt;SELECT fr.responsibility_name, fpov.profile_option_value orgid, NAME org_name&lt;br /&gt;  FROM fnd_profile_options_vl fpo,&lt;br /&gt;       fnd_profile_option_values fpov,&lt;br /&gt;       applsys.fnd_responsibility_tl fr,&lt;br /&gt;       hr_operating_units hou&lt;br /&gt; WHERE UPPER (fpo.user_profile_option_name) LIKE UPPER ('MO%OPERATIN%')&lt;br /&gt;   AND profile_option_name = 'ORG_ID'&lt;br /&gt;   AND fpo.profile_option_id = fpov.profile_option_id&lt;br /&gt;   AND fpov.level_value = fr.responsibility_id&lt;br /&gt;   AND hou.organization_id = fpov.profile_option_value&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/144851838473318802-4916071599183853209?l=arunrathod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrathod.blogspot.com/feeds/4916071599183853209/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=144851838473318802&amp;postID=4916071599183853209' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/4916071599183853209'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/4916071599183853209'/><link rel='alternate' type='text/html' href='http://arunrathod.blogspot.com/2009/06/query-to-link-responsibility-to-set-of_10.html' title='Query to link a Responsibility to a Set of Books/Operating Unit in Oracle'/><author><name>Arun Kumar S.R</name><uri>http://www.blogger.com/profile/14745466774124137964</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_pBTgD4-jQls/SC-82Kq7MJI/AAAAAAAAAOs/e_Invzqp9e0/S220/DSC05800.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-144851838473318802.post-4657349600360570939</id><published>2009-06-09T04:51:00.001-07:00</published><updated>2009-06-09T04:51:58.398-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Query that shows all the repsonsibilities and what functions are attached to these responsibilities.'/><title type='text'>Query that shows all the repsonsibilities and what functions are attached to these responsibilities.</title><content type='html'>SELECT DISTINCT faa.application_name application, rtl.responsibility_name,&lt;br /&gt;                ffl.user_function_name, ff.function_name, ffl.description,&lt;br /&gt;                ff.TYPE&lt;br /&gt;           FROM fnd_compiled_menu_functions cmf,&lt;br /&gt;                fnd_form_functions ff,&lt;br /&gt;                fnd_form_functions_tl ffl,&lt;br /&gt;                fnd_responsibility r,&lt;br /&gt;                fnd_responsibility_vl rtl,&lt;br /&gt;                apps.fnd_application_all_view faa&lt;br /&gt;          WHERE cmf.function_id = ff.function_id&lt;br /&gt;            AND r.menu_id = cmf.menu_id&lt;br /&gt;            AND rtl.responsibility_id = r.responsibility_id&lt;br /&gt;            AND cmf.grant_flag = 'Y'&lt;br /&gt;            AND ff.function_id = ffl.function_id&lt;br /&gt;            AND faa.application_id(+) = r.application_id&lt;br /&gt;            AND r.end_date IS NULL&lt;br /&gt;            AND rtl.end_date IS NULL&lt;br /&gt;       ORDER BY rtl.responsibility_name;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/144851838473318802-4657349600360570939?l=arunrathod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrathod.blogspot.com/feeds/4657349600360570939/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=144851838473318802&amp;postID=4657349600360570939' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/4657349600360570939'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/4657349600360570939'/><link rel='alternate' type='text/html' href='http://arunrathod.blogspot.com/2009/06/query-that-shows-all-repsonsibilities.html' title='Query that shows all the repsonsibilities and what functions are attached to these responsibilities.'/><author><name>Arun Kumar S.R</name><uri>http://www.blogger.com/profile/14745466774124137964</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_pBTgD4-jQls/SC-82Kq7MJI/AAAAAAAAAOs/e_Invzqp9e0/S220/DSC05800.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-144851838473318802.post-5618939802830703004</id><published>2009-06-07T23:37:00.000-07:00</published><updated>2009-06-08T02:02:39.537-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Respond FYI Notification'/><category scheme='http://www.blogger.com/atom/ns#' term='Close FYI Noticiation'/><title type='text'>How to close/respond to a FYI notification from PL/SQL</title><content type='html'>Closing/Responding to a FYI notification is perty straight forward. You need to just run the following API:&lt;br /&gt;&lt;br /&gt;begin&lt;br /&gt; wf_notification.CLOSE (nid            =&gt; --Notification ID--,&lt;br /&gt;                        responder      =&gt; --Responder Name--&lt;br /&gt;);&lt;br /&gt;commit;&lt;br /&gt;end;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Note:&lt;/strong&gt; The Responder Name should be the same as the 'User Name' which the user uses to login the Oracle applications.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/144851838473318802-5618939802830703004?l=arunrathod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrathod.blogspot.com/feeds/5618939802830703004/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=144851838473318802&amp;postID=5618939802830703004' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/5618939802830703004'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/5618939802830703004'/><link rel='alternate' type='text/html' href='http://arunrathod.blogspot.com/2009/06/how-to-closerespond-to-fyi-notification.html' title='How to close/respond to a FYI notification from PL/SQL'/><author><name>Arun Kumar S.R</name><uri>http://www.blogger.com/profile/14745466774124137964</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_pBTgD4-jQls/SC-82Kq7MJI/AAAAAAAAAOs/e_Invzqp9e0/S220/DSC05800.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-144851838473318802.post-4135993453638992173</id><published>2009-05-13T22:33:00.001-07:00</published><updated>2009-05-13T22:34:43.250-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='How to preserve leading zeros in a CSV file using Oracle'/><title type='text'>How to preserve leading zeros in a CSV file using Oracle</title><content type='html'>Some time back i was working on alerts which will extract the data from Oracle and send alert extracts to the users via email as attachments in 'CSV' format. But when i received the notifications i noticed that the leading zeros in the segment values of the code combinations were truncated.&lt;br /&gt;&lt;br /&gt;After some research i found that when ever the Excel opens up a CSV file it defaults all cells to "General" formatting and removes the leading zeros on cell values thus converting them from strings to numbers. &lt;br /&gt;&lt;br /&gt;The simple solution is to SELECT the value such that Excel will see it as a string and not a number. So we prefixed an equals sign and double quote on to the value and post fix a double quote. So&lt;br /&gt;&lt;br /&gt;SELECT xx_column&lt;br /&gt;FROM xx_table&lt;br /&gt;&lt;br /&gt;becomes&lt;br /&gt;&lt;br /&gt;SELECT '="'||xx_column||'"'&lt;br /&gt;FROM xx_table&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/144851838473318802-4135993453638992173?l=arunrathod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrathod.blogspot.com/feeds/4135993453638992173/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=144851838473318802&amp;postID=4135993453638992173' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/4135993453638992173'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/4135993453638992173'/><link rel='alternate' type='text/html' href='http://arunrathod.blogspot.com/2009/05/how-to-preserve-leading-zeros-in-csv.html' title='How to preserve leading zeros in a CSV file using Oracle'/><author><name>Arun Kumar S.R</name><uri>http://www.blogger.com/profile/14745466774124137964</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_pBTgD4-jQls/SC-82Kq7MJI/AAAAAAAAAOs/e_Invzqp9e0/S220/DSC05800.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-144851838473318802.post-6956786604979491537</id><published>2009-05-04T05:12:00.000-07:00</published><updated>2009-05-04T05:18:59.342-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PL/Sql Script to assign responsibilities to Oracle Users'/><title type='text'>PL/Sql Script to assign responsibilities to Oracle Users</title><content type='html'>DECLARE&lt;br /&gt;   l_user_id   NUMBER;&lt;br /&gt;&lt;br /&gt;   CURSOR cur_rec&lt;br /&gt;   IS&lt;br /&gt;      SELECT *&lt;br /&gt;        FROM fnd_responsibility_vl&lt;br /&gt;       WHERE UPPER (responsibility_name) = UPPER ('XXXXX');&lt;br /&gt;BEGIN&lt;br /&gt;   SELECT user_id&lt;br /&gt;     INTO l_user_id&lt;br /&gt;     FROM fnd_user&lt;br /&gt;    WHERE user_name = 'XXXX';&lt;br /&gt;&lt;br /&gt;   FOR rec_cur IN cur_rec&lt;br /&gt;   LOOP&lt;br /&gt;      fnd_user_resp_groups_api.insert_assignment&lt;br /&gt;                    (user_id                            =&gt; l_user_id,&lt;br /&gt;                     responsibility_id                  =&gt; rec_cur.responsibility_id,&lt;br /&gt;                     responsibility_application_id      =&gt; rec_cur.application_id,&lt;br /&gt;                     security_group_id                  =&gt; 0,&lt;br /&gt;                     start_date                         =&gt; SYSDATE - 1,&lt;br /&gt;                     end_date                           =&gt; NULL,&lt;br /&gt;                     description                        =&gt; NULL&lt;br /&gt;                    );&lt;br /&gt;      COMMIT;&lt;br /&gt;   END LOOP;&lt;br /&gt;END;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/144851838473318802-6956786604979491537?l=arunrathod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrathod.blogspot.com/feeds/6956786604979491537/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=144851838473318802&amp;postID=6956786604979491537' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/6956786604979491537'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/6956786604979491537'/><link rel='alternate' type='text/html' href='http://arunrathod.blogspot.com/2009/05/plsql-script-to-assign-responsibilities.html' title='PL/Sql Script to assign responsibilities to Oracle Users'/><author><name>Arun Kumar S.R</name><uri>http://www.blogger.com/profile/14745466774124137964</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_pBTgD4-jQls/SC-82Kq7MJI/AAAAAAAAAOs/e_Invzqp9e0/S220/DSC05800.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-144851838473318802.post-8892162920480167312</id><published>2009-04-20T03:01:00.000-07:00</published><updated>2009-04-20T03:04:23.557-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle Expense Report (Approval Limits)'/><title type='text'>Oracle Expense Report (Approval Limits)</title><content type='html'>Expense reports will fail is the manager does not have approval authority for a particular cost center, or an appropriate approval level for the cost center of the employee submitting the expense report. The query to show the employee approval limits are as follows:&lt;br /&gt;&lt;br /&gt;SELECT b.full_name, a.cost_center, a.org_id, c.NAME org_name, a.signing_limit&lt;br /&gt;  FROM ap_web_signing_limits_all a,&lt;br /&gt;       per_all_people_f b,&lt;br /&gt;       hr_organization_units c&lt;br /&gt; WHERE a.employee_id = b.person_id&lt;br /&gt;   AND a.org_id = c.organization_id&lt;br /&gt;   AND b.effective_start_date = (SELECT MAX (effective_start_date)&lt;br /&gt;                                   FROM apps.per_all_people_f&lt;br /&gt;                                  WHERE person_id = b.person_id)&lt;br /&gt;   AND a.document_type = 'APEXP'&lt;br /&gt;&lt;br /&gt;The navigation to check/update the approval limits for an expense report of an employee is as follows:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Payables Manager -&gt; Employees -&gt; Signing Limits&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/144851838473318802-8892162920480167312?l=arunrathod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrathod.blogspot.com/feeds/8892162920480167312/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=144851838473318802&amp;postID=8892162920480167312' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/8892162920480167312'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/8892162920480167312'/><link rel='alternate' type='text/html' href='http://arunrathod.blogspot.com/2009/04/oracle-expense-report-approval-limits.html' title='Oracle Expense Report (Approval Limits)'/><author><name>Arun Kumar S.R</name><uri>http://www.blogger.com/profile/14745466774124137964</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_pBTgD4-jQls/SC-82Kq7MJI/AAAAAAAAAOs/e_Invzqp9e0/S220/DSC05800.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-144851838473318802.post-7962070177429650959</id><published>2009-04-20T02:53:00.000-07:00</published><updated>2009-04-20T02:56:35.755-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='GL Setups'/><title type='text'>GL Setups</title><content type='html'>&lt;span style="font-weight:bold;"&gt;Defining Types of Calendar&lt;/span&gt;&lt;br /&gt;Nav: Setup -&gt; Financials -&gt; Calendar -&gt; Type&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Accounting the Calendar&lt;/span&gt;&lt;br /&gt;Nav: Setup -&gt; Financials -&gt; Calendar -&gt; Accounting&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Defining Currency&lt;/span&gt;&lt;br /&gt;Nav: Setup -&gt; Financials -&gt; Currency -&gt; Define&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Define rate&lt;/span&gt;&lt;br /&gt;Nav: Setup -&gt; Financials -&gt; Currency -&gt; Rate -&gt; Daily&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Create a value set&lt;/span&gt;&lt;br /&gt;Nav: Setup -&gt; Financials -&gt; Flexfields -&gt; Validation -&gt; Sets&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Create a structure:&lt;/span&gt;&lt;br /&gt;Nav: Setup -&gt; Financials -&gt; Flexfields -&gt; key -&gt; Segment&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Define values:&lt;/span&gt;&lt;br /&gt;Nav: Setup -&gt; Financials -&gt; Flexfeild -&gt; Key -&gt; Values&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Creating a set of Books:&lt;/span&gt;&lt;br /&gt;Nav: Setup -&gt; Financials -&gt; Books -&gt; Define&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/144851838473318802-7962070177429650959?l=arunrathod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrathod.blogspot.com/feeds/7962070177429650959/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=144851838473318802&amp;postID=7962070177429650959' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/7962070177429650959'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/7962070177429650959'/><link rel='alternate' type='text/html' href='http://arunrathod.blogspot.com/2009/04/gl-setups.html' title='GL Setups'/><author><name>Arun Kumar S.R</name><uri>http://www.blogger.com/profile/14745466774124137964</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_pBTgD4-jQls/SC-82Kq7MJI/AAAAAAAAAOs/e_Invzqp9e0/S220/DSC05800.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-144851838473318802.post-7010363450443439737</id><published>2009-04-20T02:49:00.000-07:00</published><updated>2009-04-20T02:51:30.732-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Query to extract Employee Contact Information'/><category scheme='http://www.blogger.com/atom/ns#' term='Employee contact'/><title type='text'>Query to extract Employee Contact Information</title><content type='html'>SELECT papf.person_id employee_id, papf.full_name employee_name,&lt;br /&gt;       papf.effective_start_date employee_start_date,&lt;br /&gt;       papf.effective_end_date employee_end_date,&lt;br /&gt;       papf_cont.full_name contact_name, hl.meaning contact_type,&lt;br /&gt;       pcr.date_start contact_start_date, pcr.date_end contact_end_date&lt;br /&gt;  FROM per_contact_relationships pcr,&lt;br /&gt;       per_all_people_f papf,&lt;br /&gt;       hr_lookups hl,&lt;br /&gt;       per_all_people_f papf_cont&lt;br /&gt; WHERE 1 = 1&lt;br /&gt;   AND papf.person_id = pcr.person_id&lt;br /&gt;   AND pcr.contact_person_id = papf_cont.person_id&lt;br /&gt;   AND NVL (TRUNC (papf.effective_end_date), SYSDATE) &gt;= TRUNC (SYSDATE)&lt;br /&gt;   AND NVL (TRUNC (papf_cont.effective_end_date), SYSDATE) &gt;= TRUNC (SYSDATE)&lt;br /&gt;   AND hl.lookup_type(+) = 'CONTACT'&lt;br /&gt;   AND hl.lookup_code(+) = pcr.contact_type&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/144851838473318802-7010363450443439737?l=arunrathod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrathod.blogspot.com/feeds/7010363450443439737/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=144851838473318802&amp;postID=7010363450443439737' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/7010363450443439737'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/7010363450443439737'/><link rel='alternate' type='text/html' href='http://arunrathod.blogspot.com/2009/04/query-to-extract-employee-contact.html' title='Query to extract Employee Contact Information'/><author><name>Arun Kumar S.R</name><uri>http://www.blogger.com/profile/14745466774124137964</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_pBTgD4-jQls/SC-82Kq7MJI/AAAAAAAAAOs/e_Invzqp9e0/S220/DSC05800.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-144851838473318802.post-7706703047112789100</id><published>2009-04-20T02:46:00.000-07:00</published><updated>2009-04-20T02:47:58.992-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Deleting concurrent Programs'/><title type='text'>Script to delete the concurrent program from Oracle</title><content type='html'>Begin &lt;br /&gt;fnd_program.delete_program('program short name','schema'); &lt;br /&gt;fnd_program.delete_executable('program short name','schema'); &lt;br /&gt;commit; &lt;br /&gt;End;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/144851838473318802-7706703047112789100?l=arunrathod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrathod.blogspot.com/feeds/7706703047112789100/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=144851838473318802&amp;postID=7706703047112789100' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/7706703047112789100'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/7706703047112789100'/><link rel='alternate' type='text/html' href='http://arunrathod.blogspot.com/2009/04/script-to-delete-concurrent-program.html' title='Script to delete the concurrent program from Oracle'/><author><name>Arun Kumar S.R</name><uri>http://www.blogger.com/profile/14745466774124137964</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_pBTgD4-jQls/SC-82Kq7MJI/AAAAAAAAAOs/e_Invzqp9e0/S220/DSC05800.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-144851838473318802.post-6883230932913292500</id><published>2009-04-20T02:35:00.000-07:00</published><updated>2009-04-20T02:37:20.521-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Person Types'/><title type='text'>Person Types in Oracle HRMS</title><content type='html'>There are two tables (per_all_people_f,per_person_type_usages_f) where you can find the person_types for an employee. Developers usually gets misguided to which person_type_id we need to consider.&lt;br /&gt;&lt;br /&gt;The answer is we should always need to use the table per_person_type_usages_f to retrieve the correct person_id. Though the person_type_id in the two tables appear to be same but they are different and that can perty much mislead us. Here are the reasons below:&lt;br /&gt;&lt;br /&gt;1. The per_all_people_f.person_type_id holds the default user_person_type for a given system_person_type. It is not maintained to reflect the true user person type. For each system_person_type in each business group, there can only be one USER_PERSON_TYPE with a default_flag = 'Y'. However, an employee can have a user_person_type = Contractor, What will show in person_type_id of the two tables with a CONTRACTOR user_person_type will be as follows:&lt;br /&gt;&lt;br /&gt;PER_ALL_PEOPLE_F        : 2&lt;br /&gt;PER_PERSON_TYPE_USAGES_F: 4&lt;br /&gt;&lt;br /&gt;where 'Contractor' is the subgroup of the person type 'Employee' and 2 is the person_type_id for the employee and 4 is the person_type_id of contractor..&lt;br /&gt;&lt;br /&gt;So, only the person_type_usages_f table will give us a true picture of user_person_type and should be used in ALL HR transactions. The per_all_people_f.person_type_id is for use by non HR applications, such as Purchasing which doesn't care about the various user flavors but the system_person_type of 'EMP'. When HR Development made the change to use per_person_type_usages_f table, they retain the person_type_id column in per_all_people_f table for compatibility with other applications. This scheme will enable other non-HR applications still work.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;&lt;span style="font-weight:bold;"&gt;NOTE:&lt;/span&gt;&lt;/span&gt; When accessing per_person_type_usages_f table for a given person at a given time, there can be multiple rows returned because per_person_type_usages_f table will have a row for each person_type. When an employee is an 'EMP_APL', there'll be two rows returned: one for a system_person_type = 'EMP'with user_person_type = whatever, and another row for system_person_type = 'APL' and user_person_type = whatever. Any SQL statement or cursor needs to handle the multiple rows returned condition. Otherwise, one will get an error something like "Exact fetch returns more than 1 row".&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/144851838473318802-6883230932913292500?l=arunrathod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrathod.blogspot.com/feeds/6883230932913292500/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=144851838473318802&amp;postID=6883230932913292500' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/6883230932913292500'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/6883230932913292500'/><link rel='alternate' type='text/html' href='http://arunrathod.blogspot.com/2009/04/person-types-in-oracle-hrms.html' title='Person Types in Oracle HRMS'/><author><name>Arun Kumar S.R</name><uri>http://www.blogger.com/profile/14745466774124137964</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_pBTgD4-jQls/SC-82Kq7MJI/AAAAAAAAAOs/e_Invzqp9e0/S220/DSC05800.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-144851838473318802.post-2185882489521032143</id><published>2009-04-19T23:16:00.000-07:00</published><updated>2009-05-06T21:22:55.684-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='is not a valid role or user name'/><category scheme='http://www.blogger.com/atom/ns#' term='WFNTF_ROLE'/><category scheme='http://www.blogger.com/atom/ns#' term='Workflow Error'/><title type='text'>Workflow Error</title><content type='html'>&lt;span style="font-weight:bold;"&gt;Error Name:  WFNTF_ROLE &lt;br /&gt;Error Message  3205: 'FND_RESP...' is not a valid role or user name.  &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Resolution: The reason for the error is due to the users not been assigned to the responsibility. The workflow notification was looking for all the users that are been assigned to the responsibility, but as there were no users been assigned the workflow was going in error status.&lt;br /&gt;&lt;br /&gt;The query to find the roles that are been assigned to the users or not is as follows:&lt;br /&gt;SELECT *&lt;br /&gt;  FROM wf_user_roles&lt;br /&gt; WHERE UPPER (role_name) LIKE 'FND_RESP...'&lt;br /&gt;&lt;br /&gt;SELECT c.user_name, c.start_date, c.end_date, b.responsibility_name&lt;br /&gt;  FROM fnd_user_resp_groups_all a,&lt;br /&gt;       fnd_responsibility_tl b,&lt;br /&gt;       fnd_user c,&lt;br /&gt;       fnd_application d&lt;br /&gt; WHERE a.user_id = c.user_id&lt;br /&gt;   AND a.responsibility_id = b.responsibility_id&lt;br /&gt;   AND b.application_id = d.application_id&lt;br /&gt;   AND b.responsibility_id = :responsibility_id&lt;br /&gt;&lt;br /&gt;For more information on 'Workflow Directory Service Views' please visit:&lt;br /&gt;&lt;a href="http://download-west.oracle.com/docs/cd/B14099_19/integrate.1012/b12160/instal13.htm"&gt; &lt;span style="font-style:italic;"&gt;&lt;span style="font-weight:bold;"&gt;Oracle Workflow Administrator's -&gt; Workflow Directory Service Views&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/144851838473318802-2185882489521032143?l=arunrathod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrathod.blogspot.com/feeds/2185882489521032143/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=144851838473318802&amp;postID=2185882489521032143' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/2185882489521032143'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/2185882489521032143'/><link rel='alternate' type='text/html' href='http://arunrathod.blogspot.com/2009/04/workflow-error.html' title='Workflow Error'/><author><name>Arun Kumar S.R</name><uri>http://www.blogger.com/profile/14745466774124137964</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_pBTgD4-jQls/SC-82Kq7MJI/AAAAAAAAAOs/e_Invzqp9e0/S220/DSC05800.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-144851838473318802.post-6363315127351206982</id><published>2009-04-14T05:44:00.001-07:00</published><updated>2009-04-14T05:44:52.288-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Query to retrieve active Alert information'/><title type='text'>Query to retrieve active Alert information</title><content type='html'>SELECT aa.alert_name, aa.start_date_active, al.meaning "FREQUENCY_TYPE",&lt;br /&gt;       DECODE (frequency_type,&lt;br /&gt;               'B', days_between_checks,&lt;br /&gt;               'W', weekly_check_day,&lt;br /&gt;               'M', monthly_check_day_num,&lt;br /&gt;               'C', days_between_checks,&lt;br /&gt;               NULL&lt;br /&gt;              ) "Days",&lt;br /&gt;       aav.to_recipients, aav.cc_recipients, aav.bcc_recipients, aav.subject,&lt;br /&gt;       aav.msg_body&lt;br /&gt;  FROM alr_actions_v aav, alr_alerts aa, alr_lookups al&lt;br /&gt; WHERE 1 = 1&lt;br /&gt;--   AND UPPER (aa.alert_name) LIKE UPPER ('%HR%')&lt;br /&gt;   AND aav.alert_id = aa.alert_id&lt;br /&gt;   AND aa.enabled_flag = 'Y'&lt;br /&gt;   AND aa.frequency_type = al.lookup_code&lt;br /&gt;   AND al.lookup_type = 'ALERT_FREQUENCY_TYPE'&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/144851838473318802-6363315127351206982?l=arunrathod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrathod.blogspot.com/feeds/6363315127351206982/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=144851838473318802&amp;postID=6363315127351206982' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/6363315127351206982'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/6363315127351206982'/><link rel='alternate' type='text/html' href='http://arunrathod.blogspot.com/2009/04/query-to-retrieve-active-alert.html' title='Query to retrieve active Alert information'/><author><name>Arun Kumar S.R</name><uri>http://www.blogger.com/profile/14745466774124137964</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_pBTgD4-jQls/SC-82Kq7MJI/AAAAAAAAAOs/e_Invzqp9e0/S220/DSC05800.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-144851838473318802.post-2081537321227901499</id><published>2009-03-25T23:45:00.001-07:00</published><updated>2009-03-25T23:50:59.575-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Expense report number postfixed with &quot;-1&quot;'/><title type='text'>Expense report number postfixed with "-1"</title><content type='html'>When an user submitted an expense report, his expense report number was discarded and a new expense report was generated with "-1" postfixed. He came up with the following questions.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Question:&lt;/span&gt; Why does my original expense report have a "-1" after it?&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Answer:&lt;/span&gt; The expense report was short-paid by Accounts Payable – probably for lack of a receipt. Please contact your AP department and submit receipts where required.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Question:&lt;/span&gt; Why do I have a new expense report number?&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Answer:&lt;/span&gt; The original expense report included two or more items.  At least one item was short-paid by Accounts Payable.  The original expense report was partially paid.  The short-paid amount was given a document ID with a “-1” suffix.  A new expense report was created to capture the amount of the short payment.  Ultimately, there will be two payments which are associated with two different expense report numbers.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/144851838473318802-2081537321227901499?l=arunrathod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrathod.blogspot.com/feeds/2081537321227901499/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=144851838473318802&amp;postID=2081537321227901499' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/2081537321227901499'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/2081537321227901499'/><link rel='alternate' type='text/html' href='http://arunrathod.blogspot.com/2009/03/expense-report-number-postfixed-with-1.html' title='Expense report number postfixed with &quot;-1&quot;'/><author><name>Arun Kumar S.R</name><uri>http://www.blogger.com/profile/14745466774124137964</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_pBTgD4-jQls/SC-82Kq7MJI/AAAAAAAAAOs/e_Invzqp9e0/S220/DSC05800.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-144851838473318802.post-2856813030014643635</id><published>2009-03-22T23:39:00.000-07:00</published><updated>2009-03-23T04:29:40.208-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Workflow Issue'/><category scheme='http://www.blogger.com/atom/ns#' term='wf_engine.startprocess'/><category scheme='http://www.blogger.com/atom/ns#' term='wf_engine.createprocess'/><category scheme='http://www.blogger.com/atom/ns#' term='wf_purge.items'/><category scheme='http://www.blogger.com/atom/ns#' term='wf_engine.abortProcess'/><category scheme='http://www.blogger.com/atom/ns#' term='How to assign workflow to another version'/><title type='text'>Workflow Issue</title><content type='html'>Some time back we had a requirement to resolve the timecard workflows that were in error status at PROD. After some analysis we found that someone has recompiled the older version of the workflow at PROD and as the underlying workflow package was referring to some attributes which were missing in the older workflow the process was going in error status. We had a difficult task ahead..&lt;br /&gt; &lt;br /&gt;As it was a weekend there were many timecards that were been submitted and went in error status and all these timecards have to be approved in another couple of days by there respective approving authority failing which these timecards would not be considered for accounting.. Initially to resolve the issue the only way we thought would be possible is to recompile the original workflow, cancel all the timecards manually at PROD and inform all the users with error timecards to resubmit again. Informing to all the users of this count was a hectic task.&lt;br /&gt;&lt;br /&gt;We did some further investigations in the workflow developer’s guide and found that we can actually abort the existing process and resubmit the timecards with same item key without the need cancel and inform the users to resubmit the timecards. We tried this process initially at DEV instance and found that it really worked as we expected.&lt;br /&gt;&lt;br /&gt;In short the process what we followed is as follows:&lt;br /&gt;1. Recompiled the original workflow.&lt;br /&gt;2. Created a temp table to store the important attribute values for the error workflows. &lt;br /&gt;3. Performed the Abort, Purge, Create and Start process using standard oracle workflow packages. (Before Starting the new process we set the workflow attributes from the temp table.). The below is the code which we used to perform all the process mentioned in the step 3:&lt;br /&gt;&lt;br /&gt;/************************************************************&lt;br /&gt;1. Below code is used to retrieve the important attribute values from the workflow table for the error timecards and store them in a temp table.&lt;br /&gt;************************************************************/&lt;br /&gt;&lt;br /&gt;DECLARE&lt;br /&gt;   CURSOR c1&lt;br /&gt;   IS&lt;br /&gt;      SELECT DISTINCT item_key&lt;br /&gt;                 FROM wf_item_activity_statuses&lt;br /&gt;                WHERE activity_status = 'ERROR'&lt;br /&gt;                  AND activity_result_code = '#EXCEPTION'&lt;br /&gt;                  AND item_type = 'PATCARD'&lt;br /&gt;                  AND error_stack LIKE '%CHECKPERSONCOSTINGS%';&lt;br /&gt;BEGIN&lt;br /&gt;   FOR c1_rec IN c1&lt;br /&gt;   LOOP&lt;br /&gt;      INSERT INTO xx_wf_temp&lt;br /&gt;         (SELECT 'N', c1_rec.item_key,&lt;br /&gt;                 (SELECT number_value&lt;br /&gt;                    FROM wf_item_attribute_values&lt;br /&gt;                   WHERE item_key = c1_rec.item_key&lt;br /&gt;                     AND NAME = 'APPLICATION_ID'&lt;br /&gt;                     AND item_type = 'PATCARD') application_id,&lt;br /&gt;                 (SELECT number_value&lt;br /&gt;                    FROM wf_item_attribute_values&lt;br /&gt;                   WHERE item_key = c1_rec.item_key&lt;br /&gt;                     AND NAME = 'APPROVER_COUNT'&lt;br /&gt;                     AND item_type = 'PATCARD') approver_count,&lt;br /&gt;                 (SELECT text_value&lt;br /&gt;                    FROM wf_item_attribute_values&lt;br /&gt;                   WHERE item_key = c1_rec.item_key&lt;br /&gt;                     AND NAME = 'COMMENT_DOC'&lt;br /&gt;                     AND item_type = 'PATCARD') comment_doc,&lt;br /&gt;                 (SELECT text_value&lt;br /&gt;                    FROM wf_item_attribute_values&lt;br /&gt;                   WHERE item_key = c1_rec.item_key&lt;br /&gt;                     AND NAME = 'EMPLOYEE_NAME'&lt;br /&gt;                     AND item_type = 'PATCARD') employee_name,&lt;br /&gt;                 (SELECT number_value&lt;br /&gt;                    FROM wf_item_attribute_values&lt;br /&gt;                   WHERE item_key = c1_rec.item_key&lt;br /&gt;                     AND NAME = 'EXPENDITURE_ID'&lt;br /&gt;                     AND item_type = 'PATCARD') expenditure_id,&lt;br /&gt;                 (SELECT text_value&lt;br /&gt;                    FROM wf_item_attribute_values&lt;br /&gt;                   WHERE item_key = c1_rec.item_key&lt;br /&gt;                     AND NAME = 'LINE_TABLE'&lt;br /&gt;                     AND item_type = 'PATCARD') line_table,&lt;br /&gt;                 (SELECT text_value&lt;br /&gt;                    FROM wf_item_attribute_values&lt;br /&gt;                   WHERE item_key = c1_rec.item_key&lt;br /&gt;                     AND NAME = 'MANAGER_NAME'&lt;br /&gt;                     AND item_type = 'PATCARD') manager_name,&lt;br /&gt;                 (SELECT number_value&lt;br /&gt;                    FROM wf_item_attribute_values&lt;br /&gt;                   WHERE item_key = c1_rec.item_key&lt;br /&gt;                     AND NAME = 'ORG_ID'&lt;br /&gt;                     AND item_type = 'PATCARD') org_id,&lt;br /&gt;                 (SELECT text_value&lt;br /&gt;                    FROM wf_item_attribute_values&lt;br /&gt;                   WHERE item_key = c1_rec.item_key&lt;br /&gt;                     AND NAME = 'PREPARER_NAME'&lt;br /&gt;                     AND item_type = 'PATCARD') preparer_name,&lt;br /&gt;                 (SELECT number_value&lt;br /&gt;                    FROM wf_item_attribute_values&lt;br /&gt;                   WHERE item_key = c1_rec.item_key&lt;br /&gt;                     AND NAME = 'RESPONSIBILITY_ID'&lt;br /&gt;                     AND item_type = 'PATCARD') responsibility_id,&lt;br /&gt;                 (SELECT text_value&lt;br /&gt;                    FROM wf_item_attribute_values&lt;br /&gt;                   WHERE item_key = c1_rec.item_key&lt;br /&gt;                     AND NAME = 'TIMECARD_DETAILS'&lt;br /&gt;                     AND item_type = 'PATCARD') timecard_details,&lt;br /&gt;                 (SELECT text_value&lt;br /&gt;                    FROM wf_item_attribute_values&lt;br /&gt;                   WHERE item_key = c1_rec.item_key&lt;br /&gt;                     AND NAME = 'TIMECARD_NUMBER'&lt;br /&gt;                     AND item_type = 'PATCARD') timecard_number,&lt;br /&gt;                 (SELECT number_value&lt;br /&gt;                    FROM wf_item_attribute_values&lt;br /&gt;                   WHERE item_key = c1_rec.item_key&lt;br /&gt;                     AND NAME = 'TOTAL_HOURS'&lt;br /&gt;                     AND item_type = 'PATCARD') total_hours,&lt;br /&gt;                 (SELECT number_value&lt;br /&gt;                    FROM wf_item_attribute_values&lt;br /&gt;                   WHERE item_key = c1_rec.item_key&lt;br /&gt;                     AND NAME = 'USER_ID'&lt;br /&gt;                     AND item_type = 'PATCARD') user_id,&lt;br /&gt;                 (SELECT date_value&lt;br /&gt;                    FROM wf_item_attribute_values&lt;br /&gt;                   WHERE item_key = c1_rec.item_key&lt;br /&gt;                     AND NAME = 'WEEK_END_DATE'&lt;br /&gt;                     AND item_type = 'PATCARD') week_end_date,&lt;br /&gt;                 (SELECT number_value&lt;br /&gt;                    FROM wf_item_attribute_values&lt;br /&gt;                   WHERE item_key = c1_rec.item_key&lt;br /&gt;                     AND NAME = 'EMPLOYEE_ID'&lt;br /&gt;                     AND item_type = 'PATCARD') employee_id,&lt;br /&gt;                 (SELECT number_value&lt;br /&gt;                    FROM wf_item_attribute_values&lt;br /&gt;                   WHERE item_key = c1_rec.item_key&lt;br /&gt;                     AND NAME = 'MANAGER_ID'&lt;br /&gt;                     AND item_type = 'PATCARD') manager_id,&lt;br /&gt;                 (SELECT number_value&lt;br /&gt;                    FROM wf_item_attribute_values&lt;br /&gt;                   WHERE item_key = c1_rec.item_key&lt;br /&gt;                     AND NAME = 'PREPARER_ID'&lt;br /&gt;                     AND item_type = 'PATCARD') preparer_id,&lt;br /&gt;                 (SELECT text_value&lt;br /&gt;                    FROM wf_item_attribute_values&lt;br /&gt;                   WHERE item_key = c1_rec.item_key&lt;br /&gt;                     AND NAME = 'EMPLOYEE_DISP_NAME'&lt;br /&gt;                     AND item_type = 'PATCARD') employee_disp_name,&lt;br /&gt;                 (SELECT text_value&lt;br /&gt;                    FROM wf_item_attribute_values&lt;br /&gt;                   WHERE item_key = c1_rec.item_key&lt;br /&gt;                     AND NAME = 'MANAGER_DISP_NAME'&lt;br /&gt;                     AND item_type = 'PATCARD') manager_disp_name,&lt;br /&gt;                 (SELECT text_value&lt;br /&gt;                    FROM wf_item_attribute_values&lt;br /&gt;                   WHERE item_key = c1_rec.item_key&lt;br /&gt;                     AND NAME = 'PREPARER_DISP_NAME'&lt;br /&gt;                     AND item_type = 'PATCARD') preparer_disp_name&lt;br /&gt;            FROM DUAL);&lt;br /&gt;&lt;br /&gt;      COMMIT;&lt;br /&gt;   END LOOP;&lt;br /&gt;END;&lt;br /&gt;&lt;br /&gt;/************************************************************&lt;br /&gt;2. Basically to delete the workflows in open status, we need to abort workflow process first so they will be eligible for purge process. The below code is used to perform the abort process on the workflow. Once the code is executed the workflow status would be set to Completed.&lt;br /&gt;************************************************************/&lt;br /&gt;&lt;br /&gt;DECLARE&lt;br /&gt;   CURSOR c1&lt;br /&gt;   IS&lt;br /&gt;      SELECT   *&lt;br /&gt;          FROM xx_wf_temp&lt;br /&gt;         WHERE status_stg = 'N'&lt;br /&gt;      ORDER BY item_key ASC;&lt;br /&gt;BEGIN&lt;br /&gt;   FOR cur_rec IN c1&lt;br /&gt;   LOOP&lt;br /&gt;      wf_engine.abortprocess ('PATCARD', --Item Type&lt;br /&gt;                              cur_rec.item_key, -- Item Key&lt;br /&gt;                              'PA_TCARD_APPROVAL_PROCESS', -- Parent Process&lt;br /&gt;                              'CANCEL' -- Process&lt;br /&gt;                             );&lt;br /&gt;      COMMIT;&lt;br /&gt;&lt;br /&gt;      UPDATE xx_wf_temp&lt;br /&gt;         SET status_stg = 'A'&lt;br /&gt;       WHERE status_stg = 'N' AND item_key = cur_rec.item_key;&lt;br /&gt;&lt;br /&gt;      COMMIT;&lt;br /&gt;   END LOOP;&lt;br /&gt;END;&lt;br /&gt;&lt;br /&gt;/************************************************************&lt;br /&gt;3. The below code is used to perform the purge process for the error workflow timecards from the oracle workflow base tables.&lt;br /&gt;************************************************************/&lt;br /&gt;&lt;br /&gt;DECLARE&lt;br /&gt;   CURSOR c1&lt;br /&gt;   IS&lt;br /&gt;      SELECT   *&lt;br /&gt;          FROM xx_wf_temp&lt;br /&gt;         WHERE status_stg = 'A'&lt;br /&gt;      ORDER BY item_key ASC;&lt;br /&gt;BEGIN&lt;br /&gt;   FOR cur_rec IN c1&lt;br /&gt;   LOOP&lt;br /&gt;      wf_purge.items ('PATCARD', cur_rec.item_key, SYSDATE, TRUE, TRUE);&lt;br /&gt;      COMMIT;&lt;br /&gt;&lt;br /&gt;      UPDATE xx_wf_temp&lt;br /&gt;         SET status_stg = 'P'&lt;br /&gt;       WHERE status_stg = 'A' AND item_key = cur_rec.item_key;&lt;br /&gt;&lt;br /&gt;      COMMIT;&lt;br /&gt;   END LOOP;&lt;br /&gt;END;&lt;br /&gt;&lt;br /&gt;/************************************************************&lt;br /&gt;4. The below code is used to create the timecard again in Oracle with the same item key and with the same version of the workflow existing in Oracle now..&lt;br /&gt;************************************************************/&lt;br /&gt;&lt;br /&gt;DECLARE&lt;br /&gt;   CURSOR c1&lt;br /&gt;   IS&lt;br /&gt;      SELECT   *&lt;br /&gt;          FROM xx_wf_temp&lt;br /&gt;         WHERE status_stg = 'P'&lt;br /&gt;      ORDER BY item_key ASC;&lt;br /&gt;BEGIN&lt;br /&gt;   FOR cur_rec IN c1&lt;br /&gt;   LOOP&lt;br /&gt;      wf_engine.createprocess ('PATCARD',&lt;br /&gt;                               cur_rec.item_key,&lt;br /&gt;                               'PA_TCARD_APPROVAL_PROCESS',&lt;br /&gt;                               NULL,&lt;br /&gt;                               cur_rec.preparer_name&lt;br /&gt;                              );&lt;br /&gt;      COMMIT;&lt;br /&gt;&lt;br /&gt;      UPDATE xx_wf_temp&lt;br /&gt;         SET status_stg = 'C'&lt;br /&gt;       WHERE status_stg = 'P' AND item_key = cur_rec.item_key;&lt;br /&gt;&lt;br /&gt;      COMMIT;&lt;br /&gt;   END LOOP;&lt;br /&gt;END;&lt;br /&gt;&lt;br /&gt;/************************************************************&lt;br /&gt;5. In the below code we are setting the attributes from the temp table in which we have stored all the values at Step 1 and would be starting the workflow process.&lt;br /&gt;/************************************************************&lt;br /&gt;&lt;br /&gt;DECLARE&lt;br /&gt;   CURSOR c1&lt;br /&gt;   IS&lt;br /&gt;      SELECT   *&lt;br /&gt;          FROM xx_wf_temp&lt;br /&gt;         WHERE status_stg = 'C'&lt;br /&gt;      ORDER BY item_key ASC;&lt;br /&gt;BEGIN&lt;br /&gt;   FOR cur_rec IN c1&lt;br /&gt;   LOOP&lt;br /&gt;      wf_engine.setitemattrtext (itemtype      =&gt; 'PATCARD',&lt;br /&gt;                                 itemkey       =&gt; cur_rec.item_key,&lt;br /&gt;                                 aname         =&gt; 'COMMENT_DOC',&lt;br /&gt;                                 avalue        =&gt; cur_rec.comment_doc&lt;br /&gt;                                );&lt;br /&gt;      wf_engine.setitemattrtext (itemtype      =&gt; 'PATCARD',&lt;br /&gt;                                 itemkey       =&gt; cur_rec.item_key,&lt;br /&gt;                                 aname         =&gt; 'EMPLOYEE_NAME',&lt;br /&gt;                                 avalue        =&gt; cur_rec.employee_name&lt;br /&gt;                                );&lt;br /&gt;      wf_engine.setitemattrdocument (itemtype        =&gt; 'PATCARD',&lt;br /&gt;                                     itemkey         =&gt; cur_rec.item_key,&lt;br /&gt;                                     aname           =&gt; 'LINE_TABLE',&lt;br /&gt;                                     documentid      =&gt; cur_rec.line_table&lt;br /&gt;                                    );&lt;br /&gt;      wf_engine.setitemattrtext (itemtype      =&gt; 'PATCARD',&lt;br /&gt;                                 itemkey       =&gt; cur_rec.item_key,&lt;br /&gt;                                 aname         =&gt; 'MANAGER_NAME',&lt;br /&gt;                                 avalue        =&gt; cur_rec.manager_name&lt;br /&gt;                                );&lt;br /&gt;      wf_engine.setitemattrtext (itemtype      =&gt; 'PATCARD',&lt;br /&gt;                                 itemkey       =&gt; cur_rec.item_key,&lt;br /&gt;                                 aname         =&gt; 'PREPARER_NAME',&lt;br /&gt;                                 avalue        =&gt; cur_rec.preparer_name&lt;br /&gt;                                );&lt;br /&gt;      wf_engine.setitemattrtext (itemtype      =&gt; 'PATCARD',&lt;br /&gt;                                 itemkey       =&gt; cur_rec.item_key,&lt;br /&gt;                                 aname         =&gt; 'TIMECARD_DETAILS',&lt;br /&gt;                                 avalue        =&gt; cur_rec.timecard_details&lt;br /&gt;                                );&lt;br /&gt;      wf_engine.setitemattrtext (itemtype      =&gt; 'PATCARD',&lt;br /&gt;                                 itemkey       =&gt; cur_rec.item_key,&lt;br /&gt;                                 aname         =&gt; 'TIMECARD_NUMBER',&lt;br /&gt;                                 avalue        =&gt; cur_rec.timecard_number&lt;br /&gt;                                );&lt;br /&gt;      wf_engine.setitemattrtext (itemtype      =&gt; 'PATCARD',&lt;br /&gt;                                 itemkey       =&gt; cur_rec.item_key,&lt;br /&gt;                                 aname         =&gt; 'EMPLOYEE_DISP_NAME',&lt;br /&gt;                                 avalue        =&gt; cur_rec.employee_disp_name&lt;br /&gt;                                );&lt;br /&gt;      wf_engine.setitemattrtext (itemtype      =&gt; 'PATCARD',&lt;br /&gt;                                 itemkey       =&gt; cur_rec.item_key,&lt;br /&gt;                                 aname         =&gt; 'MANAGER_DISP_NAME',&lt;br /&gt;                                 avalue        =&gt; cur_rec.manager_disp_name&lt;br /&gt;                                );&lt;br /&gt;      wf_engine.setitemattrtext (itemtype      =&gt; 'PATCARD',&lt;br /&gt;                                 itemkey       =&gt; cur_rec.item_key,&lt;br /&gt;                                 aname         =&gt; 'PREPARER_DISP_NAME',&lt;br /&gt;                                 avalue        =&gt; cur_rec.preparer_disp_name&lt;br /&gt;                                );&lt;br /&gt;      wf_engine.setitemattrnumber (itemtype      =&gt; 'PATCARD',&lt;br /&gt;                                   itemkey       =&gt; cur_rec.item_key,&lt;br /&gt;                                   aname         =&gt; 'APPLICATION_ID',&lt;br /&gt;                                   avalue        =&gt; cur_rec.application_id&lt;br /&gt;                                  );&lt;br /&gt;      wf_engine.setitemattrnumber (itemtype      =&gt; 'PATCARD',&lt;br /&gt;                                   itemkey       =&gt; cur_rec.item_key,&lt;br /&gt;                                   aname         =&gt; 'APPROVER_COUNT',&lt;br /&gt;                                   avalue        =&gt; cur_rec.approver_count&lt;br /&gt;                                  );&lt;br /&gt;      wf_engine.setitemattrnumber (itemtype      =&gt; 'PATCARD',&lt;br /&gt;                                   itemkey       =&gt; cur_rec.item_key,&lt;br /&gt;                                   aname         =&gt; 'EXPENDITURE_ID',&lt;br /&gt;                                   avalue        =&gt; cur_rec.expenditure_id&lt;br /&gt;                                  );&lt;br /&gt;      wf_engine.setitemattrnumber (itemtype      =&gt; 'PATCARD',&lt;br /&gt;                                   itemkey       =&gt; cur_rec.item_key,&lt;br /&gt;                                   aname         =&gt; 'ORG_ID',&lt;br /&gt;                                   avalue        =&gt; cur_rec.org_id&lt;br /&gt;                                  );&lt;br /&gt;      wf_engine.setitemattrnumber (itemtype      =&gt; 'PATCARD',&lt;br /&gt;                                   itemkey       =&gt; cur_rec.item_key,&lt;br /&gt;                                   aname         =&gt; 'RESPONSIBILITY_ID',&lt;br /&gt;                                   avalue        =&gt; cur_rec.responsibility_id&lt;br /&gt;                                  );&lt;br /&gt;      wf_engine.setitemattrnumber (itemtype      =&gt; 'PATCARD',&lt;br /&gt;                                   itemkey       =&gt; cur_rec.item_key,&lt;br /&gt;                                   aname         =&gt; 'TOTAL_HOURS',&lt;br /&gt;                                   avalue        =&gt; cur_rec.total_hours&lt;br /&gt;                                  );&lt;br /&gt;      wf_engine.setitemattrnumber (itemtype      =&gt; 'PATCARD',&lt;br /&gt;                                   itemkey       =&gt; cur_rec.item_key,&lt;br /&gt;                                   aname         =&gt; 'USER_ID',&lt;br /&gt;                                   avalue        =&gt; cur_rec.user_id&lt;br /&gt;                                  );&lt;br /&gt;      wf_engine.setitemattrdate (itemtype      =&gt; 'PATCARD',&lt;br /&gt;                                 itemkey       =&gt; cur_rec.item_key,&lt;br /&gt;                                 aname         =&gt; 'WEEK_END_DATE',&lt;br /&gt;                                 avalue        =&gt; cur_rec.week_end_date&lt;br /&gt;                                );&lt;br /&gt;      wf_engine.setitemattrnumber (itemtype      =&gt; 'PATCARD',&lt;br /&gt;                                   itemkey       =&gt; cur_rec.item_key,&lt;br /&gt;                                   aname         =&gt; 'EMPLOYEE_ID',&lt;br /&gt;                                   avalue        =&gt; cur_rec.employee_id&lt;br /&gt;                                  );&lt;br /&gt;      wf_engine.setitemattrnumber (itemtype      =&gt; 'PATCARD',&lt;br /&gt;                                   itemkey       =&gt; cur_rec.item_key,&lt;br /&gt;                                   aname         =&gt; 'MANAGER_ID',&lt;br /&gt;                                   avalue        =&gt; cur_rec.manager_id&lt;br /&gt;                                  );&lt;br /&gt;      wf_engine.setitemattrnumber (itemtype      =&gt; 'PATCARD',&lt;br /&gt;                                   itemkey       =&gt; cur_rec.item_key,&lt;br /&gt;                                   aname         =&gt; 'PREPARER_ID',&lt;br /&gt;                                   avalue        =&gt; cur_rec.preparer_id&lt;br /&gt;                                  );&lt;br /&gt;      wf_engine.startprocess ('PATCARD', cur_rec.item_key);&lt;br /&gt;      COMMIT;&lt;br /&gt;&lt;br /&gt;      UPDATE xx_wf_temp&lt;br /&gt;         SET status_stg = 'S'&lt;br /&gt;       WHERE status_stg = 'C' AND item_key = cur_rec.item_key;&lt;br /&gt;&lt;br /&gt;      COMMIT;&lt;br /&gt;   END LOOP;&lt;br /&gt;END;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/144851838473318802-2856813030014643635?l=arunrathod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrathod.blogspot.com/feeds/2856813030014643635/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=144851838473318802&amp;postID=2856813030014643635' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/2856813030014643635'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/2856813030014643635'/><link rel='alternate' type='text/html' href='http://arunrathod.blogspot.com/2009/03/workflow-issue.html' title='Workflow Issue'/><author><name>Arun Kumar S.R</name><uri>http://www.blogger.com/profile/14745466774124137964</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_pBTgD4-jQls/SC-82Kq7MJI/AAAAAAAAAOs/e_Invzqp9e0/S220/DSC05800.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-144851838473318802.post-809919344052037501</id><published>2009-03-05T00:34:00.001-08:00</published><updated>2009-03-05T00:34:22.991-08:00</updated><title type='text'>Check out Jaago re! - One Billion Votes</title><content type='html'>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;I want you to take a look at: &lt;a href="http://tellafriend.socialtwist.com:80/web/redirect.jsp?742574568068506860011"&gt;Jaago re! - One Billion Votes&lt;/a&gt; &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/144851838473318802-809919344052037501?l=arunrathod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrathod.blogspot.com/feeds/809919344052037501/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=144851838473318802&amp;postID=809919344052037501' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/809919344052037501'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/809919344052037501'/><link rel='alternate' type='text/html' href='http://arunrathod.blogspot.com/2009/03/check-out-jaago-re-one-billion-votes.html' title='Check out Jaago re! - One Billion Votes'/><author><name>Arun Kumar S.R</name><uri>http://www.blogger.com/profile/14745466774124137964</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_pBTgD4-jQls/SC-82Kq7MJI/AAAAAAAAAOs/e_Invzqp9e0/S220/DSC05800.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-144851838473318802.post-727756640247356331</id><published>2009-03-04T21:48:00.000-08:00</published><updated>2009-03-04T21:50:43.009-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Understanding and Using API User Hooks'/><title type='text'>Understanding and Using API User Hooks</title><content type='html'>You can get all the information of API User Hooks in the metalink with the Doc ID:  73170.1&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/144851838473318802-727756640247356331?l=arunrathod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrathod.blogspot.com/feeds/727756640247356331/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=144851838473318802&amp;postID=727756640247356331' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/727756640247356331'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/727756640247356331'/><link rel='alternate' type='text/html' href='http://arunrathod.blogspot.com/2009/03/understanding-and-using-api-user-hooks.html' title='Understanding and Using API User Hooks'/><author><name>Arun Kumar S.R</name><uri>http://www.blogger.com/profile/14745466774124137964</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_pBTgD4-jQls/SC-82Kq7MJI/AAAAAAAAAOs/e_Invzqp9e0/S220/DSC05800.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-144851838473318802.post-8625010856608221739</id><published>2009-03-04T21:32:00.000-08:00</published><updated>2009-03-04T21:33:16.378-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Retrieve the correct person type in HRMS'/><title type='text'>Retrieve the correct person type in HRMS</title><content type='html'>Use the below standard oracle function to retrieve the correct person type for an employee.&lt;br /&gt;&lt;br /&gt;SELECT hr_person_type_usage_info.get_user_person_type (SYSDATE, &amp;person_id)&lt;br /&gt;  FROM DUAL&lt;br /&gt;&lt;br /&gt;If you want to retrieve the latest person type then perform the instr and substr on the output of the above query.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/144851838473318802-8625010856608221739?l=arunrathod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrathod.blogspot.com/feeds/8625010856608221739/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=144851838473318802&amp;postID=8625010856608221739' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/8625010856608221739'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/8625010856608221739'/><link rel='alternate' type='text/html' href='http://arunrathod.blogspot.com/2009/03/retrieve-correct-person-type-in-hrms.html' title='Retrieve the correct person type in HRMS'/><author><name>Arun Kumar S.R</name><uri>http://www.blogger.com/profile/14745466774124137964</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_pBTgD4-jQls/SC-82Kq7MJI/AAAAAAAAAOs/e_Invzqp9e0/S220/DSC05800.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-144851838473318802.post-6436964966108611365</id><published>2009-03-03T01:43:00.000-08:00</published><updated>2009-03-03T01:44:31.487-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Simple Script to load the HR Locations using API'/><title type='text'>Simple Script to load the HR Locations using API</title><content type='html'>DECLARE&lt;br /&gt;   l_location_id             NUMBER;&lt;br /&gt;   l_object_version_number   NUMBER;&lt;br /&gt;BEGIN&lt;br /&gt;   apps.hr_location_api.create_location&lt;br /&gt;                          (p_effective_date             =&gt; SYSDATE,&lt;br /&gt;                           p_location_code              =&gt; 'XXXXX',&lt;br /&gt;                           p_description                =&gt; 'XXX Location',&lt;br /&gt;                           p_address_line_1             =&gt; 'XXX Rd',&lt;br /&gt;                           p_country                    =&gt; 'US',&lt;br /&gt;                           p_postal_code                =&gt; '12345',&lt;br /&gt;                           p_telephone_number_1         =&gt; '1234567890',&lt;br /&gt;                           p_town_or_city               =&gt; 'XXX',&lt;br /&gt;                           p_business_group_id          =&gt; '0',&lt;br /&gt;                           p_style                      =&gt; 'US_GLB',&lt;br /&gt;                           p_location_id                =&gt; l_location_id,&lt;br /&gt;                           p_object_version_number      =&gt; l_object_version_number&lt;br /&gt;                          );&lt;br /&gt;   COMMIT;&lt;br /&gt;END;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/144851838473318802-6436964966108611365?l=arunrathod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrathod.blogspot.com/feeds/6436964966108611365/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=144851838473318802&amp;postID=6436964966108611365' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/6436964966108611365'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/6436964966108611365'/><link rel='alternate' type='text/html' href='http://arunrathod.blogspot.com/2009/03/simple-script-to-load-hr-locations.html' title='Simple Script to load the HR Locations using API'/><author><name>Arun Kumar S.R</name><uri>http://www.blogger.com/profile/14745466774124137964</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_pBTgD4-jQls/SC-82Kq7MJI/AAAAAAAAAOs/e_Invzqp9e0/S220/DSC05800.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-144851838473318802.post-3186570814962606761</id><published>2009-02-18T22:55:00.000-08:00</published><updated>2009-02-18T22:58:36.480-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='11i Oracle General Ledger Technical Document'/><title type='text'>11i Oracle General Ledger Technical Document</title><content type='html'>Sets of Books and Charts of Accounts govern Oracle’s General Ledger. The set of books keeps what currency, chart of accounts structure and calendar that the book will use.  The main tables for this are&lt;br /&gt;GL_SETS_OF_BOOKS&lt;br /&gt;FND_ID_FLEX_STRUCTURES&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;JOURNAL ENTRIES&lt;/span&gt;&lt;br /&gt;Journal Entries can be added several ways.  By upload from and external source, upload through ADI, transfer from the various modules, or manually keyed into the application from the form.&lt;br /&gt;&lt;br /&gt;&lt;u&gt;Manual Entry&lt;/u&gt;  - The responsibility that the user is in for the entry determines the chart of accounts structure and set of books.   The user will enter a Batch name and period (which will default to the current open period).  The user will then enter a header record with a description, and a journal category chosen from the list of valid journal categories.  The user may also override the currency defaulted from the set of books.  This will cause the entry to be booked to that currency but it will translate to the functional currency of the set of books.  To translate, it will use the data from the GL_DAILY_RATES table. The user will last enter the lines for the journal.  The main tables needed for this are:&lt;br /&gt;GL_CODE_COMBINATIONS&lt;br /&gt;GL_JE_BATCHES&lt;br /&gt;GL_JE_HEADERS&lt;br /&gt;GL_JE_LINES&lt;br /&gt;GL_JE_CATEGORIES&lt;br /&gt;GL_DAILY_RATES (If needed)&lt;br /&gt;&lt;br /&gt;&lt;u&gt;Imported Journals&lt;/u&gt; - Journals can also come into the general ledger from the other financial modules or by an integration tool (either custom built of ADI). The path for all of these types of entries is the same. Data flows through the GL_INTERFACE where is groups the source into batches, headers and lines based on where the data originates. When the Journal Import process is submitted either manually as a concurrent process or by a transfer process from the other modules. A journal batch, header and lines are created in the base tables exactly like a fully manual journal entry. The processes that are submitted from the other modules to transfer data into the GL are  &lt;br /&gt;Payables Import to General Ledger&lt;br /&gt;Create Journal Entries (Fixed Assets)&lt;br /&gt;PRC: Interface Revenue to General Ledger (Projects)&lt;br /&gt;Interface Receivables to General Ledger &lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Main GL tables &lt;/span&gt;&lt;br /&gt;GL_INTERFACE&lt;br /&gt;GL_JE_BATCHES&lt;br /&gt;GL_JE_HEADERS&lt;br /&gt;GL_JE_LINES&lt;br /&gt;GL_JE_SOURCES&lt;br /&gt;GL_JE_CATEGORIES&lt;br /&gt;GL_SETS_OF_BOOKS&lt;br /&gt;GL_CODE_COMBINATIONS&lt;br /&gt;GL_PERIODS&lt;br /&gt;GL_CURRENCIES&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;JOURNAL POSTING&lt;/span&gt; &lt;br /&gt;When the user has completed a balance journal entry or the import process completes with no errors, the entries can be posted.  The posting is a concurrent process submitted by the post form.  When the entry is posted, the data is copied from the base tables into a temporary table called GL_POSTING_INTERIM.  Here the program will use the information to group all lines with the same Currency, Code Combination, Set of Books, and Period to be used to update GL_BALANCES.   The balances table will be updated with the debits and credits.  The batches, headers and lines tables will also be updated for posting status.  When the post is complete, the posting interim table is cleared.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Main tables&lt;/span&gt;&lt;br /&gt;GL_POSTING_INTERIM&lt;br /&gt;GL_JE_BATCHES&lt;br /&gt;GL_JE_HEADERS&lt;br /&gt;GL_JE_LINES&lt;br /&gt;GL_BALANCES&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;BALANCE TRANSLATIONS&lt;/span&gt;&lt;br /&gt;Balances that require translation into one currency for reporting and/or consolidation purposes must run the translation process.  This process requires that there be a period rate entered for set of books functional currency to the translation currency, i.e. EUR to USD.  This rate is entered manually using the period rates form for each set of books.  The user will then submit a process using the translation form to translate the balances to the new currency.  The process will perform the following query to determine the balances available for translation. &lt;br /&gt;&lt;br /&gt;SELECT DISTINCT CC.SEGMENT1&lt;br /&gt;FROM  GL_CODE_COMBINATIONS CC, GL_BALANCES GBAL&lt;br /&gt;WHERE GBAL.CODE_COMBINATION_ID = CC.CODE_COMBINATION_ID&lt;br /&gt;AND GBAL.ACTUAL_FLAG = (user entered)&lt;br /&gt;AND GBAL.SET_OF_BOOKS_ID = (from the set of books assigned to that responsibility)&lt;br /&gt;AND GBAL.PERIOD_NAME =  (user entered)&lt;br /&gt;AND GBAL.CURRENCY_CODE =  (functional currency for the set of books)&lt;br /&gt;AND GBAL.TEMPLATE_ID IS NULL&lt;br /&gt;AND CC.DETAIL_POSTING_ALLOWED_FLAG = 'Y'&lt;br /&gt;&lt;br /&gt;SELECT  EARLIEST_EVER_PERIOD_NAME,&lt;br /&gt;        EARLIEST_NEVER_PERIOD_NAME,&lt;br /&gt;       EARLIEST_NEVER_PERIOD_NUM,&lt;br /&gt;        EARLIEST_NEVER_PERIOD_YEAR&lt;br /&gt;FROM   GL_TRANSLATION_TRACKING&lt;br /&gt;WHERE  BAL_SEG_VALUE = :bal_seg_value&lt;br /&gt;AND    TARGET_CURRENCY = (user entered)&lt;br /&gt;AND    SET_OF_BOOKS_ID = (from the set of books assigned to that responsibility)&lt;br /&gt;AND    AVERAGE_TRANSLATION_FLAG = 'N'&lt;br /&gt;AND   ACTUAL_FLAG = 'A'&lt;br /&gt;&lt;br /&gt;The process will also retrieve the historical rates for equity accounts from the GL_HISTORICAL_RATES table for the prior period and insert new records based on a profile option set for the module (Year to Date or Period To Date).&lt;br /&gt;&lt;br /&gt;The process will then insert into a temporary table all of the balances to be translated called the GL_TRANSLATION_INTERIM.  From here the process will translate the balances and insert those records into the GL_XLATE_POSTING_INTERIM table.  Last the data will be inserted into or updated in the GL_BALANCES table.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Main tables&lt;/span&gt;&lt;br /&gt;GL_PERIOD_RATES&lt;br /&gt;GL_HISTORICAL_RATES&lt;br /&gt;GL_TRANSLATION_TRACKING&lt;br /&gt;GL_TRANSALATION_INTERIM&lt;br /&gt;GL_XLATE_POSTING_INTERIM&lt;br /&gt;GL_BALANCES&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/144851838473318802-3186570814962606761?l=arunrathod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrathod.blogspot.com/feeds/3186570814962606761/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=144851838473318802&amp;postID=3186570814962606761' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/3186570814962606761'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/3186570814962606761'/><link rel='alternate' type='text/html' href='http://arunrathod.blogspot.com/2009/02/11i-oracle-general-ledger-technical.html' title='11i Oracle General Ledger Technical Document'/><author><name>Arun Kumar S.R</name><uri>http://www.blogger.com/profile/14745466774124137964</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_pBTgD4-jQls/SC-82Kq7MJI/AAAAAAAAAOs/e_Invzqp9e0/S220/DSC05800.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-144851838473318802.post-330503582771235968</id><published>2009-02-18T22:36:00.000-08:00</published><updated>2010-03-02T03:12:30.984-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='11i Oracle Fixed Asset Technical Document'/><title type='text'>11i Oracle Fixed Asset Technical Document</title><content type='html'>In Oracle Fixed Assets it is important to remember that most of the processes are c programs.  All current asset records from the tables have an NULL DATE_INEFFECTIVE and/or NULL TRANSACTION_HEADER_ID_OUT.  And the application is governed by books which point to a GL Set Of Books.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;FA ADDITIONS&lt;/span&gt;&lt;br /&gt;Additions can come into 2 ways.  Directly adding into the system manually or by entry through the Mass Additions tables.&lt;br /&gt;&lt;br /&gt;&lt;u&gt;Manual Entry&lt;/u&gt; - User enters data through the form and the information is inserted into the following tables&lt;br /&gt;FA_ADDITIONS&lt;br /&gt;FA_BOOKS&lt;br /&gt;FA_ASSET_HISTORY&lt;br /&gt;FA_DISTRIBUTION_HISTORY&lt;br /&gt;FA_TRANSACTION_HEADERS&lt;br /&gt;FA_DEPRN_SUMMARY&lt;br /&gt;FA_DEPRN_DETAIL&lt;br /&gt;FA_TRANSFER_DETAILS&lt;br /&gt;&lt;br /&gt;Mass Additions come into the Oracle Assets by a spreadsheet entry through ADI (Applications Desktop Integrator) or through a concurrent process called Create Mass Additions (This can be from Payables or from Projects depending on the nature of the business)&lt;br /&gt;&lt;br /&gt;Data is inserted into the following tables&lt;br /&gt;FA_MASS_ADDITIONS (asset details)&lt;br /&gt;FA_MASSADD_DISTRIBUTIONS (invoice and invoice distribution details)&lt;br /&gt;&lt;br /&gt;The data is reviewed and updated with Category, Location and Depreciation Expense account by the user.  Upon completion, a concurrent process is submitted called Post Mass Additions.  Any record marked as POST will be picked up and added to the tables listed above in the Manual Entry section.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;FA GENERATE ACCOUNTS&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;This is a concurrent program that can be submitted both stand-alone or it will submit as part of the run depreciation process.&lt;br /&gt;&lt;br /&gt;This process when submitted looks at the FA_DISTRIBUTION_ACCOUNTS table for every active asset distribution in the book that the process is running.  If there is no account listed, this process creates a new account in this table.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;DEPRECIATION - BEHIND THE SCENES&lt;/span&gt;&lt;br /&gt;When you run depreciation, Oracle Assets processes each asset according to the transactions that you have performed on the asset since the last depreciation.&lt;br /&gt;&lt;br /&gt;FADEPR uses the following tables: &lt;br /&gt;FA_DEPRN_DETAIL &lt;br /&gt;For each depreciable asset, Oracle Assets inserts one row per distribution line that was active at any time during the current period. &lt;br /&gt;&lt;br /&gt;BOOK_TYPE_CODE&lt;br /&gt;ASSET_ID &lt;br /&gt;PERIOD_COUNTER &lt;br /&gt;DISTRIBUTION_ID &lt;br /&gt;DEPRN_RUN_DATE&lt;br /&gt;DEPRN_AMOUNT &lt;br /&gt;YTD_DEPRN &lt;br /&gt;DEPRN_RESERVE &lt;br /&gt;ADDITION_COST_TO_CLEAR       &lt;br /&gt;COST&lt;br /&gt;DEPRN_ADJUSTMENT_AMOUNT &lt;br /&gt;DEPRN_EXPENSE_JE_LINE_NUM &lt;br /&gt;DEPRN_RESERVE_JE_LINE_NUM&lt;br /&gt;REVAL_AMORT_JE_LINE_NUM &lt;br /&gt;REVAL_RESERVE_JE_LINE_NUM &lt;br /&gt;JE_HEADER_ID&lt;br /&gt;REVAL_AMORTIZATION &lt;br /&gt;REVAL_DEPRN_EXPENSE &lt;br /&gt;REVAL_RESERVE YTD&lt;br /&gt;&lt;br /&gt;FA_DEPRN_SUMMARY &lt;br /&gt;Oracle Assets inserts one row per depreciable asset. &lt;br /&gt;&lt;br /&gt;BOOK_TYPE_CODE    &lt;br /&gt;ASSET_ID &lt;br /&gt;DEPRN_RUN_DATE       &lt;br /&gt;DEPRN_AMOUNT  &lt;br /&gt;YTD_DEPRN&lt;br /&gt;DEPRN_RESERVE &lt;br /&gt;DEPRN_SOURCE_CODE&lt;br /&gt;ADJUSTED_COST &lt;br /&gt;BONUS_RATE&lt;br /&gt;LTD_PRODUCTION&lt;br /&gt;PERIOD_COUNTER &lt;br /&gt;&lt;br /&gt;FA_BOOK_CONTROLS &lt;br /&gt;If DEPRN_STATUS in the FA_BOOK_CONTROLS table is either 'C' (Completed) or 'E' (Error), the form submits the concurrent request and sets the DEPRN_STATUS = 'S' (Submitted).  Oracle Assets now locks this row to prevent you from entering any transaction when depreciation is running.  If DEPRN_STATUS in the FA_BOOK_CONTROLS table is either 'R' (Running) or 'S' (Submitted), then Oracle Assets displays the errors message "CHECK_BOOK_STATUS" or "Failed to obtain lock on FA_BOOK_CONTROLS row for book." &lt;br /&gt;&lt;br /&gt;Oracle Assets also checks if the depreciation request is for the current open period.  If the LAST_PERIOD_COUNTER in the FA_BOOK_CONTROLS is that of the last period, the program proceeds.  Oracle Assets updates the LAST_PERIOD_COUNTER, LAST_DEPRN_RUN_DATE, DEPRN_REQUEST_ID, DEPRN_STATUS, and CURRENT_FISCAL_YEAR for the book. &lt;br /&gt;&lt;br /&gt;FA_DEPRN_PERIODS &lt;br /&gt;Oracle Assets closes the row corresponding to the current period (by entering a PERIOD_CLOSE_DATE) and inserts a new row for the book and the new period.&lt;br /&gt; &lt;br /&gt;FA_FISCAL_YEARS&lt;br /&gt;If the new fiscal year has not been created, Oracle Assets automatically extends the fiscal year definition.&lt;br /&gt;&lt;br /&gt;FA_ADJUSTMENTS  &lt;br /&gt;Retroactive transactions and expensed depreciation adjustments.&lt;br /&gt;&lt;br /&gt;TRANSACTION_HEADER_ID &lt;br /&gt;SOURCE_TYPE_CODE &lt;br /&gt;ADJUSTMENT_TYPE &lt;br /&gt;CODE_COMBINATION_ID&lt;br /&gt;BOOK_TYPE_CODE    &lt;br /&gt;ASSET_ID &lt;br /&gt;ADJUSTMENT_AMOUNT &lt;br /&gt;DISTRIBUTION_ID&lt;br /&gt;LAST_UPDATE_DATE&lt;br /&gt;LAST_UPDATED_BY &lt;br /&gt;LAST_UPDATE_LOGIN &lt;br /&gt;ANNUALIZED_ADJUSTMENT&lt;br /&gt;JE_HEADER_ID &lt;br /&gt;JE_LINE_NUM &lt;br /&gt;PERIOD_COUNTER&lt;br /&gt;ADJUSTED PERIOD_COUNTER&lt;br /&gt;ASSET_INVOICE_ID&lt;br /&gt;&lt;br /&gt;FA_BOOKS &lt;br /&gt;Look up information needed for depreciation calculation and check the following:&lt;br /&gt;   PERIOD_FULLY_RESERVED = NULL&lt;br /&gt;   PERIOD_FULLY_RETIRED = NULL &lt;br /&gt;   DEPRECIATE_FLAG = YES &lt;br /&gt;   ADJUSTMENT_REQUIRED_STATUS is not NONE or TFR (Prior Period Transfer) &lt;br /&gt;   DATE_INEFFECTIVE = NULL&lt;br /&gt;&lt;br /&gt;BOOK_TYPE_CODE    &lt;br /&gt;ASSET_ID &lt;br /&gt;DATE_PLACED_IN_SERVICE &lt;br /&gt;DATE_EFFECTIVE&lt;br /&gt;DEPRN_START_DATE    &lt;br /&gt; DEPRN_METHOD &lt;br /&gt;LIFE_IN_MONTHS &lt;br /&gt;RATE_ADJUSTMENT_FACTOR&lt;br /&gt;ADJUSTED_COST &lt;br /&gt;COST &lt;br /&gt;ORIGINAL_COST &lt;br /&gt;SALVAGE_VALUE &lt;br /&gt;PRORATE_CONVENTION&lt;br /&gt;PRORATE_DATE&lt;br /&gt;DATE_INEFFECTIVE&lt;br /&gt;TRANSACTION_HEADER_ID_IN &lt;br /&gt;TRANSACTION_HEADER_ID_OUT&lt;br /&gt;ITC_AMOUNT_ID &lt;br /&gt;ITC_AMOUNT &lt;br /&gt;RETIREMENT_ID &lt;br /&gt;TAX_REQUEST_ID  &lt;br /&gt;ITC_BASIS BASIC_RATE&lt;br /&gt;ADJUSTED_RATE BONUS_RULE&lt;br /&gt;CEILING_NAME&lt;br /&gt;RECOVERABLE_COST &lt;br /&gt;LAST_UPDATE_LOGIN &lt;br /&gt;ADJUSTED_CAPACITY &lt;br /&gt;FULLY_RSVD_REVALS_COUNTER&lt;br /&gt;PERIOD_COUNTER_CAPITALIZED &lt;br /&gt;PERIOD_COUNTER_FULLY_RESERVED&lt;br /&gt;PERIOD_COUNTER_FULLY_RETIRED PRODUCTION_CAPACITY REVAL_AMORTIZATION_BASIS&lt;br /&gt;REVAL_CEILING UNIT_OF_MEASURE &lt;br /&gt;PERIOD_COUNTER_LIFE_COMPLETE &lt;br /&gt;&lt;br /&gt;FA_DISTRIBUTION_HISTORY &lt;br /&gt;Look up active distributions.&lt;br /&gt;&lt;br /&gt;FA_CEILINGS&lt;br /&gt;Look up ceiling information.&lt;br /&gt;&lt;br /&gt;FA_CALENDAR_PERIODS &lt;br /&gt;Look up period information.&lt;br /&gt;&lt;br /&gt;FA_CONVENTIONS &lt;br /&gt;Look up prorate convention information.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;THE BOTTOM LINE&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;~~~~~~~~~~~~~~~&lt;/span&gt;&lt;br /&gt;Historical depreciation calculations (DEPRN_EXPENSE, ACCUMULATED_DEPRN) can be found in FA_DEPRN_DETAIL and FA_DEPRN_SUMMARY. The main difference between these tables is that FA_DEPRN_DETAIL shows depreciation information for each distribution line (i.e. each active row in FA_DISTRIBUTION_HISTORY), whereas FA_DEPRN_SUMMARY shows summary depreciation information for an asset. &lt;br /&gt;&lt;br /&gt;&lt;u&gt;NOTE:&lt;/u&gt;  Because referential integrity is not maintained at the RDBMS level, the depreciation tables do not reference FA_DISTRIBUTION_HISTORY or FA_ADJUSTMENTS.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;COMMON DEPRECIATION ERRORS&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;/span&gt;&lt;br /&gt;APP-48260 Module CHECK_BOOK_STATUS ended with error.&lt;br /&gt;   Cause:  The MASS_REQUEST_ID for this book is NOT NULL.&lt;br /&gt;   Resolution:  Check to verify that all mass requests for this book have&lt;br /&gt;   completed normal.  NULL the MASS_REQUEST_ID in the FA_BOOK_CONTROLS table.&lt;br /&gt;&lt;br /&gt;APP-00988 ORA-1403 in fadccs.&lt;br /&gt;   Cause: fadccs failed due to ORA-01403 no data found.&lt;br /&gt;&lt;br /&gt;APP-47670 Unable to validate depreciation periods.&lt;br /&gt;   Cause:  You ran depreciation for the first time in your book.  The problem&lt;br /&gt;   is that there is a missing row in FA_DEPRN_PERIODS.  FADEPR expects a row in&lt;br /&gt;   FA_DEPRN_PERIODS for one period less than the active period.&lt;br /&gt;   Resolution:  Insert the missing row in FA_DEPRN_PERIODS table.  Contact&lt;br /&gt;   Oracle Support Services for the datafix script.&lt;br /&gt;&lt;br /&gt;APP-47984 in fazccp and ORA-1403 in fazgtcp.&lt;br /&gt;   Cause:  The depreciation calendar needs to go as far back as the oldest DPIS,&lt;br /&gt;   or if you have changed the calendar, there may be gaps or period overlaps.&lt;br /&gt;   Resolution:  Correct the calendar.&lt;br /&gt;&lt;br /&gt;APP-00988 ORACLE error 1403 in fadubc&lt;br /&gt;APP-47649 Error: Unable to set depreciation status in FA_BOOK_CONTROLS table&lt;br /&gt;APP-47640 Error: Unable to update FA_BOOK_CONTROLS table&lt;br /&gt;   Cause:  You ran depreciation for a book with no assets and you are in the&lt;br /&gt;   last period of the fiscal year.&lt;br /&gt;   Resolution:  You need to apply patch for BUG 605315 or higher.&lt;br /&gt;&lt;br /&gt;APP-00988 Oracle error 1555 in faddep  &lt;br /&gt;   Cause: faddep failed due to ORA-01555: snapshot too old (rollback segment&lt;br /&gt;   too small).&lt;br /&gt;   Resolution:  Increase the rollback segment size.&lt;br /&gt;&lt;br /&gt;APP-47191 and ORA-1403 in fazgtbc &lt;br /&gt;   Cause:  Depreciation is submitted with number of parallel requests set to&lt;br /&gt;   more than 1 (FA:Number of Parallel Requests) and the BOOK_TYPE_CODE has a&lt;br /&gt;   space in between 2 words.  Example: US CORPORATE&lt;br /&gt;   Resolution:  This is BUG 456936.  Apply Patch 605315 or higher.  As a &lt;br /&gt;   workaround, you need to submit depreciation in single mode.&lt;br /&gt;&lt;br /&gt;APP-00988 ORACLE error 1 in faenicp  &lt;br /&gt;   Cause:  faenicp failed due to ORA-00001:unique constraint&lt;br /&gt;   (FA.FA_CALENDAR_PERIODS_U3) violated.&lt;br /&gt;   Resolution:&lt;br /&gt;&lt;br /&gt;     1) Make sure that the version of faeofy.lpc in FADEPR is version 70.15&lt;br /&gt;        or Higher.&lt;br /&gt;&lt;br /&gt;     2) Check the calendar periods for gaps or overlap.&lt;br /&gt;&lt;br /&gt;     3) Check that the Fiscal Start and End Dates match the Start and End Dates&lt;br /&gt;        of the first and last periods of the fiscal year respectively.&lt;br /&gt;&lt;br /&gt;     4) Make sure that there are no gaps or overlap between Fiscal Year Start&lt;br /&gt;        and End Dates.&lt;br /&gt;&lt;br /&gt;     5) Be sure that all of the periods for a Fiscal Year have been created.&lt;br /&gt;&lt;br /&gt;ORA-1 in fadaid/fadais&lt;br /&gt;   Common causes:&lt;br /&gt;&lt;br /&gt;     - Updating DEPRN_STATUS in FA_BOOK_CONTROLS to C (Completed).&lt;br /&gt;     - Partially committed or incomplete transfers, adjustments, or partial&lt;br /&gt;        retirements.&lt;br /&gt;     - Transfers that happened after depreciation has errored in a book.&lt;br /&gt;     - Orphaned adjustment records.&lt;br /&gt;     - Orphaned distributions.&lt;br /&gt;&lt;br /&gt;   Resolution:  Run the provided ORA-1 diagnostic scripts.  Contact Oracle&lt;br /&gt;   Support Services for any required datafix scripts.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;ORA-1 DIAGNOSTIC SCRIPTS&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;========================&lt;/span&gt;&lt;br /&gt;Script to check for adjustment rows with invalid distribution_id:&lt;br /&gt;&lt;br /&gt;select aj.asset_id, aj.distribution_id&lt;br /&gt;from fa.fa_distribution_history dh, fa.fa_adjustments aj&lt;br /&gt;where aj.period_counter_created = &amp;PCounter&lt;br /&gt;and   aj.book_type_code =  '&amp;BOOK'&lt;br /&gt;and   NOT exists (select dh.asset_id&lt;br /&gt;                 from   FA.fa_distribution_history dh&lt;br /&gt;                 where  dh.distribution_id = aj.distribution_id&lt;br /&gt;                 and  dh.asset_id = aj.asset_id);&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Another script to check for adjustment rows with invalid distribution_id:&lt;br /&gt;&lt;br /&gt;select aj.asset_id&lt;br /&gt;from fa.fa_transaction_headers th,&lt;br /&gt;     fa.fa_distribution_history dh,&lt;br /&gt;     fa.fa_adjustments aj,&lt;br /&gt;     fa.fa_deprn_periods dp&lt;br /&gt;where dp.book_type_code = '&amp;BOOK'&lt;br /&gt;and   dp.period_close_date is null&lt;br /&gt;and   dp.period_counter = aj.period_counter_created&lt;br /&gt;and   dp.book_type_code = aj.book_type_code&lt;br /&gt;and aj.transaction_header_id = th.transaction_header_id&lt;br /&gt;and   th.transaction_type_code = 'TRANSFER'&lt;br /&gt; and   aj.distribution_id = dh.distribution_id(+)&lt;br /&gt;and   dh.code_combination_id is null;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The best script to check for adjustment rows with invalid distribution_id:&lt;br /&gt;&lt;br /&gt;select distinct aj.asset_id&lt;br /&gt;from fa.fa_adjustments aj, fa.fa_deprn_detail dd&lt;br /&gt;where aj.book_type_code = &amp;book&lt;br /&gt;and   aj.distribution_id = dd.distribution_id(+)&lt;br /&gt;and   aj.period_counter_created = dd.period_counter(+)&lt;br /&gt;and aj.book_type_code = dd.book_type_code(+)&lt;br /&gt;and   dd.deprn_amount is null&lt;br /&gt;and  exists (select 'fine' from fa.fa_deprn_detail dd2&lt;br /&gt;             where dd2.asset_id = aj.asset_id&lt;br /&gt;              and dd2.book_type_code = aj.book_type_code&lt;br /&gt;             and dd2.period_counter = aj.period_counter_created);&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Script to check for invalid rows in FA_DISTRIBUTION_HISTORY:&lt;br /&gt;&lt;br /&gt;select dh.asset_id&lt;br /&gt;from fa.fa_distribution_history dh1,&lt;br /&gt;fa.fa_distribution_history dh&lt;br /&gt;where dh.transaction_header_id_out is not null&lt;br /&gt;and   dh.transaction_header_id_out = dh1.transaction_header_id_in(+)&lt;br /&gt;and   dh1.code_combination_id is null;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;GENERAL INFORMATION&lt;br /&gt;===================&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;u&gt;DEPRECIATION CALENDAR&lt;/u&gt;&lt;br /&gt;The depreciation calendar determines the number of accounting periods in&lt;br /&gt;your fiscal year.&lt;br /&gt; &lt;br /&gt;&lt;u&gt;PRORATE CALENDAR&lt;/u&gt;&lt;br /&gt;The prorate calendar determines what rate Oracle Assets uses to calculate annual depreciation by mapping each date to a prorate period, which corresponds to a set of rates in the rate table. &lt;br /&gt;&lt;br /&gt;&lt;u&gt;PERIOD CLOSE&lt;/u&gt;&lt;br /&gt;Oracle Assets automatically closes the book's current period and opens the next when you run the depreciation program.  You cannot have more than one open period for a given depreciation book. &lt;br /&gt;&lt;br /&gt;&lt;u&gt;YEAR-END PROCESSING&lt;/u&gt;&lt;br /&gt;You can close the year independently in each depreciation book. The depreciation program automatically resets year-to-date amounts on a book the first time the depreciation program is run on that book in a fiscal year. Oracle Assets automatically creates the depreciation and prorate periods for your new year when you run depreciation for the last period of the previous fiscal year. &lt;br /&gt;&lt;br /&gt;&lt;u&gt;SUSPEND DEPRECIATION&lt;/u&gt;&lt;br /&gt;You can suspend depreciation by un-checking Depreciate flag in the Books form.  If you suspend depreciation of an asset when you add the asset, Oracle Assets expenses the missed depreciation in the period you start depreciating the asset.&lt;br /&gt;&lt;br /&gt;For table and calculated methods, Oracle Assets calculates depreciation expense for the asset based on an asset life that includes the periods you did not depreciate it.  If you suspend depreciation after an asset has started depreciating, Oracle Assets catches up the missed depreciation expense in the last period of life.&lt;br /&gt;&lt;br /&gt;For flat-rate methods, Oracle Assets continues calculating depreciation expense for the asset based on the flat-rate.  For flat-rate methods that use net book value, Oracle Assets uses the asset net book value at the beginning of the fiscal year in which you resume depreciation.  The asset continues depreciating until it becomes fully reserved. &lt;br /&gt;&lt;br /&gt;&lt;u&gt;RECOVERABLE COST&lt;/u&gt; &lt;br /&gt;For depreciation methods with a calculation basis of cost, Oracle Assets calculates depreciation using the recoverable cost. The recoverable cost is calculated as the lesser of either the cost less the salvage value less the investment tax credit basis reduction amount, or the cost ceiling.&lt;br /&gt;&lt;br /&gt;Oracle Assets depreciates the asset until the accumulated depreciation equals the recoverable cost. &lt;br /&gt;&lt;br /&gt;&lt;u&gt;ADJUSTMENTS&lt;/u&gt;&lt;br /&gt;The following are some examples of financial adjustments you can expense or amortize: &lt;br /&gt;- Recoverable Cost Adjustments&lt;br /&gt;- Depreciation Method Adjustments&lt;br /&gt;- Life Adjustments&lt;br /&gt;- Rate Adjustments&lt;br /&gt;- Capacity Adjustments&lt;br /&gt;&lt;br /&gt;&lt;u&gt;PRIOR PERIOD TRANSACTIONS&lt;/u&gt;&lt;br /&gt;- Prior Period Additions&lt;br /&gt;If you enter an asset with a date placed in service before the current accounting period, Oracle Assets automatically calculates the missed depreciation and adjusts the accumulated depreciation on the next depreciation run. If you provide accumulated depreciation when you add the asset, Oracle Assets does not recalculate the accumulated depreciation. It accepts the amount you entered. For table and calculated methods, even if the entered accumulated depreciation differs from what Oracle Assets would have calculated, Oracle Assets does not depreciate the asset beyond the recoverable cost.  If the accumulated depreciation is too low, Oracle Assets takes additional depreciation in the last period of the asset's life so that the asset becomes fully reserved.  If the asset's accumulated depreciation is too high, Oracle Assets stops depreciating the asset when it becomes fully reserved, effectively shortening the asset life. &lt;br /&gt;&lt;br /&gt;- Prior Period Transfers &lt;br /&gt;If you backdate an asset transfer, Oracle Assets automatically reallocates depreciation expense by reversing some of the depreciation charged to the from account, and redistributing it proportionally to the to accounts. Retroactive transfers do not impact the total depreciation. You cannot backdate a transfer to a prior fiscal year. &lt;br /&gt;&lt;br /&gt;- Prior Period Retirements / Reinstatements&lt;br /&gt;If you backdate a retirement, Oracle Assets automatically adjusts the depreciation for the year by the appropriate amount, resulting in a one-time adjustment in depreciation expense for the period. Oracle Assets then computes the gain or loss using the resulting net book value. You cannot backdate a retirement to a previous fiscal year, nor can you reinstate a retirement performed in a previous fiscal year. &lt;br /&gt;&lt;br /&gt;- Prior Period Amortized Adjustments&lt;br /&gt;If you backdate an amortized adjustment, Oracle Assets automatically calculates depreciation from the retroactive amortization start date, and adds the retroactive depreciation to the current period. &lt;br /&gt;&lt;br /&gt;- Negative Cost (Credit) Assets&lt;br /&gt;You can enter a credit asset as an asset with a negative cost and Oracle Assets credits depreciation expense and debits accumulated depreciation each period for the life of the asset.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/144851838473318802-330503582771235968?l=arunrathod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrathod.blogspot.com/feeds/330503582771235968/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=144851838473318802&amp;postID=330503582771235968' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/330503582771235968'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/330503582771235968'/><link rel='alternate' type='text/html' href='http://arunrathod.blogspot.com/2009/02/11i-oracle-fixed-asset-technical.html' title='11i Oracle Fixed Asset Technical Document'/><author><name>Arun Kumar S.R</name><uri>http://www.blogger.com/profile/14745466774124137964</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_pBTgD4-jQls/SC-82Kq7MJI/AAAAAAAAAOs/e_Invzqp9e0/S220/DSC05800.JPG'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-144851838473318802.post-6613038192918165495</id><published>2009-02-18T22:24:00.000-08:00</published><updated>2009-02-18T22:31:53.540-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='11i Oracle Purchasing Technical Document'/><title type='text'>11i Oracle Purchasing Technical Document</title><content type='html'>Oracle Purchasing is multi-org sensitive.  The complexity depends on the set up.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Requisition Entry&lt;/span&gt;&lt;br /&gt;Requisitions can be entered manually by the user or from the Requisition Import process. &lt;br /&gt;&lt;br /&gt;&lt;u&gt;Manual entry&lt;/u&gt; – Users will enter the data using the Requisitions form.  At the header level, the user will enter the requisition number (if the app is set up to accept manual numbering), a requisition type and a description.  At the line level, the user will enter the line type (Goods, Service, Labor etc.), and item (not required), a category (required), a description of the item or category, the units and the amount, the requestor, inventory org and location.  Vendor and Vendor Site are optional.  The user can enter multiple lines.  After the line is entered, the user will enter the distributions for each line.  Each line must have at least one distribution, but can consist of multiple.  The distribution will be the code combination and/or project information for the purchase.  When the user saves, the PR Account Generator is called to validate the code combination or if customized build the code combination based on auto-accounting rules from Oracle Projects.  When the entry is saved, records are created in the following tables:&lt;br /&gt;PO_REQUISITION_HEADERS_ALL&lt;br /&gt;PO_REQUISITION_LINES_ALL&lt;br /&gt;PO_REQ_DISTRIBUTIONS_ALL&lt;br /&gt;&lt;br /&gt;&lt;u&gt;Import Entry&lt;/u&gt; – In order to import requisitions, the source must be mapped to the fields needed in the requisition interface.  Coding will need to be done to utilize this functionality.  Data will import using a concurrent process called Requisition Import.  The data is brought into Oracle Purchasing and creates the header, lines and distributions.  The main tables are:&lt;br /&gt;PO_REQUISITIONS_INTERFACE_ALL&lt;br /&gt;PO_REQ_DIST_INTERFACE_ALL&lt;br /&gt;PO_REQUISITION_HEADERS_ALL&lt;br /&gt;PO_REQUISITION_LINES_ALL&lt;br /&gt;PO_REQ_DISTRIBUTIONS_ALL&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Requisition Approval&lt;/span&gt;&lt;br /&gt;Requisitions are approved based on specific application set-ups.  The main set ups consist of determining of Approval Groups that determine the dollar value by document and/or account combination.  The approval group is then assigned to a job title set up in the Oracle HR system.  The amount assigned to the title determines who can have final approval authority.  The user will submit the requisition from approval.  The workflow then calls a process to build the initial approval list based on employee/supervisor (or position hierarchy if the system is set up that way).  The list will include all approvers necessary to approve the requisition total.  If there is no person with a high enough authority to approve, the requisition goes back to an incomplete status and the users will determine where the gap is and correct the assignments.  If the requisition is on the incorrect path, the approver may forward the requisition to the correct person.  The workflow will then call a procedure to rebuild the approval list based upon the forward to person’s employee/supervisor relationship.  The procedure ends the current approval list header and creates a new header and lines.  The history and status of the requisition is kept in the action history, which is viewable from the requisition form or from the requisition notification.  The main tables are:&lt;br /&gt;PER_ALL_PEOPLE_F&lt;br /&gt;PER_JOBS &lt;br /&gt;PER_ALL_ASSIGNMENTS_F&lt;br /&gt;GL_CODE_COMBINATIONS&lt;br /&gt;PO_CONTROL_RULES&lt;br /&gt;PO_CONTROL_GROUPS_ALL&lt;br /&gt;PO_CONTROL_FUNCTIONS&lt;br /&gt;PO_POSITION_CONTROLS_ALL&lt;br /&gt;PO_ACTION_HISTORY&lt;br /&gt;PO_REQUISITION_HEADERS_ALL&lt;br /&gt;PO_REQUISITION_LINES_ALL&lt;br /&gt;PO_REQ_DISTRIBUTIONS_ALL&lt;br /&gt;PO_APPROVAL_LIST_HEADERS&lt;br /&gt;PO_APPROVAL_LIST_LINES&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Purchase Order Entry&lt;/span&gt;&lt;br /&gt;Purchase orders can be created 2 ways, autocreating from an approved requisition or by manual entry into the from.&lt;br /&gt;&lt;br /&gt;&lt;u&gt;Autocreate&lt;/u&gt; – In the autocreate form, the user will enter a requisition or search criteria to pull multiple requisitions available to be turned into purchase orders. The query will produce the lines available and the user can select all or any combination to create the purchase order.  Example, if there are 3 requisitions approved for one vendor, the user can create one purchase order with all of the requisition information.  The main tables are&lt;br /&gt;PO_HEADERS_ALL&lt;br /&gt;PO_LINES_ALL&lt;br /&gt;PO_DISTRIBUTIONS_ALL&lt;br /&gt;PO_LINE_LOCATIONS_ALL&lt;br /&gt;&lt;br /&gt;&lt;u&gt;Manual entry&lt;/u&gt; – The user enters into the Purchase Order form the same information as entry for the requisitions.  The tables listed above are the main tables.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/144851838473318802-6613038192918165495?l=arunrathod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrathod.blogspot.com/feeds/6613038192918165495/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=144851838473318802&amp;postID=6613038192918165495' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/6613038192918165495'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/6613038192918165495'/><link rel='alternate' type='text/html' href='http://arunrathod.blogspot.com/2009/02/11i-oracle-purchasing-technical.html' title='11i Oracle Purchasing Technical Document'/><author><name>Arun Kumar S.R</name><uri>http://www.blogger.com/profile/14745466774124137964</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_pBTgD4-jQls/SC-82Kq7MJI/AAAAAAAAAOs/e_Invzqp9e0/S220/DSC05800.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-144851838473318802.post-4012289176288913425</id><published>2009-02-18T22:22:00.000-08:00</published><updated>2009-02-18T22:24:23.063-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='11i Oracle Payables Technical Information'/><title type='text'>11i Oracle Payables Technical Information</title><content type='html'>&lt;span style="font-weight:bold;"&gt;Expense Report/Invoice Entry&lt;/span&gt;&lt;br /&gt;Expense reports are entered using Web Expenses.  This is multi-org sensitive, therefore each instance is set up with a template.  The template is stored in AP_EXPENSE_REPORTS_ALL. The expense reports are submitted for approval and routed using workflow.  When the expense report is approved, the payables department reviews and approved the expense report.  Expense Report information is stored in the following tables&lt;br /&gt;AP_EXPENSE_REPORT_HEADERS_ALL&lt;br /&gt;AP_EXPENSE_REPORT_LINES_ALL&lt;br /&gt;&lt;br /&gt;The accounts payable department runs a concurrent process call “Payables Invoice Import”.  This process turns approved expense reports into invoices.  The process populates the following tables&lt;br /&gt;AP_INVOICES_ALL&lt;br /&gt;AP_INVOICE_DISTRIBUTIONS_AL.  &lt;br /&gt;&lt;br /&gt;These are the exact tables that are populated when an invoice is entered directly into the AP Invoice Entry form.  Invoices must be approved and accounted.  Approval can be done on individual invoices through the form or by running a concurrent process called “Payables Approval”.  Once the invoice is approved, the accounting process can be run.  This can also be done by through the AP Invoice Entry form or by running the concurrent process “Payables Accounting Process”.  The process populates the following tables&lt;br /&gt;AP_AE_HEADERS_ALL&lt;br /&gt;AP_AE_LINES_ALL&lt;br /&gt;&lt;br /&gt;These are the tables that are used to create the journal entries that will go to the General Ledger.  This process is called “Payables Transfer to General Ledger”.  The process takes all lines in the AP_AE tables (whose GL_TRANSFER_FLAG = N and are within the parameters set by the user submitting the program) and inserts them into the GL_INTERFACE table.  If the user marks Journal Import to Y when submitting, the completion of the transfer to GL process will kick off the Journal Import.  This will then create the data in the GL_JOURNAL_BATCHES, GL_JOURNAL_HEADERS, and &lt;br /&gt;GL_JOURNAL_LINES tables.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Creating Payments&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Creating payments is the same basic navigation as creating invoices.  An Invoice must be approved (does not have to have the accounting run yet).  The payment can be created in the Invoice Entry form after the invoice is approved.  The payments can also be created in batches.  From the Payment Batches form, the user will enter the criteria to build the payment batch.  The user will then choose actions and build the batch.  The data will be inserted into the following tables:&lt;br /&gt;AP_INVOICE_PAYMENTS_ALL&lt;br /&gt;AP_PAYMENT_DISTRIBUTIONS_ALL&lt;br /&gt;&lt;br /&gt;After the batch is built, formatted and confirmed, the user will need to create accounting and transfer to GL, as explained above.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/144851838473318802-4012289176288913425?l=arunrathod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrathod.blogspot.com/feeds/4012289176288913425/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=144851838473318802&amp;postID=4012289176288913425' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/4012289176288913425'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/4012289176288913425'/><link rel='alternate' type='text/html' href='http://arunrathod.blogspot.com/2009/02/11i-oracle-payables-technical.html' title='11i Oracle Payables Technical Information'/><author><name>Arun Kumar S.R</name><uri>http://www.blogger.com/profile/14745466774124137964</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_pBTgD4-jQls/SC-82Kq7MJI/AAAAAAAAAOs/e_Invzqp9e0/S220/DSC05800.JPG'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-144851838473318802.post-8907596095533630449</id><published>2009-02-17T21:47:00.000-08:00</published><updated>2009-02-17T21:48:01.085-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='How to remove page breaks from 6i reports'/><title type='text'>How to remove page breaks from 6i reports</title><content type='html'>Navigate to System Administrator Responisbility and query for the report name in the concurrent define section...&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;System Administrator -&gt; Concurrent -&gt; Program -&gt; Define&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Use the Printer style as BACS and check the Style Required box.&lt;br /&gt;&lt;br /&gt;Once the above steps are done save the changes and navigate to the concerned responsibility to run the report. The report output will not have page breaks anymore. Generally this style is used for creating output files through reports.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/144851838473318802-8907596095533630449?l=arunrathod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrathod.blogspot.com/feeds/8907596095533630449/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=144851838473318802&amp;postID=8907596095533630449' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/8907596095533630449'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/8907596095533630449'/><link rel='alternate' type='text/html' href='http://arunrathod.blogspot.com/2009/02/how-to-remove-page-breaks-from-6i.html' title='How to remove page breaks from 6i reports'/><author><name>Arun Kumar S.R</name><uri>http://www.blogger.com/profile/14745466774124137964</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_pBTgD4-jQls/SC-82Kq7MJI/AAAAAAAAAOs/e_Invzqp9e0/S220/DSC05800.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-144851838473318802.post-2300644502320498812</id><published>2009-02-15T22:11:00.000-08:00</published><updated>2009-02-15T22:13:31.323-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='How to authorize an employee to enter expense reports for another employee'/><title type='text'>How to authorize an employee to enter expense reports for another employee</title><content type='html'>You can authorize an employee to enter expense reports for another employee. An employee who is assigned the responsibility to enter expense reports for another employee is an authorized delegate. There are 2 ways this could be done:&lt;br /&gt;&lt;br /&gt;1. Go to System Administrator&gt;Security&gt; Users &lt;br /&gt;Query for the User’s record. Under Securing Attributes tab, add the below details:&lt;br /&gt;&lt;u&gt;Attribute:&lt;/u&gt; ICX_HR_PERSON_ID&lt;br /&gt;&lt;u&gt;Application:&lt;/u&gt; Self-Service Web Applications&lt;br /&gt;&lt;u&gt;Value:&lt;/u&gt; Employee Id or the Person_id to whom the access to enter the expense reports has to be given.&lt;br /&gt;&lt;br /&gt;2. Go to the iExpense responsibility &gt; Expense Preferences &gt;Authorization Preferences &lt;br /&gt;Under Expenses Entry Delegations, click on the Add another row and enter the name to whom the access to enter the expense reports on your behalf has to be given.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/144851838473318802-2300644502320498812?l=arunrathod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrathod.blogspot.com/feeds/2300644502320498812/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=144851838473318802&amp;postID=2300644502320498812' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/2300644502320498812'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/2300644502320498812'/><link rel='alternate' type='text/html' href='http://arunrathod.blogspot.com/2009/02/how-to-authorize-employee-to-enter.html' title='How to authorize an employee to enter expense reports for another employee'/><author><name>Arun Kumar S.R</name><uri>http://www.blogger.com/profile/14745466774124137964</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_pBTgD4-jQls/SC-82Kq7MJI/AAAAAAAAAOs/e_Invzqp9e0/S220/DSC05800.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-144851838473318802.post-7373232154613464905</id><published>2009-02-05T22:52:00.000-08:00</published><updated>2009-02-05T23:35:46.653-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='How to make a Oracle form &apos;Query Only&apos;'/><title type='text'>How to make a Oracle form 'Query Only'</title><content type='html'>Follow the following steps inorder to make a form as Query only/Read Only.&lt;br /&gt;&lt;br /&gt;1. Login into the System Administrator/Application Developer responsibility.&lt;br /&gt;2. Navigate to 'Security -&gt; Responsibility -&gt; Define'&lt;br /&gt;3. Query for the responsibility for which you want to make the form as 'Query Only' and copy the 'Menu' name.&lt;br /&gt;4. Navigate to 'Application -&gt; Menu' and query with the menu name which we got in step 3 in 'User Menu Name'&lt;br /&gt;5. Now look out for the form (Prompt) you want to make it as query only. Copy the value in the 'Function' field w.r.t the form that needs to be made as 'Query Only'.&lt;br /&gt;6. Navigate to 'Application -&gt; Funtion' and query with the function name we got in Step 5 in 'User Function Name' field.&lt;br /&gt;7. Identify the correct Function for your form and then naviagate to the 'Form' tab.&lt;br /&gt;8. Enter the value: QUERY_ONLY=YES in the parameters section in the Form tab, if you already have another value existing in the parameter form then you need to seperate them with a space..&lt;br /&gt;&lt;br /&gt;Example: MODE="PROJECT" QUERY_ONLY=YES&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/144851838473318802-7373232154613464905?l=arunrathod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrathod.blogspot.com/feeds/7373232154613464905/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=144851838473318802&amp;postID=7373232154613464905' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/7373232154613464905'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/7373232154613464905'/><link rel='alternate' type='text/html' href='http://arunrathod.blogspot.com/2009/02/how-to-make-oracle-form-query-only.html' title='How to make a Oracle form &apos;Query Only&apos;'/><author><name>Arun Kumar S.R</name><uri>http://www.blogger.com/profile/14745466774124137964</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_pBTgD4-jQls/SC-82Kq7MJI/AAAAAAAAAOs/e_Invzqp9e0/S220/DSC05800.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-144851838473318802.post-1764471750748719177</id><published>2009-02-03T01:14:00.000-08:00</published><updated>2009-02-08T21:45:40.445-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ORA-29280: invalid directory path'/><title type='text'>ORA-29280: invalid directory path</title><content type='html'>&lt;b&gt;&lt;u&gt;ORA-29280: invalid directory path&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Before moving furthur in this post, please check if the directory has full permissions (Read, Write, Execute) or not. The error will also occour when there are no permissions to the directory. Once you set full permissions to the directory, try to run the program and if it still errors with the 'invalid directory path' error then please proceed furthur below for some more solutions....&lt;br /&gt;&lt;br /&gt;&lt;u&gt;Cause:&lt;/u&gt; A corresponding directory object does not exist. &lt;br /&gt;&lt;u&gt;Action:&lt;/u&gt; Correct the directory object parameter, or create a corresponding directory object with the CREATE DIRECTORY command.  &lt;br /&gt;&lt;br /&gt;We can derieve the directory object parameter from the following sql query:&lt;br /&gt;&lt;br /&gt;-------------------------------------&lt;br /&gt;&lt;br /&gt;SELECT VALUE&lt;br /&gt;  FROM v$parameter&lt;br /&gt; WHERE NAME = 'utl_file_dir';&lt;br /&gt;&lt;br /&gt;-------------------------------------&lt;br /&gt;&lt;br /&gt;We can also use the CREATE DIRECTORY feature instead of UTL_FILE_DIR for directory access verification.&lt;br /&gt;&lt;br /&gt;Up to 8i, Oracle refused to access a file that is not pointed to in the utl_file_dir parameter in the init.ora file. In Oracle 9i, in order to access a file, either the utl_file_dir parameter must be set, or one has to create a directory.&lt;br /&gt;&lt;br /&gt;Steps to create a example directory entry:&lt;br /&gt;&lt;br /&gt;sql&gt; Connect apps/apps&lt;br /&gt;sql&gt; create directory CESDIR_COMMON as '/home/common'; &lt;br /&gt;sql&gt; grant read on directory CESDIR_COMMON to public;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/144851838473318802-1764471750748719177?l=arunrathod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrathod.blogspot.com/feeds/1764471750748719177/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=144851838473318802&amp;postID=1764471750748719177' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/1764471750748719177'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/1764471750748719177'/><link rel='alternate' type='text/html' href='http://arunrathod.blogspot.com/2009/02/ora-29280-invalid-directory-path.html' title='ORA-29280: invalid directory path'/><author><name>Arun Kumar S.R</name><uri>http://www.blogger.com/profile/14745466774124137964</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_pBTgD4-jQls/SC-82Kq7MJI/AAAAAAAAAOs/e_Invzqp9e0/S220/DSC05800.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-144851838473318802.post-6915949575185540811</id><published>2009-02-03T01:04:00.000-08:00</published><updated>2009-02-03T01:10:14.862-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Validating notification response'/><title type='text'>Validating notification response</title><content type='html'>I received a requirement from one of my clients to force the user(approver) to enter the comments value before approving the notification..This notification contains 2 responses (1. Approve, 2. Reject), so when the approver rejects the notification we need to make the Comments field in the notification as mandatatory and the notification should not go to the next stage untill he/she enters the comments field before clicking the Reject button in the workflow notification.&lt;br /&gt;&lt;br /&gt;Fix: To implement this we need to write a Post notification function which validates the response and checks whether there is a value included in the response attribute. This post notification function needs to be placed in the workflow package and we need to call it the pl/sql block of the notification.&lt;br /&gt;&lt;br /&gt;The code in the Post notification function would looks like this.&lt;br /&gt;&lt;br /&gt;--------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;   PROCEDURE set_reject_comment (&lt;br /&gt;      itemtype    IN       VARCHAR2,&lt;br /&gt;      itemkey     IN       VARCHAR2,&lt;br /&gt;      actid       IN       NUMBER,&lt;br /&gt;      funcmode    IN       VARCHAR2,&lt;br /&gt;      resultout   OUT      VARCHAR2&lt;br /&gt;   )&lt;br /&gt;   IS&lt;br /&gt;      v_response         VARCHAR2 (2000);&lt;br /&gt;      l_user_comment     VARCHAR2 (2000);&lt;br /&gt;      approval_comment   EXCEPTION;&lt;br /&gt;   BEGIN&lt;br /&gt;/*===================================================================================&lt;br /&gt;This will derive the button by looking at the response from the notification. the WF_ENGINE.CONTEXT_NID variable will tell you the notification ID that is being responded to, and we can derive the response from there.&lt;br /&gt;====================================================================================*/&lt;br /&gt;      v_response :=&lt;br /&gt;                wf_notification.getattrtext (wf_engine.context_nid, 'RESULT');&lt;br /&gt;/*===================================================================================&lt;br /&gt;This will retrieve the value which is stored in the Approval Comments field by the approver when the reject button is pressed.&lt;br /&gt;====================================================================================*/&lt;br /&gt;      l_user_comment :=&lt;br /&gt;         wf_notification.getattrtext (wf_engine.context_nid,&lt;br /&gt;                                      'APPROVAL_COMMENT'&lt;br /&gt;                                     );&lt;br /&gt;&lt;br /&gt;/*===================================================================================&lt;br /&gt;This block will be fired when the user has pressed the 'Reject' Button and the comments is null and then it will raise the user defined error. And the workflow will not continue untill the user enters value in the comments field for rejection.&lt;br /&gt;===================================================================================*/&lt;br /&gt;      BEGIN&lt;br /&gt;         IF (    funcmode = 'RESPOND'&lt;br /&gt;             AND v_response = 'REJECTED'&lt;br /&gt;             AND l_user_comment IS NULL&lt;br /&gt;            )&lt;br /&gt;         THEN&lt;br /&gt;            RAISE approval_comment;&lt;br /&gt;         END IF;&lt;br /&gt;      EXCEPTION&lt;br /&gt;         WHEN approval_comment&lt;br /&gt;         THEN&lt;br /&gt;            raise_application_error&lt;br /&gt;               (-20010,&lt;br /&gt;                'Approval Comment Field cannot be Null. Please enter reason for rejection and click reject.'&lt;br /&gt;               );&lt;br /&gt;            RAISE;&lt;br /&gt;      END;&lt;br /&gt;&lt;br /&gt;      COMMIT;&lt;br /&gt;   END set_reject_comment;&lt;br /&gt;&lt;br /&gt;--------------------------------------------------------------------&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/144851838473318802-6915949575185540811?l=arunrathod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrathod.blogspot.com/feeds/6915949575185540811/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=144851838473318802&amp;postID=6915949575185540811' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/6915949575185540811'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/6915949575185540811'/><link rel='alternate' type='text/html' href='http://arunrathod.blogspot.com/2009/02/validating-notification-response.html' title='Validating notification response'/><author><name>Arun Kumar S.R</name><uri>http://www.blogger.com/profile/14745466774124137964</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_pBTgD4-jQls/SC-82Kq7MJI/AAAAAAAAAOs/e_Invzqp9e0/S220/DSC05800.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-144851838473318802.post-1292973440691669311</id><published>2009-01-06T22:22:00.000-08:00</published><updated>2009-01-06T22:32:24.817-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Pivot queries'/><title type='text'>Pivot queries</title><content type='html'>Pivot queries involve transposing rows into columns (pivot) or columns into rows (unpivot) to generate results in crosstab format. Pivoting is a common technique, especially for reporting, and it has been possible to generate pivoted resultsets with SQL for many years and Oracle versions.&lt;br /&gt;&lt;br /&gt;Lets explain this with an example: &lt;br /&gt;&lt;br /&gt;1. The basic stucture of our table would be&lt;br /&gt;&lt;br /&gt;&lt;a href="http://4.bp.blogspot.com/_pBTgD4-jQls/SWRLG5tumtI/AAAAAAAAAyk/XLwTnBGgUOI/s1600-h/1.jpg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 2px; height: 1px;" src="http://4.bp.blogspot.com/_pBTgD4-jQls/SWRLG5tumtI/AAAAAAAAAyk/XLwTnBGgUOI/s320/1.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5288434444383722194" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;2. We would like to see the output showing each of these 4 teams and their point tables for these 3 years.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/_pBTgD4-jQls/SWRLszHwnUI/AAAAAAAAAys/Qodu05lz4V0/s1600-h/2.jpg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 2px; height: 1px;" src="http://2.bp.blogspot.com/_pBTgD4-jQls/SWRLszHwnUI/AAAAAAAAAys/Qodu05lz4V0/s320/2.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5288435095448886594" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;3. Lets now see how to implement the requirement:&lt;br /&gt;&lt;br /&gt;i) Here's the data&lt;br /&gt;&lt;br /&gt;CREATE TABLE xx1 (Year1 NUMBER(4), team VARCHAR2(16), points NUMBER(3));&lt;br /&gt;INSERT INTO xx1 (Year1, team, points) VALUES (2009, 'India', 21);&lt;br /&gt;INSERT INTO xx1 (Year1, team, points) VALUES (2009, 'India1', 28);&lt;br /&gt;INSERT INTO xx1 (Year1, team, points) VALUES (2009, 'India2', 19);&lt;br /&gt;INSERT INTO xx1 (Year1, team, points) VALUES (2009, 'India3', 10);&lt;br /&gt;INSERT INTO xx1 (Year1, team, points) VALUES (2008, 'India', 18);&lt;br /&gt;INSERT INTO xx1 (Year1, team, points) VALUES (2008, 'India1', 26);&lt;br /&gt;INSERT INTO xx1 (Year1, team, points) VALUES (2008, 'India2', 2);&lt;br /&gt;INSERT INTO xx1 (Year1, team, points) VALUES (2008, 'India3', 14);&lt;br /&gt;INSERT INTO xx1 (Year1, team, points) VALUES (2007, 'India', 16);&lt;br /&gt;INSERT INTO xx1 (Year1, team, points) VALUES (2007, 'India1', 27);&lt;br /&gt;INSERT INTO xx1 (Year1, team, points) VALUES (2007, 'India2', 15);&lt;br /&gt;INSERT INTO xx1 (Year1, team, points) VALUES (2007, 'India3', 10);&lt;br /&gt;&lt;br /&gt;ii) Use "decode" to turn the year1 row into a column. Take a look at our "sparse" matrix.&lt;br /&gt;&lt;br /&gt;SELECT team, &lt;br /&gt;MAX (DECODE (year1, 2007, points, NULL)) Yr2007,&lt;br /&gt;MAX (DECODE (year1, 2008, points, NULL)) Yr2008,&lt;br /&gt;MAX (DECODE (year1, 2009, points, NULL)) Yr2009&lt;br /&gt;FROM (SELECT year1, team, points FROM xx1)&lt;br /&gt;GROUP BY team;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/144851838473318802-1292973440691669311?l=arunrathod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrathod.blogspot.com/feeds/1292973440691669311/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=144851838473318802&amp;postID=1292973440691669311' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/1292973440691669311'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/1292973440691669311'/><link rel='alternate' type='text/html' href='http://arunrathod.blogspot.com/2009/01/pivot-queries.html' title='Pivot queries'/><author><name>Arun Kumar S.R</name><uri>http://www.blogger.com/profile/14745466774124137964</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_pBTgD4-jQls/SC-82Kq7MJI/AAAAAAAAAOs/e_Invzqp9e0/S220/DSC05800.JPG'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_pBTgD4-jQls/SWRLG5tumtI/AAAAAAAAAyk/XLwTnBGgUOI/s72-c/1.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-144851838473318802.post-4479848078485532028</id><published>2008-12-15T00:41:00.000-08:00</published><updated>2008-12-15T01:14:37.743-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Meaning of status_code and phase_code in FND_CONCURRENT_REQUESTS table'/><title type='text'>Meaning of status_code and phase_code in FND_CONCURRENT_REQUESTS table</title><content type='html'>&lt;strong&gt;STATUS_CODE Column:&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;A - Waiting&lt;br /&gt;B - Resuming&lt;br /&gt;C - Normal&lt;br /&gt;D - Cancelled&lt;br /&gt;E - Error&lt;br /&gt;F - Scheduled&lt;br /&gt;G - Warning&lt;br /&gt;H - On Hold&lt;br /&gt;I - Normal&lt;br /&gt;M - No Manager&lt;br /&gt;Q - Standby&lt;br /&gt;R - Normal&lt;br /&gt;S - Suspended&lt;br /&gt;T - Terminating&lt;br /&gt;U - Disabled&lt;br /&gt;W - Paused&lt;br /&gt;X - Terminated&lt;br /&gt;Z - Waiting&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;PHASE_CODE column&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;C - Completed&lt;br /&gt;I - Inactive&lt;br /&gt;P - Pending&lt;br /&gt;R - Running&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/144851838473318802-4479848078485532028?l=arunrathod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrathod.blogspot.com/feeds/4479848078485532028/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=144851838473318802&amp;postID=4479848078485532028' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/4479848078485532028'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/4479848078485532028'/><link rel='alternate' type='text/html' href='http://arunrathod.blogspot.com/2008/12/meaning-of-statuscode-and-phasecode-in.html' title='Meaning of status_code and phase_code in FND_CONCURRENT_REQUESTS table'/><author><name>Arun Kumar S.R</name><uri>http://www.blogger.com/profile/14745466774124137964</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_pBTgD4-jQls/SC-82Kq7MJI/AAAAAAAAAOs/e_Invzqp9e0/S220/DSC05800.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-144851838473318802.post-5265528858201344658</id><published>2008-12-08T23:06:00.000-08:00</published><updated>2008-12-08T23:07:29.903-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='DateTrack History view'/><title type='text'>DateTrack History view</title><content type='html'>The name of the default DateTrack History view is the same as that of the base table, except that the suffix _F is replaced by _D. For example, if the base table is PER_ALL_PEOPLE_F, the application looks for a view called PER_ALL_PEOPLE_D.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Note:&lt;/strong&gt; It is possible to define more than one History view for each datetracked table, so there might be examples where the History view name does not follow this naming convention.&lt;br /&gt;&lt;br /&gt;When a view exists, the application reads the information about the entity name and column prompts from the DateTrack tables:&lt;br /&gt;• DT_TITLE_PROMPTS_TL&lt;br /&gt;• DT_DATE_PROMPTS_TL&lt;br /&gt;• DT_COLUMN_PROMPTS_TL&lt;br /&gt;&lt;br /&gt;If the column information is not available in the DT_COLUMN_PROMPTS_TL table, the information is obtained from the view definition. The DateTrack History code modifies the column names of the table or view before presenting them. Underscores are replaced by spaces and the first letter of each word appears in upper case.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/144851838473318802-5265528858201344658?l=arunrathod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrathod.blogspot.com/feeds/5265528858201344658/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=144851838473318802&amp;postID=5265528858201344658' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/5265528858201344658'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/5265528858201344658'/><link rel='alternate' type='text/html' href='http://arunrathod.blogspot.com/2008/12/datetrack-history-view.html' title='DateTrack History view'/><author><name>Arun Kumar S.R</name><uri>http://www.blogger.com/profile/14745466774124137964</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_pBTgD4-jQls/SC-82Kq7MJI/AAAAAAAAAOs/e_Invzqp9e0/S220/DSC05800.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-144851838473318802.post-998311512532747517</id><published>2008-12-08T23:00:00.000-08:00</published><updated>2008-12-08T23:05:47.420-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Understanding the p_validate Control Parameter in HRMS API&apos;s'/><title type='text'>Understanding the p_validate Control Parameter in HRMS API's</title><content type='html'>Every published API includes the p_validate control parameter. When this parameter is set to FALSE (the default value), the procedure executes all validation for that business function. If the operation is valid, the database rows/values are inserted or updated or deleted. Any non warning OUT parameters, warning OUT parameters and IN OUT parameters are all set with specific values.&lt;br /&gt;&lt;br /&gt;When the p_validate parameter is set to TRUE, the API only checks that the operation is valid. It does so by issuing a savepoint at the start of the procedure and rolling back to that savepoint at the end. You do not have access to these internal savepoints. If the procedure is successful, without raising any validation errors, then non-warning OUT parameters are set to null, warning OUT parameters are set to a specific value, and IN OUT parameters are reset to their IN values.&lt;br /&gt;&lt;br /&gt;In some cases we may want to write our own PL/SQL routines using the public API procedures as building blocks. This enables us to write routines specific to our business needs. For example, say that we have a business requirement to apply a DateTracked update to a row and then apply a DateTrack delete to the same row in the future. We could write an "update_and_future_del" procedure that calls two of the standard APIs.&lt;br /&gt;&lt;br /&gt;When calling each standard API, p_validate must be set to false. If true is used the update procedure call is rolled back. So when the delete procedure is called, it is working on the non-updated version of the row. However when p_validate is set to false, the update is not rolled back. Thus, the delete call operates as if the user really wanted to apply the whole transaction.&lt;br /&gt;&lt;br /&gt;If we want to be able to check that the update and delete operation is valid, you must issue your own savepoint and rollback commands. As the APIs do not issue any commits, there is no danger of part of the work being left in the database. It is the responsibility of the calling code to issue commits. &lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Note: &lt;/strong&gt;You should not use our API procedure names for the savepoint names. An unexpected result may occur if you do not use different names.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/144851838473318802-998311512532747517?l=arunrathod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrathod.blogspot.com/feeds/998311512532747517/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=144851838473318802&amp;postID=998311512532747517' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/998311512532747517'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/998311512532747517'/><link rel='alternate' type='text/html' href='http://arunrathod.blogspot.com/2008/12/understanding-pvalidate-control.html' title='Understanding the p_validate Control Parameter in HRMS API&apos;s'/><author><name>Arun Kumar S.R</name><uri>http://www.blogger.com/profile/14745466774124137964</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_pBTgD4-jQls/SC-82Kq7MJI/AAAAAAAAAOs/e_Invzqp9e0/S220/DSC05800.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-144851838473318802.post-2675300147655729958</id><published>2008-11-19T04:14:00.000-08:00</published><updated>2008-11-19T04:22:50.128-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SMSing using PL/SQL'/><title type='text'>SMSing using PL/SQL</title><content type='html'>1. Compile the below procedure on sql*plus&lt;br /&gt;&lt;br /&gt;CREATE OR REPLACE PROCEDURE send_sms (&lt;br /&gt;   p_sender      IN   VARCHAR2,&lt;br /&gt;   p_recipient   IN   VARCHAR2,&lt;br /&gt;   p_message     IN   VARCHAR2&lt;br /&gt;)&lt;br /&gt;AS&lt;br /&gt;   mailcon   UTL_SMTP.connection;&lt;br /&gt;BEGIN&lt;br /&gt;   mailcon := UTL_SMTP.open_connection ('localhost');&lt;br /&gt;   UTL_SMTP.helo (mailcon, 'localhost');&lt;br /&gt;   UTL_SMTP.mail (mailcon, p_sender);&lt;br /&gt;   UTL_SMTP.rcpt (mailcon, p_recipient);&lt;br /&gt;   UTL_SMTP.DATA (mailcon,&lt;br /&gt;                     'From: '&lt;br /&gt;                  || p_sender&lt;br /&gt;                  || UTL_TCP.crlf&lt;br /&gt;                  || 'To: '&lt;br /&gt;                  || p_recipient&lt;br /&gt;                  || UTL_TCP.crlf&lt;br /&gt;                  || 'Subject: SMS From Database'&lt;br /&gt;                  || UTL_TCP.crlf&lt;br /&gt;                  || p_message&lt;br /&gt;                 );&lt;br /&gt;   UTL_SMTP.quit (mailcon);&lt;br /&gt;END;&lt;br /&gt;&lt;br /&gt;2. We need to execute the above procedure so as to send SMS. The systax is as follows:&lt;br /&gt;&lt;br /&gt;exec SEND_SMS('arun@yahoo.com', &lt;em&gt;'984812345@ideacellular.net'&lt;/em&gt;,'This is my first SMS');&lt;br /&gt;&lt;br /&gt;Note: In place of the '984812345@ideacellular.net' you need to provide your mobile number. Also please refer to the below list of mobile operator and the area of the service.&lt;br /&gt;&lt;br /&gt;Andhra Pradesh AirTel-----------Mobile No@airtelap.com&lt;br /&gt;Andhra Pradesh Idea Cellular-----Mobile No@ideacellular.net&lt;br /&gt;Chennai Skycell/Airtel------------Mobile No@airtelchennai.com&lt;br /&gt;Chennai RPG Cellular-------------Mobile No@rpgmail.net&lt;br /&gt;Delhi Airtel-----------------------Mobile No@airtelmail.com&lt;br /&gt;Delhi Hutch-----------------------Mobile No@delhi.hutch.co.in&lt;br /&gt;Gujarat Airtel---------------------Mobile No@airtelmail.com&lt;br /&gt;Gujarat Idea Cellular--------------Mobile No@ideacellular.net&lt;br /&gt;Gujarat Celforce/Fascel-----------Mobile No@celforce.com&lt;br /&gt;Goa Airtel-------------------------Mobile No@airtelmail.com&lt;br /&gt;Goa BPL Mobile-------------------Mobile No@bplmobile.com&lt;br /&gt;Goa Idea Cellular------------------Mobile No@ideacellular.net&lt;br /&gt;Haryana Airtel--------------------Mobile No@airtelmail.com&lt;br /&gt;Haryana Escotel-------------------Mobile No@escotelmobile.com&lt;br /&gt;Himachal Pradesh Airtel-----------Mobile No@airtelmail.com&lt;br /&gt;Karnataka Airtel-------------------Mobile No@airtelkk.com&lt;br /&gt;Kerala Airtel-----------------------Mobile No@airtelkerala.com&lt;br /&gt;Kerala Escotel---------------------Mobile No@escotelmobile.com&lt;br /&gt;Kerala BPL Mobile-----------------Mobile No@bplmobile.com&lt;br /&gt;Kolkata Airtel----------------------Mobile No @airtelkol.com&lt;br /&gt;Madhya Pradesh Airtel-------------Mobile No@airtelmail.com&lt;br /&gt;Maharashtra Airtel-----------------Mobile No@airtelmail.com&lt;br /&gt;Maharashtra BPL Mobile-----------Mobile No@bplmobile.com&lt;br /&gt;Maharashtra Idea Cellular----------Mobile No@ideacellular.net&lt;br /&gt;Mumbai Airtel----------------------Mobile No@airtelmail.com&lt;br /&gt;Mumbai BPL Mobile----------------Mobile No@bplmobile.com&lt;br /&gt;Punjab Airtel-----------------------Mobile No@airtelmail.com&lt;br /&gt;Pondicherry BPL Mobile------------Mobile No @bplmobile.com&lt;br /&gt;Tamil Nadu Airtel-------------------Mobile No@airtelmail.com&lt;br /&gt;Tamil Nadu BPL Mobile-------------Mobile No@bplmobile.com&lt;br /&gt;Tamil Nadu Aircel-------------------Mobile No@airsms.com&lt;br /&gt;UP (West) Escotel-------------------Mobile No@escotelmobile.com&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/144851838473318802-2675300147655729958?l=arunrathod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrathod.blogspot.com/feeds/2675300147655729958/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=144851838473318802&amp;postID=2675300147655729958' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/2675300147655729958'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/2675300147655729958'/><link rel='alternate' type='text/html' href='http://arunrathod.blogspot.com/2008/11/smsing-using-plsql.html' title='SMSing using PL/SQL'/><author><name>Arun Kumar S.R</name><uri>http://www.blogger.com/profile/14745466774124137964</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_pBTgD4-jQls/SC-82Kq7MJI/AAAAAAAAAOs/e_Invzqp9e0/S220/DSC05800.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-144851838473318802.post-3358685991184435590</id><published>2008-11-19T03:50:00.000-08:00</published><updated>2008-11-19T03:51:45.940-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='How to add comments on a table or a column.'/><title type='text'>How to add comments on a table or a column.</title><content type='html'>If we want to give a comment on a table :&lt;br /&gt; &lt;br /&gt;COMMENT ON TABLE &lt;table_name&gt;&lt;br /&gt;IS 'the comments should go here';&lt;br /&gt; &lt;br /&gt;If we want to give a comment on a column :&lt;br /&gt; &lt;br /&gt;COMMENT ON TABLE &lt;table_name&gt; | COLUMN table.column&lt;br /&gt;IS 'the comments should go here';&lt;br /&gt; &lt;br /&gt;The entries of these comments on the table goes in the following tables:&lt;br /&gt; &lt;br /&gt;&lt;u&gt;For tables: &lt;/u&gt;&lt;br /&gt;select * from all_tab_comments&lt;br /&gt;where table_name ='table_name'&lt;br /&gt;&lt;br /&gt;select * from user_tab_comments&lt;br /&gt;where table_name = 'table_name'&lt;br /&gt; &lt;br /&gt;&lt;u&gt;For Columns: &lt;/u&gt;&lt;br /&gt;select * from all_col_comments&lt;br /&gt;where table_name = 'table_name'&lt;br /&gt;&lt;br /&gt;select * from user_col_comments&lt;br /&gt;where table_name = 'table_name'&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/144851838473318802-3358685991184435590?l=arunrathod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrathod.blogspot.com/feeds/3358685991184435590/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=144851838473318802&amp;postID=3358685991184435590' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/3358685991184435590'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/3358685991184435590'/><link rel='alternate' type='text/html' href='http://arunrathod.blogspot.com/2008/11/how-to-add-comments-on-table-or-column.html' title='How to add comments on a table or a column.'/><author><name>Arun Kumar S.R</name><uri>http://www.blogger.com/profile/14745466774124137964</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_pBTgD4-jQls/SC-82Kq7MJI/AAAAAAAAAOs/e_Invzqp9e0/S220/DSC05800.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-144851838473318802.post-6718746038321850144</id><published>2008-11-18T22:12:00.000-08:00</published><updated>2008-11-18T22:21:42.644-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='How to Compile and port a Form (fmb) in Oracle'/><title type='text'>How to Compile and port a Form (fmb) in Oracle</title><content type='html'>1. Port the attached form to unix directory to any top using FTP (Preferable we port the form to the AU_TOP)&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;NOTE:&lt;/strong&gt; Copy .fmb files (form files) in Binary mode.&lt;br /&gt;&lt;br /&gt;2. Connect to the telnet and change the directory to the top where we have ported the fmd.&lt;br /&gt; &lt;br /&gt;Run the following commands in the above directory in Telnet:&lt;br /&gt;&lt;br /&gt;a) FORMS60_PATH=$FORMS60_PATH:$AU_TOP/forms/US&lt;br /&gt;b) f60gen module=&lt;em&gt;formname&lt;/em&gt;.fmb userid=apps/apps output_file=&lt;em&gt;formname&lt;/em&gt;.fmx module_type=form batch=no compile_all=special&lt;br /&gt;&lt;u&gt;example:&lt;/u&gt;&lt;br /&gt;f60gen module=XXTRRBT.fmb userid=apps/apps output_file=XXTRRBT.fmx module_type=form batch=no compile_all=special&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/144851838473318802-6718746038321850144?l=arunrathod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrathod.blogspot.com/feeds/6718746038321850144/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=144851838473318802&amp;postID=6718746038321850144' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/6718746038321850144'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/6718746038321850144'/><link rel='alternate' type='text/html' href='http://arunrathod.blogspot.com/2008/11/how-to-compile-and-port-form-fmb-in.html' title='How to Compile and port a Form (fmb) in Oracle'/><author><name>Arun Kumar S.R</name><uri>http://www.blogger.com/profile/14745466774124137964</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_pBTgD4-jQls/SC-82Kq7MJI/AAAAAAAAAOs/e_Invzqp9e0/S220/DSC05800.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-144851838473318802.post-4143905482459658378</id><published>2008-11-17T01:04:00.000-08:00</published><updated>2008-11-17T01:09:28.120-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Excellent information on all Oracle Application module topics'/><title type='text'>Excellent information on all Oracle Application module topics</title><content type='html'>Please visit the following website to find excellent information on all Oracle Application Modules:&lt;br /&gt;&lt;br /&gt;http://download-uk.oracle.com/docs/cd/A60725_05/html/comnls/us/index.htm&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/144851838473318802-4143905482459658378?l=arunrathod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrathod.blogspot.com/feeds/4143905482459658378/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=144851838473318802&amp;postID=4143905482459658378' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/4143905482459658378'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/4143905482459658378'/><link rel='alternate' type='text/html' href='http://arunrathod.blogspot.com/2008/11/excellent-information-on-all-oracle.html' title='Excellent information on all Oracle Application module topics'/><author><name>Arun Kumar S.R</name><uri>http://www.blogger.com/profile/14745466774124137964</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_pBTgD4-jQls/SC-82Kq7MJI/AAAAAAAAAOs/e_Invzqp9e0/S220/DSC05800.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-144851838473318802.post-4663318767956026587</id><published>2008-11-17T00:34:00.000-08:00</published><updated>2008-11-17T00:52:42.875-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Script to exclude the control M(^M) from unix files'/><title type='text'>Script to exclude the control M(^M) from unix files</title><content type='html'>The simple way to replace the control M character in UNIX format is as follows. &lt;br /&gt;&lt;br /&gt;1. dos2unix filename newfilename&lt;br /&gt;or&lt;br /&gt;2. Open the file which contains the control M character and type the following &lt;br /&gt;      :%s/Control v control M//g&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/144851838473318802-4663318767956026587?l=arunrathod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrathod.blogspot.com/feeds/4663318767956026587/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=144851838473318802&amp;postID=4663318767956026587' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/4663318767956026587'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/4663318767956026587'/><link rel='alternate' type='text/html' href='http://arunrathod.blogspot.com/2008/11/script-to-exclude-control-mm-from-unix.html' title='Script to exclude the control M(^M) from unix files'/><author><name>Arun Kumar S.R</name><uri>http://www.blogger.com/profile/14745466774124137964</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_pBTgD4-jQls/SC-82Kq7MJI/AAAAAAAAAOs/e_Invzqp9e0/S220/DSC05800.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-144851838473318802.post-5741387889320297731</id><published>2008-11-17T00:07:00.000-08:00</published><updated>2008-11-17T00:11:22.683-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Workflow Table Information'/><title type='text'>Workflow Table Information</title><content type='html'>&lt;strong&gt;WF_ITEM_TYPES&lt;/strong&gt;&lt;br /&gt;The WF_ITEM_TYPES table defines an item that is transitioning through a workflow process. NAME (PK), PROTECT_LEVEL, CUSTOM_LEVEL, PERSISTENCE_TYPE&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;WF_ITEM_ATTRIBUTES&lt;/strong&gt;&lt;br /&gt;The WF_ITEM_ATTRIBUTES table stores definitions of attributes associated with a process. Each row includes the sequence in which the attribute is used as well as the format of the attribute data. ITEM_TYPE (PK), NAME (PK), SEQUENCE, TYPE, PROTECT_LEVEL, CUSTOM_LEVEL&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;WF_ACTIVITIES&lt;/strong&gt;&lt;br /&gt;WF_ACTIVITIES table stores the definition of an activity. Activities can be processes, notifications, functions or folders.ITEM_TYPE (PK), NAME (PK), VERSION(PK), TYPE, RERUN, EXPAND_ROLE, PROTECT_LEVEL, CUSTOM_LEVEL, BEGIN_DATE, RROR_ITEM_TYPE, RUNNABLE_FLAG&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;WF_ACTIVITY_ATTRIBUTES&lt;/strong&gt;&lt;br /&gt;The WF_ACTIVITY_ATTRIBUTES table defines attributes which behave as parameters for an activity. Activity attributes are only used by function activities.Examples of valid attribute types are DATE, DOCUMENT, FORM, ITEMATTR, LOOKUP, and VARCHAR2.&lt;br /&gt;ACTIVITY_ITEM_TYPE (PK), ACTIVITY_NAME (PK), ACTIVITY_VERSION (PK), NAME (PK), SEQUENCE, TYPE, VALUE_TYPE, PROTECT_LEVEL, CUSTOM_LEVEL&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;WF_MESSAGES&lt;/strong&gt;&lt;br /&gt;WF_MESSAGES contains the definitions of messages which may be sent out as notifications. TYPE (PK), NAME (PK), PROTECT_LEVEL, CUSTOM_LEVEL&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;WF_MESSAGE_ATTRIBUTES&lt;/strong&gt;&lt;br /&gt;WF_MESSAGE_ATTRIBUTES contains message attribute definitions.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;WF_NOTIFICATIONS&lt;/strong&gt;&lt;br /&gt;WF_NOTIFICATIONS holds the runtime information about a specific instance of a sent message. A new row is created in the table each time a message is sent.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;WF_NOTIFICATION_ATTRIBUTES&lt;/strong&gt;&lt;br /&gt;WF_NOTIFICATION_ATTRIBUTES holds rows created for attributes of a notification. When each new notification is created, a notification attribute row is created for each message attribute in the message definition. Initially, the values of the notification attributes are set to the default values specified in the message attribute definition.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;WF_ITEMS&lt;/strong&gt;&lt;br /&gt;WF_ITEMS is the runtime table for workflow processes. Each row defines one work item within the system. ITEM_TYPE (PK), ITEM_KEY (PK), ROOT_ACTIVITY, ROOT_ACTIVITY_VERSION, BEGIN_DATE&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;WF_ITEM_ACTIVITY_STATUSES&lt;/strong&gt;&lt;br /&gt;The WF_ITEM_ACTIVITY_STATUSES TABLE is the runtime table for a work item. Each row includes the start and end date, result code, and any error information an activity generates. ITEM_TYPE (PK), ITEM_KEY (PK), PROCESS_ACTIVITY (PK)&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;WF_ITEM_ACTIVITY_STATUSES_H&lt;/strong&gt;&lt;br /&gt;The WF_ITEM_ACTIVITY_STATUSES_H table stores the history of the WF_ITEM_ACTIVITY_STATUSES table. ITEM_TYPE, ITEM_KEY, PROCESS_ACTIVITY&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;WF_PROCESS_ACTIVITIES&lt;/strong&gt;&lt;br /&gt;WF_PROCESS_ACTIVITIES stores the data for an activity within a specific process. PROCESS_ITEM_TYPE, PROCESS_NAME, PROCESS_VERSION, ACTIVITY_ITEM_TYPE, ACTIVITY_NAME, INSTANCE_ID (PK), INSTANCE_LABEL, PERFORM_ROLE_TYPE, PROTECT_LEVEL, CUSTOM_LEVEL&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;WF_ACTIVITY_TRANSITIONS&lt;/strong&gt;&lt;br /&gt;The WF_ACTIVITY_TRANSITIONS table defines the transitions from one activity to another in a process. Each row includes the activities at the beginning and end of the transition, as well as the result code and physical location of the transition in the process window. FROM_PROCESS_ACTIVITY (PK), RESULT_CODE (PK), TO_PROCESS_ACTIVITY (PK), PROTECT_LEVEL,CUSTOM_LEVEL&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;WF_ACTIVITY_ATTR_VALUES&lt;/strong&gt;&lt;br /&gt;The WF_ACTIVITY_ATTR_VALUES table contains the data for the activity attributes. Each row includes the process activity id and the associated value for the attribute. PROCESS_ACTIVITY_ID (PK), NAME (PK), VALUE_TYPE, PROTECT_LEVEL, CUSTOM_LEVEL&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/144851838473318802-5741387889320297731?l=arunrathod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrathod.blogspot.com/feeds/5741387889320297731/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=144851838473318802&amp;postID=5741387889320297731' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/5741387889320297731'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/5741387889320297731'/><link rel='alternate' type='text/html' href='http://arunrathod.blogspot.com/2008/11/workflow-table-information.html' title='Workflow Table Information'/><author><name>Arun Kumar S.R</name><uri>http://www.blogger.com/profile/14745466774124137964</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_pBTgD4-jQls/SC-82Kq7MJI/AAAAAAAAAOs/e_Invzqp9e0/S220/DSC05800.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-144851838473318802.post-2318550833633285892</id><published>2008-11-16T21:46:00.000-08:00</published><updated>2008-11-16T21:47:29.614-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Approved Supplier List (ASL)'/><title type='text'>Approved Supplier List (ASL)</title><content type='html'>Approved Supplier Lists in Oracle is the term used to describe a list of items and commodities that have approved sources from a list of suppliers.&lt;br /&gt;&lt;br /&gt;All procurement organisations maintain lists that associate the items and services they buy with the companies who supply them, either formally or informally. Data stored in a controlled, global repository containing relevant details about each ship-from/ship-to/item relationship, is known as an Approved Supplier List (ASL). &lt;br /&gt;&lt;br /&gt;&lt;u&gt;&lt;strong&gt;Navigation for Approved Supplier List&lt;/strong&gt;&lt;/u&gt;&lt;br /&gt;PO Super User -&gt; Supply base -&gt; Approved Supplier List&lt;br /&gt;&lt;br /&gt;Select the organization, then define the supplier for category or Item for which you want to define, and status to approved.&lt;br /&gt;&lt;br /&gt;&lt;u&gt;&lt;strong&gt;API's used to insert the Approved Supplier List's are as follows:&lt;/strong&gt;&lt;/u&gt;&lt;br /&gt;po_asl_ths.insert_row&lt;br /&gt;po_asl_attributes_ths.insert_row&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/144851838473318802-2318550833633285892?l=arunrathod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrathod.blogspot.com/feeds/2318550833633285892/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=144851838473318802&amp;postID=2318550833633285892' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/2318550833633285892'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/2318550833633285892'/><link rel='alternate' type='text/html' href='http://arunrathod.blogspot.com/2008/11/approved-supplier-list-asl.html' title='Approved Supplier List (ASL)'/><author><name>Arun Kumar S.R</name><uri>http://www.blogger.com/profile/14745466774124137964</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_pBTgD4-jQls/SC-82Kq7MJI/AAAAAAAAAOs/e_Invzqp9e0/S220/DSC05800.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-144851838473318802.post-5519153546873705510</id><published>2008-11-14T04:04:00.000-08:00</published><updated>2008-11-14T04:27:32.269-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Index on Clob datatype'/><title type='text'>Index on Clob datatype</title><content type='html'>CREATE INDEX &lt;ctx_whatever_name_of_index&gt; ON &lt;table_name&gt; (&lt;field_name&gt;) INDEXTYPE IS CTXSYS.CONTEXT PARAMETERS ('DATASTORE CTXSYS.DEFAULT_DATASTORE');&lt;br /&gt;&lt;br /&gt;The index creation includes a clause for setting the INDEXTYPE. I specified CTXSYS.CONTEXT as the type of index to create. CTXSYS is the Oracle Text schema, and this schema owns Oracle Text built-in features. The CTXAPP role granted to my user (TEXT_USER) provides permissions to use this index, but it must still be fully qualified with the schema name. CONTEXT is the type of index I am creating.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/144851838473318802-5519153546873705510?l=arunrathod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrathod.blogspot.com/feeds/5519153546873705510/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=144851838473318802&amp;postID=5519153546873705510' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/5519153546873705510'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/5519153546873705510'/><link rel='alternate' type='text/html' href='http://arunrathod.blogspot.com/2008/11/index-on-clob-datatype.html' title='Index on Clob datatype'/><author><name>Arun Kumar S.R</name><uri>http://www.blogger.com/profile/14745466774124137964</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_pBTgD4-jQls/SC-82Kq7MJI/AAAAAAAAAOs/e_Invzqp9e0/S220/DSC05800.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-144851838473318802.post-351183405692039801</id><published>2008-10-23T00:50:00.000-07:00</published><updated>2008-10-23T00:57:18.893-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Overview of Inventory Transactions'/><title type='text'>Overview of Inventory Transactions</title><content type='html'>1. Transferring material between subinventories.&lt;br /&gt;2. Performing miscellaneous transactions (miscellaneous issues and receipts).&lt;br /&gt;3. Transferring material between Organizations.&lt;br /&gt;4. Tracking lots and serial numbers for an item (Assigning Lot Numbers, Assigning Serial Numbers).&lt;br /&gt;5. Generating material shortage alerts and material shortage notifications.&lt;br /&gt;6. Entering and maintaining movement statistics information.&lt;br /&gt;7. Viewing Material Transactions.&lt;br /&gt;8. Viewing material transaction accounting distributions.&lt;br /&gt;9. Viewing Transaction Summaries for a range of dates.&lt;br /&gt;10. Viewing Pending Transactions.&lt;br /&gt;11. Viewing and Updating pending Transaction Interface Activity.&lt;br /&gt;12. Purging Transaction History.&lt;br /&gt;13. Viewing Serial Genealogy.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Transferring Material Between Subinventories:&lt;/strong&gt;&lt;br /&gt;1. You can transfer material within your current organization between subinventories, or between two locators within the same subinventory.&lt;br /&gt;2. You can transfer from asset to expense subinventories, as well as from tracked to non–tracked subinventories. (Here Asset, Expense, Tracked and Non-Tracked are the types of subinventories)&lt;br /&gt;3. If an item has a restricted list of subinventories (Item is sub inventory controlled.), you can only transfer material from and to subinventories in that list. &lt;br /&gt;4. Oracle Inventory allows you to use user–defined transaction types when performing a subinventory transfer. &lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Steps for entering a subinventory transfer:&lt;/strong&gt;&lt;br /&gt;1. Navigate to the Subinventory Transfer window. &lt;br /&gt;2. Enter the date and time of entry for the transaction.&lt;br /&gt;3. Enter a transaction type for the subinventory transfer. This can either be a predefined system type or one you defined.&lt;br /&gt;4. Optionally, enter the source of the transaction type ex: Inventory&lt;br /&gt;5. Optionally, indicate if inventory information should be defaulted from the serial number.&lt;br /&gt;6. Choose Transaction Lines in the Subinventory Transfer window. The Transaction Lines Detail folder window appears.&lt;br /&gt;7. Enter an inventory item to transfer. If you choose to default inventory information from the serial number (step5), enter a serial number.&lt;br /&gt;8. Optionally, enter the revision for the item. You must enter a value here if the item is under revision control.&lt;br /&gt;9. Enter the subinventories from and to which to transfer material. Enter the same subinventory in the Sub and To Sub fields to transfer material between locators.&lt;br /&gt;10. Optionally, enter the locators from and to which to transfer the item. You must enter a value here if you established locator control. You can enter a new value in the To Locator field only if you defined locator control as dynamic entry.&lt;br /&gt;11. Optionally, enter a lot number for the item. If you want to enter multiple lot numbers, complete the remaining steps then choose the Lot/Serial button to display the Lot Entry window.&lt;br /&gt;12. Enter a unit of measure. This can be the primary unit of measure (the default) or any valid alternate unit of measure. If you enter an alternate unit of measure, Oracle Inventory issues the quantity you specify in this unit of measure. Oracle Inventory also converts the quantity to the primary unit of measure so that it can correctly update the on–hand quantity.&lt;br /&gt;13. Enter the quantity of the inventory item to transfer, based on the unit of measure you specified.&lt;br /&gt;14. Optionally, enter a reason code for the transaction. For example, you can use reason codes to allow you to mark exceptional charges to support a quality data collection and reporting system.&lt;br /&gt;15. Optionally, enter up to 240 characters of free text that describes the transaction. (Reference field).&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;To view quantity available and quantity on hand values:&lt;/strong&gt;&lt;br /&gt;Look at the following fields in the form.&lt;br /&gt;           &lt;br /&gt;&lt;u&gt;Available:&lt;/u&gt; Displays the quantity available to transfer, based on the unit of measure you specified. The available quantity is the quantity on hand less all reservations for the item. This amount could include the amount you have reserved if you enter a transaction source that has reservations against it. The available quantity includes reservations against current transaction source. The available quantity is specific to the revision level, lot number, From subinventory, and From locator you specify for the transfer.&lt;br /&gt;&lt;br /&gt;Reservations will always be against a Transaction Source (Inventory, Purchase Order etc.)&lt;br /&gt;&lt;br /&gt;&lt;u&gt;On hand:&lt;/u&gt; Displays the current on–hand quantity for the item, based on the unit of measure you specified. The on–hand quantity is specific to the revision, lot number, From subinventory, and From locator you specify for the transfer. On–hand includes quantities for pending transactions in the MTL–MATERIAL–TRANSACTIONS table.          &lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Performing Miscellaneous Transactions&lt;/strong&gt;&lt;br /&gt;With a miscellaneous transaction you can issue material to or receive material from general ledger accounts in your current organization.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/144851838473318802-351183405692039801?l=arunrathod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrathod.blogspot.com/feeds/351183405692039801/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=144851838473318802&amp;postID=351183405692039801' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/351183405692039801'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/351183405692039801'/><link rel='alternate' type='text/html' href='http://arunrathod.blogspot.com/2008/10/overview-of-inventory-transactions.html' title='Overview of Inventory Transactions'/><author><name>Arun Kumar S.R</name><uri>http://www.blogger.com/profile/14745466774124137964</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_pBTgD4-jQls/SC-82Kq7MJI/AAAAAAAAAOs/e_Invzqp9e0/S220/DSC05800.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-144851838473318802.post-3926774472615777598</id><published>2008-10-16T23:35:00.000-07:00</published><updated>2008-10-16T23:37:47.224-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Chr(13) appended to column values while performing sqlload'/><title type='text'>Chr(13) appended to column values while performing sqlload</title><content type='html'>Usually when we do the sqlload the '|' appends to the end of the string. This '|' is knows as Chr(13) and can be removed once the sqlload is done using the following update statement:&lt;br /&gt;&lt;br /&gt;Update &lt;em&gt;[table_name]&lt;/em&gt;&lt;br /&gt;set &lt;em&gt;[column_name]&lt;/em&gt; = trim(chr(13) from &lt;em&gt;[column_name]&lt;/em&gt;)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/144851838473318802-3926774472615777598?l=arunrathod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrathod.blogspot.com/feeds/3926774472615777598/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=144851838473318802&amp;postID=3926774472615777598' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/3926774472615777598'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/3926774472615777598'/><link rel='alternate' type='text/html' href='http://arunrathod.blogspot.com/2008/10/chr13-appended-to-column-values-while.html' title='Chr(13) appended to column values while performing sqlload'/><author><name>Arun Kumar S.R</name><uri>http://www.blogger.com/profile/14745466774124137964</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_pBTgD4-jQls/SC-82Kq7MJI/AAAAAAAAAOs/e_Invzqp9e0/S220/DSC05800.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-144851838473318802.post-6572231420851440162</id><published>2008-10-16T04:44:00.000-07:00</published><updated>2008-10-16T05:03:05.155-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Deadlocks and how to break them?'/><title type='text'>Deadlocks and how to break them?</title><content type='html'>&lt;strong&gt;What is a deadlock?&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Whenever you have competing DML running against the same data, you run the risk of a deadlock.  This deadlock condition is an age-old issue known as the "perpetual embrace"!  The doc note that a retry may work: &lt;br /&gt;&lt;br /&gt;&lt;em&gt;ORA-00060: deadlock detected while waiting for resource&lt;br /&gt;&lt;br /&gt;Cause: Transactions deadlocked one another while waiting for resources.&lt;br /&gt;&lt;br /&gt;Action: Look at the trace file to see the transactions and resources involved. Retry if necessary.&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;Deadlocks in Oracle result in this error:&lt;br /&gt;&lt;br /&gt;&lt;em&gt;ORA-00060: deadlock detected while waiting for resource&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;If your ORA-00060 is caused by competing resources, the perpetual embrace happens when the aborted task (Task B) attempts to lock a row which is being held by another task (Task A), which, in-turn, is waiting for task B to release a lock.  To prevent a perpetual wait, Oracle aborts the transaction that caused the deadlock.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;How to Break them?&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;SELECT a.object_name, b.process, b.session_id&lt;br /&gt;  FROM all_objects a, v$locked_object b&lt;br /&gt; WHERE a.object_id = b.object_id&lt;br /&gt;&lt;br /&gt;SELECT SID, serial#&lt;br /&gt;  FROM v$session&lt;br /&gt; WHERE SID = '[SESSION_ID]'&lt;br /&gt;&lt;br /&gt;ALTER SYSTEM KILL SESSION '[SID],[SERIAL#]'&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/144851838473318802-6572231420851440162?l=arunrathod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrathod.blogspot.com/feeds/6572231420851440162/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=144851838473318802&amp;postID=6572231420851440162' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/6572231420851440162'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/6572231420851440162'/><link rel='alternate' type='text/html' href='http://arunrathod.blogspot.com/2008/10/deadlocks-and-how-to-break-them.html' title='Deadlocks and how to break them?'/><author><name>Arun Kumar S.R</name><uri>http://www.blogger.com/profile/14745466774124137964</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_pBTgD4-jQls/SC-82Kq7MJI/AAAAAAAAAOs/e_Invzqp9e0/S220/DSC05800.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-144851838473318802.post-2078518575411637080</id><published>2008-10-15T22:55:00.000-07:00</published><updated>2009-08-16T04:48:32.357-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='All about MRP Sourcing Rules API and Single record insertion script'/><title type='text'>All about MRP Sourcing Rules API and Single record insertion script</title><content type='html'>&lt;strong&gt;Standard Validation&lt;/strong&gt;&lt;br /&gt;Oracle Master Scheduling/MRP validates all required columns in the Sourcing Rule/Bill of Distribution API. For specific information on the data implied by these columns, see your Oracle Master Scheduling/MRP Technical Reference Manual for details.&lt;br /&gt;&lt;br /&gt;If you do not want to update a particular column in:&lt;br /&gt;❏ MRP_SOURCING_RULE_PUB.PROCESS_SOURCING_RULE&lt;br /&gt;Do not enter NULL for its corresponding interface parameter unless the default in the PL/SQL specification is NULL. Either use one of the missing parameter constants defined in the FND_API package (G_MISS_...), or do not pass any value at all.&lt;br /&gt;&lt;br /&gt;For all flag parameters, pass in a Boolean constant defined in FND_API (G_TRUE or G_FALSE). Each time the API is called, it will check the allocation percent for each receiving organization that belongs to the sourcing rule or bill of distribution. If the total allocation percent is 100, the plannning_active attribute is set to a value of 1. Otherwise the attribute is set to 2.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Creating Sourcing Rule API Entries&lt;/strong&gt;&lt;br /&gt;When you create a new sourcing rule the following item level validations:&lt;br /&gt;■ sourcing_rule_name: must be defined in the MRP_SOURCING _RULES table.&lt;br /&gt;■ sourcing_rule_type: must be a either (1) Sourcing Rule or (2) Bill of&lt;br /&gt;Distribution.If the sourcing rule does not already exist in the system - the Status attribute is set to 1.&lt;br /&gt;When you create a new sourcing rule, the following record level validations occur:&lt;br /&gt;■ organization_id: must be a valid organization defined in ORG_ORGANIZATION_DEFINITIONS.&lt;br /&gt;■ The organization_id attribute is associated with a valid organization, unless it is null.&lt;br /&gt;When you create a new sourcing rule, the following object level validations occur:&lt;br /&gt;■ At least one receiving organization record is created.&lt;br /&gt;■ At least one shipping organization record is created.&lt;br /&gt;If validation is successful, a record is inserted into the MRP_SOURCING_RULES table.&lt;br /&gt;&lt;br /&gt;&lt;u&gt;&lt;strong&gt;Procedure Parameter Descriptions for MRP_SOURCING_RULE_PUB.PROCESS_SOURCING_RULE&lt;/strong&gt;&lt;/u&gt;&lt;br /&gt;The following content describes all parameters used by the public API MRP_SOURCING_RULE_PUB.PROCESS_SOURCING_RULE procedure. Additional information on these parameters follows.&lt;br /&gt;&lt;br /&gt;1. p_api_version_number&lt;br /&gt;Used to compare the incoming API call's version number with the current version number. An error is returned if the version numbers are incompatible.&lt;br /&gt;&lt;br /&gt;2. p_init_msg_list&lt;br /&gt;Requests that the API initialize the message list on your behalf. If the x_msg_count is greater than 1, then the list of messages must be retrieved using the call FND_MSG_PUB.GET. The values are:&lt;br /&gt;■ p_msg_index =&gt; I&lt;br /&gt;■ p_encoded =&gt; F&lt;br /&gt;■ p_data =&gt; 1_message&lt;br /&gt;■ p_msg_index_out =&gt; 1_msg_index_out&lt;br /&gt;where 1_message and 1_msg_index_out are local variables of types Varchar2(2000 and Number respectively.&lt;br /&gt;Default Value: FND_API.G_FALSE&lt;br /&gt;&lt;br /&gt;3. p_return_values&lt;br /&gt;Requests that the API send back the values on your behalf.&lt;br /&gt;Default Value: FND_API.G_FALSE&lt;br /&gt;&lt;br /&gt;4. p_commit&lt;br /&gt;Requests that the API update information for you after it completes its function.&lt;br /&gt;Default Value: FND_API.G_FALSE&lt;br /&gt;&lt;br /&gt;5. x_return_status&lt;br /&gt;Requests that the API return the status of the data for you after it completes its function. Valid values include:&lt;br /&gt;■ Success: FND_API.G_RET_STS_SUCCESS&lt;br /&gt;■ Error: FND_API.G_RET_STS_ERROR&lt;br /&gt;■ Unexpected Error: FND_API.G_RET_STS_UNEXP_ERROR&lt;br /&gt;&lt;br /&gt;6. x_msg_count&lt;br /&gt;Indicates number of error messages API has encountered.&lt;br /&gt;&lt;br /&gt;7. x_msg_data&lt;br /&gt;Displays error message text. If the x_msg_count is equal to 1, then this contains the actual message.&lt;br /&gt;&lt;br /&gt;8. p_sourcing_rule_rec&lt;br /&gt;The sourcing rule or bill of distribution record referenced by the API.&lt;br /&gt;Default Value: G_MISS_SOURCING_RULE_REC&lt;br /&gt;&lt;br /&gt;9. p_sourcing_rule_val_rec&lt;br /&gt;Resolves the values for the API, and then returns the information for the sourcing rule/bill of distribution record.&lt;br /&gt;Default Value: G_MISS_SOURCING_RULE_VAL_REC&lt;br /&gt;&lt;br /&gt;10. p_receiving_org_tbl&lt;br /&gt;The receiving organization information listed in the rule is returned to this parameter.&lt;br /&gt;Default Value: G_MISS_RECEIVING_ORG_TBL&lt;br /&gt;&lt;br /&gt;11. p_receiving_org_val_tbl&lt;br /&gt;Resolves the values for the API, and then returns the information for the receiving organization listed in the sourcing rule.&lt;br /&gt;Default Value: G_MISS_RECEIVING_ORG_VAL_TBL&lt;br /&gt;&lt;br /&gt;12. p_shipping_org_tbl&lt;br /&gt;The shipping organization information listed in the rule is returned to this parameter.&lt;br /&gt;Default Value: G_MISS_SHIPPING_ORG_TBL&lt;br /&gt;&lt;br /&gt;13. p_shipping_org_val_tbl&lt;br /&gt;Resolves the values for the API, and then returns the information for the shipping organization listed in the sourcing rule.&lt;br /&gt;Default Value: G_MISS_SHIPPING_ORG_VAL_TBL&lt;br /&gt;&lt;br /&gt;14. x_sourcing_rule_rec&lt;br /&gt;Result of the API data after it completes its function for the sourcing rule/bill of distribution record.&lt;br /&gt;&lt;br /&gt;15. x_sourcing_rule_val_rec&lt;br /&gt;Resolves the values for the API, and then returns the information for the sourcing rule/bill of distribution record.&lt;br /&gt;&lt;br /&gt;16. x_receiving_org_tbl&lt;br /&gt;Resolves the values for the API, and then returns the information for the receiving organization listed in the sourcing rule/bill of distribution record.&lt;br /&gt;&lt;br /&gt;17. x_receiving_org_val_tbl&lt;br /&gt;Resolves the values for the API, and then returns the information for the receiving organization listed in the rule.&lt;br /&gt;&lt;br /&gt;18. x_shipping_org_tbl&lt;br /&gt;Resolves the values for the API, and then returns the information for the shipping organization listed in the sourcing rule/bill of distribution record.&lt;br /&gt;&lt;br /&gt;19. x_shipping_org_val_tbl&lt;br /&gt;Resolves the values for the API, and then returns the information for the shipping organization listed in the rule.&lt;br /&gt;&lt;br /&gt;&lt;u&gt;&lt;strong&gt;Record Parameter Descriptions&lt;/strong&gt;&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;SOURCING_RULE_REC_TYPE&lt;/strong&gt;&lt;br /&gt;The procedure passes information to record groups and PL/SQL tables. The information below describes all records that are used by the SOURCING_RULE_REC_TYPE record with some additional information.&lt;br /&gt;&lt;br /&gt;1. sourcing_rule_id&lt;br /&gt;Identification number for the sourcing rule or bill of distribution record referenced by the API.&lt;br /&gt;Default Value: FND_API.G_MISS_NUM&lt;br /&gt;&lt;br /&gt;2. attribute 1 - 15&lt;br /&gt;Descriptive text for flexfields.&lt;br /&gt;Default Value: FND_API.G_MISS_CHAR&lt;br /&gt;&lt;br /&gt;3. attribute_category&lt;br /&gt;The category of the flexfield described in the attribute column.&lt;br /&gt;Default Value: FND_API.G_MISS_CHAR&lt;br /&gt;&lt;br /&gt;4. created_by&lt;br /&gt;Identification number for user initiating this program session.&lt;br /&gt;Default Value: FND_API.G_MISS_NUM&lt;br /&gt;&lt;br /&gt;5. creation_date&lt;br /&gt;Date this program session was created.&lt;br /&gt;Default Value: FND_API.G_MISS_DATE&lt;br /&gt;&lt;br /&gt;6. description&lt;br /&gt;Text describing the sourcing rule record type.&lt;br /&gt;Default Value: FND_API.G_MISS_CHAR&lt;br /&gt;&lt;br /&gt;7. last_updated_by&lt;br /&gt;User ID for user creating this program session.&lt;br /&gt;Default Value: FND_API.G_MISS_NUM&lt;br /&gt;&lt;br /&gt;8. last_update_date&lt;br /&gt;Date program was last updated.&lt;br /&gt;Default Value: FND_API.G_MISS_DATE&lt;br /&gt;&lt;br /&gt;9. last_update_login&lt;br /&gt;User login for user updating this program.&lt;br /&gt;Default Value: FND_API.G_MISS_NUM&lt;br /&gt;&lt;br /&gt;10. organization_id&lt;br /&gt;The identification number for the organization referenced in the sourcing rule or bill of distribution record.&lt;br /&gt;Default Value: FND_API.G_MISS_NUM&lt;br /&gt;&lt;br /&gt;11. planning_active&lt;br /&gt;Rule is active when the sum of the allocation percentages equals 100.&lt;br /&gt;Default Value: FND_API.G_MISS_NUM&lt;br /&gt;&lt;br /&gt;12. program_application_id&lt;br /&gt;Application identifier of the program that has made a call to the Sourcing Rule API if it is registered as a concurrent program in Oracle Application Object Library.&lt;br /&gt;Default Value: FND_API.G_MISS_NUM&lt;br /&gt;&lt;br /&gt;13. program_id&lt;br /&gt;Identifier of the program that has made a call to the Sourcing Rule API, if it is registered as a concurrent program in Oracle Application Object Library.&lt;br /&gt;Default Value: FND_API.G_MISS_NUM&lt;br /&gt;&lt;br /&gt;14. program_update_date&lt;br /&gt;The date when the program inserts or updates the sourcing records into the appropriate tables.&lt;br /&gt;Default Value: FND_API.G_MISS_DATE&lt;br /&gt;&lt;br /&gt;15. request_id&lt;br /&gt;The request ID determines which profile values are used as a default.&lt;br /&gt;Default Value: FND_API.G_MISS_NUM&lt;br /&gt;&lt;br /&gt;16. sourcing_rule_name&lt;br /&gt;Valid name of rule defined in the MRP_SOURCING _RULES table.&lt;br /&gt;Default Value: FND_API.G_MISS_CHAR&lt;br /&gt;&lt;br /&gt;17. sourcing_rule_type&lt;br /&gt;Valid types must be one of the following values:&lt;br /&gt;■ (1) Sourcing Rule&lt;br /&gt;■ (2) Bill of Distribution&lt;br /&gt;Default Value: FND_API.G_MISS_NUM&lt;br /&gt;&lt;br /&gt;18. status&lt;br /&gt;If any validation fails, the API will return error status to the calling module. The Sourcing Rule API processes the rows and reports the following values for every record. If the sourcing rule does not already exist in the system - the Status attribute is set to 1. Processing status of the sourcing rule, valid values are:&lt;br /&gt;■ (1)&lt;br /&gt;■ (2)&lt;br /&gt;Default Value: FND_API.G_MISS_NUM&lt;br /&gt;&lt;br /&gt;19. return_status&lt;br /&gt;Processing status of the API after it completes its function. Valid values include:&lt;br /&gt;■ Success: FND_API.G_RET_STS_SUCCESS&lt;br /&gt;■ Error: FND_API.G_RET_STS_ERROR&lt;br /&gt;■ Unexpected Error: FND_API.G_RET_STS_UNEXP_ERROR&lt;br /&gt;Default Value: FND_API.G_MISS_CHAR&lt;br /&gt;&lt;br /&gt;20. db_flag&lt;br /&gt;Indicator of the record existing in the database.&lt;br /&gt;Default Value: FND_API.G_MISS_CHAR&lt;br /&gt;&lt;br /&gt;21. operation&lt;br /&gt;Indicator of whether the record is inserted, updated, or deleted. Valid values include:&lt;br /&gt;■ Create&lt;br /&gt;■ Update&lt;br /&gt;■ Delete&lt;br /&gt;Default Value: FND_API.G_MISS_CHAR&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;RECEIVING_ORG_REC_TYPE&lt;/strong&gt;&lt;br /&gt;The procedure passes information to record groups and PL/SQL tables. The information below describes all records that are used by the RECEIVING_ORG_REC_TYPE&lt;br /&gt;record with additional information:&lt;br /&gt;&lt;br /&gt;1. sr_receipt_id&lt;br /&gt;Identification number for the receiving organization referenced in the sourcing rule or bill of distribution record.&lt;br /&gt;Default Value: FND_API.G_MISS_NUM&lt;br /&gt;&lt;br /&gt;2. attribute 1 - 15&lt;br /&gt;Descriptive text for flexfields.&lt;br /&gt;Default Value: FND_API.G_MISS_CHAR&lt;br /&gt;&lt;br /&gt;3. attribute_category&lt;br /&gt;The category of the flexfield described in the attribute column.&lt;br /&gt;Default Value: FND_API.G_MISS_CHAR&lt;br /&gt;&lt;br /&gt;4. created_by&lt;br /&gt;Identification number for user initiating this program session.&lt;br /&gt;Default Value: FND_API.G_MISS_NUM&lt;br /&gt;&lt;br /&gt;5. creation_date&lt;br /&gt;Date this program session was created.&lt;br /&gt;Default Value: FND_API.G_MISS_DATE&lt;br /&gt;&lt;br /&gt;6. disable_date&lt;br /&gt;Date the receipt organization is no longer effective.&lt;br /&gt;Default Value: FND_API.G_MISS_DATE&lt;br /&gt;&lt;br /&gt;7. effective_date&lt;br /&gt;Beginning date the receipt organization becomes effective.&lt;br /&gt;Default Value: FND_API.G_MISS_DATE&lt;br /&gt;&lt;br /&gt;8. last_updated_by&lt;br /&gt;User ID for user creating this program session.&lt;br /&gt;Default Value: FND_API.G_MISS_NUM&lt;br /&gt;&lt;br /&gt;9. last_update_date&lt;br /&gt;Date program was last updated.&lt;br /&gt;Default Value: FND_API.G_MISS_DATE&lt;br /&gt;&lt;br /&gt;10. last_update_login&lt;br /&gt;User login for user updating this program.&lt;br /&gt;Default Value: FND_API.G_MISS_NUM&lt;br /&gt;&lt;br /&gt;11. program_application_id&lt;br /&gt;Application identifier of the program that has made a call to the Sourcing Rule API if it is registered as a concurrent program in Oracle Application Object Library.&lt;br /&gt;Default Value: FND_API.G_MISS_NUM&lt;br /&gt;&lt;br /&gt;12. program_id&lt;br /&gt;Identifier of the program that has made a call to the Sourcing Rule API, if it is registered as a concurrent program in Oracle Application Object Library.&lt;br /&gt;Default Value: FND_API.G_MISS_NUM&lt;br /&gt;&lt;br /&gt;13. program_update_date&lt;br /&gt;The date when the program inserts or updates the sourcing records into the appropriate tables.&lt;br /&gt;Default Value: FND_API.G_MISS_DATE&lt;br /&gt;&lt;br /&gt;14. receipt_organization_id&lt;br /&gt;Identifier of the organization that serves as the destination for the sourcing rule or bill of distribution.&lt;br /&gt;Default Value: FND_API.G_MISS_NUM&lt;br /&gt;&lt;br /&gt;15. request_id&lt;br /&gt;The request ID determines which profile values are used as a default.&lt;br /&gt;Default Value: FND_API.G_MISS_NUM&lt;br /&gt;&lt;br /&gt;16. sourcing_rule_id&lt;br /&gt;Identification number for the sourcing rule or bill of distribution record referenced by the API.&lt;br /&gt;Default Value: FND_API.G_MISS_NUM&lt;br /&gt;&lt;br /&gt;17. return_status&lt;br /&gt;Processing status of the API after it completes its function. Valid values include:&lt;br /&gt;■ Success: FND_API.G_RET_STS_SUCCESS&lt;br /&gt;■ Error: FND_API.G_RET_STS_ERROR&lt;br /&gt;■ Unexpected Error: FND_API.G_RET_STS_UNEXP_ERROR&lt;br /&gt;Default Value: FND_API.G_MISS_CHAR&lt;br /&gt;&lt;br /&gt;18. db_flag&lt;br /&gt;Indicator of the record existing in the database.&lt;br /&gt;Default Value: FND_API.G_MISS_CHAR&lt;br /&gt;&lt;br /&gt;19. operation&lt;br /&gt;Indicator of whether the record is inserted, updated, or deleted. Valid values include:&lt;br /&gt;■ Create&lt;br /&gt;■ Update&lt;br /&gt;■ Delete&lt;br /&gt;Default Value: FND_API.G_MISS_CHAR&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;SHIPPING_ORG_REC_TYPE&lt;/strong&gt;&lt;br /&gt;The procedure passes information to record groups and PL/SQL tables. The information below describes all records that are used by the SHIPPING_ORG_REC_TYPE record with additional informatioin.&lt;br /&gt;&lt;br /&gt;1. sr_source_id&lt;br /&gt;Primary key in the sourcing rule or bill of distribution table.&lt;br /&gt;Default Value: FND_API.G_MISS_NUM&lt;br /&gt;&lt;br /&gt;2. allocation_percent&lt;br /&gt;Percentage allocated to each source organization/supplier site destination.&lt;br /&gt;Default Value: FND_API.G_MISS_NUM&lt;br /&gt;&lt;br /&gt;3. attribute 1 - 15&lt;br /&gt;Descriptive text for flexfields.&lt;br /&gt;Default Value: FND_API.G_MISS_CHAR&lt;br /&gt;&lt;br /&gt;4. attribute_category&lt;br /&gt;The category of the flexfield described in the attribute column.&lt;br /&gt;Default Value: FND_API.G_MISS_CHAR&lt;br /&gt;&lt;br /&gt;5. created_by&lt;br /&gt;Identification number for user initiating this program session.&lt;br /&gt;Default Value: FND_API.G_MISS_NUM&lt;br /&gt;&lt;br /&gt;6. creation_date&lt;br /&gt;Date this program session was created.&lt;br /&gt;Default Value: FND_API.G_MISS_DATE&lt;br /&gt;&lt;br /&gt;7. last_updated_by&lt;br /&gt;User ID for user creating this program session.&lt;br /&gt;Default Value: FND_API.G_MISS_NUM&lt;br /&gt;&lt;br /&gt;8. last_update_date&lt;br /&gt;Date program was last updated.&lt;br /&gt;Default Value: FND_API.G_MISS_DATE&lt;br /&gt;&lt;br /&gt;9. last_update_login&lt;br /&gt;User login for user updating this program.&lt;br /&gt;Default Value: FND_API.G_MISS_NUM&lt;br /&gt;&lt;br /&gt;10. program_application_id&lt;br /&gt;Application identifier of the program that has made a call to the Sourcing Rule API if it is registered as a concurrent program in Oracle Application Object Library.&lt;br /&gt;Default Value: FND_API.G_MISS_NUM&lt;br /&gt;&lt;br /&gt;11. program_id&lt;br /&gt;Identifier of the program that has made a call to the Sourcing Rule API, if it is registered as a concurrent program in Oracle Application Object Library.&lt;br /&gt;Default Value: FND_API.G_MISS_NUM&lt;br /&gt;&lt;br /&gt;12. program_update_date&lt;br /&gt;The date when the program inserts or updates the sourcing records into the appropriate tables.&lt;br /&gt;Default Value: FND_API.G_MISS_DATE&lt;br /&gt;&lt;br /&gt;13. rank&lt;br /&gt;Rank of the sources, valid values are non-zero integers.&lt;br /&gt;Default Value: FND_API.G_MISS_NUM&lt;br /&gt;&lt;br /&gt;14. request_id&lt;br /&gt;The request ID determines which profile values are used as a default.&lt;br /&gt;Default Value: FND_API.G_MISS_NUM&lt;br /&gt;&lt;br /&gt;15. secondary_inventory&lt;br /&gt;Currently not used.&lt;br /&gt;&lt;br /&gt;16. ship_method&lt;br /&gt;Method used when transporting material between source and destination.&lt;br /&gt;Default Value: FND_API.G_MISS_CHAR&lt;br /&gt;&lt;br /&gt;17. source_organization_id&lt;br /&gt;Identifier of the source organization.&lt;br /&gt;Default Value: FND_API.G_MISS_NUM&lt;br /&gt;&lt;br /&gt;18. source_type&lt;br /&gt;Indicator of the type of source. Valid values are:&lt;br /&gt;■ Make&lt;br /&gt;■ Transfer&lt;br /&gt;■ Buy&lt;br /&gt;Default Value: FND_API.G_MISS_NUM&lt;br /&gt;&lt;br /&gt;19. sr_receipt_id&lt;br /&gt;Identification number for the receiving organization referenced in the sourcing rule or bill of distribution record.&lt;br /&gt;Default Value: FND_API.G_MISS_NUM&lt;br /&gt;&lt;br /&gt;20. vendor_id&lt;br /&gt;Identifier of the vendor suppling the materials.&lt;br /&gt;Default Value: FND_API.G_MISS_NUM&lt;br /&gt;&lt;br /&gt;21. vendor_site_id&lt;br /&gt;Identifier where the vendor’s materials are located.&lt;br /&gt;Default Value: FND_API.G_MISS_NUM&lt;br /&gt;&lt;br /&gt;22. return_status&lt;br /&gt;Processing status of the API after it completes its function. Valid values include:&lt;br /&gt;■ Success: FND_API.G_RET_STS_SUCCESS&lt;br /&gt;■ Error: FND_API.G_RET_STS_ERROR&lt;br /&gt;■ Unexpected Error: FND_API.G_RET_STS_UNEXP_ERROR&lt;br /&gt;Default Value: FND_API.G_MISS_CHAR&lt;br /&gt;&lt;br /&gt;23. db_flag&lt;br /&gt;Indicator of the record existing in the database.&lt;br /&gt;Default Value: FND_API.G_MISS_CHAR&lt;br /&gt;&lt;br /&gt;24. operation&lt;br /&gt;Indicator of whether the record is inserted, updated, or deleted. Valid values include:&lt;br /&gt;■ Create&lt;br /&gt;■ Update&lt;br /&gt;■ Delete&lt;br /&gt;Default Value: FND_API.G_MISS_CHAR&lt;br /&gt;&lt;br /&gt;25. receiving_org_index&lt;br /&gt;Foreign key to the receipt organization PL/SQL table.&lt;br /&gt;Default Value: FND_API.G_MISS_NUM&lt;br /&gt;&lt;br /&gt;&lt;u&gt;&lt;strong&gt;Single Record insertion script for MRP Sourcing Rules&lt;/strong&gt;&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;DECLARE &lt;br /&gt;l_session_id NUMBER; &lt;br /&gt;l_return_status VARCHAR2(1); &lt;br /&gt;l_msg_count NUMBER := 0; &lt;br /&gt;l_msg_data VARCHAR2(1000); &lt;br /&gt;l_msg_index_out NUMBER; &lt;br /&gt;l_count NUMBER; &lt;br /&gt;l_err_count NUMBER := 0; &lt;br /&gt;l_sourcing_rule_rec MRP_SOURCING_RULE_PUB.SOURCING_RULE_REC_TYPE; &lt;br /&gt;l_sourcing_rule_val_rec&lt;br /&gt; MRP_SOURCING_RULE_PUB.SOURCING_RULE_VAL_REC_TYPE; &lt;br /&gt;l_receiving_org_tbl MRP_SOURCING_RULE_PUB.RECEIVING_ORG_TBL_TYPE; &lt;br /&gt;l_receiving_org_val_tbl&lt;br /&gt; MRP_SOURCING_RULE_PUB.RECEIVING_ORG_VAL_TBL_TYPE; &lt;br /&gt;l_shipping_org_tbl MRP_SOURCING_RULE_PUB.SHIPPING_ORG_TBL_TYPE; &lt;br /&gt;l_shipping_org_val_tbl MRP_SOURCING_RULE_PUB.SHIPPING_ORG_VAL_TBL_TYPE; &lt;br /&gt;o_sourcing_rule_rec MRP_SOURCING_RULE_PUB.SOURCING_RULE_REC_TYPE; &lt;br /&gt;o_sourcing_rule_val_rec&lt;br /&gt; MRP_SOURCING_RULE_PUB.SOURCING_RULE_VAL_REC_TYPE; &lt;br /&gt;o_receiving_org_tbl MRP_SOURCING_RULE_PUB.RECEIVING_ORG_TBL_TYPE; &lt;br /&gt;o_receiving_org_val_tbl&lt;br /&gt; MRP_SOURCING_RULE_PUB.RECEIVING_ORG_VAL_TBL_TYPE; &lt;br /&gt;o_shipping_org_tbl MRP_SOURCING_RULE_PUB.SHIPPING_ORG_TBL_TYPE; &lt;br /&gt;o_shipping_org_val_tbl MRP_SOURCING_RULE_PUB.SHIPPING_ORG_VAL_TBL_TYPE; &lt;br /&gt;BEGIN &lt;br /&gt;fnd_message.clear; &lt;br /&gt;l_sourcing_rule_rec := MRP_SOURCING_RULE_PUB.G_MISS_SOURCING_RULE_REC; &lt;br /&gt;l_sourcing_rule_rec.sourcing_rule_name := '1234'; --SR Name &lt;br /&gt;l_sourcing_rule_rec.Organization_Id:=207;&lt;br /&gt;l_sourcing_rule_rec.planning_active := 1; -- Active? &lt;br /&gt;l_sourcing_rule_rec.status := 1; -- Update New record &lt;br /&gt;l_sourcing_rule_rec.sourcing_rule_type := 1; -- 1:Sourcing Rule&lt;br /&gt; l_sourcing_rule_rec.operation := 'UPDATE'; &lt;br /&gt;l_sourcing_rule_rec.OPERATION=&gt;'CREATE';&lt;br /&gt;l_receiving_org_tbl := MRP_SOURCING_RULE_PUB.G_MISS_RECEIVING_ORG_TBL; &lt;br /&gt;l_shipping_org_tbl := MRP_SOURCING_RULE_PUB.G_MISS_SHIPPING_ORG_TBL;&lt;br /&gt;--l_receiving_org_tbl(1).Sr_Receipt_Id:=207; &lt;br /&gt;l_receiving_org_tbl(1).effective_date := trunc(sysdate)+1; &lt;br /&gt;l_receiving_org_tbl(1).disable_date := trunc(sysdate)+7; &lt;br /&gt;l_receiving_org_tbl(1).receipt_organization_id:=207;&lt;br /&gt;l_receiving_org_tbl(1).operation := 'CREATE'; -- Create or Update &lt;br /&gt;--l_shipping_org_tbl(1).Sr_Source_Id:=228;&lt;br /&gt;l_shipping_org_tbl(1).rank := 1; &lt;br /&gt;l_shipping_org_tbl(1).allocation_percent := 100; -- Allocation 100 &lt;br /&gt;l_shipping_org_tbl(1).source_type := 3; -- BUY FROM &lt;br /&gt;l_shipping_org_tbl(1).vendor_id := 21; &lt;br /&gt;l_shipping_org_tbl(1).receiving_org_index := 1; &lt;br /&gt;l_shipping_org_tbl(1).operation := 'CREATE'; &lt;br /&gt;dbms_output.put_line('before call'); &lt;br /&gt;dbms_output.put_line('Operation before call&lt;br /&gt; '||l_sourcing_rule_rec.operation); &lt;br /&gt;MRP_SOURCING_RULE_PUB.PROCESS_SOURCING_RULE( &lt;br /&gt;p_api_version_number =&gt;1.0 &lt;br /&gt;,p_init_msg_list =&gt;fnd_api.g_true &lt;br /&gt;,p_commit =&gt; fnd_api.g_true &lt;br /&gt;,x_return_status =&gt;l_return_status &lt;br /&gt;,x_msg_count =&gt;l_msg_count &lt;br /&gt;,x_msg_data =&gt;l_msg_data &lt;br /&gt;,p_sourcing_rule_rec =&gt; l_sourcing_rule_rec &lt;br /&gt;,p_sourcing_rule_val_rec =&gt; l_sourcing_rule_val_rec &lt;br /&gt;,p_receiving_org_tbl =&gt; l_receiving_org_tbl &lt;br /&gt;,p_receiving_org_val_tbl =&gt; l_receiving_org_val_tbl &lt;br /&gt;,p_shipping_org_tbl =&gt; l_shipping_org_tbl &lt;br /&gt;,p_shipping_org_val_tbl =&gt; l_shipping_org_val_tbl &lt;br /&gt;,x_sourcing_rule_rec =&gt; o_sourcing_rule_rec &lt;br /&gt;,x_sourcing_rule_val_rec =&gt; o_sourcing_rule_val_rec &lt;br /&gt;,x_receiving_org_tbl =&gt; o_receiving_org_tbl &lt;br /&gt;,x_receiving_org_val_tbl =&gt; o_receiving_org_val_tbl &lt;br /&gt;,x_shipping_org_tbl =&gt; o_shipping_org_tbl &lt;br /&gt;,x_shipping_org_val_tbl =&gt; o_shipping_org_val_tbl &lt;br /&gt;); &lt;br /&gt;if l_return_status = FND_API.G_RET_STS_SUCCESS then &lt;br /&gt;dbms_output.put_line('Success!'); &lt;br /&gt;else &lt;br /&gt;dbms_output.put_line('count:'||l_msg_count); &lt;br /&gt;IF l_msg_count &gt; 0 THEN &lt;br /&gt;FOR l_index IN 1..l_msg_count LOOP &lt;br /&gt;l_msg_data := fnd_msg_pub.get( &lt;br /&gt;p_msg_index =&gt; l_index, &lt;br /&gt;p_encoded =&gt; FND_API.G_FALSE); &lt;br /&gt;dbms_output.put_line(substr(l_msg_data,1,250)); &lt;br /&gt;END LOOP; &lt;br /&gt;dbms_output.put_line('MSG:'||o_sourcing_rule_rec.return_status); &lt;br /&gt;END IF; &lt;br /&gt;dbms_output.put_line('Failure!'); &lt;br /&gt;end if; &lt;br /&gt;END;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;Single Record insertion script for MRP Sourcing Rule Assignments&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;DECLARE&lt;br /&gt;   l_session_id               NUMBER;&lt;br /&gt;   l_return_status            VARCHAR2 (1);&lt;br /&gt;   l_msg_count                NUMBER                                     := 0;&lt;br /&gt;   l_msg_data                 VARCHAR2 (1000);&lt;br /&gt;   l_msg_index_out            NUMBER;&lt;br /&gt;   l_count                    NUMBER;&lt;br /&gt;   l_org_cnt                  NUMBER;&lt;br /&gt;   l_vendor_cnt               NUMBER;&lt;br /&gt;   l_org_class                VARCHAR2 (3);&lt;br /&gt;   l_org_num                  NUMBER;&lt;br /&gt;   l_line_num                 NUMBER                                     := 0;&lt;br /&gt;   l_err_count                NUMBER                                     := 0;&lt;br /&gt;   p                          NUMBER;&lt;br /&gt;   l_assignment_set_rec       mrp_src_assignment_pub.assignment_set_rec_type;&lt;br /&gt;   l_assignment_set_val_rec   mrp_src_assignment_pub.assignment_set_val_rec_type;&lt;br /&gt;   l_assignment_tbl           mrp_src_assignment_pub.assignment_tbl_type;&lt;br /&gt;   l_assignment_val_tbl       mrp_src_assignment_pub.assignment_val_tbl_type;&lt;br /&gt;   o_assignment_set_rec       mrp_src_assignment_pub.assignment_set_rec_type;&lt;br /&gt;   o_assignment_set_val_rec   mrp_src_assignment_pub.assignment_set_val_rec_type;&lt;br /&gt;   o_assignment_tbl           mrp_src_assignment_pub.assignment_tbl_type;&lt;br /&gt;   o_assignment_val_tbl       mrp_src_assignment_pub.assignment_val_tbl_type;&lt;br /&gt;BEGIN&lt;br /&gt;   fnd_message.CLEAR;&lt;br /&gt;  -- l_assignment_set_rec.assignment_set_id := 3530;&lt;br /&gt;  -- l_assignment_set_rec.assignment_set_name := 'Test_src1_set';&lt;br /&gt;--   l_assignment_set_rec.operation := 'CREATE';&lt;br /&gt;   l_assignment_tbl (1).assignment_set_id := 1;&lt;br /&gt;   l_assignment_tbl (1).assignment_type := 6;&lt;br /&gt;   l_assignment_tbl (1).operation := 'CREATE';&lt;br /&gt;   l_assignment_tbl (1).organization_id := 107;&lt;br /&gt;   l_assignment_tbl (1).inventory_item_id := 37002;&lt;br /&gt;   l_assignment_tbl (1).sourcing_rule_id := 1014;&lt;br /&gt;   l_assignment_tbl (1).sourcing_rule_type := 1;&lt;br /&gt;   mrp_src_assignment_pub.process_assignment&lt;br /&gt;                       (p_api_version_number          =&gt; 1.0,&lt;br /&gt;                        p_init_msg_list               =&gt; fnd_api.g_false,&lt;br /&gt;                        p_return_values               =&gt; fnd_api.g_false,&lt;br /&gt;                        p_commit                      =&gt; fnd_api.g_false,&lt;br /&gt;                        x_return_status               =&gt; l_return_status,&lt;br /&gt;                        x_msg_count                   =&gt; l_msg_count,&lt;br /&gt;                        x_msg_data                    =&gt; l_msg_data,&lt;br /&gt;                        p_assignment_set_rec          =&gt; l_assignment_set_rec,&lt;br /&gt;                        p_assignment_set_val_rec      =&gt; l_assignment_set_val_rec,&lt;br /&gt;                        p_assignment_tbl              =&gt; l_assignment_tbl,&lt;br /&gt;                        p_assignment_val_tbl          =&gt; l_assignment_val_tbl,&lt;br /&gt;                        x_assignment_set_rec          =&gt; o_assignment_set_rec,&lt;br /&gt;                        x_assignment_set_val_rec      =&gt; o_assignment_set_val_rec,&lt;br /&gt;                        x_assignment_tbl              =&gt; o_assignment_tbl,&lt;br /&gt;                        x_assignment_val_tbl          =&gt; o_assignment_val_tbl&lt;br /&gt;                       );&lt;br /&gt;&lt;br /&gt;   IF l_return_status = fnd_api.g_ret_sts_success&lt;br /&gt;   THEN&lt;br /&gt;      DBMS_OUTPUT.put_line ('Success!');&lt;br /&gt;   ELSE&lt;br /&gt;      DBMS_OUTPUT.put_line ('count:' || l_msg_count);&lt;br /&gt;&lt;br /&gt;      IF l_msg_count &gt; 0&lt;br /&gt;      THEN&lt;br /&gt;         FOR l_index IN 1 .. l_msg_count&lt;br /&gt;         LOOP&lt;br /&gt;            l_msg_data :=&lt;br /&gt;               fnd_msg_pub.get (p_msg_index      =&gt; l_index,&lt;br /&gt;                                p_encoded        =&gt; fnd_api.g_false&lt;br /&gt;                               );&lt;br /&gt;            DBMS_OUTPUT.put_line (SUBSTR (l_msg_data, 1, 250));&lt;br /&gt;         END LOOP;&lt;br /&gt;&lt;br /&gt;         DBMS_OUTPUT.put_line ('MSG:' || o_assignment_set_rec.return_status);&lt;br /&gt;      END IF;&lt;br /&gt;&lt;br /&gt;      DBMS_OUTPUT.put_line ('Failure!');&lt;br /&gt;   END IF;&lt;br /&gt;END;&lt;br /&gt;/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/144851838473318802-2078518575411637080?l=arunrathod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrathod.blogspot.com/feeds/2078518575411637080/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=144851838473318802&amp;postID=2078518575411637080' title='8 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/2078518575411637080'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/2078518575411637080'/><link rel='alternate' type='text/html' href='http://arunrathod.blogspot.com/2008/10/script-to-load-single-record-for-mrp.html' title='All about MRP Sourcing Rules API and Single record insertion script'/><author><name>Arun Kumar S.R</name><uri>http://www.blogger.com/profile/14745466774124137964</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_pBTgD4-jQls/SC-82Kq7MJI/AAAAAAAAAOs/e_Invzqp9e0/S220/DSC05800.JPG'/></author><thr:total>8</thr:total></entry><entry><id>tag:blogger.com,1999:blog-144851838473318802.post-3906595481084067602</id><published>2008-10-15T22:52:00.000-07:00</published><updated>2008-10-15T22:54:22.590-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Script to reset OM Records'/><category scheme='http://www.blogger.com/atom/ns#' term='while performing the conversions using interface approach'/><title type='text'>Script to reset OM Records, while performing the conversions using interface approach</title><content type='html'>UNDEFINE NEW_SOURCE_ID&lt;br /&gt;UNDEFINE OLD_SOURCE_ID&lt;br /&gt;&lt;br /&gt;select s.order_source_id, substrb(s.name,1,20) &lt;br /&gt;from oe_order_sources s;&lt;br /&gt;&lt;br /&gt;select s.order_source_id, substrb(s.name,1,20) source, count(distinct h.header_id) headers&lt;br /&gt;from oe_order_headers_all h,&lt;br /&gt;   oe_order_sources s&lt;br /&gt;where h.order_source_id = s.order_source_id&lt;br /&gt;group by s.order_source_id, s.name;&lt;br /&gt;&lt;br /&gt;update oe_order_headers_all&lt;br /&gt;set order_source_id = &amp;&amp;NEW_SOURCE_ID&lt;br /&gt;where order_source_id = &amp;&amp;OLD_SOURCE_ID;&lt;br /&gt;&lt;br /&gt;update oe_order_lines_all&lt;br /&gt;set order_source_id = &amp;&amp;NEW_SOURCE_ID&lt;br /&gt;where order_source_id = &amp;&amp;OLD_SOURCE_ID;&lt;br /&gt;&lt;br /&gt;select s.order_source_id, substrb(s.name,1,20) source, count(distinct h.header_id) headers&lt;br /&gt;from oe_order_headers_all h,&lt;br /&gt;   oe_order_sources s&lt;br /&gt;where h.order_source_id = s.order_source_id&lt;br /&gt;group by s.order_source_id, s.name;&lt;br /&gt;&lt;br /&gt;delete oe_headers_iface_all&lt;br /&gt;where order_source_id = &amp;&amp;OLD_SOURCE_ID;&lt;br /&gt;&lt;br /&gt;delete oe_lines_iface_all&lt;br /&gt;where order_source_id = &amp;&amp;OLD_SOURCE_ID;&lt;br /&gt;&lt;br /&gt;delete oe_actions_iface_all&lt;br /&gt;where order_source_id = &amp;&amp;OLD_SOURCE_ID;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/144851838473318802-3906595481084067602?l=arunrathod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrathod.blogspot.com/feeds/3906595481084067602/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=144851838473318802&amp;postID=3906595481084067602' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/3906595481084067602'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/3906595481084067602'/><link rel='alternate' type='text/html' href='http://arunrathod.blogspot.com/2008/10/script-to-reset-om-records-while.html' title='Script to reset OM Records, while performing the conversions using interface approach'/><author><name>Arun Kumar S.R</name><uri>http://www.blogger.com/profile/14745466774124137964</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_pBTgD4-jQls/SC-82Kq7MJI/AAAAAAAAAOs/e_Invzqp9e0/S220/DSC05800.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-144851838473318802.post-4846161059164591593</id><published>2008-10-13T22:19:00.000-07:00</published><updated>2008-10-13T22:20:54.505-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Import errors while loading Item Costs'/><title type='text'>Import errors while loading Item Costs</title><content type='html'>There is a good documentation for the import issues on the item costs in the metalink. Please refer to the doc id: 213583.1&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/144851838473318802-4846161059164591593?l=arunrathod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrathod.blogspot.com/feeds/4846161059164591593/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=144851838473318802&amp;postID=4846161059164591593' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/4846161059164591593'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/4846161059164591593'/><link rel='alternate' type='text/html' href='http://arunrathod.blogspot.com/2008/10/import-errors-while-loading-item-costs.html' title='Import errors while loading Item Costs'/><author><name>Arun Kumar S.R</name><uri>http://www.blogger.com/profile/14745466774124137964</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_pBTgD4-jQls/SC-82Kq7MJI/AAAAAAAAAOs/e_Invzqp9e0/S220/DSC05800.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-144851838473318802.post-229675727116661837</id><published>2008-10-13T22:13:00.000-07:00</published><updated>2008-10-13T22:16:14.866-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle Inventory'/><category scheme='http://www.blogger.com/atom/ns#' term='Units of Measure'/><title type='text'>Oracle Inventory, Units of Measure</title><content type='html'>First start with defining the Unit of Measure.&lt;br /&gt;&lt;br /&gt;For example, one class might be "Volume".  How does your business measure "Volume" ?  For example, the concrete business measures their product in cubic yards.  Utilities such as a water department measures their product in gallons. These are aspects of the class known as "Volume".  Another class might be "Distance".  How does your business measure "Distance" ?  &lt;br /&gt;&lt;br /&gt;For example, the concrete business measures distance in miles (number of miles dispatch makes a delivery to the customer).  A water department may measure distance in feet or even inches (amount of pipe laid to each customer.  These are all aspects of defining the Unit of Measure Classes, which is understanding the needs of the business.  Most businesses need many difference classes set up, for measures such as distance, volume, time, weight, etc.  Some may not be applicable.  &lt;br /&gt;&lt;br /&gt;The base unit of measure is normally the smallest possible unit of measure.  If the concrete company rounds off their miles, regardless and never is concerned about 1/10th of a mile, then 'mile' would be their base unit for distance.&lt;br /&gt;&lt;br /&gt;Second define your Units of Measure.  A primary unit of measure must be selected as the stocking unit of measure for an item in the organization.&lt;br /&gt;&lt;br /&gt;Third define your Unit of Measure Conversions.  Oracle does not know that 24 cans of soda make up a case.  This is an intra-class conversion - like items.  Suppose a can is the smallest unit of measure in this situation.  24 case equal a case.  12 cases equal a box.  8 boxes equal a pallet.  32 pallets equal a truck load.  These are the types measures that need the to be set up for intra-class conversions for all of your items.  If all of your items are cans, then this needs to be set up once.  If you have many different dissimiliar items, then intra-class conversions need to be set up for each different type of item.&lt;br /&gt;&lt;br /&gt;Interclass conversions.  Lets suppose that you measure your soda cans in ounces, 12 ounces to a can.  But your business also ships globally where the measure is performed in milliliters.  Therefore a interclass conversion needs to be set up that denotes that one fluid ounce equals 29.583 milliliters of product.  &lt;br /&gt;&lt;br /&gt;If you are in the concrete business, an you normally measure your product in cubic yards.  However many of your customers need to know how many cubic yards of concrete are necessary to cover 500 square feet (with an industry standard of 4 inch thicknesss).  This is an Intraclass conversion - you are converting cubic yards into square feet of product.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/144851838473318802-229675727116661837?l=arunrathod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrathod.blogspot.com/feeds/229675727116661837/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=144851838473318802&amp;postID=229675727116661837' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/229675727116661837'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/229675727116661837'/><link rel='alternate' type='text/html' href='http://arunrathod.blogspot.com/2008/10/oracle-inventory-units-of-measure.html' title='Oracle Inventory, Units of Measure'/><author><name>Arun Kumar S.R</name><uri>http://www.blogger.com/profile/14745466774124137964</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_pBTgD4-jQls/SC-82Kq7MJI/AAAAAAAAAOs/e_Invzqp9e0/S220/DSC05800.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-144851838473318802.post-2072004435486414443</id><published>2008-10-13T21:39:00.000-07:00</published><updated>2008-10-13T21:55:46.032-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Oracle Support and Why upgrading to R12?'/><title type='text'>Oracle Support and Why upgrading to R12?</title><content type='html'>&lt;u&gt;Oracle Support&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Premier Support:&lt;/strong&gt;&lt;br /&gt;- Includes certification with new third party products/versions and Oracle products&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Extended Support:&lt;/strong&gt;&lt;br /&gt;- Costs more than Premium Support&lt;br /&gt;- Certification is with most existing instead of new third party products/versions and Oracle products&lt;br /&gt;- Extended Support may not include certification with some new third party products/versions &lt;br /&gt;- So if you find a new problem with an existing certified configuration, Oracle Support will help you.&lt;br /&gt;- If you're still running Oracle 9i you're on Extended Support(which ends July 2010)&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Sustaining Support:&lt;/strong&gt;&lt;br /&gt;- Does not include new updates, fixes, security alerts, data fixes and critical patch updates; new tax, legal and regulatory updates; new upgrade scripts; certification with new third-party products/versions; certification with new Oracle Products&lt;br /&gt;- If you have a question and there's already an answer in Metalink, Oracle Support will point you to it&lt;br /&gt;- If you're still running Release 11.0.3, you're on Sustaining Support(which end Jan 2009)&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;What's the risk in not upgrading to R12?&lt;/strong&gt;&lt;br /&gt;- The biggest risk - Security/Performance&lt;br /&gt;- Critical Patch Updates(CPUs)&lt;br /&gt;- CPUs address security vulnerabilities&lt;br /&gt;- Oracle release a new CPU every quarter&lt;br /&gt;- R12 Apps CPUs are cumulative&lt;br /&gt;- Relase 12.0.4 includes the Jan 2008 CPU&lt;br /&gt;- Oracle follows strict compilance with ATG_PF RUP policy(N-1)&lt;br /&gt;  * January 2008 CPU will only support ATG RUP 5 and RUP 6&lt;br /&gt;  * To stay current on security, you must stay relatively current on ATG RUPs, which means that you must stay relatively current on which releases of the applications you are running&lt;br /&gt;- If Sarbanes-Oxley compilance is important to your company, can you afford to fall behind on security updates?&lt;br /&gt;- If you know there's a Critical Patch Update, and you know what vulnerabilities it fixes, so do hackers&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/144851838473318802-2072004435486414443?l=arunrathod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrathod.blogspot.com/feeds/2072004435486414443/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=144851838473318802&amp;postID=2072004435486414443' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/2072004435486414443'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/2072004435486414443'/><link rel='alternate' type='text/html' href='http://arunrathod.blogspot.com/2008/10/oracle-support-and-why-upgrading-to-r12.html' title='Oracle Support and Why upgrading to R12?'/><author><name>Arun Kumar S.R</name><uri>http://www.blogger.com/profile/14745466774124137964</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_pBTgD4-jQls/SC-82Kq7MJI/AAAAAAAAAOs/e_Invzqp9e0/S220/DSC05800.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-144851838473318802.post-281226980082363995</id><published>2008-10-08T01:02:00.000-07:00</published><updated>2008-10-08T01:13:21.833-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL*Loader'/><title type='text'>SQL*Loader</title><content type='html'>This section will provide a basic understanding of SQL*Loader. Most of the  information contained in this section is DIRECTLY extracted from 'ORACLE Server Utilities Users Guide' and all credit should be given to ORACLE. If you require more detailed information than provided in this section, consult the 'ORACLE Server Utilities Users Guide'. &lt;br /&gt;&lt;br /&gt;SQL*Loader is a product for moving data from external files into tables in an ORACLE database. SQL*Loader loads data in a variety of formats, performs filtering (selectively loading records based upon the data values), and loads multiple tables simultaneously. During execution SQL*Loader produces a detailed log file with statistics about the load, and may also produce a bad file (records rejected because of incorrect data) and a discard file (records that did not meet your selection criteria). You have control over several loading options.&lt;br /&gt; &lt;br /&gt;You must provide two types of input to SQL*Loader to load data from external files into an ORACLE database: the data itself, and control information describing how to perform the load. You must provide a file called the control file as an input to SQL*Loader. The control file tells SQL*Loader how to interpret the data file. For example, it describes the following: &lt;br /&gt;&lt;br /&gt;1. The names of the data files &lt;br /&gt;2. The format of the data files &lt;br /&gt;3. The character sets used in the data files &lt;br /&gt;4. The datatypes of the fields in those files &lt;br /&gt;5. How to identify the start and end of data fields&lt;br /&gt;6. Which tables and columns to load &lt;br /&gt;&lt;br /&gt;The control file's datatype specifications tell SQL*Loader how to interpret the fields in the data files. SQL*Loader uses this information when working with the fields, and uses it to describe the data that is being passed to ORACLE. ORACLE then converts the data into the datatype specified by the table definition. Some information is mandatory (such as where to find the data and how it corresponds to the database tables). However, many options are also available to describe and manipulate the file data. For example, the instructions can include directions on how to format or filter the data, or to generate unique ID numbers.&lt;br /&gt; &lt;br /&gt;You may load data in various formats. It is usually read from one or more data files, but the data may also be placed in the control file after the control file information. Data records may be in fixed or variable format. In fixed format, the data is contained in records which all have the same (fixed) format. That is, the records have a fixed length, and the data fields in those records have fixed length, type, and position. &lt;br /&gt;&lt;br /&gt;In variable format (sometimes called stream format), each record is only as long as necessary to contain the data. With character data, if the first item is shorter than the second one, the first record is shorter. Also, the type of data in each record may vary. One record may contain a character string, the next may contain seven integers, the third may contain three decimals and a float, and so on. Operating systems use a record terminator character (such as newline) to mark where variable records end. &lt;br /&gt;&lt;br /&gt;Delimited data is of two types: terminated or enclosed. Terminated data is followed by a specified character such as a comma, as in the following example: &lt;br /&gt;          1,1,2,3,5,8,13&lt;br /&gt;&lt;br /&gt;Enclosed data is preceded and followed by a specified character such as a quotation mark, as in the following example: &lt;br /&gt;          'BUNKY'&lt;br /&gt;&lt;br /&gt;A final distinction concerns the difference between logical and physical records. &lt;br /&gt;&lt;br /&gt;A record or line in a file (either of fixed length or terminated) is referred to as a physical record. Logical record, on the other hand, corresponds to a row in a database table. Sometimes the logical and physical records are equivalent; such is the case when only a few short columns are being loaded. &lt;br /&gt;&lt;br /&gt;However, sometimes several physical records must be combined to make one logical record. The examples below will illustrate some of the features of the SQL*Loader. &lt;br /&gt;&lt;br /&gt;Example 1. Loading Data into Multiple Tables &lt;br /&gt;&lt;br /&gt;&lt;strong&gt;CONTROL FILE:&lt;/strong&gt; The control file for this example. &lt;br /&gt;         -- Loads EMP records from first 23 characters&lt;br /&gt;         -- Creates and loads PROJ records for each PROJNO listed&lt;br /&gt;         -- for each employee&lt;br /&gt;&lt;br /&gt;         LOAD DATA&lt;br /&gt;         INFILE 'ulcase5.dat'&lt;br /&gt;         BADFILE 'ulcase5.bad'&lt;br /&gt;         DISCARDFILE 'ulcase5.dsc'&lt;br /&gt;&lt;br /&gt; a.      REPLACE&lt;br /&gt;&lt;br /&gt; b.      INTO TABLE emp&lt;br /&gt;         (empno POSITION(1:4) INTEGER EXTERNAL,&lt;br /&gt;          ename POSITION(6:15) CHAR,&lt;br /&gt;          deptno POSITION(17:18) CHAR,&lt;br /&gt;          mgr POSITION(20:23) INTEGER EXTERNAL)&lt;br /&gt;&lt;br /&gt; b.      INTO TABLE proj&lt;br /&gt;         -- PROJ has two columns, both not null: EMPNO and PROJNO&lt;br /&gt;&lt;br /&gt; c.      WHEN projno != ' '&lt;br /&gt;            (empno POSITION(1:4) INTEGER EXTERNAL,&lt;br /&gt; c.          projno POSITION(25:27) INTEGER EXTERNAL)  -- 1st proj&lt;br /&gt;&lt;br /&gt; b.      INTO TABLE proj&lt;br /&gt;         WHEN projno != ' '&lt;br /&gt;            (empno POSITION(1:4) INTEGER EXTERNAL,&lt;br /&gt;             projno POSITION(29:31) INTEGER EXTERNAL)  -- 2nd proj&lt;br /&gt;&lt;br /&gt; b.      INTO TABLE proj&lt;br /&gt;         WHEN projno != ' '&lt;br /&gt;            (empno POSITION(1:4) INTEGER EXTERNAL,&lt;br /&gt;             projno POSITION(33:35) INTEGER EXTERNAL)  -- 3rd proj&lt;br /&gt;&lt;br /&gt;  ---------------------------------------------------------------&lt;br /&gt;&lt;strong&gt;NOTES: &lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;      (a) REPLACE indicates that if there is data in the tables to be loaded &lt;br /&gt;      (EMP and PROJ), that data should be deleted before new rows are loaded. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;      (b) Multiple INTO clauses are used to load two tables, EMP and PROJ. The &lt;br /&gt;      same set of records is processed three times using different combinations &lt;br /&gt;      of columns each time, to load table PROJ. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;      (c) WHEN is used to load only rows with non-blank project numbers. When &lt;br /&gt;      PROJNO is defined as columns 25..27, rows are inserted into PROJ only if &lt;br /&gt;      there is a value in those columns. &lt;br /&gt;&lt;br /&gt;&lt;strong&gt;DATA FILE&lt;/strong&gt; - Part of the data file follows. &lt;br /&gt;          1234 BAKER      10 9999 101 102 103&lt;br /&gt;          1234 JOKER      10 9999 777 888 999&lt;br /&gt;          2664 YOUNG      20 2893 425 abc 102&lt;br /&gt;&lt;strong&gt;INVOKING SQL*LOADER&lt;/strong&gt; - The command line for this example. &lt;br /&gt;          SQLLOAD / CONTROL=ULCASE5.CTL LOG=ULCASE5.LOG&lt;br /&gt;&lt;br /&gt;Example 2 Loading a Delimited, Free-Format File &lt;br /&gt;&lt;br /&gt;&lt;strong&gt;CONTROL FILE&lt;/strong&gt; - The control file for this example. &lt;br /&gt;         -- Variable-length, delimited and enclosed data format&lt;br /&gt;&lt;br /&gt;         LOAD DATA&lt;br /&gt; a.      INFILE *&lt;br /&gt;&lt;br /&gt; b.      APPEND&lt;br /&gt;&lt;br /&gt;         INTO TABLE emp&lt;br /&gt; c.      FIELDS TERMINATED BY "," OPTIONALLY ENCLOSED BY '"'&lt;br /&gt;         (empno, ename, job, mgr,&lt;br /&gt; d.        hiredate DATE "DD-Month-YYYY",&lt;br /&gt;          sal, comm, deptno CHAR TERMINATED BY ':',&lt;br /&gt;          projno,&lt;br /&gt; e.      loadseq SEQUENCE(MAX,1))&lt;br /&gt;&lt;br /&gt; f.      BEGINDATA&lt;br /&gt;          7782, "CLARK", "Manager", 7839, 09-June-1981, 2572.50, 10:101&lt;br /&gt;          7839, "King", "President", , 17-January-1982, 920.00, 10:102&lt;br /&gt;&lt;br /&gt;  ---------------------------------------------------------------&lt;br /&gt;&lt;strong&gt;NOTES: &lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;      (a) INFILE * signifies the data is found at the end of the control file. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;      (b) APPEND indicates that data may be loaded even if the table already &lt;br /&gt;      contains rows; the table need not be empty. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;      (c) The default terminator for the data fields is a comma, and some fields &lt;br /&gt;      may be enclosed by a double quote. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;      (d) The data to be loaded into column HIREDATE appears in the format &lt;br /&gt;      DD-Month-YYYY. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;      (e) The SEQUENCE function is used to generate a unique value in the column &lt;br /&gt;      LOADSEQ. This function finds the current maximum value in column LOADSEQ &lt;br /&gt;      and adds the increment (1) to it to obtain the value for LOADSEQ for each &lt;br /&gt;      row inserted. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;      (f) BEGINDATA signifies the end of the control information and the &lt;br /&gt;      beginning of the data. &lt;br /&gt;&lt;br /&gt;&lt;strong&gt;INVOKING SQL*LOADER&lt;/strong&gt; - The command line for this example. &lt;br /&gt;          SQLLOAD / CONTROL=ULCASE3.CTL LOG=ULCASE3.LOG&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Control File Syntax &lt;/strong&gt;&lt;br /&gt;The control file usually begins with the phase LOAD DATA, followed by several phrases that describe the data to be loaded. Only comments or the OPTIONS phrase can precede the LOAD DATA phase. &lt;br /&gt; &lt;br /&gt;For a complete control file syntax diagram see Appendix C in this manual. Only a subset of the syntax will be explained below. For a complete explanation of the above syntax, see chapter 6 of ``ORACLE7 Server Utilities Users Guide''. Comments Comments may appear anywhere in the command section of the file, but they should not appear in the data. Comments are preceded with a double dash, which may appear anywhere on a line. All text to the right of the double dash is ignored, &lt;br /&gt;until the end of line. &lt;br /&gt;&lt;br /&gt;&lt;strong&gt;The OPTIONS Clause &lt;/strong&gt;&lt;br /&gt;The OPTIONS clause is useful when you usually invoke a control file with the same set of options, or when the command line and all its arguments becomes very long. This clause allows you to specify runtime arguments in the control file rather than on the command line. &lt;br /&gt;      SKIP = n -- Number of logical records to skip (DEFAULT 0) &lt;br /&gt;      LOAD = n -- Number of logical records to load (DEFAULT all) &lt;br /&gt;      ERRORS = n -- Number of errors to allow (DEFAULT 50) &lt;br /&gt;      ROWS = n -- Number of rows in conventional path bind array (DEFAULT 64) &lt;br /&gt;      BINDSIZE = n -- Size of conventional path bind array in bytes &lt;br /&gt;      SILENT = {HEADER | FEEDBACK | ERROR | DISCARDS | ALL } &lt;br /&gt;      -- Suppress messages during run &lt;br /&gt;&lt;br /&gt;For example: &lt;br /&gt;          OPTIONS (BINDSIZE=10000, SILENT=(ERRORS, FEEDBACK) )&lt;br /&gt;Values specified on the command line override values specified in the control file. With this precedence, the OPTIONS keyword in the control file established default values that are easily changed from the command line. Continuing Interrupted Loads If SQL*Loader runs out of space for data rows or index entries, the load is discontinued. (For example, the table might reach its maximum number of extents.) Discontinued loads can be continued after more space is made available. When a load is discontinued, any data already loaded remains in the tables, and the tables are left in a valid state. SQL*Loader's log file tells you the state of the tables and indexes and the number of logical records already read from the input data file. Use this information to resume the load where it left off. &lt;br /&gt;For example: &lt;br /&gt;          SQLLOAD / CONTROL=FAST1.CTL SKIP=345&lt;br /&gt;CONTINUE\_LOAD DATA statement is used to continue a discontinued direct path load involving multiple tables with a varying number of records to skip. For more information on this command, see chapter 6 of ``ORACLE7 Server Utilities Users Guide''. &lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Identifying Data Files &lt;/strong&gt;&lt;br /&gt;To specify the file containing the data to be loaded, use the INFILE or INDDN keyword, followed by the filename. A filename specified on the command line overrides the first INFILE or INDDN statement in the control file. If no filename is specified, the filename defaults to the control filename with an extension or filetype of DAT. &lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Loading into Non-Empty Database Tables &lt;/strong&gt;&lt;br /&gt;SQL*Loader does not update existing records, even if they have null columns. If the tables you are loading already contain data, you have three choices for how SQL*Loader should proceed: &lt;br /&gt;&lt;br /&gt;1. INSERT - This is the default option. It requires the table to be empty before loading. SQL*Loader terminates with an error if the table contains rows. &lt;br /&gt;2. APPEND - If data already exists in the table, SQL*Loader appends the new rows to it; if data doesn't already exist, the new rows are simply loaded. &lt;br /&gt;3. REPLACE - All rows in the table are deleted and the new data is loaded. This option requires DELETE privileges on the table. &lt;br /&gt;&lt;br /&gt;You can create one logical record from multiple physical records using CONCATENATE and CONTINUEIF. See chapter 6 of 'ORACLE7 Server Utilities Users Guide'. &lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Loading Logical Records into Tables &lt;/strong&gt;&lt;br /&gt;1. The INTO TABLE clause allows you to tell which table you want to load data into. To load multiple tables, you would include one INTO TABLE clause for each table you wish to load. The INTO TABLE clause may continue with some options for loading that table. For example, you may specify different options (INSERT, APPEND, REPLACE) for each table in order to tell SQL*Loader what to do if data already exists in the table. &lt;br /&gt;2. The WHEN clause appears after the table name and is followed by one or more field conditions. For example, the following clause indicates that any record with the value ``q'' in the fifth column position should be loaded: &lt;br /&gt;          WHEN (5) = 'q'&lt;br /&gt;A WHEN clause can contain several comparisons as long as each is preceded by AND. Parentheses are optional but should be used for clarity with multiple comparisons joined by AND. For example: &lt;br /&gt;          WHEN (DEPTNO = '10') AND (JOB = 'SALES')&lt;br /&gt;To evaluate the WHEN clause, SQL*Loader first determines the values of all the fields in the record. Then the WHEN clause is evaluated. A row is inserted into the table only if the WHEN clause is true. When the control file specifies more fields for a record than are present in the record, SQL*Loader must determine whether the remaining (specified) columns should be considered null, or whether an error should be generated. TRAILING NULLCOLS clause tells SQL*Loader to treat any relatively positioned columns that are not present in the record as null columns. For example, if the following &lt;br /&gt;data &lt;br /&gt;          10 Accounting&lt;br /&gt;&lt;br /&gt;is read with the following control file &lt;br /&gt;&lt;br /&gt;          INTO TABLE dept&lt;br /&gt;               TRAILING NULLCOLS&lt;br /&gt;               ( deptno CHAR TERMINATED BY " ",&lt;br /&gt;                 dname  CHAR TERMINATED BY WHITESPACE,&lt;br /&gt;                 loc    CHAR TERMINATED BY WHITESPACE )&lt;br /&gt;and the record ends after DNAME, then the remaining LOC field is set to null. Without the TRAILING NULLCOLS clause, an error would be generated, due to missing data. &lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Specifying Datatypes &lt;/strong&gt;&lt;br /&gt;The datatype specification in the control file tells SQL*Loader how to interpret the information in the data file. The server defines the datatypes for the columns in the database. SQL*Loader extracts data from a field in the input file, guided by the datatype specification in the control file. SQL*Loader then sends the field to the server to be stored in the appropriate column. The server does any data conversion necessary to store the data in the proper internal format. The datatype of the data in the file does not necessarily have to be the same as the datatype of the column in the ORACLE table. ORACLE automatically performs conversions - but you need to ensure that the conversion makes sense and does not generate errors. &lt;br /&gt;SQL*Loader does not contain datatype specifications for ORACLE internal datatypes like NUMBER or VARCHAR2. SQL*Loader's datatypes describe data that can be produced with text editors (character datatypes) and with standard programming languages (native datatypes). &lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Native Datatypes &lt;/strong&gt;&lt;br /&gt;Some datatypes consist entirely of binary data, or contain binary data in their implementation. These non-character datatypes are the native datatypes: &lt;br /&gt;      INTEGER ZONED SMALLINT &lt;br /&gt;      VARCHAR FLOAT GRAPHIC &lt;br /&gt;      DOUBLE GRAPHIC EXTERNAL BYTEINT &lt;br /&gt;      VARGRAPHIC (packed) DECIMAL RAW &lt;br /&gt;&lt;br /&gt;These datatypes will not be discussed as most of the datatypes that you will be using will be character datatypes. For more information on SQL*Loader datatypes, &lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Character Datatypes &lt;/strong&gt;&lt;br /&gt;The character datatypes are CHAR, DATE, and the numeric EXTERNAL datatypes (INTEGER and DECIMAL). These fields can be delimited, and can have lengths (or maximum lengths) specified in the control file. &lt;br /&gt;&lt;br /&gt;1. CHAR - This data field contains character data. The length is optional, and is taken from the POSITION specification if it is not present here. If present, this length overrides the length in the POSITION specification. If no length is given, CHAR data is assumed to have a length of 1. A field of datatype CHAR may also be variable-length delimited or enclosed. &lt;br /&gt; &lt;br /&gt;2. To Load LONG Data: If the column in the database table is defined as LONG, you must explicitly specify a maximum length either with a length-specifier on the CHAR keyword, or with the POSITION keyword. This guarantees that a large enough buffer is allocated for the value, and is necessary even if the data is delimited or enclosed. &lt;br /&gt;&lt;br /&gt;3. DATE - This data is character data that should be converted to an ORACLE date using the specified date mask. The length specification is optional, unless a varying-length data mask is specified. With a specification like: &lt;br /&gt;         DATE "Month dd, YYYY"&lt;br /&gt;the date mask is 14 characters, while the length of a field like &lt;br /&gt;          September 31, 1991&lt;br /&gt;is 18 characters. In this case, a length must be specified. Similarly, a length is required for any Julian dates (date mask ``J'') - a field length is required any time the length of the date string could exceed the length of the mask. An explicit length specification, if present, overrides the length in the POSITION clause. Either of these overrides the length derived from the mask. The mask may be any valid ORACLE date mask. If you omit the mask, the default ORACLE date mask of 'dd-mon-yy' is used.&lt;br /&gt;&lt;br /&gt;4. Numeric EXTERNAL - The numeric external datatypes are the numeric datatypes (INTEGER, FLOAT, DECIMAL, and ZONED) specified with the EXTERNAL keyword along with optional length and delimiter specifications. These datatypes are the human-readable, character form of numeric data. The data is a number in character form (not binary representation). As such, these datatypes are identical to CHAR and are treated identically, with one exception: the use of DEFAULTIF. If you want the default to be null, use CHAR; &lt;br /&gt;&lt;br /&gt;5. delimiter_spec - The boundaries of CHAR, DATE, or numeric EXTERNAL fields may also be marked by specific delimiter characters contained in the input data record. You indicate how the field is delimited by using a delimiter specification after specifying the datatype. Delimited data can be TERMINATED or ENCLOSED.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/144851838473318802-281226980082363995?l=arunrathod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrathod.blogspot.com/feeds/281226980082363995/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=144851838473318802&amp;postID=281226980082363995' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/281226980082363995'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/281226980082363995'/><link rel='alternate' type='text/html' href='http://arunrathod.blogspot.com/2008/10/sqlloader.html' title='SQL*Loader'/><author><name>Arun Kumar S.R</name><uri>http://www.blogger.com/profile/14745466774124137964</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_pBTgD4-jQls/SC-82Kq7MJI/AAAAAAAAAOs/e_Invzqp9e0/S220/DSC05800.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-144851838473318802.post-362549727248808505</id><published>2008-10-07T05:32:00.000-07:00</published><updated>2008-10-07T05:36:52.122-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='All About &apos;FND_GLOBAL&apos; in Oracle'/><title type='text'>All About 'FND_GLOBAL' in Oracle</title><content type='html'>Before calling a concurrent request from the backend, we need to set the Oracle Applications Context. Use the API FND_GLOBAL.APPS_INITIALIZE to set the applications context in standalone sessions that were not initialized through normal means. Typically, you would use this API in external custom programs that are establishing their own connections.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;FND_GLOBAL.APPS_INITIALIZE &lt;/strong&gt;&lt;br /&gt;Procedure APPS_INITIALIZE (user_id in number, resp_id in number, resp_appl_id in number security_group_id in number);&lt;br /&gt;&lt;br /&gt;&lt;u&gt;Description:&lt;/u&gt; &lt;br /&gt;This procedure sets up global variables and profile values in a database session. Call this procedure to initialize the global security context for a database session. You can use it for routines such as PL/SQL or other programs that are not integrated with either the Oracle Applications concurrent processing facility or Oracle Forms (both of which already do a similar initialization for a database session). &lt;br /&gt;&lt;br /&gt;The typical use for this routine would be as part of the logic for launching a separate non-Forms session from an established Oracle Applications form session. You can also use this procedure to set up a database session for manually testing application code using SQL*Plus. This routine should only be used when the session must be established outside of a normal form or concurrent program connection. &lt;br /&gt;&lt;br /&gt;You can obtain valid values to use with this procedure by using profile option routines to retrieve these values in an existing Oracle Applications form session.&lt;br /&gt;&lt;br /&gt;&lt;u&gt;Arguments (input)&lt;/u&gt; &lt;br /&gt;1. USER_ID - The User ID number.&lt;br /&gt;&lt;br /&gt;SELECT * &lt;br /&gt;FROM FND_USER&lt;br /&gt;WHERE USER_NAME='SYSADMIN'&lt;br /&gt;&lt;br /&gt;2. RESP_ID - The ID number of the responsibility.&lt;br /&gt;&lt;br /&gt;SELECT *&lt;br /&gt;FROM FND_RESPONSIBILITY_TL&lt;br /&gt;WHERE RESPONSIBILITY_NAME ='Bills of Material'&lt;br /&gt;AND LANGUAGE='US'&lt;br /&gt;&lt;br /&gt;3. RESP_APPL_ID - The ID number of the application to which the responsibility belongs.&lt;br /&gt;&lt;br /&gt;SELECT *&lt;br /&gt;FROM FND_APPLICATION&lt;br /&gt;WHERE APPLICATION_ID=702&lt;br /&gt;&lt;br /&gt;4. SECURITY_GROUP_ID - The ID number of the security group. This argument is automatically defaulted by the API. The caller should not pass a value for it. &lt;br /&gt;&lt;br /&gt;Example:&lt;br /&gt;fnd_global.APPS_INITIALIZE (1010, 20417, 201);&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/144851838473318802-362549727248808505?l=arunrathod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrathod.blogspot.com/feeds/362549727248808505/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=144851838473318802&amp;postID=362549727248808505' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/362549727248808505'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/362549727248808505'/><link rel='alternate' type='text/html' href='http://arunrathod.blogspot.com/2008/10/all-about-fndglobal-in-oracle.html' title='All About &apos;FND_GLOBAL&apos; in Oracle'/><author><name>Arun Kumar S.R</name><uri>http://www.blogger.com/profile/14745466774124137964</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_pBTgD4-jQls/SC-82Kq7MJI/AAAAAAAAAOs/e_Invzqp9e0/S220/DSC05800.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-144851838473318802.post-3956470360610385564</id><published>2008-10-06T23:34:00.000-07:00</published><updated>2008-10-06T23:41:16.872-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Different types of Oracle Applications Updates.'/><title type='text'>Different types of Oracle Applications Updates.</title><content type='html'>Oracle Applications organizes updates based on granularity:&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;One-off: &lt;/strong&gt;&lt;br /&gt;This is the most granular update required to change a particular behavior or fix a particular defect. These updates tend to be smaller, but due to product dependencies may be large.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Mini-pack:&lt;/strong&gt;&lt;br /&gt;This is an aggregation of all updates for a particular product, such as General Ledger (GL). The updates are aggregated into a single, easily applied patch that will take you to the latest code level for a particular product area. Mini-packs are named successively by letter. For example, 11i.GL.A, 11i.GL.B, etc. Mini-packs replace the previous concepts of Applications patchsets, mega-patches, or rollups.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Family Pack:&lt;/strong&gt;&lt;br /&gt;This is an aggregation of all updates for a particular family, such as the Procurement  Family (PRC_PF), which is made up of Purchasing, Internet Procurement, Supplier Scheduling, and Internet Supplier Portal. The updates are aggregated into a single, easily applied patch that will take you to the latest code level for the entire product family.&lt;br /&gt;Family packs are named successively by letter. For example, 11i.PRC_PF.F, 11i.PRC_PF.G, etc.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Maintenance Pack:&lt;/strong&gt;&lt;br /&gt;This is an aggregation of all updates for the entire E-Business Suite, including all ERP and CRM products. The updates are aggregated into a single, easily applied patch that will take you to the latest code level for the entire E-Business Suite. Maintenance Packs are numbered as point releases, 11.5.3, 11.5.4, 11.5.5, etc. Additionally, for customers not yet on 11i, the Rapid Install is repackaged at each Maintenance Pack level.&lt;br /&gt;&lt;br /&gt;Oracle Applications updates can also be classified by type:&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Interoperability patch:&lt;/strong&gt;&lt;br /&gt;This is an update to Oracle Applications code that will enable a change to the underlying technology stack. For example: Applications Release 11i interoperability patch for Oracle 9i, Applications Release 11i interoperability patch for Developer 6i patch 9, etc.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Diagnostic patch:&lt;/strong&gt;&lt;br /&gt;This type of patch is intended to gather additional information about a particular issue being encountered at a customer site. It is often used when the issue cannot be reproduced on-site at Oracle.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Translated update: &lt;/strong&gt;&lt;br /&gt;This is a translated version of a patch. It contains only the components requiring translation. Language independent portions of a base patch are not included in a translated patch, therefore you must always apply the base US patch as well as the translated patch.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Product Introduction:&lt;/strong&gt;&lt;br /&gt;This type of update introduces a new product to a release using the patching infrastructure. Examples include Oracle Process Manufacturing for Release 11.0, and Oracle Enterprise Asset Management for Release 11i.&lt;br /&gt;&lt;br /&gt;&lt;u&gt;&lt;strong&gt;Note:&lt;/strong&gt;&lt;/u&gt; All patches can be downloaded via Oracle MetaLink for any supported platform or language. Customers can query a specific patch, or they can query for patches based on Release, Products, Platforms, or Languages. The search can also be limited to high priority patches, mini-packs, or patches not in the latest product mini-pack. The patch READMEs can also be viewed online.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/144851838473318802-3956470360610385564?l=arunrathod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrathod.blogspot.com/feeds/3956470360610385564/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=144851838473318802&amp;postID=3956470360610385564' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/3956470360610385564'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/3956470360610385564'/><link rel='alternate' type='text/html' href='http://arunrathod.blogspot.com/2008/10/different-types-of-oracle-applications.html' title='Different types of Oracle Applications Updates.'/><author><name>Arun Kumar S.R</name><uri>http://www.blogger.com/profile/14745466774124137964</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_pBTgD4-jQls/SC-82Kq7MJI/AAAAAAAAAOs/e_Invzqp9e0/S220/DSC05800.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-144851838473318802.post-5291313854261546188</id><published>2008-10-06T05:22:00.000-07:00</published><updated>2008-10-06T05:32:12.798-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Benefits of the Oracle E-Business Suite'/><title type='text'>Benefits of the Oracle E-Business Suite</title><content type='html'>&lt;strong&gt;Process Automation with Enterprise Integration&lt;/strong&gt;&lt;br /&gt;The Oracle E-Business Suite provides comprehensive automation across your enterprise because all the applications comprising the suite are engineered to work together. Best-of-breed applications automate only bits and pieces of any given process, so marketing remains disconnected from sales, sales remains disconnected from finance, and so on.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Complete Automation&lt;/strong&gt;&lt;br /&gt;If your applications do not work together and do not automate business processes, then you will never get good information out of your system. If you automate sales, but not marketing, you will never know how effective your marketing is. If you automate sales, but not financials, you'll never know how many customers you sold to actually got invoiced. Because you don't know, you don't ask. If you don't ask, your business never gets more efficient. Without improved efficiency your business never spends less capital. Oracle E-Business Suite provides end-to-end transactional automation that gives you more for less.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Functionally Complete&lt;/strong&gt;&lt;br /&gt;The Oracle E-Business Suite integrates your business, capturing the information needed to provide a complete view of what’s going on in your business. Oracle’s suite is functionally complete with over 100 integrated product modules for every aspect of your business, including customer relationship management, finance, human resources, professional services automation, supply chain management, enterprise asset management, and project management.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Complete, Automated E-Business Flows&lt;/strong&gt;&lt;br /&gt;To enable rapid automation of key E-Business flows inherent in the E-Business Suite, Oracle provides FastForward Flows. These fixed-price, rapid-time services enable you to reap the benefits of Oracle's applications in record time by automating critical business processes within your enterprise and providing end-to-end integration.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Complete for Targeted Industries&lt;/strong&gt;&lt;br /&gt;The unique requirements of many targeted industries are included with the Oracle E-Business Suite. Oracle's complete offering meets the needs of: aerospace and defense, high tech, consumer packaged goods, automotive, pharmaceuticals, public sector, and many more industries.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Complete, Global Business Offering&lt;/strong&gt;&lt;br /&gt;The Oracle E-Business Suite is also globally comprehensive, supporting 30 languages, all character sets, unique global business practices, and local statutory and regulatory requirements. Oracle's applications enable you to unify information and to run your business consistently and accurately worldwide.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Oracle's Open, Modular System for Easier Integration&lt;/strong&gt;&lt;br /&gt;Many customers have implemented the E-Business Suite with zero customizations. All of Oracle's applications are engineered to work together, so you can significantly reduce your IT expenses by eliminating the need for software interfacing, data translation, and integration. If you implement one or several modules of the E-Business Suite, Oracle makes integration with your legacy and third-party applications easier since Oracle's software architecture is built on open, industry standards. To further reduce implementation costs, the Oracle E-Business Suite requires few, if any, customizations.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Complete Information With A Single Database&lt;/strong&gt;&lt;br /&gt;With other software vendors, you can spend millions of dollars on application software and still not have the information you need to run your business. Why? Information is spread throughout a company -- financials data is in one database, HR data in another, and so forth. This fragmented data makes it difficult and expensive to collaborate and access information across geographies and business processes.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Single, Complete Data Model Provides Better Information at a Lower Cost&lt;/strong&gt;&lt;br /&gt;Oracle's E-Business Suite is the first and only complete set of applications for the enterprise that are integrated around a single, comprehensive data model. Oracle provides a single definition of your customers, suppliers, employees, products -- all aspects of your business. Everyone in your company can access the same enterprise-wide data. Your marketing organization accesses the same customer information that your sales and order management departments are using.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;One Database For Consolidated Information, Accessible by All&lt;/strong&gt;&lt;br /&gt;Companies need to seamlessly connect all their business processes, and store all their information in as few databases as possible, one being the ideal. The fewer databases you use to store your information, the easier it is to share information between organizations, enabling better co-operation and greater productivity across departments. What's more, it actually costs less to get better information! You can eliminate the duplicate data centers, hardware, and IT costs involved with multiple databases around the world.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Daily Business Close&lt;/strong&gt;&lt;br /&gt;For the first time you can access daily organizational metrics and use this data to drive change managing your businesses by fact, instead of by guesswork. Currently, businesses close their financial books every 30 days and report business metrics on a quarterly basis. At best you get critical, corporate-wide information only 4 times a year and have to wait an additional 2 weeks to get the data. The Oracle EBusiness Suite enables companies to do a Daily Business Close, delivering critical information for all lines of business via a personalized portal. You can now review daily, your lead positions, sales positions, inventory levels, headcount, and other key performance metrics.&lt;br /&gt;&lt;br /&gt;With Oracle's complete suite and end-to-end process automation, every application has access to the same information. Every application is built using a single data model, providing a single source of truth for a daily business close. Information is continuously summarized and displayed in customizable portals, viewable by line of business, geography, department or product. And because the business intelligence system and the data sit in the same system, the information is real-time so you don't have to wait for data to pass through a separate data aggregation and analysis system. Building a data warehouse to consolidate fragmented data is time consuming, expensive, and still doesn't provide answers. If your business applications can't deliver daily key indicators for your business then perhaps you've got the wrong IT information architecture.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/144851838473318802-5291313854261546188?l=arunrathod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrathod.blogspot.com/feeds/5291313854261546188/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=144851838473318802&amp;postID=5291313854261546188' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/5291313854261546188'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/5291313854261546188'/><link rel='alternate' type='text/html' href='http://arunrathod.blogspot.com/2008/10/benefits-of-e-business-suite.html' title='Benefits of the Oracle E-Business Suite'/><author><name>Arun Kumar S.R</name><uri>http://www.blogger.com/profile/14745466774124137964</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_pBTgD4-jQls/SC-82Kq7MJI/AAAAAAAAAOs/e_Invzqp9e0/S220/DSC05800.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-144851838473318802.post-5198711636120557812</id><published>2008-10-05T22:39:00.001-07:00</published><updated>2008-10-05T22:39:58.506-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='R12 HRMS: Single record insertion for Creating Employee'/><title type='text'>R12 HRMS: Single record insertion for Creating Employee</title><content type='html'>DECLARE&lt;br /&gt;   ip_p_person_id                   NUMBER;&lt;br /&gt;   ip_p_assignment_id               NUMBER;&lt;br /&gt;   ip_p_per_object_version_number   NUMBER;&lt;br /&gt;   ip_p_asg_object_version_number   NUMBER;&lt;br /&gt;   ip_p_per_effective_start_date    DATE;&lt;br /&gt;   ip_p_per_effective_end_date      DATE;&lt;br /&gt;   ip_p_full_name                   VARCHAR2 (1000);&lt;br /&gt;   ip_p_per_comment_id              NUMBER;&lt;br /&gt;   ip_p_assignment_sequence         NUMBER;&lt;br /&gt;   ip_p_assignment_number           VARCHAR2 (1000);&lt;br /&gt;   ip_p_name_combination_warning    BOOLEAN;&lt;br /&gt;   ip_p_assign_payroll_warning      BOOLEAN;&lt;br /&gt;   ip_p_orig_hire_warning           BOOLEAN;&lt;br /&gt;   ip_employee_number               VARCHAR2 (1000);&lt;br /&gt;BEGIN&lt;br /&gt;   --ip_employee_number := 'Apps-101';&lt;br /&gt;   hr_employee_api.create_employee&lt;br /&gt;              (p_hire_date                         =&gt; SYSDATE,&lt;br /&gt;               p_business_group_id                 =&gt; 202,&lt;br /&gt;               p_last_name                         =&gt; 'Arun',&lt;br /&gt;               p_sex                               =&gt; 'M',&lt;br /&gt;               p_person_type_id                    =&gt; 13,&lt;br /&gt;               p_per_comments                      =&gt; NULL,&lt;br /&gt;               p_date_employee_data_verified       =&gt; NULL,&lt;br /&gt;               p_date_of_birth                     =&gt; TO_DATE&lt;br /&gt;                                                             ('01-April-84',&lt;br /&gt;                                                              'DD-MONTH-RR'&lt;br /&gt;                                                             ),&lt;br /&gt;               p_email_address                     =&gt; 'arun_apps@yahoo.com',&lt;br /&gt;               p_employee_number                   =&gt; ip_employee_number,&lt;br /&gt;               p_expense_check_send_to_addres      =&gt; NULL,&lt;br /&gt;               p_first_name                        =&gt; 'Rathod',&lt;br /&gt;               p_known_as                          =&gt; 'Arun',&lt;br /&gt;               p_marital_status                    =&gt; 'S',&lt;br /&gt;               p_middle_names                      =&gt; NULL,&lt;br /&gt;               p_nationality                       =&gt; 'IND',&lt;br /&gt;               p_national_identifier               =&gt; NULL,&lt;br /&gt;               p_previous_last_name                =&gt; NULL,&lt;br /&gt;               p_registered_disabled_flag          =&gt; NULL,&lt;br /&gt;               p_title                             =&gt; 'MR.',&lt;br /&gt;               p_vendor_id                         =&gt; NULL,&lt;br /&gt;               p_work_telephone                    =&gt; '781-1234-456',&lt;br /&gt;               p_attribute_category                =&gt; NULL,&lt;br /&gt;               p_attribute1                        =&gt; NULL,&lt;br /&gt;               p_attribute2                        =&gt; NULL,&lt;br /&gt;               p_attribute3                        =&gt; NULL,&lt;br /&gt;               p_attribute4                        =&gt; NULL,&lt;br /&gt;               p_attribute5                        =&gt; NULL,&lt;br /&gt;               p_attribute6                        =&gt; NULL,&lt;br /&gt;               p_attribute7                        =&gt; NULL,&lt;br /&gt;               p_attribute8                        =&gt; NULL,&lt;br /&gt;               p_attribute9                        =&gt; NULL,&lt;br /&gt;               p_attribute10                       =&gt; NULL,&lt;br /&gt;               p_attribute11                       =&gt; NULL,&lt;br /&gt;               p_attribute12                       =&gt; NULL,&lt;br /&gt;               p_attribute13                       =&gt; NULL,&lt;br /&gt;               p_attribute14                       =&gt; NULL,&lt;br /&gt;               p_attribute15                       =&gt; NULL,&lt;br /&gt;               p_attribute16                       =&gt; NULL,&lt;br /&gt;               p_attribute17                       =&gt; NULL,&lt;br /&gt;               p_attribute18                       =&gt; NULL,&lt;br /&gt;               p_attribute19                       =&gt; NULL,&lt;br /&gt;               p_attribute20                       =&gt; NULL,&lt;br /&gt;               p_attribute21                       =&gt; NULL,&lt;br /&gt;               p_attribute22                       =&gt; NULL,&lt;br /&gt;               p_attribute23                       =&gt; NULL,&lt;br /&gt;               p_attribute24                       =&gt; NULL,&lt;br /&gt;               p_attribute25                       =&gt; NULL,&lt;br /&gt;               p_attribute26                       =&gt; NULL,&lt;br /&gt;               p_attribute27                       =&gt; NULL,&lt;br /&gt;               p_attribute28                       =&gt; NULL,&lt;br /&gt;               p_attribute29                       =&gt; NULL,&lt;br /&gt;               p_attribute30                       =&gt; NULL,&lt;br /&gt;               p_per_information_category          =&gt; NULL,&lt;br /&gt;               p_per_information1                  =&gt; NULL,&lt;br /&gt;               p_per_information2                  =&gt; NULL,&lt;br /&gt;               p_per_information3                  =&gt; NULL,&lt;br /&gt;               p_per_information4                  =&gt; NULL,&lt;br /&gt;               p_per_information5                  =&gt; NULL,&lt;br /&gt;               p_per_information6                  =&gt; NULL,&lt;br /&gt;               p_per_information7                  =&gt; NULL,&lt;br /&gt;               p_per_information8                  =&gt; NULL,&lt;br /&gt;               p_per_information9                  =&gt; NULL,&lt;br /&gt;               p_per_information10                 =&gt; NULL,&lt;br /&gt;               p_per_information11                 =&gt; NULL,&lt;br /&gt;               p_per_information12                 =&gt; NULL,&lt;br /&gt;               p_per_information13                 =&gt; NULL,&lt;br /&gt;               p_per_information14                 =&gt; NULL,&lt;br /&gt;               p_per_information15                 =&gt; NULL,&lt;br /&gt;               p_per_information16                 =&gt; NULL,&lt;br /&gt;               p_per_information17                 =&gt; NULL,&lt;br /&gt;               p_per_information18                 =&gt; NULL,&lt;br /&gt;               p_per_information19                 =&gt; NULL,&lt;br /&gt;               p_per_information20                 =&gt; NULL,&lt;br /&gt;               p_per_information21                 =&gt; NULL,&lt;br /&gt;               p_per_information22                 =&gt; NULL,&lt;br /&gt;               p_per_information23                 =&gt; NULL,&lt;br /&gt;               p_per_information24                 =&gt; NULL,&lt;br /&gt;               p_per_information25                 =&gt; NULL,&lt;br /&gt;               p_per_information26                 =&gt; NULL,&lt;br /&gt;               p_per_information27                 =&gt; NULL,&lt;br /&gt;               p_per_information28                 =&gt; NULL,&lt;br /&gt;               p_per_information29                 =&gt; NULL,&lt;br /&gt;               p_per_information30                 =&gt; NULL,&lt;br /&gt;               p_date_of_death                     =&gt; NULL,&lt;br /&gt;               p_background_check_status           =&gt; 'N',&lt;br /&gt;               p_background_date_check             =&gt; NULL,&lt;br /&gt;               p_blood_type                        =&gt; 'B+',&lt;br /&gt;               p_correspondence_language           =&gt; NULL,&lt;br /&gt;               p_fast_path_employee                =&gt; NULL,&lt;br /&gt;               p_fte_capacity                      =&gt; NULL,&lt;br /&gt;               p_honors                            =&gt; NULL,&lt;br /&gt;               p_internal_location                 =&gt; NULL,&lt;br /&gt;               p_last_medical_test_by              =&gt; NULL,&lt;br /&gt;               p_last_medical_test_date            =&gt; NULL,&lt;br /&gt;               p_mailstop                          =&gt; NULL,&lt;br /&gt;               p_office_number                     =&gt; '781-2345-567',&lt;br /&gt;               p_on_military_service               =&gt; NULL,&lt;br /&gt;               p_pre_name_adjunct                  =&gt; NULL,&lt;br /&gt;               p_rehire_recommendation             =&gt; NULL,&lt;br /&gt;               p_projected_start_date              =&gt; NULL,&lt;br /&gt;               p_resume_exists                     =&gt; NULL,&lt;br /&gt;               p_resume_last_updated               =&gt; NULL,&lt;br /&gt;               p_second_passport_exists            =&gt; NULL,&lt;br /&gt;               p_student_status                    =&gt; NULL,&lt;br /&gt;               p_work_schedule                     =&gt; NULL,&lt;br /&gt;               p_suffix                            =&gt; NULL,&lt;br /&gt;               p_benefit_group_id                  =&gt; NULL,&lt;br /&gt;               p_receipt_of_death_cert_date        =&gt; NULL,&lt;br /&gt;               p_coord_ben_med_pln_no              =&gt; NULL,&lt;br /&gt;               p_coord_ben_no_cvg_flag             =&gt; NULL,&lt;br /&gt;               p_coord_ben_med_ext_er              =&gt; NULL,&lt;br /&gt;               p_coord_ben_med_pl_name             =&gt; NULL,&lt;br /&gt;               p_coord_ben_med_insr_crr_name       =&gt; NULL,&lt;br /&gt;               p_coord_ben_med_insr_crr_ident      =&gt; NULL,&lt;br /&gt;               p_coord_ben_med_cvg_strt_dt         =&gt; NULL,&lt;br /&gt;               p_coord_ben_med_cvg_end_dt          =&gt; NULL,&lt;br /&gt;               p_uses_tobacco_flag                 =&gt; NULL,&lt;br /&gt;               p_dpdnt_adoption_date               =&gt; NULL,&lt;br /&gt;               p_dpdnt_vlntry_svce_flag            =&gt; NULL,&lt;br /&gt;               p_original_date_of_hire             =&gt; NULL,&lt;br /&gt;               p_adjusted_svc_date                 =&gt; NULL,&lt;br /&gt;               p_town_of_birth                     =&gt; NULL,&lt;br /&gt;               p_region_of_birth                   =&gt; NULL,&lt;br /&gt;               p_country_of_birth                  =&gt; 'IN',&lt;br /&gt;               p_global_person_id                  =&gt; NULL,&lt;br /&gt;               p_party_id                          =&gt; NULL,&lt;br /&gt;               p_person_id                         =&gt; ip_p_person_id,&lt;br /&gt;               p_assignment_id                     =&gt; ip_p_assignment_id,&lt;br /&gt;               p_per_object_version_number         =&gt; ip_p_per_object_version_number,&lt;br /&gt;               p_asg_object_version_number         =&gt; ip_p_asg_object_version_number,&lt;br /&gt;               p_per_effective_start_date          =&gt; ip_p_per_effective_start_date,&lt;br /&gt;               p_per_effective_end_date            =&gt; ip_p_per_effective_end_date,&lt;br /&gt;               p_full_name                         =&gt; ip_p_full_name,&lt;br /&gt;               p_per_comment_id                    =&gt; ip_p_per_comment_id,&lt;br /&gt;               p_assignment_sequence               =&gt; ip_p_assignment_sequence,&lt;br /&gt;               p_assignment_number                 =&gt; ip_p_assignment_number,&lt;br /&gt;               p_name_combination_warning          =&gt; ip_p_name_combination_warning,&lt;br /&gt;               p_assign_payroll_warning            =&gt; ip_p_assign_payroll_warning,&lt;br /&gt;               p_orig_hire_warning                 =&gt; ip_p_orig_hire_warning&lt;br /&gt;              );&lt;br /&gt;   DBMS_OUTPUT.put_line (SQLERRM);&lt;br /&gt;   COMMIT;&lt;br /&gt;END;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/144851838473318802-5198711636120557812?l=arunrathod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrathod.blogspot.com/feeds/5198711636120557812/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=144851838473318802&amp;postID=5198711636120557812' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/5198711636120557812'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/5198711636120557812'/><link rel='alternate' type='text/html' href='http://arunrathod.blogspot.com/2008/10/r12-hrms-single-record-insertion-for_4521.html' title='R12 HRMS: Single record insertion for Creating Employee'/><author><name>Arun Kumar S.R</name><uri>http://www.blogger.com/profile/14745466774124137964</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_pBTgD4-jQls/SC-82Kq7MJI/AAAAAAAAAOs/e_Invzqp9e0/S220/DSC05800.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-144851838473318802.post-2076945366749612681</id><published>2008-10-05T22:38:00.000-07:00</published><updated>2008-10-05T22:39:23.868-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='R12 HRMS: Single record insertion for Address'/><title type='text'>R12 HRMS: Single record insertion for Address</title><content type='html'>DECLARE&lt;br /&gt;   ip_p_address_id              NUMBER;&lt;br /&gt;   ip_p_object_version_number   NUMBER;&lt;br /&gt;BEGIN&lt;br /&gt;   hr_person_address_api.create_person_address&lt;br /&gt;                       (p_validate                     =&gt; NULL,&lt;br /&gt;                        p_effective_date               =&gt; SYSDATE,&lt;br /&gt;                        p_pradd_ovlapval_override      =&gt; NULL,&lt;br /&gt;                        p_validate_county              =&gt; NULL,&lt;br /&gt;                        p_person_id                    =&gt; 27754,&lt;br /&gt;                        p_primary_flag                 =&gt; 'Y',&lt;br /&gt;                        p_style                        =&gt; 'US',&lt;br /&gt;                        p_date_from                    =&gt; '23-jan-1980',&lt;br /&gt;                        p_date_to                      =&gt; SYSDATE,&lt;br /&gt;                        p_address_type                 =&gt; NULL,&lt;br /&gt;                        p_comments                     =&gt; NULL,&lt;br /&gt;                        p_address_line1                =&gt; '5675 Clay Street',&lt;br /&gt;                        p_address_line2                =&gt; NULL,&lt;br /&gt;                        p_address_line3                =&gt; NULL,&lt;br /&gt;                        p_town_or_city                 =&gt; 'Redwood Shores',&lt;br /&gt;                        p_region_1                     =&gt; 'San Mateo',&lt;br /&gt;                        p_region_2                     =&gt; 'CA',&lt;br /&gt;                        p_region_3                     =&gt; NULL,&lt;br /&gt;                        p_postal_code                  =&gt; 94065,&lt;br /&gt;                        p_country                      =&gt; 'US',&lt;br /&gt;                        p_telephone_number_1           =&gt; '650-778-6065',&lt;br /&gt;                        p_telephone_number_2           =&gt; NULL,&lt;br /&gt;                        p_telephone_number_3           =&gt; NULL,&lt;br /&gt;                        p_addr_attribute_category      =&gt; NULL,&lt;br /&gt;                        p_addr_attribute1              =&gt; NULL,&lt;br /&gt;                        p_addr_attribute2              =&gt; NULL,&lt;br /&gt;                        p_addr_attribute3              =&gt; NULL,&lt;br /&gt;                        p_addr_attribute4              =&gt; NULL,&lt;br /&gt;                        p_addr_attribute5              =&gt; NULL,&lt;br /&gt;                        p_addr_attribute6              =&gt; NULL,&lt;br /&gt;                        p_addr_attribute7              =&gt; NULL,&lt;br /&gt;                        p_addr_attribute8              =&gt; NULL,&lt;br /&gt;                        p_addr_attribute9              =&gt; NULL,&lt;br /&gt;                        p_addr_attribute10             =&gt; NULL,&lt;br /&gt;                        p_addr_attribute11             =&gt; NULL,&lt;br /&gt;                        p_addr_attribute12             =&gt; NULL,&lt;br /&gt;                        p_addr_attribute13             =&gt; NULL,&lt;br /&gt;                        p_addr_attribute14             =&gt; NULL,&lt;br /&gt;                        p_addr_attribute15             =&gt; NULL,&lt;br /&gt;                        p_addr_attribute16             =&gt; NULL,&lt;br /&gt;                        p_addr_attribute17             =&gt; NULL,&lt;br /&gt;                        p_addr_attribute18             =&gt; NULL,&lt;br /&gt;                        p_addr_attribute19             =&gt; NULL,&lt;br /&gt;                        p_addr_attribute20             =&gt; NULL,&lt;br /&gt;                        p_add_information13            =&gt; NULL,&lt;br /&gt;                        p_add_information14            =&gt; NULL,&lt;br /&gt;                        p_add_information15            =&gt; NULL,&lt;br /&gt;                        p_add_information16            =&gt; NULL,&lt;br /&gt;                        p_add_information17            =&gt; NULL,&lt;br /&gt;                        p_add_information18            =&gt; NULL,&lt;br /&gt;                        p_add_information19            =&gt; NULL,&lt;br /&gt;                        p_add_information20            =&gt; NULL,&lt;br /&gt;                        p_party_id                     =&gt; NULL,&lt;br /&gt;                        p_address_id                   =&gt; ip_p_address_id,&lt;br /&gt;                        p_object_version_number        =&gt; ip_p_object_version_number&lt;br /&gt;                       );&lt;br /&gt;   DBMS_OUTPUT.put_line (SQLERRM);&lt;br /&gt;   COMMIT;&lt;br /&gt;END;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/144851838473318802-2076945366749612681?l=arunrathod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrathod.blogspot.com/feeds/2076945366749612681/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=144851838473318802&amp;postID=2076945366749612681' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/2076945366749612681'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/2076945366749612681'/><link rel='alternate' type='text/html' href='http://arunrathod.blogspot.com/2008/10/r12-hrms-single-record-insertion-for_912.html' title='R12 HRMS: Single record insertion for Address'/><author><name>Arun Kumar S.R</name><uri>http://www.blogger.com/profile/14745466774124137964</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_pBTgD4-jQls/SC-82Kq7MJI/AAAAAAAAAOs/e_Invzqp9e0/S220/DSC05800.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-144851838473318802.post-4371984134083868327</id><published>2008-10-05T22:36:00.002-07:00</published><updated>2008-10-05T22:37:43.272-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='R12 HRMS: Single record insertion for Assignment'/><title type='text'>R12 HRMS: Single record insertion for Assignment</title><content type='html'>DECLARE&lt;br /&gt;   l_cagr_grade_def_id            NUMBER;&lt;br /&gt;   l_cagr_concatenated_segments   VARCHAR2 (30);&lt;br /&gt;   l_concatenated_segments        VARCHAR2 (280);&lt;br /&gt;   l_soft_coding_keyflex_id       NUMBER;&lt;br /&gt;   l_comment_id                   NUMBER (15);&lt;br /&gt;   l_effective_start_date         DATE;&lt;br /&gt;   l_effective_end_date           DATE;&lt;br /&gt;   l_no_managers_warning          BOOLEAN;&lt;br /&gt;   l_other_manager_warning        BOOLEAN;&lt;br /&gt;   l_hourly_salaried_warning      BOOLEAN;&lt;br /&gt;   l_gsp_post_process_warning     VARCHAR2 (30);&lt;br /&gt;   l_api_mode                     VARCHAR2 (20);&lt;br /&gt;   l_object_version_number        NUMBER;&lt;br /&gt;   l_assignment_id                NUMBER;&lt;br /&gt;BEGIN&lt;br /&gt;   l_api_mode := 'CORRECTION';&lt;br /&gt;   l_object_version_number := 2;&lt;br /&gt;   l_soft_coding_keyflex_id := 91;&lt;br /&gt;   hr_assignment_api.update_emp_asg&lt;br /&gt;               (p_validate                          =&gt; FALSE,&lt;br /&gt;                p_effective_date                    =&gt; TRUNC (SYSDATE),&lt;br /&gt;                p_datetrack_update_mode             =&gt; l_api_mode,&lt;br /&gt;                p_assignment_id                     =&gt; 27920,&lt;br /&gt;                p_object_version_number             =&gt; l_object_version_number,&lt;br /&gt;                --l_object_version_number,&lt;br /&gt;                p_assignment_number                 =&gt; NULL,&lt;br /&gt;                p_change_reason                     =&gt; 'WS',&lt;br /&gt;                p_assignment_status_type_id         =&gt; 1,&lt;br /&gt;                p_comments                          =&gt; NULL,&lt;br /&gt;                p_date_probation_end                =&gt; NULL,&lt;br /&gt;                p_default_code_comb_id              =&gt; NULL,&lt;br /&gt;                p_frequency                         =&gt; 'W',&lt;br /&gt;                p_internal_address_line             =&gt; NULL,&lt;br /&gt;                p_manager_flag                      =&gt; 'Y',&lt;br /&gt;                p_normal_hours                      =&gt; 40,&lt;br /&gt;                p_perf_review_period                =&gt; 1,&lt;br /&gt;                p_perf_review_period_frequency      =&gt; 'Y',&lt;br /&gt;                p_probation_period                  =&gt; NULL,&lt;br /&gt;                p_probation_unit                    =&gt; NULL,&lt;br /&gt;                p_sal_review_period                 =&gt; 1,&lt;br /&gt;                p_sal_review_period_frequency       =&gt; 'Y',&lt;br /&gt;                p_set_of_books_id                   =&gt; NULL,&lt;br /&gt;                p_source_type                       =&gt; NULL,&lt;br /&gt;                p_time_normal_finish                =&gt; NULL,&lt;br /&gt;                p_time_normal_start                 =&gt; NULL,&lt;br /&gt;                p_bargaining_unit_code              =&gt; NULL,&lt;br /&gt;                p_labour_union_member_flag          =&gt; NULL,&lt;br /&gt;                p_hourly_salaried_code              =&gt; NULL,&lt;br /&gt;                --emp_upload_rec.rate_type,&lt;br /&gt;                p_ass_attribute_category            =&gt; NULL,&lt;br /&gt;                p_ass_attribute1                    =&gt; NULL,&lt;br /&gt;                p_ass_attribute2                    =&gt; NULL,&lt;br /&gt;                p_ass_attribute3                    =&gt; NULL,&lt;br /&gt;                p_ass_attribute4                    =&gt; NULL,&lt;br /&gt;                p_ass_attribute5                    =&gt; NULL,&lt;br /&gt;                p_ass_attribute6                    =&gt; NULL,&lt;br /&gt;                p_ass_attribute7                    =&gt; NULL,&lt;br /&gt;                p_ass_attribute8                    =&gt; NULL,&lt;br /&gt;                p_ass_attribute9                    =&gt; NULL,&lt;br /&gt;                p_ass_attribute10                   =&gt; NULL,&lt;br /&gt;                p_ass_attribute11                   =&gt; NULL,&lt;br /&gt;                p_ass_attribute12                   =&gt; NULL,&lt;br /&gt;                p_ass_attribute13                   =&gt; NULL,&lt;br /&gt;                p_ass_attribute14                   =&gt; NULL,&lt;br /&gt;                p_ass_attribute15                   =&gt; NULL,&lt;br /&gt;                p_ass_attribute16                   =&gt; NULL,&lt;br /&gt;                p_ass_attribute17                   =&gt; NULL,&lt;br /&gt;                p_ass_attribute18                   =&gt; NULL,&lt;br /&gt;                p_ass_attribute19                   =&gt; NULL,&lt;br /&gt;                p_ass_attribute20                   =&gt; NULL,&lt;br /&gt;                p_ass_attribute21                   =&gt; NULL,&lt;br /&gt;                p_ass_attribute22                   =&gt; NULL,&lt;br /&gt;                p_ass_attribute23                   =&gt; NULL,&lt;br /&gt;                p_ass_attribute24                   =&gt; NULL,&lt;br /&gt;                p_ass_attribute25                   =&gt; NULL,&lt;br /&gt;                p_ass_attribute26                   =&gt; NULL,&lt;br /&gt;                p_ass_attribute27                   =&gt; NULL,&lt;br /&gt;                p_ass_attribute28                   =&gt; NULL,&lt;br /&gt;                p_ass_attribute29                   =&gt; NULL,&lt;br /&gt;                p_ass_attribute30                   =&gt; NULL,&lt;br /&gt;                p_title                             =&gt; NULL,&lt;br /&gt;                p_segment1                          =&gt; NULL,&lt;br /&gt;                p_segment2                          =&gt; NULL,&lt;br /&gt;                p_segment3                          =&gt; NULL,&lt;br /&gt;                p_segment4                          =&gt; NULL,&lt;br /&gt;                p_segment5                          =&gt; NULL,&lt;br /&gt;                p_segment6                          =&gt; NULL,&lt;br /&gt;                p_segment7                          =&gt; NULL,&lt;br /&gt;                p_segment8                          =&gt; NULL,&lt;br /&gt;                p_segment9                          =&gt; NULL,&lt;br /&gt;                p_segment10                         =&gt; NULL,&lt;br /&gt;                p_segment11                         =&gt; NULL,&lt;br /&gt;                p_segment12                         =&gt; NULL,&lt;br /&gt;                p_segment13                         =&gt; NULL,&lt;br /&gt;                p_segment14                         =&gt; NULL,&lt;br /&gt;                p_segment15                         =&gt; NULL,&lt;br /&gt;                p_segment16                         =&gt; NULL,&lt;br /&gt;                p_segment17                         =&gt; NULL,&lt;br /&gt;                p_segment18                         =&gt; NULL,&lt;br /&gt;                p_segment19                         =&gt; NULL,&lt;br /&gt;                p_segment20                         =&gt; NULL,&lt;br /&gt;                p_segment21                         =&gt; NULL,&lt;br /&gt;                p_segment22                         =&gt; NULL,&lt;br /&gt;                p_segment23                         =&gt; NULL,&lt;br /&gt;                p_segment24                         =&gt; NULL,&lt;br /&gt;                p_segment25                         =&gt; NULL,&lt;br /&gt;                p_segment26                         =&gt; NULL,&lt;br /&gt;                p_segment27                         =&gt; NULL,&lt;br /&gt;                p_segment28                         =&gt; NULL,&lt;br /&gt;                p_segment29                         =&gt; NULL,&lt;br /&gt;                p_segment30                         =&gt; NULL,&lt;br /&gt;                p_concat_segments                   =&gt; NULL,&lt;br /&gt;                p_contract_id                       =&gt; NULL,&lt;br /&gt;                p_establishment_id                  =&gt; NULL,&lt;br /&gt;                p_collective_agreement_id           =&gt; NULL,&lt;br /&gt;                p_cagr_id_flex_num                  =&gt; NULL,&lt;br /&gt;                p_cag_segment1                      =&gt; NULL,&lt;br /&gt;                p_cag_segment2                      =&gt; NULL,&lt;br /&gt;                p_cag_segment3                      =&gt; NULL,&lt;br /&gt;                p_cag_segment4                      =&gt; NULL,&lt;br /&gt;                p_cag_segment5                      =&gt; NULL,&lt;br /&gt;                p_cag_segment6                      =&gt; NULL,&lt;br /&gt;                p_cag_segment7                      =&gt; NULL,&lt;br /&gt;                p_cag_segment8                      =&gt; NULL,&lt;br /&gt;                p_cag_segment9                      =&gt; NULL,&lt;br /&gt;                p_cag_segment10                     =&gt; NULL,&lt;br /&gt;                p_cag_segment11                     =&gt; NULL,&lt;br /&gt;                p_cag_segment12                     =&gt; NULL,&lt;br /&gt;                p_cag_segment13                     =&gt; NULL,&lt;br /&gt;                p_cag_segment14                     =&gt; NULL,&lt;br /&gt;                p_cag_segment15                     =&gt; NULL,&lt;br /&gt;                p_cag_segment16                     =&gt; NULL,&lt;br /&gt;                p_cag_segment17                     =&gt; NULL,&lt;br /&gt;                p_cag_segment18                     =&gt; NULL,&lt;br /&gt;                p_cag_segment19                     =&gt; NULL,&lt;br /&gt;                p_cag_segment20                     =&gt; NULL,&lt;br /&gt;                p_notice_period                     =&gt; NULL,&lt;br /&gt;                p_notice_period_uom                 =&gt; NULL,&lt;br /&gt;                p_employee_category                 =&gt; NULL,&lt;br /&gt;                p_work_at_home                      =&gt; NULL,&lt;br /&gt;                p_job_post_source_name              =&gt; NULL,&lt;br /&gt;                p_supervisor_assignment_id          =&gt; NULL,&lt;br /&gt;                p_cagr_grade_def_id                 =&gt; l_cagr_grade_def_id,&lt;br /&gt;                p_cagr_concatenated_segments        =&gt; l_cagr_concatenated_segments,&lt;br /&gt;                p_concatenated_segments             =&gt; l_concatenated_segments,&lt;br /&gt;                p_soft_coding_keyflex_id            =&gt; l_soft_coding_keyflex_id,&lt;br /&gt;                p_comment_id                        =&gt; l_comment_id,&lt;br /&gt;                p_effective_start_date              =&gt; l_effective_start_date,&lt;br /&gt;                p_effective_end_date                =&gt; l_effective_end_date,&lt;br /&gt;                p_no_managers_warning               =&gt; l_no_managers_warning,&lt;br /&gt;                p_other_manager_warning             =&gt; l_other_manager_warning,&lt;br /&gt;                p_hourly_salaried_warning           =&gt; l_hourly_salaried_warning,&lt;br /&gt;                p_gsp_post_process_warning          =&gt; l_gsp_post_process_warning&lt;br /&gt;               );&lt;br /&gt;   DBMS_OUTPUT.put_line (SQLERRM);&lt;br /&gt;   COMMIT;&lt;br /&gt;END;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/144851838473318802-4371984134083868327?l=arunrathod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrathod.blogspot.com/feeds/4371984134083868327/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=144851838473318802&amp;postID=4371984134083868327' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/4371984134083868327'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/4371984134083868327'/><link rel='alternate' type='text/html' href='http://arunrathod.blogspot.com/2008/10/r12-hrms-single-record-insertion-for_1997.html' title='R12 HRMS: Single record insertion for Assignment'/><author><name>Arun Kumar S.R</name><uri>http://www.blogger.com/profile/14745466774124137964</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_pBTgD4-jQls/SC-82Kq7MJI/AAAAAAAAAOs/e_Invzqp9e0/S220/DSC05800.JPG'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-144851838473318802.post-7167587125721270919</id><published>2008-10-05T22:36:00.001-07:00</published><updated>2008-10-05T22:38:29.187-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='R12 HRMS: Single record insertion for Assignment(Jobs'/><category scheme='http://www.blogger.com/atom/ns#' term='Position..)'/><title type='text'>R12 HRMS: Single record insertion for Assignment(Jobs, Position..)</title><content type='html'>DECLARE&lt;br /&gt;   l_org_now_no_manager_warning     BOOLEAN;&lt;br /&gt;   l_other_manager_warning          BOOLEAN;&lt;br /&gt;   l_spp_delete_warning             BOOLEAN;&lt;br /&gt;   l_entries_changed_warning        VARCHAR2 (500);&lt;br /&gt;   l_tax_district_changed_warning   BOOLEAN;&lt;br /&gt;   l_object_version_number          NUMBER;&lt;br /&gt;   l_people_group_id                NUMBER;&lt;br /&gt;   l_special_ceiling_step_id        NUMBER;&lt;br /&gt;   l_group_name                     VARCHAR2 (500);&lt;br /&gt;   l_effective_start_date           DATE;&lt;br /&gt;   l_effective_end_date             DATE;&lt;br /&gt;BEGIN&lt;br /&gt;   --l_people_group_id := 155;&lt;br /&gt;   l_object_version_number := 3;&lt;br /&gt;   --l_group_name := '1A';&lt;br /&gt;   hr_assignment_api.update_emp_asg_criteria&lt;br /&gt;            (p_validate                          =&gt; FALSE,&lt;br /&gt;             p_effective_date                    =&gt; TRUNC (SYSDATE),&lt;br /&gt;             p_datetrack_update_mode             =&gt; 'CORRECTION',&lt;br /&gt;             p_assignment_id                     =&gt; 27920,&lt;br /&gt;             p_object_version_number             =&gt; l_object_version_number,&lt;br /&gt;             p_job_id                            =&gt; 18,&lt;br /&gt;             p_grade_id                          =&gt; 37,&lt;br /&gt;             p_position_id                       =&gt; NULL,&lt;br /&gt;             p_organization_id                   =&gt; 202,&lt;br /&gt;             p_location_id                       =&gt; 206,&lt;br /&gt;             p_pay_basis_id                      =&gt; 2,&lt;br /&gt;             p_payroll_id                        =&gt; 155,&lt;br /&gt;             p_special_ceiling_step_id           =&gt; l_special_ceiling_step_id,&lt;br /&gt;             p_group_name                        =&gt; l_group_name,&lt;br /&gt;             p_effective_start_date              =&gt; l_effective_start_date,&lt;br /&gt;             p_effective_end_date                =&gt; l_effective_end_date,&lt;br /&gt;             p_people_group_id                   =&gt; l_people_group_id,&lt;br /&gt;             --emp_upload_rec.people_group_id,&lt;br /&gt;             p_segment1                          =&gt; NULL,&lt;br /&gt;             p_segment2                          =&gt; NULL,&lt;br /&gt;             p_segment3                          =&gt; NULL,&lt;br /&gt;             p_segment4                          =&gt; NULL,&lt;br /&gt;             p_segment5                          =&gt; NULL,&lt;br /&gt;             p_segment6                          =&gt; NULL,&lt;br /&gt;             p_segment7                          =&gt; NULL,&lt;br /&gt;             p_segment8                          =&gt; NULL,&lt;br /&gt;             p_segment9                          =&gt; NULL,&lt;br /&gt;             p_segment10                         =&gt; NULL,&lt;br /&gt;             p_segment11                         =&gt; NULL,&lt;br /&gt;             p_segment12                         =&gt; NULL,&lt;br /&gt;             p_segment13                         =&gt; NULL,&lt;br /&gt;             p_segment14                         =&gt; NULL,&lt;br /&gt;             p_segment15                         =&gt; NULL,&lt;br /&gt;             p_segment16                         =&gt; NULL,&lt;br /&gt;             p_segment17                         =&gt; NULL,&lt;br /&gt;             p_segment18                         =&gt; NULL,&lt;br /&gt;             p_segment19                         =&gt; NULL,&lt;br /&gt;             p_segment20                         =&gt; NULL,&lt;br /&gt;             p_segment21                         =&gt; NULL,&lt;br /&gt;             p_segment22                         =&gt; NULL,&lt;br /&gt;             p_segment23                         =&gt; NULL,&lt;br /&gt;             p_segment24                         =&gt; NULL,&lt;br /&gt;             p_segment25                         =&gt; NULL,&lt;br /&gt;             p_segment26                         =&gt; NULL,&lt;br /&gt;             p_segment27                         =&gt; NULL,&lt;br /&gt;             p_segment28                         =&gt; NULL,&lt;br /&gt;             p_segment29                         =&gt; NULL,&lt;br /&gt;             p_segment30                         =&gt; NULL,&lt;br /&gt;             p_concat_segments                   =&gt; '1A.Boston.No....',&lt;br /&gt;             p_employment_category               =&gt; 'FR',&lt;br /&gt;             p_org_now_no_manager_warning        =&gt; l_org_now_no_manager_warning,&lt;br /&gt;             p_other_manager_warning             =&gt; l_other_manager_warning,&lt;br /&gt;             p_spp_delete_warning                =&gt; l_spp_delete_warning,&lt;br /&gt;             p_entries_changed_warning           =&gt; l_entries_changed_warning,&lt;br /&gt;             p_tax_district_changed_warning      =&gt; l_tax_district_changed_warning&lt;br /&gt;            );&lt;br /&gt;   DBMS_OUTPUT.put_line (SQLERRM);&lt;br /&gt;   COMMIT;&lt;br /&gt;END;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/144851838473318802-7167587125721270919?l=arunrathod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrathod.blogspot.com/feeds/7167587125721270919/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=144851838473318802&amp;postID=7167587125721270919' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/7167587125721270919'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/7167587125721270919'/><link rel='alternate' type='text/html' href='http://arunrathod.blogspot.com/2008/10/r12-hrms-single-record-insertion-for_05.html' title='R12 HRMS: Single record insertion for Assignment(Jobs, Position..)'/><author><name>Arun Kumar S.R</name><uri>http://www.blogger.com/profile/14745466774124137964</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_pBTgD4-jQls/SC-82Kq7MJI/AAAAAAAAAOs/e_Invzqp9e0/S220/DSC05800.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-144851838473318802.post-443946193963263059</id><published>2008-10-05T22:35:00.000-07:00</published><updated>2008-10-05T22:36:02.721-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='R12 HRMS: Single record insertion for salary'/><title type='text'>R12 HRMS: Single record insertion for salary</title><content type='html'>DECLARE&lt;br /&gt;   l_element_entry_id             NUMBER      := NULL;&lt;br /&gt;   l_inv_next_sal_date_warning    BOOLEAN;&lt;br /&gt;   l_proposed_salary_warning      BOOLEAN;&lt;br /&gt;   l_approved_warning             BOOLEAN;&lt;br /&gt;   l_payroll_warning              BOOLEAN;&lt;br /&gt;   l_perf_object_version_number   NUMBER;&lt;br /&gt;   l_pay_proposal_id              NUMBER (15);&lt;br /&gt;   l_assignment_id                NUMBER;&lt;br /&gt;   l_performance_review_id        NUMBER      := NULL;&lt;br /&gt;BEGIN&lt;br /&gt;   hr_maintain_proposal_api.insert_salary_proposal&lt;br /&gt;                 (p_pay_proposal_id                =&gt; l_pay_proposal_id,&lt;br /&gt;                  p_assignment_id                  =&gt; 27920,&lt;br /&gt;                  p_business_group_id              =&gt; 202,&lt;br /&gt;                  p_change_date                    =&gt; TRUNC (SYSDATE),&lt;br /&gt;                  p_comments                       =&gt; NULL,&lt;br /&gt;                  p_next_sal_review_date           =&gt; TRUNC (SYSDATE + 30),&lt;br /&gt;                  p_proposal_reason                =&gt; 'NEWH',&lt;br /&gt;                  p_proposed_salary_n              =&gt; 10000,&lt;br /&gt;                  p_forced_ranking                 =&gt; NULL,&lt;br /&gt;                  p_performance_review_id          =&gt; l_performance_review_id,&lt;br /&gt;                  p_attribute_category             =&gt; NULL,&lt;br /&gt;                  p_attribute1                     =&gt; NULL,&lt;br /&gt;                  p_attribute2                     =&gt; NULL,&lt;br /&gt;                  p_attribute3                     =&gt; NULL,&lt;br /&gt;                  p_attribute4                     =&gt; NULL,&lt;br /&gt;                  p_attribute5                     =&gt; NULL,&lt;br /&gt;                  p_attribute6                     =&gt; NULL,&lt;br /&gt;                  p_attribute7                     =&gt; NULL,&lt;br /&gt;                  p_attribute8                     =&gt; NULL,&lt;br /&gt;                  p_attribute9                     =&gt; NULL,&lt;br /&gt;                  p_attribute10                    =&gt; NULL,&lt;br /&gt;                  p_attribute11                    =&gt; NULL,&lt;br /&gt;                  p_attribute12                    =&gt; NULL,&lt;br /&gt;                  p_attribute13                    =&gt; NULL,&lt;br /&gt;                  p_attribute14                    =&gt; NULL,&lt;br /&gt;                  p_attribute15                    =&gt; NULL,&lt;br /&gt;                  p_attribute16                    =&gt; NULL,&lt;br /&gt;                  p_attribute17                    =&gt; NULL,&lt;br /&gt;                  p_attribute18                    =&gt; NULL,&lt;br /&gt;                  p_attribute19                    =&gt; NULL,&lt;br /&gt;                  p_attribute20                    =&gt; NULL,&lt;br /&gt;                  p_object_version_number          =&gt; l_perf_object_version_number,&lt;br /&gt;                  p_multiple_components            =&gt; 'N',&lt;br /&gt;                  p_approved                       =&gt; 'Y',&lt;br /&gt;                  p_validate                       =&gt; FALSE,&lt;br /&gt;                  p_element_entry_id               =&gt; l_element_entry_id,&lt;br /&gt;                  p_inv_next_sal_date_warning      =&gt; l_inv_next_sal_date_warning,&lt;br /&gt;                  p_proposed_salary_warning        =&gt; l_proposed_salary_warning,&lt;br /&gt;                  p_approved_warning               =&gt; l_approved_warning,&lt;br /&gt;                  p_payroll_warning                =&gt; l_payroll_warning&lt;br /&gt;                 );&lt;br /&gt;   DBMS_OUTPUT.put_line (SQLERRM);&lt;br /&gt;   COMMIT;&lt;br /&gt;END;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/144851838473318802-443946193963263059?l=arunrathod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrathod.blogspot.com/feeds/443946193963263059/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=144851838473318802&amp;postID=443946193963263059' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/443946193963263059'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/443946193963263059'/><link rel='alternate' type='text/html' href='http://arunrathod.blogspot.com/2008/10/r12-hrms-single-record-insertion-for.html' title='R12 HRMS: Single record insertion for salary'/><author><name>Arun Kumar S.R</name><uri>http://www.blogger.com/profile/14745466774124137964</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_pBTgD4-jQls/SC-82Kq7MJI/AAAAAAAAAOs/e_Invzqp9e0/S220/DSC05800.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-144851838473318802.post-5482542989635926349</id><published>2008-10-05T01:23:00.000-07:00</published><updated>2008-10-05T01:25:57.527-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Bills of Material'/><title type='text'>Bills of Material</title><content type='html'>What is Bills of Material?&lt;br /&gt;&lt;br /&gt;The Bill of Material is a list of all items that make an assembly, and is structured level by level so as to show the parent/component relationship.&lt;br /&gt;&lt;br /&gt;Let us take the simple case of a bicycle. It is made of two wheels. Here the bicycle is the parent and wheel is its component. The wheel consists of a rim. The wheel here is the parent item and the rim is the component (child). Thus the first level of the BOM is Bicycle, the second level is Wheel, and the third level is Rim. You could even continue further to the level of Spokes. Thus, depending upon the item, one can go further and further down in the BOM level.  &lt;br /&gt;&lt;br /&gt;However, the maximum BOM level that Oracle supports is 60.&lt;br /&gt;&lt;br /&gt;We use BOM for various purposes, namely:&lt;br /&gt;- To manufacture assemblies and sub-assemblies&lt;br /&gt;- To configure sales orders&lt;br /&gt;- To calculate standard cost&lt;br /&gt;- To forecast (planning)&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;BOM Conversion&lt;/strong&gt;&lt;br /&gt;First before stepping into boms we have to seriously study the client requirement. Once we are through with the client requirement, we have to check the legacy data that is provided by the client. The obtained legacy data should be entered into the staging table, the column of the staging table will be the same as our legacy data columns, and also we will be given the columns and data for two mapping tables by the client.&lt;br /&gt;&lt;br /&gt;We need to construct a convertion staging table as xx_bom_bill_of_mtls_conv_stg, this staging table contains the following columns. The conversion staging table is as fallows&lt;br /&gt;&lt;br /&gt;row_id              &lt;br /&gt;old_organization_code             &lt;br /&gt;new_organization_code             &lt;br /&gt;organization_id     &lt;br /&gt;old_assembly_item_number          &lt;br /&gt;new_assembly_item_number          &lt;br /&gt;assembly_item_id    &lt;br /&gt;old_operation_seq_num             &lt;br /&gt;new_operation_seq_num             &lt;br /&gt;old_component_item_number         &lt;br /&gt;new_component_item_number         &lt;br /&gt;component_item_id     &lt;br /&gt;item_num                          &lt;br /&gt;component_quantity                &lt;br /&gt;component_yield_factor            &lt;br /&gt;effectivity_date                 &lt;br /&gt;disable_date                      &lt;br /&gt;planning_factor                   &lt;br /&gt;wip_supply_type_meaning           &lt;br /&gt;wip_supply_type     &lt;br /&gt;supply_subinventory               &lt;br /&gt;supply_locator_code               &lt;br /&gt;supply_locator_id     &lt;br /&gt;operation_lead_time_percent       &lt;br /&gt;status_flag     &lt;br /&gt;&lt;br /&gt;Some of the validations to be performed are&lt;br /&gt;&lt;br /&gt;1. Validating the orgnization_code for null&lt;br /&gt;2. Validating the organization_code and geting the organization_id from mtl_parameters&lt;br /&gt;3. Validating the assembly_item_number and getting the related inventory_item_id&lt;br /&gt;4. Validating component_item_number for null&lt;br /&gt;5. Validating and getting the inventory_item_id for component_item_number&lt;br /&gt;6. Validating the wip_supply_type_meaning and getting the corresponding wip_supply_type&lt;br /&gt;7. Validating the supply_locator_code and getting the supply_locator_id related to    supply_locator_code&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/144851838473318802-5482542989635926349?l=arunrathod.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://arunrathod.blogspot.com/feeds/5482542989635926349/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=144851838473318802&amp;postID=5482542989635926349' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/5482542989635926349'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/144851838473318802/posts/default/5482542989635926349'/><link rel='alternate' type='text/html' href='http://arunrathod.blogspot.com/2008/10/bills-of-material.html' title='Bills of Material'/><author><name>Arun Kumar S.R</name><uri>http://www.blogger.com/profile/14745466774124137964</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://bp0.blogger.com/_pBTgD4-jQls/SC-82Kq7MJI/AAAAAAAAAOs/e_Invzqp9e0/S220/DSC05800.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-144851838473318802.post-4831443761134074910</id><published>2008-10-05T00:19:00.000-07:00</published><updated>2008-10-05T00:23:18.039-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Knowledge Management for Routes Conversion in 11.5.10'/><title type='text'>Knowledge Management for Routes Conversion in 11.5.10</title><content type='html'>&lt;strong&gt;1 Responsibility / Navigation / Module &lt;/strong&gt;&lt;br /&gt; Bills Of Materials &lt;br /&gt;&lt;br /&gt;&lt;strong&gt;2 Conversion Approach / Reference Documents&lt;/strong&gt;&lt;br /&gt;             BOM_INTERFACE1Document and Bills Of Materials User Guide.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;3 Application Setup Requirements&lt;/strong&gt;&lt;br /&gt;NA&lt;br /&gt;  &lt;br /&gt;&lt;strong&gt;4 Assumptions / Prerequisites / Validations&lt;/strong&gt;&lt;br /&gt; &lt;u&gt;Prerequisites:&lt;/u&gt;             &lt;br /&gt;             Objects like Items,Resources,Departments need to be converted.&lt;br /&gt;             Resources need to be assigned to departments.&lt;br /&gt;             SubInventory locator controls need to be assigned to organization and proper flags need to be set. &lt;br /&gt;    &lt;br /&gt;             &lt;u&gt;Validations:&lt;/u&gt;&lt;br /&gt;               disabled_date&lt;br /&gt;               organization_code&lt;br /&gt;               inventory_item_number&lt;br /&gt;               sub_inventory&lt;br /&gt;               alternate_routing_designator&lt;br /&gt;              
