Restricting the pl/sql error in report region(sql report)

Hi,
Is there any way to hiding pl/sql error in report region when we use generic column names*(Use Generic Column Names (parse query at runtime only)*
). and type is sql query else displaying alternative error message on that particular report region
I am using apex 4.1 and 11g database
Thanks
Sagar.

What kind of pl/sql error you are talking about?

Similar Messages

  • Restricting the user to operate DML's from SQL PLUS Environment

    how to Restrict the user to operate DML statements from SQL PLUS Environment.

    Once you restrict SCOTT user to not be able to do an INSERT command, the SQL*Plus returns an error for user SCOTT when he tries to execute an INSERT statement.
    Note however, that this is enforced by SQL*Plus, not the database!
    Look into the use of product_user_profile from Oracle documentation for more information.
    SQL> insert into product_user_profile values('SQL*Plus', 'SCOTT', 'INSERT', NULL, NULL, 'DISABLED', NULL, NULL) ;
    1 row created.
    SQL> commit ;
    Commit complete.
    SQL> disconnect
    Disconnected from Oracle9i Enterprise Edition Release 9.2.0.3.0 - Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.3.0 - Production
    SQL>
    SQL> connect scott
    Enter password:
    Connected.
    SQL>
    SQL> insert into emp select * from emp ;
    SP2-0544: invalid command: insert
    SQL>
    SQL>

  • T-Codes to See Branch wise Reports/Regional Wise Reports

    HI,
    Can anybody provide me the T-Codes to See Branch wise Reports/Regional Wise Reports and also kindly provide me the t-codes for the below
    Financial reporting
    a)Income Statement by Region Yearly and Monthly comparision
    b)Income Statement monthly with previous year current Month.
    c)Income Statement by Branch
    d)Income Statement Branch level comparion with same month Previous year
    Thanks
    Sap Guru

    Try using COPA. You can do that in a flash!
    Cheers.

  • Branch Wise Reporting /Region Wise Reporting

    Hi Guru's
    We have 1   Company Code
                  7   Regions
                  24 Branches
    The client wanted to see the Region wise Reports & Branch Wise reporting as their current software is providing the same.So they are required Region wise Reports & Branch Wise reporting.
    Question 1:In SAP is there any possibilities to see Region wise Reports & Branch Wise reporting?Please give me the process & flow of reporting with T-codes.
    Question 2:Can we see Region wise Reports & Branch Wise reporting if we use Profit center Accounting?
    Question 3:Please Give me clear suggestion for this Requirement..
    Thanks in advance
    Thanks
    Sap Guru
    kischowdary*gmail.com

    Try using COPA. You can do that in a flash!
    Cheers.

  • SQL Error 58004. Executed SQL Statement

    Hi experts, we working with SAP-MAM 3.0 database DB2E Version 9.1.2 ,  when I try install the MAM30 show me this message.
    Please, Can i reinstall the DB2E application for fix this error, or there are other solution?
      u2022 Excepción al tratar el métodoSMARTSYNC : com.sap.ip.me.spi.persist.IPersistenceException: char processor: SQL Error 58004. Executed SQL statement: [INSERT INTO M8_PROPERTIES("KEY","VALUE") values ('KEY_INCONSISTENT_DATA','X')] : char processor: SQL Error 58004. Executed SQL statement: [INSERT INTO M8_PROPERTIES("KEY","VALUE") values ('KEY_INCONSISTENT_DATA','X')]
    u2022 java.lang.RuntimeException: SQLState:58004, error code:-1 : SQLState:58004, error code:-1
    u2022

    Moved thread to DB6 forum.

  • Report Region SQL Source

    Hello all...
    Im new to Application Express so my problems are quite fundamental. I am trying to create a filter system on a report region that alters the SQL depending which field is selected and what criteria is entered. How do I refer to the SQL? I sthere a system name for the region source sql or or can I refer to a column name in the SQL by useing a variable?
    i.e. ... WHERE <varColName> = <varSearchCriteria>
    Many Thanks,
    Richie

    I am trying to do the same thing, and I am not finding the answer either in the howtos or your demos (which are great). I tried to follow the instructions below, but I don't have a "Query Definition" tab, I have a Report Definition tab and it does not contain a Join Conditions page.
    Add a Condition
    To add a condition to the DEMO_ORDER_ITEMS report:
    1. Under Regions, select Order Items as shown in Figure 4-6.
    Figure 4-6 Order Items
    Description of Figure 4-6 follows
    Description of "Figure 4-6 Order Items"
    2. Click the Query Definition tab.
    3. Click Modify Join Conditions.
    4. On the Modify Join Conditions page:
    1. For the first Column, select DEMO_ORDER_ITEMS.ORDER_ID. Note that you may need to click Search to view available columns.
    2. In the second Column field, replace the existing text with the following condition:
    :P2_ORDER_ID
    5. Click Apply Changes.
    Here is the Source of my Report - I am getting this error: "Invalid PL/SQL expression condition: ORA-06502: PL/SQL: numeric or value error"
    select
    "IDENTIFIER",
    "APPLICATIONIDENTIFIER",
    "QUESTIONNUMBER",
    "ANSWERTEXT1",
    "ANSWERTEXT2",
    "ANSWERTEXT3"
    from "#OWNER#"."COMPANYPERSONNEL"
    WHERE "APPLICATIONIDENTIFIER" = :F101_APPLICATIONIDENTIFIER
    AND "QUESTIONNUMBER" = 1
    Appreciate any help. Thanks.
    Note: I tried TO_NUMBER(:F101_APPLICATIONIDENTIFIER) - same result
    Data Type for APPLICATIONIDENTIFIER = NUMBER(10)
    Data Type for QUESTIONNUMBER = NUMBER(2)

  • How to replace a table name with an item value in report region SQL query?

    I've got a SQL query in a report region that goes like this:
    SELECT :P30_HIDDEN FROM v_dms_dataset
    GROUP BY :P30_HIDDEN
    P30_HIDDEN is populated from a textfield input. Why doesn't this work, and is there a way to achieve what I'm trying to do here? I really need the ability to dynamically generate SQL queries in this way.

    Ben - you could either:
    1. case when :P30_HIDDEN = 'COL1' then col1 else ... end
    in order to determine which column to select (only really useful if you have a small number of predetermined columns to select from), or
    2. generate the SQL dynamically.
    Set the report region to SQL Query (PL/SQL function body returning SQL query), then have something like:
    declare
    l_sql VARCHAR2(4000);
    begin
    l_sql := 'SELECT ' || :P30_HIDDEN || ' FROM v_dms_dataset
    GROUP BY ' || :P30_HIDDEN;
    return l_sql;
    exception
    etc.
    end;
    John.

  • Apex 4.2 Report region sql query with "apex_item.text" renders wrongly

    In APEX 4.2 page i have created region "Report data".
    Type="SQl Query".
    "User Interface"-->"Template"="Reports Region".
    "Region Source"="select apex_item.text(1, '111') as c1 from dual".
    Actually the select query is little bit more complex, but generally simplified it is such, that it uses function "select apex_item.text" to construct HTML textfield.
    If i run in Sql Developer query
    select apex_item.text(1, '111') as c1 from dual;Then result is:
    <input type="text" name="f01" size="20" maxlength="2000" value="111"  />But in APEX 4.2 the report is rendered so:
    <td  headers="c1">&lt ;input type=&quot ;text&quot ; name=&quot;f01&quot; size=&quot;20&quot; maxlength=&quot;2000&quot; value=&quot;111&quot;  /&gt ;</td>(for this forum to display correctly i had to put extra spaces between" &gt" and ";" and so on)
    And APEX 4.2 shows ugly html inside report cell/slot for me, displaying characters/symbols ">". The reason is that APEX HTML page source does not have symbol ">" but has " &gt ;" .
    In APEX 3 i have similar query working well, without such anomaly.
    What attribute should i change in APEX 4.2 region to display my query result as needed?
    I need that function "apex_item.text", i cannot remove it.
    Edited by: CharlesRoos on 13.02.2013 15:28
    Edited by: CharlesRoos on 13.02.2013 15:29
    Edited by: CharlesRoos on 13.02.2013 15:29

    CharlesRoos wrote:
    In APEX 4.2 page i have created region "Report data".
    Type="SQl Query".
    "User Interface"-->"Template"="Reports Region".
    "Region Source"="select apex_item.text(1, '111') as c1 from dual".
    Actually the select query is little bit more complex, but generally simplified it is such, that it uses function "select apex_item.text" to construct HTML textfield.
    If i run in Sql Developer query
    select apex_item.text(1, '111') as c1 from dual;Then result is:
    <input type="text" name="f01" size="20" maxlength="2000" value="111"  />But in APEX 4.2 the report is rendered so:
    <td  headers="c1">&lt ;input type=&quot ;text&quot ; name="f01" size="20" maxlength="2000" value="111"  /&gt ;</td>(for this forum to display correctly i had to put extra spaces between" &gt" and ";" and so on)
    And APEX 4.2 shows ugly html inside report cell/slot for me, displaying characters/symbols ">". The reason is that APEX HTML page source does not have symbol ">" but has " &gt ;" .
    In APEX 3 i have similar query working well, without such anomaly.
    What attribute should i change in APEX 4.2 region to display my query result as needed?Ensure that the Display As Column Attribute for the C1 column is Standard Report Column.

  • Define Reports For Branch Reporting/Region Wise Reports

    Hi,
    Is there any possibilities to define our own reports for Branch Wise/Region Wise Reporting?
    Kindly give me suggestion if possible with the process to create.
    Thanks
    Sap Guru
    kischowdary*gmail.com

    Hi:
    You can define your own customized reports for Branch Wise/Region Wise Reporting.
    This is the work of a technical person ie. ABAPer.
    You have to give him tables names,fields for defining reports.
    Alternatively, you can use SAP BW to define your customized reports.
    Please let me know if you need more information.
    Assign points if useful.
    Regards
    MSReddy

  • Displaying previous page without running it's report region sql?

    Hi, I just created a button which is PREVIOUS and redirects to the previous URL. However I was hoping I could just display the previous pages report results again without re-running the report sql.
    The PREVIOUS button seems to re-run the sql ... is there any way of just caching the previous pages sql results and then they are instantly displayed from the next page by pressing the PREVIOUS button?
    Thanks

    Scott, this command works great. If you dont submit the current page it is fine. Is there a way to branch back to the previous page disregarding the current pages submissions as if you submit the current page then the command will only branch back to the same page but before it was submitted?
    Thanks

  • Regarding the tns-12541 error in connecting to sql server from oracle

    i need to create a database link from oracle on windows box to sql server.I configured everything but when i am trying to tnsping the sqlserver
    it throws me an TNS12541 no listener error.
    The listner status is up and the listener works

    little confusion here, are you trying to tnsping sql server? tnsping is an Oracle utulity.
    To acces sql server from Oracle you may use Transparent Gateway for Microsoft SQL - http://download.oracle.com/docs/cd/B19306_01/gateways.102/b14270/ch3.htm#sthref66 and Heterogeneous Connectivity - http://download.oracle.com/docs/cd/B19306_01/server.102/b14232/intro.htm#sthref33
    Best regards.

  • Encounter the 0ra-01921 error when run catlog.sql on 11g windows server

    I am using sys account to run catlog.sql there is an error : ERROR at line 1:
    ORA-01921: role name 'IMP_FULL_DATABASE' conflicts with another user or role name
    when I try to run it with my dba account it cause more error????
    Thank You

    I am using sys account to run catlog.sql there is an
    error : ERROR at line 1:
    ORA-01921: role name 'IMP_FULL_DATABASE' conflicts
    with another user or role name
    when I try to run it with my dba account it cause
    more error????
    Thank Youyou mean catalog.sql ?
    What's the reason you want to regenerate database dictionary?
    when you run catalog.sql and catproc.sql on live database you will get these errors because the objects already exists. You can ignore them. You will get other errors when create public synonym etc..

  • How to restrict the user to change ALV layout for Standard Report Output

    Dear All,
    How can i restict the Users to change Output layout of Standard ALV reports,
    kindly suggest to solve the issue.
    Regards,
    Niranjan.G

    Hi NIranjan,
    In the ALV function module , the i_save can have the below paramater values.
    You can add based on your requirement.
    I_SAVE = SPACE Layouts cannot be saved.
    I_SAVE = 'U' Only user-defined layouts can be saved.
    I_SAVE = 'X' Only global layouts can be saved.
    I_SAVE = 'A' Both user-defined and global layouts can be saved.
    Check the Authorization Object - S_ALV_LAYO  in SUIM (Objects by Complex Search)
    Activity -23.
    Edited by: Raj on Jul 13, 2010 3:05 PM

  • How to restrict the number of error messages appearing in af:messages

    Hii all....
    Ihave customized the error messages which are produced when a constraint in a database are voilated using the following links
    http://download-west.oracle.com/docs/cd/B32110_01/web.1013/b25947/web_val.htm#CIHJBIDJ
    and by overriding the ListResourceBundle using the following link:http://one-size-doesnt-fit-all.blogspot.com/2007/05/dont-constrain-yourself-displaying.html
    Now my problem is say, when a primary key is voilated i get repeated error messages and some unwanted error messages like 2,4(which are again repeated) as show below:
    1.Empno - Employee Already Exists!!!
    2.Empno - Attribute Empno in AppModule.EmpVO1 is required
    3.Empno - Employee Already Exists!!!
    4.Empno - Attribute Empno in AppModule.EmpVO1 is required
    Now, i want the user to only see error numbered 1 and rest 2,3,4 should not be displayed on the screen ......plzzz knidly help me.

    Hi,
    In your ErrorHandler, override the method getDisplayMessage and in it add whatever message you'd like. Something like this:
        @Override
        public String getDisplayMessage(BindingContext bindingContext, Exception exception) {
            FacesContext fctx = FacesContext.getCurrentInstance();
            Iterator<FacesMessage> iterator = fctx.getMessages();
            if (exception instanceof JboException) {
                // do something (or nothing)
            } else if (exception instanceof UniqueNameException) {
                // add some message
                if (!iterator.hasNext()) fctx.addMessage(null, new FacesMessage(FacesMessage.SEVERITY_ERROR, "", "This is an UniqueNameException!");
            return null;
    {code}
    You can also try add some code to manipulate the iterator and remove all the messages, and then add only the one you want the user to see.
    Pedja                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Sql error ORA-00900: invalid SQL statement

    Hi All
    I am new to sql and i try to solve this issue i have here.
    where i run this query (1) i get this message : ORA-00900: invalid SQL statement
    Query : 1
    WITH t1
    AS (SELECT CID ,
    TYPE,
    TO_CHAR (
    TO_DATE ('00:00:00', 'HH24:MI:SS')
    + (lg_end_time - lg_start_time),
    'HH24:MI:SS') call_time,
    ROW_NUMBER ()
    OVER (PARTITION BY CID ORDER BY CID NULLS FIRST)
    AS call_id1
    FROM test_1
    SELECT SUM (call_time)
    FROM t1;
    output:
    i get error: ORA-01722: invalid number
    table structure:
    select * form test_1;
    CID            TYPE                      LG_END_TIME               LG_START_TIME
    1508643     Dispatching     2012/12/03 14:05     2012/12/03 14:02
    1508643     Treatment     2012/12/03 14:00      2012/12/03 14:00
    1508643     Initiation     2012/12/03 14:00     2012/12/03 14:00
    1508662     Dispatching     2012/12/03 14:18     2012/12/03 14:16
    1508662     Initiation     2012/12/03 14:01     2012/12/03 14:01
    1508662     Treatment     2012/12/03 14:02      2012/12/03 14:01
    1508643     Dispatching     2012/12/03 14:02     2012/12/03 14:00
    1508662     Dispatching     2012/12/03 14:16     2012/12/03 14:02
    thanks for all your help

    Hi All
    thanks for helping and giving your support. but the at this time question remains unanswered.
    with t1
    as (
    SELECT CID ,
                    TYPE,
                    TO_CHAR (
                         TO_DATE ('00:00:00', 'HH24:MI:SS')
                       + (lg_end_time - lg_start_time),
                       'HH24:MI:SS') call_time,
                    ROW_NUMBER ()
                       OVER (PARTITION BY CID ORDER BY CID NULLS FIRST)
                       AS call_id1
               FROM test_1
               select * from t1Output:
    CID             TYPE           CALL_TIME     CALL_ID1
    1508643     Dispatching     0:02:06     1
    1508643     Initiation     0:00:00     2
    1508643     Treatment     0:00:39     3
    1508643     Dispatching     0:02:50     4
    1508662     Treatment     0:01:03     1
    1508662     Initiation     0:00:00     2
    1508662     Dispatching     0:13:17     3
    1508662     Dispatching     0:02:43     4Desired results would be :
    group by CID and total time (summed) by each CID
    and it will also look like:
    CID             TYPE        CALL_TIME     CALL_ID1   total_time
    1508643     Dispatching     0:02:06     1
    1508643     Initiation     0:00:00     2
    1508643     Treatment     0:00:39     3
    1508643     Dispatching     0:02:50     4            
                                                                    0:05:35 
    1508662     Treatment     0:01:03     1
    1508662     Initiation     0:00:00     2
    1508662     Dispatching     0:13:17     3
    1508662     Dispatching     0:02:43     4      
                                                                    0:17:03
    Create table :
    CREATE TABLE TEST_1
    ( CID            NUMBER                         NOT NULL,
      TYPE           VARCHAR2(20 BYTE)              NOT NULL,
      LG_END_TIME    DATE                           NOT NULL,
      LG_START_TIME  DATE                           NOT NULL
    Insert statement:
        insert  into   test_1 VALUES (1508643,Dispatching,03-DEC-12,03-DEC-12);
        insert  into   test_1 VALUES (1508643,Treatment,03-DEC-12,03-DEC-12);
        insert  into  test_1 VALUES (1508643,Initiation,03-DEC-12,03-DEC-12);
        insert  into   test_1 VALUES (1508662,Dispatching,03-DEC-12,03-DEC-12);
        insert  into   test_1 VALUES (1508662,Initiation,03-DEC-12,03-DEC-12);
        insert  into   test_1 VALUES (1508662,Treatment,03-DEC-12,03-DEC-12);
        insert  into   test_1 VALUES (1508643,Dispatching,03-DEC-12,03-DEC-12);
        insert  into   test_1 VALUES (1508662,Dispatching,03-DEC-12,03-DEC-12);Edited by: 855161 on Jan 7, 2013 8:37 AM
    Edited by: 855161 on Jan 7, 2013 9:15 AM
    Edited by: 855161 on Jan 7, 2013 1:00 PM

Maybe you are looking for

  • IMovie crashes every time I try to export

    I have been working on a project in iMovie. It requires a green screen, so to add transitions, I need to export it. I cannot export, because iMovie keeps on crashing about 75% of the way through. I am using iMovie 11. I saw the update in the App Stor

  • SharePoint 2010 100% cpu w3wp.exe after windows server update desember 2013

    Hi Using SharePoint 2010 with 2 frontend webservers and 1 appserver: Our ApplicationPool for our portal workerprocess has for a second time gone up to and stuck on 99% CPU on one of our 2 frontend webservers.  What happens is that this server falls o

  • Outline of PSD clone stamp

    Hi, I´m new to using Photoshop with FCPX and I´m stuck. I´ve got a scene on my timeline, where I need to erase some cables and I have done the following in PS: (It should all be pretty straigth forward, as the background is all white and there´s no c

  • What happened to my gift card credit?

    I know how to review my purchase history in my iTunes account.  But, how do I find out what happened to a gift card credit?  Per my my account's purchase history, I only used $10 of a $50 gift card (assuming the culprit is NOT user error, e.g., I red

  • Pricing error in document

    Hi All , While creating third party invoice I am getting below error. 5005083653 000000 Pricing error in document 5005083653 Group Number Sales Document Number                  5005083653 Item Number of the SD Document         000000 Schedule Line Nu