Created below function (program units) in report builder

hi all,
I created below function (program units) in report builder and added two insert statements to know how much time it is taking to execute.Report is executing successfully but no rows inserted into tale testtime.
Is there any other way to know the execution time of this function.
Please help me
function CF_TYPEFormula return Char is
begin
     insert into testtime values(sysdate,1,'CF_TYPEFormula');
  IF(:CATG0=1)
       THEN RETURN ('MOVING STOCK');
       insert into testtime values(sysdate,1,'CF_TYPEFormula');
  ELSE RETURN('NON-MOVING STOCK');
  END IF;
  insert into testtime values(sysdate,1,'CF_TYPEFormula');
  commit;
end;Edited by: maddy on 26 Dec, 2011 8:46 PM
Edited by: maddy on 29 Dec, 2011 9:25 PM

Shashank,
Try,
function CF_TYPEFormula return Char is
Str_Ret_Val VARCHAR2(100);
BEGIN
   INSERT INTO TESTTIME VALUES(SYSDATE, 1, 'CF_TYPEFormula');
   IF(:CATG0=1) THEN
      Str_Ret_Val := 'MOVING STOCK';
      INSERT INTO TESTTIME VALUES(SYSDATE, 1, 'CF_TYPEFormula');
   ELSE
      Str_Ret_Val := 'NON-MOVING STOCK';
   END IF;
   INSERT INTO TESTTIME VALUES(SYSDATE, 1, 'CF_TYPEFormula');
   COMMIT;
   RETURN Str_Ret_Val;
END;Regards,
Manu.

Similar Messages

  • How to reference Report level program unit in report query?

    I have created a report level function FREF13 which returns a VARCHAR2 variable. I am trying to reference this function in report SQL statement like:
    select * from wtr where file_ref = FREF13(:fref)
    I am getting error 'ORA-00904: Invalid column name' error. This is because it is unable to recognize FREF13 as local function.
    Is it possible to reference local program units in report query?
    Rgds,
    Manish

    No, it's not possible. The only things you can reference in a SQL query are columns and functions accessable in the database (since this is where the query is executed). You should create the function in the database.
    Regards,
    Danny

  • Is it possible to create an interactive graph/chart using Report Builder 3.0?

    Hi All,
    I am using Report Builder for the first time. Here is what I am trying to accomplish. The data I plan to use in Report Builder is coming from SQL Server and in the Report Builder I want to create an interactive graph(chart).
    For example, The table in SQL Server consists of Hospital Name, Measure name, and Scores for each measures for different quarters.
    The idea is to create a graph that will allow the user to pick the measure name(from a drop down list or something similar) and Hospital name, then the graph will display the measure scores for different quarters and corresponding target scores for that
    particular Hospital.
     The data in SQL server looks like this :
    measure
    MC_NM
         q112
        q212
       q312
    XXY
    TARGET
    0.9
    0.9
    0.9
    XXY
    REGION
    0.832879
    0.848934
    0.865714
    XXY
    Hospital 1
    0.875
    0.916084
    0.92
    XXY
    Hospital 2
    0.833333
    0.876923
    0.905797
    ZZZ
    TARGET
    0.979167
    0.952381
    0.955556
    ZZZ
    REGION
    0.942029
    0.945205
    0.983871
    ZZZ
    Hospital 1
    0.22
    0.270833
    0.372549
    ZZZ
    Hospital 2
    0.990291
    0.989583
    0.98913
    YYY
    TARGET
    0.928934
    0.9
    0.891429
    YYY
    REGION
    0.590909
    0.655172
    0.703704
    YYY
    Hospital 1
    1
    1
    1
    YYY
    Hospital 2
    0.788462
    0.82
    0.836735
    Is this is possible to do in Report Builder 3.0? Please share your thoughts.

    Thanks a lot for your response.
    I was able to create the parameters and now able to select the measure and facility and display that data in the table and chart.
    Now I am trying to see if I can add a line(target values) on top of the column chart to show the whether the scores of each measures, for each quarters are how far from the target values.
    Please let me know if this is possible.

  • Dynamic Query in Report Builder

    HI
    I have a doubt:
    I need to receive a parameter in my report and I need this parameter in the query, that means, I need to create a dynamic query depending on the value that I receive in one of the parameters that has my report.
    I tried to use the resource of Searching by Reference Cursor tool, it is a blue circle in the Data Model View of Report Builder.
    When I click this tool, I have an initial code, It is:
    function QR_1RefCurDS return <RefCurType> is
    begin
    end;
    In PL/SQL I tried to create to test and to play, this code:
    Note: If you want to try only to test, it is simple and works:
    create or replace package TEST_REFCURTYPE as
    type refcurtype is ref cursor;
    function TEST_REFCURTYPE (P_DATE_TO nvarchar2) return refcurtype;
    end;
    create or replace package body TEST_REFCURTYPE as
    function TEST_REFCURTYPE (P_DATE_TO nvarchar2)
    return refcurtype is
    refcur refcurtype;
    mysql varchar(1000);
    begin
    If P_DATE_TO is not null then
    mysql := 'select '''|| P_DATE_TO ||''' from dual';
    else
    mysql := 'select sysdate from dual';
    end if;
    open refcur for mysql;
    return refcur;
    end;
    end;
    The problem is to pass this example of code to the function QR_1RefCurDS, I do not have a place to make reference to the type:
    type refcurtype is ref cursor;
    I tested the Unit Program in the Report Builder but it did not work, because all the code I try to write and create, for example in the Event BEFORE REPORT, it opens  Funcion( ) …., and I can not make reference to the type refcurtype inside a Function( ).
    Would you help me please?
    Or there is another way to make a dynamic query in the Report Builder?
    Sorry for my English, I am a Brazilian living in Spain.

    Hi,
    you can use lexical parameters in your queries. Instead of a ":" use in the query before the parameter a "&". Then the parameter stands for a part of the query and not for a value (Bind parameter). In the before report trigger you can set this parameters. They can contain parts of SQL like order or where. Make sure that the default value for this lexical parameters are set to get a valid query.
    SELECT ENAME, &p_column as COL2 FROM EMP &p_order
    and in the trigger something like
    IF :p_which_column = 1 THEN
    :p_column := 'SAL'
    ELSE
    Saludos
    Rainer

  • Reports Builder has encountered a problem and needs to close.

    Hi All,
    The report builder in my system is behaving weirdly. If I open a report, which is having a normal browser output, it allowing me to see the data model, layout model and everything. And if I open a report, which is having a PDF output, it's not allowing me to open the Layout.
    Here the output is in context of Oracle Applications front-end. And as I know it shouldn't be a problem with Report Builder.
    It errors out with the following message.
    Reports Builder has encountered a problem and needs to close. We are sorry for the inconvenience.
    And the error report contains the following message.
    AppName: rwbld60.exe     AppVer: 3.0.0.0     ModName: mmc60.dll
    ModVer: 0.0.0.0     Offset: 0000c533
    Here is the version information:
    Report Builder 6.0.8.11.3
    ORACLE Server Release 8.0.6.0.0
    Oracle Procedure Builder 6.0.8.11.0
    Oracle ORACLE PL/SQL V8.0.6.0.0 - Production
    Oracle CORE Version 4.0.6.0.0 - Production
    Oracle Tools Integration Services 6.0.8.10.2
    Oracle Tools Common Area 6.0.5.32.1
    Oracle Toolkit 2 for Windows 32-bit platforms 6.0.5.35.0
    Resource Object Store 6.0.5.0.1
    Oracle Help 6.0.5.35.0
    Oracle Sqlmgr 6.0.8.11.3
    Oracle Query Builder 6.0.7.0.0 - Production
    PL/SQL Editor (c) WinMain Software (www.winmain.com), v1.0 (Production)
    Oracle ZRC 6.0.8.11.3
    Oracle Express 6.0.8.3.5
    Oracle XML Parser     1.0.2.1.0     Production
    Oracle Virtual Graphics System 6.0.5.35.0
    Oracle Image 6.0.5.34.0
    Oracle Multimedia Widget 6.0.5.34.0
    Oracle Tools GUI Utilities 6.0.5.35.0
    I have tried reinstalling the software a minimum of 10 times, but no luck. At last I got my system formatted and tried. For the first time it worked for me, then I installed Forms Builder... then again I am getting the same problem even though I have different homes for Reports and Forms.
    Is it problem with my system or the Operating System or the version of the Oracle Developer?
    Can anyone please help me out?
    Thanks in advance,
    Lakshman.

    I have been having a similar problem and do not know if this will apply to your situation but I found the following on Metalink.
    Subject:      Reports Builder Crashes Opening the Paper Layout on Large Reports on XP/2003
         Doc ID:
    Note:566304.1     Type:      PROBLEM
         Last Revision Date:      18-AUG-2008     Status:      PUBLISHED
    In this Document
    Symptoms
    Changes
    Cause
    Solution
    References
    Applies to:
    Oracle Reports Developer - Version: 10.1.2.0.2 to 10.1.2.3
    Microsoft Windows XP
    Microsoft Windows Server 2003
    Symptoms
    Oracle Reports Builder crashes opening the Paper Layout on some large reports but ONLY on the following platforms:
         Microsoft Windows XP Professional
         Microsoft Windows Server 2003
    Reports Builder displays the below message and then crashes:
    Reports Builder
    Reports Builder has encountered a problem and needs to close. We are sorry for the inconvenience.
    If you were in the middle of something, the information you were working on might be lost.
    Please tell Microsoft about this problem.
    We have created an error report that you can send to us. We will treat this report as confidential and anonymous.
    To see what data this error report contains, click here.
    [Send Error Report] [Don't Send]
    --> click on [Don't Send] button and Report Builder disappears.
    -and/or-
    access violation in oranls10.dll
    This problem does not reproduce on:
         Microsoft Windows 2000
    The solutions in the below note do not work on v. 10.1.2.2.0 and 10.1.2.3.0:
    Note 361206.1 Title: Reports Builder Crashes Opening a Paper Layout on Windows XP Only
    Changes
    Upgraded to Oracle Report Builder v. 10.1.2.x.x from a previous release.
    Cause
    Bug 7014048 is fixed in one-off Patch 5335195 (Base Bug) but missed inclusion (ie. was not ported to) in latest Developer patchset v. 10.1.2.3.0
    See also:
    Bug 7014048 Abstract: REPORTS BUILDER CRASHES OPENING A PAPER LAYOUT.
    Bug 5029530 Abstract: REPORTS BUILDER CRASHES OPENING PAPER LAYOUT MODEL ONLY ON XP BOX
    Solution
    To implement the solution, please execute the following steps:
    1. Download one-off Patch 5335195 for v. 10.1.2.0.2 to the XP/2003 box.
    2. Back up existing uiw.dll for 10.1.2.3 880KB 10/10/2006 7:23PM --> uiw_orig_10.1.2.3.zip
    3. In the %ORACLE_HOME%\bin directory, replace uiw.dll (880KB) with the uiw.dll (1,316KB) from
    Patch 5335195 --> 1,316KB 7/24/06 11:12PM
    4. Re-launch Report Builder 10.1.2.3.0 on XP/2003.
    5. Open the <large report>.rdf.
    6. Double-click on the Paper Layout icon.
    7. The result should be: Successfully open the Paper Layout for <large report>.rdf.
    References
    Bug 5029530 - REPORTS BUILDER CRASHES OPENING PAPER LAYOUT MODEL ONLY ON XP BOX
    Bug 7014048 - REPORTS BUILDER CRASHES OPENING A PAPER LAYOUT.
    Note 361206.1 - Reports Builder Crashes Opening a Paper Layout on Windows XP Only
    Patch 5335195 - REPORTS BUILDER CRASHES OPENING PAPER LAYOUT MODEL DUE TO ACCESS

  • Help with using Program unit.

    How do I use a program unit. I am creating a procedure trying to understand how to use it.
    I added 2 parameters to the layout. :P1_TEST and :P2_TEST
    I created a simple program unit to place information into them
    procedure test is
    begin
    :P1_TEST := 'YES';
    :P2_TEST := 'NO';
    end;.
    When I run it nothing happens.
    Howard

    Hello,
    The procedure must be callled in order to initialize the parameters.
    In your case, you can call the procedure test in a Reports Trigger : the Before Report for example
    http://www.oracle.com/webapps/online-help/reports/10.1.2/topics/htmlhelp_rwbuild_hs/rwwhthow/whatare/prgmobj/tr_1a_types.htm
    Regards

  • Error in Report Builder

    I receive the below error while connection to Report Builder 10g
    Error: Unable to find Temporary File.

    Welcome to the forums !
    This forum is meant for discussions related to database installs - pl repost in the "Reports" forum - Reports
    HTH
    Srini

  • Report Builder 3.0 Licensing Questions

    I have several questions/clarifications on the licensing and use of Report Builder. Any help you could provide, or other resources I should contact would be much appreciated.
    I've looked through the license that is included when installing "SQL Server Report Builder 3 for SQL Server 2014", but need to make sure what we want to do is kosher.
    Scenario:
    A third party software vendor wants to allow users to create and edit .RDL files within Report Builder. The RDL files will then be saved locally to the users desktop, then uploaded into the third party software product(.NET based, and hosted within the organization's
    environment). The data for the report will be generated based on the settings of the RDL file, then the data and RDL file will be passed to the "Microsoft.ReportViewer.WebForms.dll", and a PDF/Excel document will be generated. The user will have
    the control to deliver this file anywhere (network share/email/FTP).
    The users using the Report Builder, may be employees of either small/medium size businesses, or as large as Fortune 500 businesses. The Organization employing the users, may or may not have a license of SQL Server.
    Questions:
    1) Does the Organization that owns the third party software, need to own a license of SQL Server? From the License, it appears yes: "If you are licensed to use any one of the following editions of Microsoft SQL Server 2014 software .... you may use this
    supplement"
    2) Following from #1, if the Organization does not have a license, if they were to purchase a SQL Server license, how many users would a license cover? 
    What if they purchase a Standard license?
    What if they purchase a "Deverloper" License?  
    I assume the Developer License is for one person, so would only one user be able to use the Report Builder, based on this clause: "You may use this supplement with each validly licensed copy of the software."
    2) In the license, it says "You may not: use the supplement for commercial software hosting services.". What does that mean? You can't use it commercially? Or with 'hosting services'? What are 'hosting services'?
    3) Can the third party vendor distribute the .MSI file with their software product? Or do the end users need to download it separately, directly from Microsoft?
    4) Any restrictions on where the resulting output (PDF/Excel) may be delivered?
    5) Are there any restrictions at all on using the "Microsoft.ReportViewer.WebForms.dll", with an RDL file? Restrictions on how much is processed, where the content goes, etc.?
    I think that's about it... Thanks

    Please try to use:
    http://www.microsoft.com/en-us/download/details.aspx?id=29072 <Microsoft® SQL Server® 2012 Report Builder>.
    Chaitanya( Twitter |
    Blogs )
    Any documentation bug? Tell us about it at
    Connect. Please feel free to add any community comments in any of the MSDN/technet articles.
    This posting is provided "AS IS" with no warranties, and confers no rights.

  • Reports Builder 9i hanging

    I have installed developer suite in XP.When i open Report Builder ,it will not launch at all. I receive the splash screen. I have tried uninstalling and then reinstalling with the same result.
    Any help would be appreciated.
    Thanks
    Vinoth

    Format the drive that you are installing.. this may help.
    I have faced the same problem, and what i have tried WORKED....
    Create a different Home directory for reports builder other than the Oracle Home.

  • Search icons from forms/reports builder and runtimes

    Hello together,
    who can help me?
    I search the icons from the programs forms- and reports-builder and theirs runtimes (the little pictures in front off the filename).
    I need these to import in another program. They should have 16x16 pixel.
    Where can I find these icons?
    Thanking you in advance.
    Regards,
    Sandra

    Not a final answer to your questions as I don't know the directory structure for forms & reports builders, but you can search for *.ico files in the same (unless forms & Reports use different extensions for icon files).

  • Help plss Should a cursor be created in database or program unit in forms l

    Where can i create a cursor should it be in database i.e isql plus using internet explorer or should i create the cursor in forms
    forms can i create the cursor so that i can use the cursor in the post item trigger of the userid item of login page
    Can i create the cursor in a package specification and how can i call that cursor into a post_text item trigger
    details below
    Iam working on a Online exam for students Dummy project using forms
    The student 1st comes to a WELCOME page i.e form which asks him if he is a new student or registered stud
    If he clicks registered pushbutton it takes him to a LOGIN page where there are two items userid and password.I am using a Validate_item OR Post_item trigger to fire after the student enters his userid.
    I need to compare the entered userid with the userid stored in the database STUDENTS table which i created which consists of the registered students details.
    Our project Guide suggested that we create a cursor and fetch each userid everytime into the cursor and compare the entered userid with the cursor.

    hi Sqlstar,
    Regarding to your all questions , i prefered that you search for a simple document or book in order to understand much more more about creating cursors.
    however since this forum made to help people and to make a integerated community i would be glad to offer my help and going with you step bt step with your answers.
    as for beginning
    1) when you create the user_exists function in database , if you want to call it in the form level you would wirte a code like this
    ----WHEN-VALIDATE-ITEM------------user_id item---------
    IF scheme_name.procedure_name(:block1.userid)!='TURE' then
       message('User Name is not correct');
       raise form_trigger_failure;
    end if;
    2) it's not a waste of recourse to make 2 validation of both userid and password
    and as same you create a procedure for useris you should create a procedure for password where the user id is the outcomming of userid item in the form.
    3)you have all choices to create the 2 procedures on database side or in the program unit at design time for the form it's up to you and as a small hint for you ,
    when you create them in the program unit and want to call the procedures in the WHEN-VALIDATE-ITEM  trigger you should denote the procedure name with the name of package first as following
    -------[Package Spec Code]-------
    PACKAGE user_validation IS
    function user_exists (p_user_id number) return boolean;
    end ;
    --------------[Package Body Code]------
    PACKAGE BODY user_validation IS
    function user_exists (p_user_id number) return boolean
    is
    user_number number;
    cursor c_user_id is
    select user_id from <user_table>
    where user_id=p_user_id;
    begin
    open c_user_id ;
    loop
    fetch user_id  into user_number ;
    return (true);
    exit when c_user_id%NOTFOUND;
    end loop;
    execption  when others then
    return(false);
    end user_exists;
    end;
    -----Calling at Validation level-----------
    IF (user_validation.user_exists(:block1.userid))!=TURE then
       message('User Name is not correct');
       raise form_trigger_failure;
    end if;
    i hope this could be helpful engouh to start your application
    Good Luck .
    Regards
    Omar                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Cannot create dataset from claims based authentication sharepoint site in report builder 3.0

    I have a sharepoint site, which is configured as claims based authentication (ref:
    http://ashrafhossain.wordpress.com/2011/05/25/how-to-configure-claim-based-authentication-for-sharepoint-project-server-2010/) . both AD and asp.net members can log in to the site successfully. My user need to use the report build to create report
    on this sharepoint site. As a result, the site is also integrated with reporting service. I try to create a report in the sharepoint site by clicking "New Document" -> "Report builder Report". The report builder will comes out and ask for credential to
    connect to the report server. I use asp.net member to login and it can let me to create a data source which connect to a the list of the sharepoint site with credential option "Use current Windows user. Kerberos delegation might be required". However, when
    I try to create a data set and click the query designer, error "Server was unable to process request. ---> Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))" appear as below:
    Besides, non of my AD account can be used to login to the report builder. Errors below found in the ULS log:
    09/26/2012 14:47:27.75 w3wp.exe (0x116C)
    0x11F4 SharePoint Foundation
    Claims Authentication fo1t
    Monitorable SPSecurityTokenService.Issue() failed: System.ServiceModel.FaultException`1[Microsoft.IdentityModel.Tokens.FailedAuthenticationException]: The security token username and password could not be validated.
    (Fault Detail is equal to Microsoft.IdentityModel.Tokens.FailedAuthenticationException: The security token username and password could not be validated.).
    09/26/2012 14:47:27.76 w3wp.exe (0x140C)
    0x0F38 SharePoint Foundation
    Claims Authentication fsq7
    High Request for security token failed with exception: System.ServiceModel.FaultException: The security token username and password could not be validated.     at Microsoft.IdentityModel.Protocols.WSTrust.WSTrustChannel.ReadResponse(Message
    response)     at Microsoft.IdentityModel.Protocols.WSTrust.WSTrustChannel.Issue(RequestSecurityToken rst, RequestSecurityTokenResponse& rstr)     at Microsoft.IdentityModel.Protocols.WSTrust.WSTrustChannel.Issue(RequestSecurityToken
    rst)     at Microsoft.SharePoint.SPSecurityContext.SecurityTokenForContext(Uri context, Boolean bearerToken, SecurityToken onBehalfOf, SecurityToken actAs, SecurityToken delegateTo)
    524a2f96-f5ff-4c96-80d1-f08d3c7ef14f
    09/26/2012 14:47:27.76 w3wp.exe (0x140C)
    0x0F38 SharePoint Foundation
    Claims Authentication 8306
    Critical An exception occurred when trying to issue security token: The security token username and password could not be validated..
    524a2f96-f5ff-4c96-80d1-f08d3c7ef14f

    Hi Foxvito,
    Claims authentication types supported by SharePoint 2010 are Windows Claims, forms-based authentication Claims, and SAML Claims. In SAML-Claims mode, SharePoint Server accepts SAML tokens from a trusted external Security Token Provider (TST). From the
    blog you referenced, it seems to use the SAML Claims authentication.
    However, the Reporting Services client applications: Report Builder, the Report Designer in Business Intelligence Development Studio, and Management Studio do not support connecting and authenticating with LiveID or SAML Claims based SharePoint Web applications.
    That's because the SAML Claims don't use the Reporting Services authentication endpoint. So, you have to change the Claims authentication type to use Report Builder on the SharePoint site.
    References:
    Overview of Kerberos authentication for Microsoft SharePoint 2010 Products
    Claims Authentication and Reporting Services
    Regards,
    Mike Yin
    Mike Yin
    TechNet Community Support

  • Generate txt output using a program unit in web report (OAS 10g)

    Hi Everyone.
    I have a c/s report (6i) which generates a txt file in a program unit using TEXT_IO package. I need to move this report to web (Reports 10g) and publishing it in OAS 10g. I've done that (without the text file generation), I can see the report on the browser in PDF Format and works fine... but, I still have a problem... when I use Text_io package, the c/s version of the report in 10g runs an generates the output.txt file but when I move it to web I got an error in the before report trigger (in which I invoke the program unit sp_generate_txt)
    I looked around for a solution and I just find the usage of webutil package, but as you know, webutil package is only usable in Forms.
    Any Ideas on how can I solve this problem?

    Hello,
    TEXT_IO can be used in Reports deployed on the web.
    The difference with Client /Server is the fact that the file create by TEXT_IO will be created on the "Middle Tier Server" and not on the Client.
    Regards

  • Lexical Parameter in Reports 6i Program Unit

    A report I'm writing requires me to use the lexical parameter in a program unit rather than a query in the data model. Lexical parameters in a query have always worked with the example "WHERE &my_parameter". But using "WHERE :my_parameter" or "WHERE &my_parameter" in a program unit gave me the error "expression is of wrong type" so the code wouldn't compile in the editor.
    The parameter returns "segment1 = '8675309' AND segment2 = 'Jenny'I was able to resolve it by using the first column of the expression and the replace function on the parameter so the program unit editor thinks it's a valid expression and the resulting line is a valid predicate that gets the correct data. Here's my example:
    WHERE segment1 = replace(:my_parameter, 'segment1 = ')The replace function strips off the "segment1 = " from the lexical parameter so the resulting line that gets passed to the server is:
    WHERE segment1 = '8675309' AND segment2 = 'Jenny'This solution will not work where the parameter could return something other than "segment1 = " at the beginning of the parameter string like "segment1 BETWEEN " or a different column name to compare other than segment1. Anyway, this is working but if there are better ways to do it I'd like to try them. Using Reports 6i with EBS 11.5.10.2.

    Hello,
    You'll find explanations and examples here :
    http://www.oracle.com/webapps/online-help/reports/10.1.2/topics/htmlhelp_rwbuild_hs/rwwhthow/whatare/dmobj/sq_a_lexical_references.htm
    This documentation is for Reports 10.1.2 but is valid for Reports 6i too ...
    Regards

  • SQL Statement in Program Unit (function)

    When I tried to create a Program Unit(function) in the Form
    module I have got an error
    message "..identifier "SALES.USER_ADMIN" must be declared.."
    How can I fixed it or may be some suggestions..
    Thank you.
    FUNCTION DEF_USER_STATUS (User_Name VARCHAR2)
    RETURN VARCHAR2
    IS
    Security_Stat VARCHAR2(20);
    BEGIN
    SELECT ALL UPPER(SECURITY_STATUS)
    INTO Security_Stat
    FROM SALES.USER_ADMIN
    WHERE LOGIN_NAME = :GLOBAL.LOGIN_NAME;
    IF NO_DATA_FOUND THEN
    Security_Stat := 'GUEST';
    END IF;
    RETURN Security_Stat;
    END DEF_USER_STATUS;

    Check if you are connected before compiling your function. The other thing you should check is if you have proper GRANTs to access tables under SALES schema.
    Also, IF NO_DATA_FOUND is not the way to handle EXCEPTION. Code it as
    EXCEPTION WHEN NO_DATA_FOUND THEN
    END ;
    Hope this helps.
    Parag Kansara

Maybe you are looking for

  • Problem replacing a Mac Pro disk drive

    Yesterday, I received a pair of 500GB SATA drives for my Mac Pro and one 1.5GB SATA drive. I installed the two 500GB drives in slots 3 and 4 in my Mac Pro yesterday to install a fresh copy of Snow Leopard and than clone it to the second 500GB drive.

  • Error while running SLDCHECK

    Hi Friends     I have done the job of SAP PI post configuration but even when i am running SLDCHECK transaction, the following error i am getting. Can any one help please.. 01.11.2007                                        Exchange Infrastructure: Te

  • Save As PDF causing browsers crash

    I've used Safari, Firefox (1.0.7 and 1.5), Internet Explorer, and Mozilla and every time I select "save as PDF" a webpage in the Print feature, it resulted in a browser crash. Every time. Have Apple addressed this persistently annoying bug already? T

  • Maintaining two values for upper & lower specification for a MIC

    Hi gurus, My client requirement is that they want to maintain two values for upper specification and lower specification for a quantitative characteristic. For eg. Master inspection characteristic is carbon % & for this characteristic they want to ma

  • Generate dynamic DataTable for Values selected from SelectManyListBox

    I want to generate a datatable for values selected in a selectManyListBox, DataTable will have three columns 1serial number 2.values selected from listbox 3.inputText for entering some data Plz guide me how can i do this... Thanx in advance!