• 关于从基于MultOrg的视图中查询数据的问题(转)


    .Report视图中的数据

        fnd_global.APPS_Initialize( user_id=>3070,

    resp_id=>50650,

    resp_appl_id =>20003);

    end;

    Oracle

    定义Cocurrent Programfnd_client_info.set_org_context(to_char(x_org_id));

    查询得到基于Muti-Org1begin

    dbms_application_info.set_client_info(:org_id);-

    end;

    2Declare

    x_org_id number;

    begin

    Fnd_profile.GET('ORG_ID',x_org_id);

    fnd_client_info.set_org_context(x_org_id);

    end;

    3begin

    fnd_client_info.setup.client_info(application_id   => 1,

                       responsibility_id  => 2,

                       user_id in number => 3,

                       security_group_id => 4);

    end;

    4.

       begin

        fnd_global.APPS_Initialize( user_id=>3070,

    resp_id=>50650,

    resp_appl_id =>20003);

    end;

    环境环境变量,我一般用2

    fnd_globalFnd_profile,可以得到获取许多其他profile或者环境变量的方法,比如:

    fnd_profile.value('GL_SET_OF_BKS_ID') from dual

    fnd_profile.value('SO_ORGANIZATION_ID') from dual;

    fnd_profile.value('ORG_ID');

    fnd_profile.value('MFG_ORGANIZATION_ID')

    FND_PROFILE.VALUE('USER_ID');

    FND_PROFILE.VALUE('login_ID');

    FND_PROFILE.VALUE('USERNAME');

    FND_PROFILE.VALUE('CONCURRENT_REQUEST_ID');

    FND_PROFILE.VALUE('RESP_APPL_ID');

    FND_PROFILE.VALUE('APPL_SHRT_NAME');



    Form. $PROFILE$ 

    Form. $PROFILE$

    FND_GLOBAL.USER_ID

    FND_Global.User_Name

    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

    开发中经常需要获取的mfg_org_id系统并不会给给变量赋值,直到执行Change OranizationForm trigger

    OU信息

    ORG_ORGANIZATION _DEFINITIONS

    OE_SYS_PARAMETERS_V

    MASTER_ORGANIZATION_ID

    FND_GLOBAL.USER_ID

    FND_Global.User_Name

    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

    开发中经常需要获取的mfg_org_id系统并不会给给变量赋值,直到执行Change OranizationForm trigger

    OU信息

    ORG_ORGANIZATION _DEFINITIONS

    OE_SYS_PARAMETERS_V

    MASTER_ORGANIZATION_ID


             

                成长

           /      |     \

        学习   总结   分享

    QQ交流群:122230156

  • 相关阅读:
    微软面试题
    20个开源项目托管站点推荐
    iis配置好后,解决打开服务器要输入用户名和密码的问题
    C# 调用带输入输出参数的存储过程
    line-height属性总结
    placeholder的字体样式改变,滚动条的颜色改变,ios日期兼容
    表格使用总结
    网页html结构搭建方法总结
    css中的inline-block
    css常用居中
  • 原文地址:https://www.cnblogs.com/benio/p/2098307.html
Copyright © 2020-2023  润新知