Fetch Profile Option Values

Hi,
We have a requirement in which we want to fetch the output of a query for specific inventory org set in profile option from fornt end.
Please let me know if there is any specific API which will help me fetch the value of the Inventory Org Profile Option(MFG_ORGANIZATION_UNIT) for the report query.
I was trying with FND_PROFILE.VALUE('MFG_ORGANIZATION_ID') but it doesnt seem to be working.
Please help.
Thanks,
Ramendra.

We are calling the report as a discoverer report and the workbook is attached to a custom function.
So basically we want to use the value fetched from the profile option in the SQL query of the disocverer report.
Unfortunately i made a simple program and tried tot it didnt work fetch the value but it doesnt work.
CREATE OR REPLACE
procedure rr_test(errbuf OUT VARCHAR2,retcode OUT VARCHAR2) IS
v_organization_id VARCHAR2(100);
--v_org_id number;
begin
v_organization_id := fnd_profile.value('MFG_ORGANIZATION_ID');
--v_org_id := fnd_global.org_id;
/*select organization_id into v_organization_id PO: MFG Organization ID
from hr_organization_units where
organization_id = fnd_profile.value('MFG_ORGANIZATION_ID');*/
fnd_file.put_line(fnd_file.log,'PROFILE VALUE IS :'||v_organization_id);
End;
When i registered it as a concurrent program.Set the change organization and run the program it doesnt show any value for the value of the profile option.
The output is like this:
RR_TEST module: RR Test
Current system time is 23-FEB-2009 20:17:51
**Starts**23-FEB-2009 20:17:52
**Ends**23-FEB-2009 20:17:52
Start of log messages from FND_FILE
PROFILE VALUE IS :
End of log messages from FND_FILE
Executing request completion options...
Please advise.
Thanks,
Ramendra.

Similar Messages

  • Not able to get the profile option value

    Hi,
    Not able to get the profile option value after i changed the new value in the application.
    I am using fnd_global.apps_initialize to initialize the apps from PLSQL code to get the updated profile option value. But fnd_profile.value is not getting fetched the updated value. Still it is fetching the old one. I mean it is stored in database cache. Please any one let me know how to get the new value every time after i changed the value.
    Thanks

    What is the application release?
    Is this a custom or seeded profile option?
    Can you confirm that the value got changed from the application (query the profile option and verify the value)?
    Can you reproduce the issue if you use an API to update this profile option as per (How to Change Profile Option Value Without Forms? [ID 943710.1])?
    Thanks,
    Hussein

  • How to capture profile option value in Controller in OAF?

    Hi,
    I have a requirement to capture the value of profile option value in Controller in OAF?
    How to write the code for this?
    Thanks

    Hi ,
    You can get the profile option value in following ways.
    String customprofile = transaction.getProfile("XXXX");
    if(customprofile == null)
    throw new OAException("The custom Profile Option Named XXXX has not been defined. Contact " +
    "your IT Support Group. , (byte)0);
    if(customprofile.length() == 0)
    throw new OAException("The custom Profile Option Named XXXX does not have a value assigned" +
    ". Contact your IT Support Group. "
    , (byte)0);
    Thanks
    Deb

  • User Profile Option Values

    The concurrent report User Profile Option Values, is only site value levels. Are user level values more powerful, i.e. do they overide such values. How can I determine profile option values set at user level? Is there a similar report?

    hsawwan wrote:
    The concurrent report User Profile Option Values, is only site value levels. Are user level values more powerful, i.e. do they overide such values. A profile option can be set at one or more levels, depending on its hierarchy type. Most profile options use the Security hierarchy type, meaning that they can potentially be set at the four levels Site (lowest level), Application, Responsibility, and User (highest level). A higher-level option value overrides a lower-level value.
    How can I determine profile option values set at user level? Is there a similar report?Note: 367926.1 - How To Find All Users With A Particular Profile Option Set?
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=367926.1
    Note: 201945.1 - How to list E-Business Suite Profile Option values for all levels using SQLPlus
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=201945.1
    Do you know if the Utilities: Diagnostics is our powerful/risky profile option to grant a user in PROD, I cant find much information on it??

  • API for inserting/updating system profile option values

    Hi,
    Is there any API that I can use to insert/update system profile option values via PL/SQL?
    Regards,
    Santhosh Jose

    Hi Santosh,
    You can think of using the FNDLOAD utility to download the values from one instance and upload to other instance.
    ## Now lets have a look at the profile option using oracle's FNDLOAD
    FNDLOAD apps/$CLIENT_APPS_PWD O Y DOWNLOAD $FND_TOP/patch/115/import/afscprof.lct POR_ENABLE_REQ_HEADER_CUST.ldt PROFILE PROFILE_NAME="POR_ENABLE_REQ_HEADER_CUST" APPLICATION_SHORT_NAME="ICX"
    ## Note that
    ## POR_ENABLE_REQ_HEADER_CUST is the short name of profile option
    ## We aren't passing the user profile option name in this case. Validate using ...
    ########----->select application_id, PROFILE_OPTION_NAME || '==>' || profile_option_id || '==>' ||
    ########----->USER_PROFILE_OPTION_NAME
    ########----->from FND_PROFILE_OPTIONS_VL
    ########----->where PROFILE_OPTION_NAME like '%' || upper('&profile_option_name') || '%'
    ########----->order by PROFILE_OPTION_NAME
    ########----->/
    ## Now to upload
    FNDLOAD apps/$CLIENT_APPS_PWD O Y UPLOAD $FND_TOP/patch/115/import/afscprof.lct POR_ENABLE_REQ_HEADER_CUST.ldt
    For other config components download and upload you can refer the link- http://www.apps2fusion.com/apps/scripts/19-oracle-fndload-script-examples
    Thanks,
    Sanjay

  • Setting profile option values using Java Concurrent Program

    Hi,
    I have a java concurrent program in which i am trying to update a profile option which is enabled only at site level, but the values are not getting committed once the CP completes.
    1. I am using CpContext.getProfileStore().SetProfile(<name>,<value>) to set the value.
    2. I am printing CpContext.getProfileStore().getProfile(<name>) in the same run and this works.
    3. BUt once the CP completes, the values are gone. Seems we have to issue a commit.
    3. So i used CpContext.getJDBCConnection().commit; Even this doesn't commit.
    Pls. suggest. Has anyone used these APIs to update profile options?
    Thanks,
    Suresh.

    I am not not a java expert, but pl see if MOS Docs 305710.1 (A SAMPLE JAVA CONCURRENT PROGRAM) and 827563.1 (How To Create a Java Concurrent Program?) can help
    HTH
    Srini

  • How to get profile options & values at user & responsibility level by SQL?

    Experts, How to get profile options and values at user and responsibility level using SQL?

    SELECT
    po.profile_option_name as name
    , po.user_profile_option_name
    , decode(to_char(pov.level_id),'10001','SITE','10002','APP','10003','RESP','10005','SERVER','10006','ORG','10004','USER', '???') as "LEVEL"
    , decode(to_char(pov.level_id),'10001','','10002', app.application_short_name,'10003', rsp.responsibility_key,'10005', svr.node_name,'10006', org.name,'10004', usr.user_name,'???') as context
    , pov.profile_option_value as value
    FROM
    fnd_profile_options_vl po
    , fnd_profile_option_values pov
    , fnd_user usr
    , fnd_application app
    , fnd_responsibility rsp
    , fnd_nodes svr
    , hr_operating_units org
    WHERE 1=1
    AND pov.application_id = po.application_id
    AND pov.profile_option_id = po.profile_option_id
    AND usr.user_id (+) = pov.level_value
    AND rsp.application_id (+) = pov.level_value_application_id
    AND rsp.responsibility_id (+) = pov.level_value
    AND app.application_id (+) = pov.level_value
    AND svr.node_id (+) = pov.level_value
    and org.organization_id (+) = pov.level_value
    ORDER BY 1, pov.level_id, 5
    You'll need to apps initialize your SQL session before running this ...
    Regards,
    Jon

  • Unable to set/update custom profile option value in R12.1.3

    Hi All,
    I have defined a custom profile. After querying the custom profile and I select a value from the resulting LOV(popup).
    Whenever I am trying to save the changes the LOV again pops up for selecting the value.

    Hi,
    I think this is the wrong forum for this question. This forum is for questions about Oracle Enterprise Data Quality.
    Regards,
    Mike

  • Value of profile option, ICX: Requisition Sever(ICX_REQ_SERVER)

    Hi,
    I need to know how do we find out the value to be stored in the profile option, ICX: Requisition Sever(ICX_REQ_SERVER). The value currently we have in our client instance seems to be wrong.
    My requirement is to prepare a URL to access a SQL Loader's bad file. While clicking on the URL should open the bad file from the interface directory in the UNIX server.
    Please comment.
    Regards,

    Hi,
    There are many scripts available, please see these documents for details.
    Note: 470102.1 - How To Check If a Profile Option Is Set In Oracle Application
    Note: 201945.1 - How to list E-Business Suite Profile Option values for all levels using SQLPlus
    Note: 282382.1 - How to Search all of the Profile Options for a Specific Value
    Note: 367926.1 - How To Find All Users With A Particular Profile Option Set?
    Note: 282382.1 - How to Search all of the Profile Options for a Specific Value
    Note: 803587.1 - Script To List The Values Of A Profile Option At All Levels
    Thanks,
    Hussein

  • How to find out profile optoins value for user from database?

    I have PA debug enabled for a particular user in my ebusiness suite environment. I need to find out for what user is it enabled.
    FND_PROFILE_OPTIONS shows that its enabled for user and responsibility level. But I am not able to find out for which user/responsibility is it enabled, as this only shows flags.
    Can someone please tell me what table/view I need to check for that.

    Hi;
    Please see:
    How To Check If a Profile Option Is Set In Oracle Application [ID 470102.1]
    How to list E-Business Suite Profile Option values for all levels using SQLPlus [ID 201945.1]
    How to Search all of the Profile Options for a Specific Value [ID 282382.1]
    Regard
    Helios

  • Trace is still getting generated even after disabling the profile option Initialization SQL Statement - Custom

    Hi All,
    we have a problem with profile option "Initialization SQL Statement - Custom". we have set this at user level. after some time, we have cleared the profile option value for this user.
    But we can still see the generated trace files are getting updated. we did checked this trc files from path returned from below query.
    select name, value
    from   v$parameter
    where  name like 'user_dump_dest';
    Please help us on how to resolve this issue. we are using Oracle Apps R 12.1.2 version.
    Thanks in advance
    Raghava

    Before logging out we suspect that he closed the browser instead of logout link.
    What if you make the user logout, can you reproduce the issue then?
    We have verified the profile options for this user and found that value is cleared for profile Initialization SQL Statement - Custom.
    How do you know that the files were generated for this user and because of this profile option? Have you verified profile options for all users at all level?
    Thanks,
    Hussein

  • Profile option is obsolete in R12

    Hi
    We have recently migrated from 11.5.10.2 to R12.1.3. Before migration, certain users were able to see the output and log files submitted by other users. But now this is not working. They are not able to see the output of requests submitted by others anymore. This profile option is obsolete in R12. Is there any new profile option to replace this.
    Regards

    user13551818 wrote:
    Chk The Profile option Concurrent:Report Access Level_.
    Change the Profile Option value for Concurrent:Report Access Level. Default value for the profile is "User", which means View Output is only accessible by the particular user that submitted the request. Set it to "Responsibility", now the View Output button is enabled from responsiblity where the report is registered.This profile option is no longer used in R12 and it is replaced by RBAC -- Please see the doc referenced above for details.
    Thanks,
    Hussein

  • This printer is referenced by the printer profile option.

    Hello,
    I am trying to delete a printer in the Printers screen, and getting this message:
    "This printer is referenced by the printer profile option. You cannot delete a printer that is referenced."
    I ran the first select statement to identify the users with this printer in their profiles, and cleared the printer from their profiles.
    I ran the second select statement to identify any scheduled jobs going to this printer, and cancelled and rescheduled the jobs to another printer.
    I then did some research, and found the third select statment to find the request sets, and moved them to another printer.
    I am still getting this profile error. Where else can there exist a profile that is preventing the printer from deleting?
    SELECT fpovl.PROFILE_OPTION_NAME,
    fpovl.USER_PROFILE_OPTION_NAME,
    fpov.profile_option_value,
    fu.user_name
    FROM fnd_profile_options_vl fpovl,
    fnd_user fu,
    fnd_profile_option_values fpov
    WHERE fpov.level_id = '10004' -- user level
    AND fpovl.profile_option_id = fpov.profile_option_id
    AND fpov.level_value = fu.user_id
    AND fpov.profile_option_value LIKE '%et27m451%';
    select
    fu.user_name,
    nvl(conc.description, prog.user_concurrent_program_name) concurrent_job_name,
    frvl.responsibility_name,
    conc.printer, conc.requested_start_date, conc.*
    from apps.fnd_concurrent_requests conc,
    apps.fnd_concurrent_programs_vl prog,
    apps.fnd_responsibility_vl frvl,
    apps.fnd_user fu
    where conc.concurrent_program_id = prog.concurrent_program_id
    AND frvl.application_id = conc.responsibility_application_id
    AND frvl.responsibility_id = conc.responsibility_id
    and conc.requested_by = fu.user_id
    and conc.printer LIKE '%et27m451%'
    and status_code = 'Q';
    select r.user_request_set_name, s.user_stage_name,
    c.user_concurrent_program_name, p.request_set_id, p.printer
    from fnd_request_sets_tl r, fnd_request_set_stages_tl s,
    fnd_request_set_programs p, fnd_concurrent_programs_tl c
    where p.request_set_ID = r.request_set_ID
    and p.request_set_stage_id = s.request_set_stage_id
    and p.concurrent_program_id = c.concurrent_program_id
    and printer like '%et27m451%';

    Please see these docs.
    How To Effectively Remove An Oracle Applications Printer [ID 370372.1]
    Getting Error Message When Trying to Unregister a Printer [ID 105260.1]
    How To List E-Business Suite Profile Option Values For All Levels Using SQLPlus [ID 201945.1]
    Thanks,
    Hussein

  • Update profile options at user level?

    Hi All,
    Need a script for,
    update profile options at user level, for example we should be able to update a profile xyz for a user abc using that script?
    or please provide the document related to that..

    Hi All,
    Thanks for all sugessions,
    i have written an script for updating profile option value from backend.
    SELECT d.level_id,c.user_name, b.profile_option_name, a.user_profile_option_name,d.profile_option_value
    FROM fnd_profile_options_tl a,
    fnd_profile_options b,
    fnd_user c,
    fnd_profile_option_values d
    WHERE d.profile_option_id = b.profile_option_id
    AND d.level_id = 10004
    AND a.profile_option_name = b.profile_option_name
    AND d.level_value = c.user_id
    AND c.user_name = '&USER_NAME'
    update query
    update fnd_profile_option_values
    set profile_option_value = '&Profile_Option_Value'
    where profile_option_id in
    (select profile_option_id from fnd_profile_options where profile_option_name
    =(select profile_option_name from fnd_profile_options_tl
    where user_profile_option_name = ('&User_Profile_Option_Name')))
    and level_id = 10004
    and level_value in (select user_id from fnd_user
    where user_name in ('&User_Name'))
    Thanks
    One

  • Does FND:Developer Mode Profile Option changes requires apache bounce?

    Hi All,
    Am getting the following warning message in one of my page. Observed that, the profile option value FND: Developer Mode in the instance is Yes. I have changed it to NO since the recommended settings of this profile option is NO as Oracle stated in the Developer Guide. But, still am getting the warning message. Does this change require apache bounce or am I missing anything to get rid of error?
    +++
    Query has exceeded 500 rows. Potentially more rows exist. please restrict your query
    +++
    Note: I have checked all the VO in this page, but, none of the query behaves returns more than 500 rows. None of the VOs executed blindly.
    Regards,
    Soorya

    Saurabh,
    I got a clue on this issue. Not sure, will it be helpful.
    User clicks on the base page link, which takes him to details page. When i redirect the user from base page to details page, am setting the retainAM value as Y as one of the parameter of the link url.
    Am getting the warning message when the value of retainAM is Y. If it is N, it is not throwing the warning message. Any idea, what could be the reason?.
    I feel, it might execute the VO's in the AM. Is my guess make sense?
    Regards, Soorya

Maybe you are looking for

  • Segment field in Postings

    Hi all of you Could any suggest me how to fill the segment field in automatic postings like AFAB and AIBU as Document splitting is activated and we dont have assignment the segment in PCtr master data. Thanks & Regards Ramki

  • Audio sync drifting

    Log and capture files start out in sync and drift out of sync over the length of the clip. Could dissimilar Sequence, capture and device control presets cause this problem? Seq Preset is set to DV50 48 Khz which has 16 bit 48 Khz audio Capture Preset

  • Oracle Web Services Manager Gateway

    I need help! :( When I try to add a service to a gateway (import from uddi) I receive this error: * Failed to assign default policy * null where is the problem??? :°

  • I975x PU Edition - Speedstep not working

    Hi guys, Just got this new setup and everything is fine apart from Speedstep never kicks in, its enabled in the BIOS (7.1) as well as C1E, and I have set the power management in Windows to "Minimal" and I leave it alone with no programs open for 5 mi

  • No code highlights in fx:Script of flash builder 4.5

    Hello all, It seems all codes inside fx:Script blocks are black with no syntax highlights. That's pretty inconvenient. Can anyone please let me know how to turn it on? Thanks!