zoukankan      html  css  js  c++  java
  • fnd_profile.value的用法

    fnd_profile.value的用法

    fnd_profile.value的用法:

    select fnd_profile.value('gl_set_of_books_id')
       from dual
    select fnd_profile.value('mfg_organization_id')
       from dual   --取子库
    select fnd_profile.value('GL_SET_OF_BKS_ID')
       from dual--取帐套


    用此方式調整正確的當前咝协h境,特別是在multi_org環境下(在報表前,報表後均要執行因有可能在咝羞^程中變量被人為改變)

    有一些view用到org環境參數的,一般要如下設定後,才能select到記錄:

    begin

    dbms_application_info.set_client_info(:org_id);--如1,2,3之類的

    end;


    可用'FND_PROFILE.GET' function 查看以下一些參數

    取得set of book id

    Select fnd_profile.value('GL_SET_OF_BKS_ID') from dual

    取得master_id

    select fnd_profile.value('SO_ORGANIZATION_ID') from dual;

    取得當前org_id

    select to_number(fnd_profile.value('ORG_ID')) from dual;

    org_id = :$PROFILES$.ORG_ID;也可用此來取得,在定義報表參數時來定義


    fnd_profile.value('MFG_ORGANIZATION_ID') 與上的區別

    取得當前user_id

    select TO_NUMBER(FND_PROFILE.VALUE('USER_ID')) from dual;

    FND_GLOBAL.USER_ID 用此方式在report中有可能不好用,在report中建議用上一種方式FND_WHO.PROFILE('USERID') 又一種方式取得當前login_id

    select TO_NUMBER(FND_PROFILE.VALUE('login_ID')) from dual;

    取得當前username

    Declare
    username varchar2(30);
    begin
    username := FND_PROFILE.VALUE('USERNAME');
    end;

    另獲取username 也可以用FND_Global.User_Name

    fnd_global package可以取得一些關於當前login in用戶的信息

    取得當前request_id

    select FND_PROFILE.VALUE('CONCURRENT_REQUEST_ID') from dual;

    FND_REQUEST.SUBMIT_REQUEST 另一種方式

    請看fnd_concurrent_requests functions

    在PL/SQL Develop中没有环境变量,所以如果要查询多组织的View,需要先执行设置环境变量函数

    dbms_application_info.set_client_info(81);end;与
     BEGIN    fnd_client_info.set_org_context(82)END; 效果一样,这个81是指OU_ID,业务实体的ID .al--取帐套

    USERNAME             
     
    Your user’s current Oracle Application Object Library username.
     

    USER_ID
     
    Your user’s current Oracle Application Object  Library user ID.
     

    RESP_ID
     
    Your user’s current responsibility ID.
     

    APPL_SHRT_NAME
     
    The short name of the application connected to your user’s current responsibility.
     

    RESP_APPL_ID
     
    The application ID of the application connected to your user’s current responsibility.
     

    FORM_NAME
     
    The name of the current form. Not available for concurrent programs.
     

    FORM_ID
     
    The form. ID of the current form. Not available for concurrent programs.
     

    FORM_APPL_NAME
     
    The name of the application for which the current form. is registered. Not available for concurrent programs.
     

    FORM_APPL_ID
     
    The application ID of the application for which the current form. is registered. Not available for concurrent programs.
     

    LOGON_DATE
     
    Your user’s logon date for the current session.
     

    LAST_LOGON_DATE
     
    Your user’s logon date for the previous session.
     

    LOGIN_ID
     
    Your user’s Sign–On Audit login ID in Oracle Application Object Library.
     

    CONC_REQUEST_ID
     
    instance of your running current program. You can only use this profile option in a concurrent program. You use this profile option to fill the

    REQUEST_ID Who column.
     

    CONC_PROGRAM_ID
     
    The program ID associated with a running current program. You can only use this profile option in a concurrent program. You use this profile option

    to fill the PROGRAM_ID Who column.
     

    CONC_PROGRAM_APPLICATION_ID
     
    The application ID associated with a running current program. You can only use this profile option in a concurrent program. You use this profile

    option to fill the PROGRAM_APPLICATION_ID Who column.
     

    CONC_LOGIN_ID
     
    The login ID associated with a running concurrent program. You can only use this profile option in a concurrent program. You can use this profile

    option to fill the LAST_UPDATE_LOGIN Who column.
     

    CONC_PRINT_OUTPUT
     
    The value Yes or No that you enter in the Print Output field when you register a concurrentprogram. You can use the routine afpoput() fromyour

    concurrent programs to change the value ofthis profile option for a particular instance of yourrunning concurrent program. This profile

    optiondetermines whether the concurrent managers printthe concurrent program’s output to the printer.
     

    CONC_PRINT_STYLE
     
    The print style. of your concurrent program’soutput that you enter in the Print Style. field whenyou register a concurrent program. You can usethe

    routine afpoput() from your concurrentprograms to change the value of this profile option

  • 相关阅读:
    C# 一个数组集合,任意组合,不遗漏,不重复
    C# 对象遍历 string类型 null转空字符串和去前后空格
    mysql中varchar可以存多少汉字
    ping ipconfig telnet
    mysql 生成UUID() 即 ORACLE 中的guid()函数
    a标签的href和onclick
    JQuery设置checkbox选中或取消等相关操作
    JS eval()函数
    ztree设置节点checked,选中某节点等相关操作
    Windows数据库定时备份
  • 原文地址:https://www.cnblogs.com/shuihaya/p/13785206.html
Copyright © 2011-2022 走看看