How to handle no_data_found in Page/Regions/Body/Report

Hi,
I am new to APEX. I have a report in a the Region area of a Page. The Region Source allows me to enter only SELECT statement, no BEGIN/EXCEPTION/END are allowed. How can I handle a no_data_found exception in a report?
Many thanks.

Thanks for the solution. I tried it, and got with an error:ORA-06550: line 19, column 5: PLS-00372: In a procedure, RETURN statement cannot contain an expression ORA-06550: line 19, column 5: PL/SQL: Statement ignored ORA-06550: line 21, column 5: PLS-00372: In a procedure, RETURN statement cannot contain an expression ORA-06550: line 21, column 5: PL/SQL: Statement ignored
It looks like I am missing something.>
Post your code here in {code} tags.
My guess is you are not escaping single quotes or are not concatenating your Page Item
It should be something like ...
s1 vahracr2(4000) := 'select ..., ''A'' ,... from... where PID = '|| DBMS_ASSERT.ENQUOTE_LITERAL(:P1_CMDCODE);Note the quoting around A to escape the apostrophe and the use of concat.
Cheers,
Edited by: Prabodh on Aug 22, 2012 8:46 PM

Similar Messages

  • How to add/create additional page in Crystal Report Layout SAP B1

    Hi,
    I wanna ask about How to add/create additional page in Crystal Report Layout SAP B1 ?
    I want when user print Purchase Order then on last page also print some page like Penalty Clause etc.
    Pls help me to find the solution.
    Br,
    Thomas Marsetyo

    Hi,
    In your report footer, set it to create a new page before it is printed (In 'Section Expert', select the Report Footer -> 'Paging' tab -> Check 'New Page Before' checkbox). Throw your Terms & Conditions into the Report Footer section.
    If you already have a Report Footer that you want to keep, just split the footer into two sections (Right-click the Report Footer section -> 'Insert Section Below') and follow the same procedure for the newly created section.
         Check this Link
    http://stackoverflow.com/questions/9232239/adding-an-additional-page-to-end-of-a-crystal-report
    http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=18960
    Regards,
    Manish

  • How to declare top of page in alv report

    hi guru
    how to declare top of page in alv report
    thanks
    subhasis

    Hi,
    check this simple program.
    REPORT ZBHALV_LIST.
    TABLES:MARA.
    SELECT-OPTIONS: MATNR FOR MARA-MATNR.
    DATA:BEGIN OF ITAB OCCURS 0,
    MATNR LIKE MARA-MATNR,
    ERSDA LIKE MARA-ERSDA,
    MTART LIKE MARA-MTART,
    MBRSH LIKE MARA-MBRSH,
    END OF ITAB.
    SELECT * FROM MARA INTO CORRESPONDING FIELDS OF TABLE ITAB WHERE MATNR
    IN MATNR.
    TYPE-POOLS SLIS.
    DATA:FCAT TYPE slis_t_fieldcat_alv.
    DATA:LAYOUT TYPE slis_layout_alv.
    DATA:EVE TYPE slis_t_event WITH HEADER LINE.
    DATA:HEAD TYPE slis_t_listheader WITH HEADER LINE.
    DATA:SORT TYPE slis_t_sortinfo_alv WITH HEADER LINE.
    SORT-UP = 'X'.
    SORT-SPOS = 1.
    SORT-FIELDNAME = 'ERSDA'.
    SORT-tabname = 'MARA'.
    APPEND SORT.
    SORT-SPOS = 2.
    SORT-FIELDNAME = 'MTART'.
    SORT-tabname = 'MARA'.
    APPEND SORT.
    EVE-NAME = 'TOP_OF_PAGE'.
    EVE-FORM = 'TOPOFPAGE'.
    APPEND EVE.
    EVE-NAME = 'TOP_OF_LIST'.
    EVE-FORM = 'TOPOFLIST'.
    APPEND EVE.
    EVE-NAME = 'END_OF_LIST'.
    EVE-FORM = 'ENDOFLIST'.
    APPEND EVE.
    LAYOUT-ZEBRA = 'X'.
    LAYOUT-no_hline = 'X'.
    LAYOUT-NO_VLINE = 'X'.
    LAYOUT-window_titlebar = 'MATERIAL DETAILS'.
    CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
    EXPORTING
    I_PROGRAM_NAME = SY-REPID
    I_INTERNAL_TABNAME = 'ITAB'
    I_STRUCTURE_NAME =
    I_CLIENT_NEVER_DISPLAY = 'X'
    I_INCLNAME = SY-REPID
    I_BYPASSING_BUFFER =
    I_BUFFER_ACTIVE =
    CHANGING
    CT_FIELDCAT = FCAT
    EXCEPTIONS
    INCONSISTENT_INTERFACE = 1
    PROGRAM_ERROR = 2
    OTHERS = 3
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
    EXPORTING
    I_CALLBACK_PROGRAM = SY-REPID
    IS_LAYOUT = LAYOUT
    IT_FIELDCAT = FCAT
    IT_SORT = SORT[]
    IT_EVENTS = EVE[]
    TABLES
    T_OUTTAB = ITAB .
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    FORM TOPOFPAGE.
    REFRESH HEAD.
    HEAD-TYP = 'H'.
    HEAD-INFO = 'MATERIALS'.
    APPEND HEAD.
    CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
    EXPORTING
    IT_LIST_COMMENTARY = HEAD[]
    I_LOGO =
    I_END_OF_LIST_GRID =
    ENDFORM.
    FORM TOPOFLIST.
    REFRESH HEAD.
    HEAD-TYP = 'H'.
    HEAD-INFO = 'MATERIALS-LISTTOP'.
    APPEND HEAD.
    CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
    EXPORTING
    IT_LIST_COMMENTARY = HEAD[]
    I_LOGO =
    I_END_OF_LIST_GRID =
    ENDFORM.
    FORM ENDOFLIST.
    REFRESH HEAD.
    HEAD-TYP = 'H'.
    HEAD-INFO = 'MATERIALS-LISTEND'.
    APPEND HEAD.
    CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
    EXPORTING
    IT_LIST_COMMENTARY = HEAD[]
    I_LOGO =
    I_END_OF_LIST_GRID =
    ENDFORM.
    Regards,
    Priyanka.

  • How to handle format trigger in bi publisher report

    Hi all,
    anyone have idea how to handle format trigger in bi publisher report....
    also if someone will illustrate the how exactly we use the triggers in bi publisher reports.
    regards
    Ratnesh

    Hi,
    there's no direct support for the format triggers out of Oracle Reports. Therefore they are mentioned in the log file and in the created layout after conversion the objects with format triggers are colored red to show, that there you had to do some additional work.
    Currently you had to built the logic of format triggers in BI Publisher new. Hve a look in the User Guide, there are some examples for if or choose statements.
    regards
    Rainer

  • How to get the total pages in ALV report?

    Hi guys,
    Since I used page breaks can somebody please help me on how to get the total pages in ALV report?sincerely please...thanks guys.

    automatic display total page.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/e8a1d690-0201-0010-b7ad-d9719a415907
    r

  • How to chage Workspace Start Page without installing Reporting and Analysis

    Hi:
    any one know how to chage Workspace Start Page without installing Reporting and Analysis?
    thanks

    Not totally sure what you are asking but if you want to change the start page for users/groups have a read of - http://download.oracle.com/docs/cd/E17236_01/epm.1112/bpmui_admin/frameset.htm?assigning_default_preferences.html
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • How  to chage Workspace Start Page without installing Reporting and Analys?

    Hi:
    any one know how to chage Workspace Start Page without installing Reporting and Analysis?
    thanks

    Not totally sure what you are asking but if you want to change the start page for users/groups have a read of - http://download.oracle.com/docs/cd/E17236_01/epm.1112/bpmui_admin/frameset.htm?assigning_default_preferences.html
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • SSRS: How to handle Landscape PDF page

    I’m using SSRS to author PDF documents of size 8.5 * 11. I use the article
    here to achieve this. But I don’t know how to handle the situation when one of the PDF page ( not the whole PDF file) is in landscape mode. Here are the steps I’m following
    1>    
    Convert each PDF page into .png. each Size 8.5 * 11in
    2>    
    Create report of size 8.5 * 11
    3>    
    Drag & drop rectangle onto report body. Each rectangle of size 8.5 * 11in. represents one PDF page
    4>    
    Set background image of rectangle to PNG created earlier.
    Issue here is, if one the page in PDF is in landscape mode. When I create png for this page I have to rotate the image so that I can author it during design time. This image becomes 11 * 8.5 instead of 8.5 * 11.
    If I leave the report size 8.5 * 11 then output PDF creates extra pages.
    If set report size 11 * 11 then out PDF is also 11 * 11 ( which we don’t want)
    Question:
    Is there any way to rotate that particular rectangle (PDF page) clockwise during PDF export. Note that all other pages will be in portrait mode except the one which I want rotate.
    Any help, hint will be appreciated

    Thanks Katherine
    Unfortunately i
    cannot use that solution. I'm planning to use SSRS to author PDF document. (as described in this
    article here).
    So the rectangle will have background set to an image. and then there will be controls (textbox, tables etc) on the top of rectangle image. So setting the rectangle's visibility will not solve my issue.
    i think solution would be to author each Landscape page as separate report. and then export them as separate PDF. and  merge them using third party APIs
    Unless anyone has other solution

  • How to place a html page into body part of mail?

    Hi,
    I want to place a html page into body part of any mail.How can i do this?
    Thanks...

    just set ur message type to text/html and put ur whole html string into the body will do...

  • How to remove space between pages in Oracle Reports 6i?

    Hi,
    I have customized one oracle report (rdf). Earlier, the standard report was showing the ouput in pages i.e. there exists space beteen the pages. But I want my custom report in such a way that it should show me the result in one page i.e. there should be no space between the pages as user wants to spool the output into excel sheet (xls format) after getting the result output obtained from my custom report. Presently, when i spool the data into excel sheet, there is still the space exists between the pages like...few records will come then white space...then records.
    How can I remove this space, so that user can easily spool the data into excel without existence of white space.
    Any sort of help on this will be highly appreciated.
    Thanks & Regards,
    Sumir Chawla
    Edited by: Chawla on Jan 4, 2009 10:20 PM

    Hi,
    My report is running on Unix. When I checked the output file in unix where it is getting generated, i saw ^L characters wherever the space appears when i see the output in apps (notepad) , like after every page where I am able to see the space in my output, there ^L is appearing in output file in unix, so how can I avoid this.
    I tried to adjust the frames and repeatinf frames also, even i tried changing the properties also of main region (body), but nothing is working for me and still the same issue occurs. I am not aware of this. Please suggest me.
    Thanks a lot!
    Regards,
    Sumir

  • Error Handling On a Page with a Report

    Hi guys.
    I have a page with a report region on it. The report is based on an External Table.
    If i load a file that does not conform to the format the External Table definition is expecting, I Get an 'ORA-29913: error in executing ODCIEXTTABLEFETCH callout
    ORA-30653: reject limit reached' error.
    I am happy that an error is generated but my question is this?
    How can I handle this exception and others when there is just a report region on a page.
    I basically wish to capture 'ORA-30653: reject limit reached' and display an friendly error message to the user in the report region.
    Any help would be most welcome.
    Duncan

    One way to handle this that I have seen is
    a. configure your external table with REJECT LIMIT UNLIMITED
    b. specify a BADFILE badfile.txt.
    c. Create another external table on that badfile.txt with the same access parameters as your original table but specify all the columns as VARCHAR2(4000), so nothing is rejected.
    d. Create another report region on the external table on badfile.txt, call it "Load errors"
    So, you would have 2 report regions on the page, one would read your datafile and the other would read the badfile.
    Hope this helps.

  • How to not print a page of a report under a condition

    Hi,
    I need to build a report with a specific layoutdepending on a user paramater.
    Ex:
    If parameter value is 1, then display the layout of the first page of the report
    If parameter value is p_layout2, then display the layout of the second page of the report
    If parameter value is p_layout3, then display the layout of the third page of the report
    If parameter value is p_layout4, then display the layout of the fourth page of the report
    So I built a report, putting on page 1 the first layout, page 2 the second etc.
    I put each layout into a frame, with FormatTrigger as of: IF :paramater IS 'p_layoutx' THEN TRUE ELSE FALSE.
    The output prints only the frame needed (the one attached to the value passed by the parameter) BUT prints blank pages for all others (the 3 remaining ones).
    So, how would I do to make the report NOT to print these blank pages, having only one page printing, the one that matches the condition?
    Thank you in advance.

    I found a way to achieve my goal: Instead of creating a frame with formattrigger for each of my layouts and inserting in it all my objects (text fields and graphics), I don't create any frame, put all my objects on the desired pages and put the formattrigger conditions on these objects with vertical elasticity for all of them. When not the condition is not met, then all objects are shrinked. It is weird that the behavior is not the same with a frame (the frame with vertical elasticity should "shrink" itself; or maybe I missed something).

  • How to get the Empty page in Webi report

    Hi,
    I have to insert the charts in the report but i don't have the space to insert the charts in same page so i need one more page how to get the blank page in report
    thanks,

    turn your report from Page Layout to Draft Mode. Than you will be able to insert chart in it.
    You can view Web Intelligence reports in different modes depending on how you want to work with data and how you want the data to appear.
    1. In Web Intelligence Interactive, select the report tab of the report you want to view.
    2. Click the arrow next to the View button on the main toolbar above the report.
    3. Select the viewing mode.
    4. In the Java Report Panel or Web Intelligence Rich Client, use Switch Page/Quick Display on the Reporting toolbar to alternate between Page mode and Quick Display mode.
    Edited by: srrachna on Apr 22, 2011 2:25 PM

  • How to load a web page into crystal report

    How can i load a web page into crystal report? pls help
    Thanks in advance

    Hi Sebastin,
    You can't open a webpage in your Crystal Report, because all webpages will be executed in browser only. If you insert any webpage link in any documents it will not open in the same document, it will open in browser.
    Hope this will help you
    Thanks,
    Sastry

  • How to handle substring in page

    I'm displaying the value of a column from a table in two
    pages - a preview page and a detail page. This column in the db
    contains text from an article that includes html tags for
    formatting.
    On the preview page, I'm displaying the first 500 characters
    in this field. (I want to show the first few sentences of the
    article) On the detail page, I display all the characters in that
    field - the whole article. I ran into a problem today where the
    500th character is part of a closing html tag. By displaying less
    than the whole tag, the tag is left open on my page and causes
    portions of what follows on the page to break.
    Any suggestions for better ways to handle this?
    CS3/MSAccess2000/ASP
    Thanks everyone.

    NewDevGuy wrote:
    > I'm displaying the value of a column from a table in two
    pages - a preview page
    > and a detail page. This column in the db contains text
    from an article that
    > includes html tags for formatting.
    >
    > On the preview page, I'm displaying the first 500
    characters in this field.
    > (I want to show the first few sentences of the article)
    On the detail page, I
    > display all the characters in that field - the whole
    article. I ran into a
    > problem today where the 500th character is part of a
    closing html tag. By
    > displaying less than the whole tag, the tag is left open
    on my page and causes
    > portions of what follows on the page to break.
    >
    > Any suggestions for better ways to handle this?
    CS3/MSAccess2000/ASP
    >
    > Thanks everyone.
    Most of the CMS/Blog systems I have come across have 2
    fields, one for
    the summary, and one for the main content. The Summary is
    limited to 500
    characters. You then just display the summary on the preview
    page, and
    then both the summary and the main content on the detail
    page.
    Dooza
    Posting Guidelines
    http://www.adobe.com/support/forums/guidelines.html
    How To Ask Smart Questions
    http://www.catb.org/esr/faqs/smart-questions.html

Maybe you are looking for

  • Can the included instruments with LPX be installed on a secondary drive?

    Hi Guys, I've just taken the plunge and purchased Logic Pro X - upon first opening, it shows a message that "Logic Pro X is currently downloading an essential collection of instruements... (etc)" I'm wondering if, once these are downloaded, it is pos

  • How can i open a hebrew pdf with adobe

    i have an avery template in hebrew and it doesnt create a pdf with adobe since its hebrew what do i do?

  • Java and batch files

    i want to launch my application by a batch file, whit this script: @echo off "C:\j2sdk1.4.2_08\bin\java.exe" -cp "C:\Documents and Settings\Intrepido\Desktop\my tesina" BSServer 2103 pause my application as first operation, read from a txt file some

  • Amount is not coming into the Invoice for Warranty Order

    Salute All !! Amount is not coming into the Invoice for Warranty Order which is Free of Charge. This amount is not going to Customers debtor A/C, means there is no any A/C posting for this specific Amount because this is free of charge Sale (Warranty

  • After effects cc keeps disappearing once opened.

    Just installed After effects cc on PC, no issues during installation but the program now opens for 2 seconds before disappearing. No error message is shown, it just closes itself down. Anyone else have this issue? Any suggestions? I have tried signin