1. FND_PROFILE.GET(‘Name of the Profile’,

variable name);

SELECTfnd_profile.value('PROFILEOPTION')

,fnd_profile.value('MFG_ORGANIZATION_ID')

,fnd_profile.value('ORG_ID')

,fnd_profile.value('LOGIN_ID')

,fnd_profile.value('USER_ID')

,fnd_profile.value('USERNAME')

,fnd_profile.value('CONCURRENT_REQUEST_ID')

,fnd_profile.value('GL_SET_OF_BKS_ID')

,fnd_profile.value('SO_ORGANIZATION_ID')

,fnd_profile.value('APPL_SHRT_NAME')

,fnd_profile.value('RESP_NAME')

,fnd_profile.value('RESP_ID')

FROMDUAL;

SELECT fnd_profile.value('PROFILEOPTION')

,fnd_profile.value('MFG_ORGANIZATION_ID')

,fnd_profile.value('ORG_ID')

,fnd_profile.value('LOGIN_ID')

,fnd_profile.value('USER_ID')

,fnd_profile.value('USERNAME')

,fnd_profile.value('CONCURRENT_REQUEST_ID')

,fnd_profile.value('GL_SET_OF_BKS_ID')

,fnd_profile.value('SO_ORGANIZATION_ID')

,fnd_profile.value('APPL_SHRT_NAME')

,fnd_profile.value('RESP_NAME')

,fnd_profile.value('RESP_ID')

FROM DUAL;

2. variable name := FND_PROFILE.VALUE(‘Name

of the profile’);

3. FND_PROFILE.PUT(‘Name of the profile’,

value of the profile);

SETSERVEROUTPUTON;

DECLARE

v_conc_login_id NUMBER;

BEGIN

FND_PROFILE.put ('CONC_LOGIN_ID',1425);

fnd_profile.get ('CONC_LOGIN_ID', v_conc_login_id);

DBMS_OUTPUT.put_line (v_conc_login_id);

END;

Output:

1425

PL/SQL proceduresuccessfully completed

SET SERVEROUTPUT ON;

DECLARE

v_conc_login_id NUMBER;

BEGIN

FND_PROFILE.put ('CONC_LOGIN_ID',1425);

fnd_profile.get ('CONC_LOGIN_ID', v_conc_login_id);

DBMS_OUTPUT.put_line (v_conc_login_id);

END;

Output:

1425

PL/SQL procedure successfully completed

FND_PROFILE.GET is the procedure and FND_PROFILE.VALUE is the

function so, it return a value.

4.FND_PROFILE.SAVE used to set the profile values from

backend.

The table

fnd_profile_options_tl, profile options names are

kept.  Now find the corresponding the

Profileoption name for which you need to update from

backend. For thisexample I took my favorite

“ORG_ID”

SELECT

profile_option_name

FROM

fnd_profile_options_tl

WHERE

user_profile_option_nameLIKE'MO%'

It returns more than one row but i can make out that "ORG_ID" is

the PROFILE_OPTION_NAME for MO: Operating Unit. Now I need to know

the Org_ID of the Org whose value is to be set in MO: Operating

Unit. SO I use the simpleselect as below

SELECT

organization_id, NAME

FROM

hr_all_organization_units;

From the organization name I find the one which will be the default

Operating Unit, and I note the ID. In my case the ID for my default

Operating Unit is 286. Now with the code below I set the profile

option value using fnd_profile.save.

DECLARE

stat  BOOLEAN;

BEGIN

DBMS_OUTPUT.DISABLE;

DBMS_OUTPUT.ENABLE(100000);

stat := fnd_profile.SAVE('ORG_ID',286,'SITE');

IF

stat

THEN

DBMS_OUTPUT.put_line('Stat = TRUE - profile

updated');

ELSE

DBMS_OUTPUT.put_line('Stat = FALSE - profile NOT

updated');

END IF;

COMMIT;

END;

5.fnd_profile.defined

IF (fnd_profile.defined('TRANSACTION_DATE')) THEN

l_profile_value :=

TO_NUMBER(fnd_profile.value('TRANSACTION_DATE'));

....

说明

In oracle user Profile functionality is provided in

theFND_PROFILEpackage

and the FNDSQF library.

What is inside this API:

Retrieve user profile values for the current run-time

environment

Set user profile values for the current run-time

environment

There are various Objects that can be used with this API's.

These are discussed below:

1. Put :This can be used to put a value to the

specified user profile option.

Usage:

FND_Profile.Put('PROFILE_NAME','New_Value')

FND_Profile.Put('USERNAME', Usr_Name)

FND_Profile.Put('RESP_ID', Resp_ID)

FND_Profile.Put('RESP_APPL_ID', Resp_App_ID)

FND_Profile.Put('USER_ID', User_ID)

2.DEFINED :this

is function returns TRUE if a value has been assigned to the

specified profile option.

Usage:

SELECT fnd_profile.defined('ACCOUNT_GENERATOR:DEBUG_MODE')

ACC_GEN_DEBUG_SESSION_MODE FROM DUAL;

3.GET :This is used to retrieve the current

value of the specified user profile option

Usage :

Different type of options can be retrieved like

FND_Profile.Get('PROFILENAME', Profile_name);

FND_Profile.Get('CONC_LOGIN_ID', Conc_login_id);

FND_Profile.Get('LOGIN_ID', loginid);

4.VALUE :This is

function which returns a character string. Used to retrieve the

current value of the specified user profile option.

Usage:

fnd_profile.value('PROFILEOPTION')

fnd_profile.value('MFG_ORGANIZATION_ID')

fnd_profile.value('login_ID')

fnd_profile.value('USER_ID')

fnd_profile.value('USERNAME')

fnd_profile.value('CONCURRENT_REQUEST_ID')

fnd_profile.value('GL_SET_OF_BKS_ID')

fnd_profile.value('ORG_ID')

fnd_profile.value('SO_ORGANIZATION_ID')

fnd_profile.value('APPL_SHRT_NAME')

fnd_profile.value('RESP_NAME')

fnd_profile.value('RESP_ID')

5.VALUE_WNPS:This

is a function, returns a character string. This is Used to retrieve

the current value of the specified user profile option without

caching it.

6.SAVE_USER :This is function used to save a

value for a profile option permanently to the database, for the

current user level. It is necessary to explicitly issue a commit

when using this function. Returns TRUE if profile option is

successfully saved, otherwise FALSE.

7.SAVE :This is function used to save a value

for a profile option permanently to the database, for a specified

level. It is necessary to explicitly issue a commit when using this

function. Returns TRUE if profile option is successfully saved,

otherwise FALSE.

Usage

fnd_profile.save('GUEST_USER_PWD', 'GUEST/ORACLE',

'SITE');

8.INITIALIZE:This

is used by internal Applications Object Library to initialize the

internal profile information at the level context.

The cache is first cleared of all database options.

Usage:

fnd_profile.initialize(user_id);

9.PUTMULTIPLE :This is used by internal

Applications Object Library to set multiple pairs of profile

options and values.

oracle erp fnd api,Sample of API FND_PROFILE (转)相关推荐

  1. Oracle 抄袭亚马逊的 API 是侵权吗?

    那么,Oracle 侵犯了亚马逊的版权吗? 作者 | CHARLES DUAN 译者 | 弯月,责编 | Elle 出品 | CSDN(ID:CSDNnews) 以下为译文: 美国最高法院将在今年初审 ...

  2. ERP系统对接方案,API接口封装系列(高并发)

    ERP系统对接需要以下步骤: 调研ERP系统的API:首先需要了解ERP系统是否有提供API接口,以及API接口的功能和使用方法. 确定对接方案:根据业务需求,确定ERP系统对接方案,选择适合自己需求 ...

  3. oracle soap api,Web API与SOAP API的区别

    Web API与SOAP API的区别 总的来说,Web API比SOAP API有优势,多数情况下SOAP API的优势仅在消息结构的描述上.因此在三方集成时,当对方的集成工具仅支持根据WSDL来构 ...

  4. oracle订单,银科软件:Oracle ERP订单管理模块详细介绍

    原标题:银科软件:Oracle ERP订单管理模块详细介绍 Oracle® 订单管理使用户能够通过更有效的客户服务.更个性化的产品和更有利的价格制定和订单履行抢先利用日益发展的国际互联网去销售和让客户 ...

  5. ORACLE ERP 系统架构与应用实践

    一.从ERP到EBS 从上世纪70年代晚期的物料需求计划MRP(Material Requirements Planning)到80年代的MRP II,再到90年代的企业资源计划ERP(Enterpr ...

  6. oracle expense po,ORACLE ERP中PO/INV/AP/GL流程对应那些关键基表、接口表?

    ORACLE ERP中PO/INV/AP/GL流程对应那些关键基表.接口表? 这个要看你用的哪一种ERP,如果是EBS,接口表参考如下信息: AP接口表: AP_INVOICES_INTERFACE ...

  7. Oracle ERP 技术探讨

    纯技术的博客! 对Oracle ERP功能和技术方面的探讨.没有兴趣千万别看,因为我怕浪费你的时间 Strcuts 开发举例 作者 HenryRen 17:14 | 静态链接网址 | 最新回复 (0) ...

  8. Oracle ERP数据转换论

    Oracle ERP 方法体系中属实施管理范畴的是AIM(Application Implementation Method),从下图AIM流程中我们可以看到系统时间轴上共分为六个阶段: n 需求定义 ...

  9. Python API vs C++ API of TensorRT

    Python API vs C++ API of TensorRT 本质上,C++ API和Python API应该在支持您的需求方面接近相同.pythonapi的主要优点是数据预处理和后处理都很容易 ...

最新文章

  1. ds图—最小生成树_Java: Kruskal算法生成最小生成树(邻接矩阵)
  2. 人工智能 MIT 博士系列讲课
  3. Multi-band Blending
  4. python与seo应用_【张亚楠】Python在我SEO工作中的应用(1)
  5. java运行class文件_java命令行下运行class文件
  6. AAAI 2018经典论文获奖者演讲:本体论的昨天和今天
  7. 股票的科创板,新三板,创业板到底哪个能让你赚钱
  8. @Autowired 与 @Resource的区别
  9. 2006毕业设计Delphi篇(二)
  10. 分享一个自己写的py扫描路径工具
  11. 最新稳定短视频去水印免费解析API接口分享
  12. c语言程序输出三角,C语言小程序之输出“上三角”
  13. 免费查看并下载知网文献
  14. latex:表格排版示例
  15. 彩信文件服务器,彩信服务器怎么设置
  16. win10修改DVD驱动器盘符(磁盘管理无DVD驱动器)
  17. react中dispatch_react-redux中连续两次dispatch-actions有顺序吗?
  18. SpringBoot项目处理emoji表情到mysql
  19. Ubuntu安装qt 5.12
  20. Mybatis-X使用

热门文章

  1. OpenCV (c++)使用KDTree时,得到正确结果后报Segmentation fault (core dumped)
  2. 小白也能懂的hadoop生态圈,很黄很暴力!
  3. 关于调制比、过调制、基波电压和母线电压的概念和关系总结
  4. [附源码]计算机毕业设计springboot基于微信小程序的网络办公系统
  5. 记一次 打包报错:Keystore was tampered with, or password was incorrect
  6. lstm实战,nlp情感分析(Kaggle)
  7. RSF 分布式服务框架设计:线程模型
  8. 黑灰对比可以为高大上网站风格代言
  9. 【ArcGIS for Android】使用自定义Callout显示地图信息
  10. Windows 11系统如何将“此电脑”显示在桌面?