Querying flexfiled values

Hi all,
I'm new to Oracle Financials.
What I would like to achieve is the following:
A SQL statement that would return all available values for a particular accounting key flexfield segment.
Say the accounting flexfield is Co.Div.Product; I'd like to get all available companies (in GL). Is that at all possible?
Thanks in advance,
g.

Hope this helps
select flex_value_id,flex_value,decode(summary_flag,'Y','Parent',summary_flag)Parent,
parent_flex_value_low,parent_flex_value_high,substr(substr(compiled_value_attributes,5,5),1,1)AccountType ,description from fnd_flex_values_vl a
where flex_value_set_id=<replace the value_set_id>
--and summary_flag='Y'
order by 2
Regards,
Shrikant
ym:skabboor

Similar Messages

  • How to pass multiple query string values using the same parameter in Query String (URL) Filter Web Part

    Hi,
    I want to pass multiple query string values using the same parameter in Query String (URL) Filter Web Part like mentioned below:
    http://server/pages/Default.aspx?Title=Arup&Title=Ratan
    But it always return those items whose "Title" value is "Arup". It is not returned any items whose "Title" is "Ratan".
    I have followed the
    http://office.microsoft.com/en-us/sharepointserver/HA102509991033.aspx#1
    Please suggest me.
    Thanks | Arup
    THanks! Arup R(MCTS)
    SucCeSS DoEs NOT MatTer.

    Hi DH, sorry for not being clear.
    It works when I create the connection from that web part that you want to be connected with the Query String Filter Web part. So let's say you created a web part page. Then you could connect a parameterized Excel Workbook to an Excel Web Access Web Part
    (or a Performance Point Dashboard etc.) and you insert it into your page and add
    a Query String Filter Web Part . Then you can connect them by editing the Query String Filter Web Part but also by editing the Excel Web Access Web Part. And only when I created from the latter it worked
    with multiple values for one parameter. If you have any more questions let me know. See you, Ingo

  • How to retrieve query string value from the URL in my portlet

    Hi,
    When user clicks on "Advance Search", i am redirecting to page in the community. At the same i am adding some more values to the query string (to the URL).
    My URL will look like this.
    http://ctp-mc0149/portal/server.pt?space=CommunityPage&parentname=CommunityPage&parentid=0&in_hi_userid=200&cached=true&control=SetCommunity&PageID=202&CommunityID=200&searchType=2
    Now in one of my portlet in that page, i want to retrieve the query string values from the URL.
    Please help me regarding this.
    Thanks in advance.
    Thanks,
    sreekanth.

    Hi,
    Look at the following threads,
    For programmatically getting the iview properties,
    Programmatically getting iView Properties
    Also,
    Get Properties of IView Programmatically
    Permanent change of iView property programmatically
    Hope these threads help u.
    Regards
    Srinivasan T

  • How to assign a query retrived value to a user defined  object in a table

    how to assign a query retrived value to a user defined  object in a table

    Rajeshwar,
    If you use the "Search" feature in this forum, you should be able to find helpful links to similar questions.  You could also look at the RecordSet and DoQuery documentation in the SAP Business One SDK Help Center documentation to assist you with your question.
    HTH,
    Eddy

  • BEx Query Analyzer Value Display of +/- Sign

    The KeyFigure values in the BEx Analyzer are being displayed as 512.740000000-  with a negative sign in the back. I tried to change the settings in Bex Query Designer -- Query Properties -- Value Display to "Before the Number -123.45" setting. It looks like it doesn't have any effect.
    Please let me know if I need to change the setting from the backend, we are on BI 7.0.
    Venkat

    It should work. Try to refresh the query if not come out of Bex and Relogin. This should fix

  • Sys_refcursor not fetching any data although query returns value

    hi!!!
    I am using sys_refcursor to return columns,and using below procedure to do so.Although data is there in table_1 and table_2.
    PROCEDURE test_pro(abc_date N DATE,
    cur_get_data OUT sys_refcursor
    OPEN cur_get_data
    for
    select A.col1,B.col2
    from table_1 A
    where A.dis_date=abc_date
    left outer join
    table_2 B
    on
    A.dis_date=B.dis_date;
    IF cur_get_data%rowcount=0
    then
         raise e_error;
    END if;
    EXCEPTION
         when e_error
         then
              ------no_data_found;
         when others
         then
    --------(giving SQL error with error code);
    END      test_pro;
    while running below sql in sql window of pl/sql developer fetching
    data
    select A.col1,B.col2
    from table_1 A
    where A.dis_date=abc_date
    left outer join
    table_2 B
    on
    A.dis_date=B.dis_date;
    but while testing the test_pro in test window of pl/sql developer it is
    not fetching any data and raising e_error each time
    is there any problem arising using IF cur_get_data%rowcount=0 as each time it is going to exception block..
    so can somebody please put some ideas what cud be the possible reason for this??

    Welcome to the forum!
    Unfortunatley you posted to the wrong forum. This question belongs in the SQL and PL/SQL forum.
    PL/SQL
    >
    sys_refcursor not fetching any data although query returns value
    but while testing the test_pro in test window of pl/sql developer it is
    not fetching any data and raising e_error each time
    is there any problem arising using IF cur_get_data%rowcount=0 as each time it is going to exception block..
    >
    A cursor doesn't fetch data - your code has to do that. The code you posted doesn't have any FETCH statements so no data will be fetched.
    There is no problem using 'IF cur_get_data%rowcount=0' but it will always be 0 in your code because you are not fetching any data.
    I'm guessing that you are trying to determine if there are any rows for the query. That isn't going to work since a cursor doesn't fetch rows.
    You just have to return the cursor to the caller and the caller will have to perform at least one fetch to see if there are any rows.
    If the above answers your question the just mark the question ANSWERED. Otherwise, since you have posted in the wrong forum
    1. repost the question in the SQL and PL/SQL forum
    2. Edit this post to add a link to the new thread in the other forum
    3. Mark this question ANSWERED so people will follow up in the other forum.
    Thanks.

  • How to query registry value?

    hi all,
    using which class or function that i can query the value in some specific registry key?
    thanks

    There's a preferences API that under Windows currently uses the registry, but it isn't able to get other trees' values (and is not guaranteed to keep using the registry - it well could change in future releases). If you want to have access to the complete registry (which I think you want), you should use either JNI or one of the implementations that circulate around the web (search for that).

  • How to parse crystal report query prompt value via url parameters

    HI All,
    I am creating a employee detail report in crystal report. The recordset is huge and i have created a parameter prompts in the query and thinking to parse the prompt value via url parameters. Not sure why i still could not make it works.
    for example, in my query panel i have created a prompt called "pwwid"
    and this is how i parse the prompt value via open document url.
    OpenDocument/opendoc/openDocument.jsp?sIDType=CUID&iDocID=AV8U6HlIq4FBl_MhcBwHqGI&lsSpwwid=12345678
    I read the sap documentation, this is how it parse the prompt value via url parameter. but it is not working for me and i am getting prompt to fill in the wwid whenever i run the reports.
    any idea why i am not getting this works?
    Regards,
    KeatAun

    Could you try:
    OpenDocument/opendoc/openDocument.jsp?sIDType=CUID&iDocID=AV8U6HlIq4FBl_MhcBwHqGI&lsSpspwwid=12345678
    -Abhilash

  • Passing sql report query field value to hidden item in javascript

    I have sql report which has in each row one html button. Let us say that query SHOULD look like (two columns, to be easy to get the point):
    select 1 SECURITY_ID
      , '<input type="BUTTON" value="Top10" onClick="javascript:Top10Click ('||SECURITY_ID||');" >' BTN
    FROM DUAL;
    function Top10Click (vValue) {
      html_GetElement('P31_PROCESS_VALUE').value = vValue;
      doSubmit('GO_BACK');
    } <br><br>
    where P31_PROCESS_VALUE is hidden item where i want to store value of row where click happened.
    <br><br>
    In every button i want to pass row value "SECURITY_ID" to Top10Click function for each row differently.
    <br><br>
    Problem is that when I place double qoute then js is not working, else js is ok but "SECURITY_ID" is passed as constant not as live SQL value.
    <br><br>
    Any help...THX!
    <br>
    Demo is on oracle:
    http://htmldb.oracle.com/pls/otn/f?p=26216:1
    Workspace entry:
    WK: FUNKY
    UN: [email protected]
    PW: qwertz

    I have tried to unify the solution, so it looks like:
    select 1 SECURITY_ID
      , '<input type="BUTTON" value="Top10" onClick="javascript:Top10Click ('||'&quot_X;'||SECURITY_ID||'&quot_X;'||');"  >' BTN
    FROM DUAL;change '&quot_X;' (remove "_X" part ... so it can be seen in HTML properly!
    THX Denes for great ideas...

  • SQL Query returns values like "---" and "NA"

    Hi
              When I execute a sql query in MII it returns values like "---" and "NA" for empty Char and numeric fields respectively.
    I have checked the database and made sure that these fields does not have any value. This happens only when I run the query through MII. Can any one know how can we get rid of these values?
    Thanks in advance
    Shaji

    Shaji,
    MII sets those values as a default if it discovers null values in a query result. You can change this default behaviour in several ways.
    First, have a look at the document [Setting custom null values in XML|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/70628af0-8ec4-2c10-7da2-f451e412dd8f?quicklink=index&overridelayout=true]. Then you may also use SQL functions like [NVL|http://www.techonthenet.com/oracle/functions/nvl.php] to change the value directly in the SQL query. You can also change the value inside the MII BLT to whatever you need.
    Michael

  • Query variable values in bookmarks (portal favourites)

    Hi,
    Basic problem: When 2 different users save their modified query views they behave differently. In other case the favourite opens straight to the report without displaying the variable screen and in the other case the variable screen is shown with preselected values.
    We'd like to standardize the function throughout the organization in such a way that every saved query view would behave so that the selection variable values would be automatically populated and the report would open without displaying the variable screen.
    We ran the same report in debugging mode and found several differencies:
    BI_TARGET_IVIEW (missing from the report which doesn't show variable screen)
    BusinessParameters
    - With Var Screen: Contains more information, f.ex. BW-client, and the technical name of the query
    - Without Var Screen: Just the bookmark technical ID
    ContentLink
    - With Var screen: QUERY=SALES_MP_Q0009&VARIABLE_SCREEN=X
    - Without Var screen: empty field
    -Miikka

    Hi,
    A. If a person is doing the following activity
    1. Using the Export and Distribute-Bookmark function in the context menu of a Web application
    or
    2. In the BEx Web Analyzer when saving the ad hoc analysis
    or
    3. When you personalize Web applications
    It will create a bookmark with bookmark ID.  (To View theses report  (SA38)
    RSWR_BOOKMARK_REORG - SAP NetWeaver 7.0 format)
    B. But if user is creating bookmark from portal framework.. like add to portal favorite or add to browser favorite in toolbar of portal, it only store the navigation struture of portal role.
    A.1 Regarding showing Variable screen.
    IN BEx Template, if we set  Show Variable Screen  as OFF, It will not show variable screen provided the mandatory filelds are there. For case A, Since Bookmark ID providing all the variables information it will not show Variable screen.
    Regards
    Baby
    Edited by: Baby on Mar 14, 2009 2:49 PM

  • Preventing column to be in insert query when value is null

    I'm running DB and have a column defined as GENERATED ALWAYS.
    What this means is that I can't use insert into table(col) values (null) because DB2 does not want the column to be part of the insert query at all.
    Is there a way to prevent toplink from generating the column when its null?

    Hi jsutherl,
    If I set setIsReadOnly(true) in my session customzier and specify insertable and updateable as false, I get the followine error:
    Exception [TOPLINK-46] (Oracle TopLink Essentials - 2.0.1 (Build b04-fcs (04/11/2008))): oracle.toplink.essentials.exceptions.DescriptorException
    Exception Description: There should be one non-read-only mapping defined for the primary key field [TBL.PERSON.ID].
    Descriptor: RelationalDescriptor(com.x.entity.Person--> [DatabaseTable(TBL.PERSON)])
    I'm guessing this is because ID is a primary key and its forcing me to have a non-read-only mapping.
    But the dillemma is that if I specify a non-read-only mapping than any insert on the table results in Toplink inserting the Java type null for the column which results in the following exception:
    Internal Exception: com.ibm.db2.jcc.b.SQLException: A value cannot be specified for column "ID" which is defined as GENERATED ALWAYS.
    This is because the field is defined as an IDENTITY in DB2.
    Any thoughts?

  • Query No value in 0ISSVALSTCK and 0RECVALSTCK

    Hi,
    I've just setup infocube 0IC_C03 as stated in the manual 'How to handle inventory management scenarios in BW'. Upload of data went fine (as far as i can see).
    Afterwards i downloaded some queries  from the business content and saw that there were no values in char's 0ISSVALSTCK and 0RECVALSTCK.
    If i understand it correctly char 0TOTALSTCK is composed out of  0ISSVALSTCK and 0RECVALSTCK (inflow and outflow). In my queries i get values for 0TOTALSTCK  so my guess is that ISSVALSTCK and 0RECVALSTCK are filled ?
    I really need those values in my queries so if anybody can help me ...
    with regards
    Erik

    Hello Erik,
    Maybe these standard keyfigures are cummulative, hance they get calculated at run-time. Kindly recheck 0ISSVALSTCK and 0RECVALSTCK at the cube level as well.
    Secondly, please check that 0ISSVALSTCK and 0RECVALSTCK properties at the query designer at not set to 'Do not display'.
    Finally, check if the update rule to  infocube 0IC_C03 contains any routine for calculations on  0TOTALSTCK.
    Kind regards,
    Parmanand

  • Search Results web part - Custom Query using "Value with a parameter from URL" inconsistent

    I have encountered what I think may be a bug, but I am hoping that there is something that I am missing.
    Within my search site, I have created a new search results page where I want to customize the "Search Results" web part query.  I can add in any number of property and keyword filters (using the "Build Your Query" dialog) without
    issue... until I add a filter that uses the QueryString property (the builder dialog calls this "Value with a parameter from URL").
    If I use {QueryString.MyParameterX} for filtering, it works beautifully in the query builder dialog.  I see the expected results in the search results preview pane, but as soon as I apply the changes things become inconsistent. 
    If I close/reopen my browser and navigate to my page at http://myaddress/search/Pages/testresults.aspx?MyParameterX=test I see results.  If I then refresh the page, I get a "Nothing here matches your search" message.  I can then go to
    the same address but change one character to an uppercase character and get results.  Refreshing that same page again returns "Nothing here matches your search".  I can only get search results one time per uniquely cased URL without having
    to close/reopen my browser.  This behavior was seen on both Firefox and IE.
    Finally, I found that if I instead navigate to http://myaddress/search/testresults?MyParameterX=test, it always returns results.  This, unfortunately isn't the best solution for me... but it is a solution.
    Any insight that anyone can provide is greatly appreciated!  I would really like to be able to depend on this working in all logical cases (especially since the search center of other sites is set using the path all the way down to /Pages).
    Thanks!

    Hi, have you been able to solve this issue? I'm getting the same issue and I cant solve it (required CU is installed).
    Fabio

  • Query the values not exist in the table

    We have a table AP_INVOICES_ALL where we have a column INVOICE_NUM, now we are searching INVOICE_NUM from a large set of values of INVOICE_NUM provided by the user.
    I want a query to find the INVOICE_NUM values supplied by user that doesn't exist in AP_INVOICES_ALL table.
    Database version : 11g
    OS : aix 6.1
    Regards,
    Gaurav

    Hi,
    If you are getting values in the table then the above solution is there but if you are getting the values in excel or text file then you need to upload the data into the table by using sql loader or by using external table.
    if the case then
    load data from excel or plain file into oracle table by using sql loader.(loader is server based utility)
    create table in oracle like create table table_name as column specification.
    If you have excel then save it as .csv file and create sql loader control file like
    oPTIONS (SKIP=1)
    load data
    infile 'Path_where_you_saved_csv_file'
    truncate
    into table table_name_you_have_created
    fields terminated by ','
    optionally enclosed by '"'
    trailing nullcols
    (your_column_name)
    {code}
    call control file from command prompt from the path where your control file and csv or plain file resides.
    {code}
    sqlldr userid=user_name/passowrd@database_name control=control_file_name
    {code}
    above will insert data into table.
    now you can use the select query...                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Maybe you are looking for

  • Pages sometimes not loading correctly until refres...

    Hello I have noticed that sometimes when I load a page, I get a 404 message until I refresh or, most commonly on forums, I get a 'server busy' message or something like that. I refresh the page and then it is fine. This happens very rarely, but it's

  • PC to Mac - slower internet speed?

    I have just purchased my first mac (entry level imac 17"). I love the computer and the operating system. However, the internet speed is extremely slow (almost like dial up). I have a pc and a mac, both running off the same connection. The mac is sign

  • SpotColor to GrayColor converter (javaScript)

    This could be edited to change any spot color to grayscale, currently it is aimed at a color called "spot black". The reason this is better then just using "edit/edit colors/convert to grayscale" is that the tones stay the same value. I'm sure it cou

  • Data Bandwidth Being Throttled

    I have monitored the Data Bandwidth since 03/28 and noted that between the hours of 12:00am and 06:00am bandwidth is 1.5mbps to 2.0mbps.  After that I also noted that the bandwidth drops to appx .08mbps.  These tests have been on at least 3 other pho

  • Facebook 3

    Is now the time to upgrade to facebook 3? I haven't upgraded yet since the time it was released due to the fear of the app not working (can't login, etc). However, I saw some facebook friends who were able to tag people using their blackberry, one fe