Need to pass the PROFILE options in SQL query

SELECT ffvs.FLEX_VALUE_SET_NAME
, ffvs.FLEX_VALUE_SET_ID
, ffv.FLEX_VALUE_ID
, ffv.FLEX_VALUE
FROM fnd_flex_value_sets ffvs
, fnd_flex_values ffv
WHERE 1=1
AND ffvs.FLEX_VALUE_SET_ID=ffv.FLEX_VALUE_SET_ID
AND ffvs.FLEX_VALUE_SET_ID=1012493  -- SCHEME_GL_OPTION
AND ffvs.FLEX_VALUE_SET_ID IN (select FLEX_VALUE_SET_ID from FND_FLEX_VALUE_RULE_LINES
where
FLEX_VALUE_RULE_ID
in
(select FLEX_VALUE_RULE_ID from FND_FLEX_VALUE_RULES where FLEX_VALUE_RULE_NAME='MDS ZA Option' ))
I am trying to to run the particular SQL qyery for creating the VIEW.
Concern:- It will pick all the columns of the values associated with all rules and GL account
--> I want to filter out by running the or using the PROFILE option so that it returns for only one RESP_ID.
Is it anyway to use in creating of view in the QUERY to pick the only one RESP_ID.
Hope I made clear my issue.

My questions is to use this FND_PROFILE.VALUE('RESP_ID') or FND_PROFILE.VALUE('ORG_ID')
When ever you will run the above flex values query, it will come for all company or org id.
I want specific for one org for all the flex values when i will run the above query.
I try to initialize the query for the org_id,resp_id. But it returning for all of the org.
I  have to filter out the values based on Org.Where as in the above query there is no org_id column for joing so how should i ?
Hope i make my questions right.

Similar Messages

  • Pass the result of a SQL Query as table_name  for another SQL Query

    Hi All,
    How to pass the result of a SQL Query as parameter to another SQL Query
    Eg: I am doing the steps below.
    1) select distinct table_name as TAB1 from all_tab_cols where table_name like 'T_%' and column_name like '%XYZ'
    2) I want to pass the table_name from step 1 above as parameter to another query "select * from TAB1"
    Thanks

    Naveen B wrote:
    Hi All,
    How to pass the result of a SQL Query as parameter to another SQL Query
    Eg: I am doing the steps below.
    1) select distinct table_name as TAB1 from all_tab_cols where table_name like 'T_%' and column_name like '%XYZ'
    2) I want to pass the table_name from step 1 above as parameter to another query "select * from TAB1"
    ThanksYou should craete PL/SQL code with cursor which will accept a parameter and call that cursor inside the first one
    But if the first sql returns only one row, you can do it with simple sql code
    select * from (select distinct table_name as TAB1 from all_tab_cols where table_name like 'T_%' and column_name like '%XYZ')- - - - - - - - - - - - - - - - - - - - -
    Kamran Agayev A. (10g OCP)
    http://kamranagayev.wordpress.com
    [Step by Step install Oracle on Linux and Automate the installation using Shell Script |http://kamranagayev.wordpress.com/2009/05/01/step-by-step-installing-oracle-database-10g-release-2-on-linux-centos-and-automate-the-installation-using-linux-shell-script/]

  • 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

  • How can we set the profile options to increase OPP response Time

    Hi All,
    While running the concurrent program to merge the data template and rtf template we got the following message in the log file.
    Executing request completion options... ------------- 1) PUBLISH ------------- Beginning post-processing of request 9079946 on node G2C-IDEV-02 at 21-SEP-2007 02:04:49. Post-processing of request 9079946 failed at 21-SEP-2007 02:19:53 with the error message: The Output Post-processor is running but has not picked up this request. No further attempts will be made to post-process this request, and the request will be marked with Warning status. Setting the profile option Concurrent: OPP Response Timeout to a higher value may be necessary. --------------------------------------
    Thanks in advance

    Hi ,
    There are 2 new profiles options that can be used to control the timeouts. Depending on the error message, one of the following solutions needs to be implemented.
    Profile Option : Concurrent:OPP Response Timeout
    Internal Name : CONC_PP_RESPONSE_TIMEOUT
    Description : Specifies the amount of time a manager waits for OPP to respond to its request for post processing.
    Profile Option : Concurrent:OPP Process Timeout
    Internal Name : CONC_PP_PROCESS_TIMEOUT
    Description : Specifies the amount of time the manager waits for the OPP to actually process the request.
    Note: The profile options are available as of $FND_TOP/patch/115/sql/AFCPOPRB.pls 115.3 and are included in Patch 4125550 11.5.10 CU2 for ATG Product family.
    Solution A
    Option 1: Increase the value (in seconds) for the profile option 'Concurrent:OPP Response Timeout'.
    Option 2: Increase the number of processes or threads (or both) of the OPP via Oracle Applications Manager (see Note 291792.1 for the detailed instructions)
    Solution B
    Increase the value (in seconds) for the profile option 'Concurrent:OPP Process Timeout'.
    Workaround
    The timeouts can also be altered directly in the package AFCPOPRB.pls :
    -- Default timeout values for waiting on a response to a request (seconds)
    TIMEOUT1 constant number := 120;
    TIMEOUT2 constant number := 300;
    TIMEOUT1 and TIMEOUT2 corresponds to respectively OPP Response Timeout (solution A) and OPP Process Timeout (solution B).
    Cheers
    Ranjit.

  • 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 can we pass the select-option value to modulepool program?

    hi,
      how can we pass the select-option value to modulepool program ?
      Because if i declared select-options in executable program and i used SSCRFIELDS to define push buttons in selection screen.
               My requirement if enter the values to select-options and press UPDATE pussbotton then i want call screen which contains tablecontrol.
               How i get select-option values to PAI of call screen for getting the data from database table to my internal table?

    Oh I thought that you have selection-screen and again you are working on dialog programming.
    if you want to use select-option directly in module pool then it is not possible.
    but you can do other way.
    create two varaiables
    data : v_kun_low like kna1-kunnr,
             v_kun_high like kna1-kunnr.
    use these two variables in layout ,let user knows that he can not give options like gt,lt,eq ,it will be always BT.
    and also when you see normal report program,you can use multiple values in either low or high,but here it is not possibel.
    use can enter only low value and high value.
    when you come to program point of view
    declare one range
    ranges r_kunnr for kna1-kunnr.
    do the coding like
    r_kunnr-low = v_kun_low.
    r_kunnr-high = v_kun_high.
    r_kunnr-options = 'BT'.
    r_kunnr-sign = 'I'.
    append r_kunnr.
    now you can use r_kunnr in select query ,it will work like select-option.
    other than this there is no option.
    Thanks
    Seshu

  • I need to pin the comment options in the tool bar. Please Adobe team put that option.

    I need to pin the comments options in the tool bar.  Please Adobe team put that option.
    https://www.pinterest.com/pin/create/extension/

    Thank you!!

  • I am a student working on a project for school and I need to know the bandwidth options for the iPad mini with retina display

    I am working on a project where I am required to introduce a new product for consideration in the hospital setting.  I have chosen the iPad mini, and have been able to locate the information that I need except for the bandwidth options.  Any help would be appreciated.

    I don't know what you mean by "bandwidth options". If you mean the frequencies and bands the iPad can use with cell carriers, those are listed in the Wireless and Cellular area of the tech specs. For iPads sold in the US, see:
    http://www.apple.com/ipad-mini/specs/
    If that's not what you meant, please post back and clarify what you mean by "bandwidth options".
    Regards.

  • Order Import failing with error "The specified subinventory is invalid to use, the profile option INV: Allow Expense to Asset Transfer is set to No. Change the profile option to Yes or choose a valid subinventory."

    Hi All,
    I am getting this error while importing an internal sales order.
    “The specified subinventory is invalid to use, the profile option INV: Allow Expense to Asset Transfer is set to No. Change the profile option to Yes or choose a valid subinventory.”
    I have tried to set mentioned profile as ‘Yes’. But still getting same error.
    Also, provided subinventory is present and active in given inventory organization.
    Please share if anybody encountered this before and have a solution.

    Hi 2878342
    Please refer the following metalink note, it should resolve your problem.
    Order Import Interface.Error Message Specified Subinventory Is Invalid To Use (Doc ID 406411.1)

  • Need to pass the value from UI

    Hi!!
    I am using jdeveloper 11.1.1.5
    I had dragged and dropped Three Input Text Boxes in my UI
    I need to pass the values from the UI to my AMImpl Methods
    i.e. In my AMImpl Methods
    vo2.setNamedWhereClauseParam("year",[af:ImputTextBox1]);
    vo2.setNamedWhereClauseParam("period",[af:ImputTextBox2]);
    vo2.setNamedWhereClauseParam("bu",[af:InputTextBox3]);
    vo2.executeQuery();

    The links given by Vinoth and jabr is very usefull for me!!
    Still i m receiving an while i clicked the button
    Cannot convert MEL of type class java.lang.String to class oracle.adf.view.rich.component.rich.input.RichInputText
    Cannot convert 201011 of type class java.lang.String to class oracle.adf.view.rich.component.rich.input.RichInputText
    Cannot convert 5 of type class java.lang.String to class oracle.adf.view.rich.component.rich.input.RichInputTextEdited by: wilhelm wundt on Dec 18, 2011 10:00 PM

  • Reg the profile options

    I want to remove the profile options "Home , Logout, Preferences from the page"
    Can I?

    Check the "Buttons (Global)" section of the dev guide.
    --Shiv                                                                                                                                                                                           

  • I sign up for TAPJOY.While signing in,they install something in my PROFILE CONFIGURATION...When I check my Settings-General,I can't see the PROFILE OPTION! Please help me :) Im running ios 6.0.1

    I sign up for TAPJOY.While signing in,they install something in my PROFILE CONFIGURATION...When I check my Settings-General,I can't see the PROFILE OPTION! Please help me Im running ios 6.0.1

    Well, after another call with Apple support and the engineers, no success.  After spending over 20 hours trying to debug this, I give up.  Apple was basically fishing for a solution with trial-and-error settings on the iphone.  Then they wanted me to plug in software to log my iphone connections to the router, etc, etc., etc., at which point I decided I no longer wanted to participate in their testing process and will simply return the router.
    25 hours of my life I'll never get back.
    Big bummer, and frustrating for all the obvious reasons.

  • We need to pass the customer id from Parent BO report  to Child BO report.

    Hello Experts
    We are using SAP BI BO 4.1 for Business Objects  and SAP BW 7.3 as BW Backend.
    Requirement: We need to pass the customer id from Parent BO report  to Child BO report.
    Issue: Customer (0CUST_SALES__CUSTOMER) Characterisitic is used where in the display characteristic is set to Key i.e 'Display As "Key" ' But the In BO the Dimension appreas as Text .
    I have tried out by changing the display characteristic as KEY/ TEXT/ KEY & TEXT but still at the BO end the it is displayed as TEXT.
    Workaround Tried:  I have used the detailed object for the Dimension 0CUST_SALES__CUSTOMER- key in SAP BO i.e the key value where in we are able to view the customer ID. But we are unable to pass the value from parent report to child report  as the query level Filter cannot be applied onto a detaield object.
    Is this a BI- BO Integration issue?? Kindly help me out with the same.
    Regards
    Akshay.

    Hello Victor,
    I have gone through the doc sent. It was helpful.
    Info Object (BW)/ Dimension (BO): 0CUST_SALES__CUSTOMER.
    In SAP BO the dimension has detailed object under it 0CUST_SALES__CUSTOMER- KEY and 0CUST_SALES__CUSTOMER- TEXT.
    Now I can pass "0CUST_SALES__CUSTOMER- KEY" from the parent report. But in the child report we cannot apply Query level Prompt / Filter on the detailed object which will hold the parameter passed from the Parent report.
    Q1: Can we apply prompts on a detailed objects?? Is there any configuration  changes required.
    Q2: Is there any other method the achive the same??
    Regards
    Akshay.

  • Assigning the profile options of Oracle Diagnostic tool of R12

    Hi
    Could anyone please ellaborate the profile options for RDA (Oracle Diagnostics) like Default timeout used by OSUtility,Sleep time used in OSUtility,Time out used by OSUtility and Time out used by OSUtility to get environment details.
    If possible please sugest the way to assign the values for these profiles.
    Akshaya

    Hi,
    Create a profile under Application Developer Responsibility as follow:
    Name OAE_LAUNCHER
    Application <whatever>
    User Profile Name Oracle Application Express Launcher
    Description Oracle Application Express Launcher
    2. Set above profile value under System Administrator Responsibility -> Profile -> System, and search for the ‘OAE_LAUNCHER’.
    Set the value at Site Level as:
    http://<hostname>:<Apex port>/pls/apex
    Then instead of hardcoding the URL in the jsp, just give the profile name OAE_LAUNCHER that you have just created in the jsp.
    Hope this helps you
    Brgds,
    Mini
    If this is helpful or correct, assign points promptly.

  • HT4859 What if I pass the restoring option at the beginning by mistake and I want to restore? Help me please.

    What if I pass the restoring option at the beginning by mistake and I want to restore? Help me please.

    Welcome to the Apple Support Communities
    In that case, you have to set up the iPhone again. Open Settings > General > Reset > Erase All Content and Settings, and set up the iPhone again, so you will see the option to restore your iPhone from the iCloud backup

Maybe you are looking for

  • Good Issue movement type

    Hello MM and CO Gurus! I am facing the following issue with my customer (Utilities). They will be working with non valuated materials for the devices they use At the time of GR they capture the cost in an SAP Order (account assignment in PO is F) Sin

  • Segment creation problem

    I have a File to IDoc scenario. The IDoc imported has a particular segment E1EDPAD occuring only once in the structure. I have PRI and QUALF in that segment. For a particular source field X, I need to send the value of QUALF as 3 and then the value o

  • Opening a smart object (photoshop cc layer) in camera RAW?

    Opening a smart object (photoshop cc layer) in camera RAW? I have opened a processed RAW file from lightroom into photoshop cc, then done various processing and created a merged layer. I've then convered this layer to smart object (it displays the sm

  • Oracle Business Intelligence analytics  encoding

    Hi I have source database in sybase ASE  on linux  with cp1250  ( polish ) my repository for BI is in UTF8.   IN analytics i dont have polish characters   how can i set  encoding  for BI  setting linux NLS_LANG to polish_poland.EE8MSWIN1250  and rest

  • Error while calling SAP script.

    Hi all, Has anyone faced this problem. When I try to send an email from an activity in PB60 it does not work. It pops up an error message - Error while calling SAPscript: <OPEN_FORM> <return code 1>. Regards, Bharat