發表文章

find profile for user level

select p.profile_option_name SHORT_NAME, n.user_profile_option_name NAME, decode(v.level_id, 10001, 'Site', 10002, 'Application', 10003, 'Responsibility', 10004, 'User', 10005, 'Server', 'UnDef') LEVEL_SET, decode(to_char(v.level_id), '10001', '', '10002', app.application_short_name, '10003', rsp.responsibility_key, '10005', svr.node_name, '10006', org.name, '10004', usr.user_name, 'UnDef') "CONTEXT", v.profile_option_value VALUE from fnd_profile_options p, fnd_profile_option_values v, fnd_profile_options_tl n, fnd_user usr, fnd_application app, fnd_responsibility rsp, fnd_nodes svr, hr_operating_units org where p.profile_option_id = v.profile_option_id (+) and p.profile_option_name = n.profile_option_name and usr.user_id (+) = v.level_value and rsp.application_id (+) = v.level_value_application_id and rsp.responsibility_id (+) = v.leve...
SELECT   (SELECT COUNT (1)             FROM v$session a2            WHERE a2.blocking_session IS NOT NULL              AND a2.SID = a1.blocking_session) r_count,          a1.blocking_session,          (SELECT a2.serial#             FROM v$session a2            WHERE a2.SID = a1.blocking_session) blocking_serial, a1.SID,          a1.serial#, a1.wait_class, a1.module, a1.seconds_in_wait, a1.action     FROM v$session a1    WHERE a1.blocking_session IS NOT NULL AND a1.blocking_session <> 1693 ORDER BY 1;  

oracle erp Period setup path 模組設定期間路徑

Note :  GL: Setup / Open/Close AP: Accounting / Control Payables Periods AR: Control / Accounting / Open/Close Periods PO: Setup / Financials / Accounting / Control Purchasing Periods       (Setup / Financials / Accounting / Open and Close Periods) INV: Cost Management / Accounting Close Cycle / Inventory Accounting Periods

Form 常用

1.一進頁面就能看到表中已生成數據,而不用按ctrl+f11進行查詢的語句: 在form級的觸發器when-new-form-instance中, 寫如下代碼: go_block('XXXX'); execute_query; 要查詢的數據塊的名稱 說明: 當使用基於表建立的塊時,可使用塊裡的任何項的GO_BLOCK或者GO_ITEM找到那個塊當查詢數據到一個塊裡去,可通過execute_query進行處理 補充:用DELETE_RECORD從塊中刪除當前記錄,要改變數據庫的記錄,必須使用COMMIT_FORM  2,什麼辦法可以控制form中File菜單中的Export嗎? 使其失效答: 在FORM中,在FORM級的觸發器EXPORT中, 將其中的代碼app_standard.event('EXPORT');屏蔽掉,改為null;試一試  3當form啟動時,在pre-form觸發器中instantiate你特定的菜單items 調用app_special.instantiate包  procedure APP_SPECIAL.INSTANTIATE(  option_name varchar2, --定義tigger名字  hint varchar2 default null,--定義菜單實體的名字,使用&來定義菜單實體的鍵盤快捷鍵  icon varchar2 default null,--  initially_enabledboolean default true,  separator varchar2 default null);--定義'LINE'為separator 例子  app_special.instantiate(’SPECIAL1’,’&rint Order’,’PRINTORD’);  4,在tool菜單中的check boxes  --option_name與trigger_name包括關鍵字CHECKBOX(例如:SPECIAL3_CHECKBOX)  app_special.instantiate(’SPECIAL3_CHECKBOX’,’Sp...

cancel PO by api & temp table

-- maintain temp table data  delete from sncus.phil_test_temp01 ; select * from sncus.phil_test_temp01 for update; -- check data SELECT a.segment1           po_num           ,b.line_num           po_line_num           ,c.shipment_num       po_shipment_num           ,e.temp1              quot_price           ,b.po_header_id           ,b.po_line_id           ,c.line_location_id           ,b.unit_price         pl_unit_price           ,b.quantity           line_qty           ,d.segment1           ,c.quantity          ...

submit request output eamil to user

declare  l_conc_id     number;  l_boolean     boolean := TRUE;  e_add_del     exception;  e_add_layout  exception;  e_set_option  exception;  e_set_repeat  exception;  begin     -- intialize the apps.    -- fnd_global.apps_initialize (10275, 52373, 222);      fnd_global.apps_initialize (10275, 51953, 222);     -- Adding delivery option to send the request output as email     l_boolean := fnd_request.add_delivery_option                     (type => 'E' -- this one to speciy the delivery option as email                     ,p_argument1 => 'Delivery Option Test' -- subject for the mail                     ,p_argument2 => '100385@senao.com' -- from address   ...