Bug report? WITH statement in classic report LOV

I've defined a "select list with query based lov" in a classic report column, and if I attempt a with clause
with data as (Select 4 qty from dual)
select round(100/qty*(level-1)) perc, round(100/qty*(level-1)) c
from data
connect by level <= qty +1I receive this error
WWV_FLOW_UTILITIES.ERR_LOVORA-06550: line 1, column 45: PLS-00428: an INTO clause is expected in this SELECT statement
ORA-06512: at "SYS.DBMS_SYS_SQL", line 1249
ORA-06512: at "SYS.WWV_DBMS_SQL", line 930
ORA-06512: at "SYS.WWV_DBMS_SQL", line 999
ORA-06512: at "APEX_040200.WWV_FLOW_DYNAMIC_EXEC", line 695
ORA-06512: at "APEX_040200.WWV_FLOW_UTILITIES", line 927>
It's fine when I remove the WITH and place my value inside the rest of the query.
Expected?
Application Express 4.2.1.00.08

Query is fine... worked on it [url https://forums.oracle.com/forums/message.jspa?messageID=10902901#10902901]elsewhere first ;-)
with data as (Select 4 qty from dual)
select round(100/qty*(level-1)) perc, round(100/qty*(level-1)) c
from data
connect by level <= qty +1
PERC                   C                     
0                      0                     
25                     25                    
50                     50                    
75                     75                    
100                    100

Similar Messages

  • Creation of report with the help of report painter

    Dear Experts,
                         I need report painter material, if any body have  pls  farward to me.
    my intension to create controlling report with the help of report painter.
    I am ready to award full points.
    Thanks in advance
    Regards
    avudaiappan
    Moderator - Please read this:
    /thread/931177 [original link is broken]
    Thread locked

    Hello Chinasammy,
    Report Painter allows you to create reports using data from SAP application components, which you can adapt to meet your individual requirements.
    Many of your reporting requirements can already be met by using the standard reports provided by various SAP application components. If these SAP standard reports do not meet your reporting needs, Report Painter enables you to define your specific reports quickly and easily.
    When executing a Report Painter report, it is displayed by the system in Report Writer format. You thus have access to the same functions as for Report Writer reports defined in the same way, and can combine Report Painter and Report Writer reports together in a report group.
    Report Painter uses a graphical report structure, which forms the basis for your report definition and displays the rows and columns as they appear in the final report output.
    To facilitate report definition, you can use many of the standard reporting objects provided by SAP (such as libraries, row/column models, and standard layouts) in your own specific reports. When you define a Report Painter report you can use groups (sets). You can also enter characteristic values directly.
    Advantages of Report Painter include:
    Flexible and simple report definition
    Report definition without using sets
    Direct layout control: The rows and columns are displayed in the report definition as they appear in the final report output, making test runs unnecessary.
    =============================================
    Below mentioned is the process for creating reports using Report Painter as a tool.
    Selecting and maintaining a library for your report: As the transfer structure to Report Painter you use a report table, which is defaulted by SAP and can not be maintained. This table contains characteristics, key figures and predefined columns. In a library, you collect the characteristics, key figures, and predefined columns from the report table, which you need for your Report Painter reports.
    When you define a Report Painter report, you assign it to a library. Reports assigned to one library can only use the characteristics, key figures, and predefined columns selected for that library.
    When you create or maintain a library, the Position field determines the sequence in which the characteristics, key figures or (predefined) key figures appear in the Report Painter selection lists when you define a report. This allows you to position the objects that you use regularly in your reports at the beginning of the selection lists. If you do not make an entry in the Position field, you will not be able to use this object in Report Painter reports.
    You can use either the standard SAP libraries for your reports or define your own.
    (ii) Selecting or maintaining a standard layout for your report: Standard layouts determine report layout features and the format of your report data.If the SAP standard layouts do not meet your reporting requirements, you can create a new  standard layout or change an existing one.
    (iii) Defining row and column models: A model is a one-dimensional, predefined reporting structure that you can insert in either the rows or columns of your report.If you often use the same or similar row or column definitions in your reports, it is recommended that you create row or column models.
    You must define the row and/or column models that you want to include in your report definition before you define the report.
    You can also use the standard column models supplied by SAP.
    (iv) Defining the report: Defining a Report Painter report involves the following steps.
    (a) Define the report columns: You define the report columns using the characteristics, key figures, and predefined columns selected for the library that the report uses. Alternatively, you can use a column model for column definition. Column models are predefined column structures which you insert into your entire column definition, instead of defining each individual column.
    (b) Define the report rows: You define the report rows using the characteristics selected for the library selected for the report.
    Alternatively, you can use a row model for your row definition. Row models serve the same purpose as column models, but are used to define a report row.
    Edit and format the report rows and columns in line with your requirements. (For example, you can hide rows or columns, define the column width or define colors for your report rows).
    (iii)Define general data selection criteria for the selection of your report data: Selection criteria are the characteristics used to select data for the entire report. You cannot enter characteristics as data selection criteria if they are already being used in the report rows or columns.
    (iv) Assigning the report to a report group: Once you have defined a report, you must assign it to a report group. A report group can contain one or more reports from the same library. However, reports that share the same data will select data more quickly and improve processing time.
    Hopw this helps you. Please let me know if you need anything more and assign points.
    Rgds
    Manish

  • How can I have Main report with a sub-report with in a sub-report??

    I have a main report that has about 5 subreports, almost like a dashboard.  I need to make one of those subreports contain another subreport.
    I don't have the option to add a sub-report with in my sub-report, so what I thought would work is remove my sub-report from my main report, then add my new sub-report, then add that report back to my main report.
    Everytime I add the sub-report that has a sub-report to my main report I lose the second sub.
    From what I've read on the internet is you can't have a sub-report contain another sub-report.  What some say is you can hyperlink that second sub report.
    When I setup my hyper link to open the second sub-report I'm prompted to re-enter my report parameters.
    Can some help me link a sub-report to a sub-report or show me how to pass a date range parameter in my hyper link so the reports just opens up?
    I'm using CR IX R2
    Thanks

    Nate,
    You are dealing with a product limitation.  Crystal cannot have nested subreports within a sub report. 
    You can generally use shared variables between sub reports to achieve your desired result

  • Sorting of columns in report with values from lookup table (LOV)

    Hi,
    I have a report where I looku the values using a number of LOVs. I'd like to enable sorting on those columns in the report whihc works BUT the report get's sorted on the numric looku pvalue instead of the description for example COUNTRY_ID instead of COUNTRY_DESC.
    I have played around with the function APEX_ITEM.ITEM_TET_FROM_LOV in my SQL query:
    select ID, NAME,
    APEX_ITEM.TEXT_FROM_LOV(COUNTRY_ID, 'COUNTRY_LOOKUP') COUNTRY,
    from VAR
    But I get the following error:
    report error:
    ORA-06550: line 1, column 13:
    PLS-00103: Encountered the symbol "COLLECT" when expecting one of the following:
    := . ( @ % ;
    ORA-06550: line 1, column 82:
    PLS-00103: Encountered the symbol ";" when expecting one of the following:
    . ( , % from
    So I am thinking that I am doing something very wrong? Is there another way to accomplish this?
    Andy

    you need to use htmldb_item.text_from_lov in your query.
    this will then deocde the key value to the description within the query itself and therefore allow you to do your sorting.

  • Interactive report search features in Classic Report

    Hi,
    We have generate a report based on a dynamic query (columns,tables and where condition everything will be dynamic at runtime). As we can use only sql queries to create Interactive report, we are populating collections with our dynamic query and using that collection to create Interactive report. But there are lot of limitation with this approach (only 50 columns we can display, number and date columns are stored in character columns of collection as we don't have control on populating collection's number columns using api apex_collection.create_collection_from_query and clob columns are truncated to first 4000 character).
    If we can paint the features like search,filters,select columns of Interactive report in classic report, our problem will be solved.
    Is there anyway we can get these Interactive report feature in classic report.? or any other work around is available to overcome the apex collection limitation? Any idea on this will be very helpful.
    Thanks in advance.
    Nithyarajan M

    Hi User,
    ya, Jitu is right.
    Create a region "Search'
    and Create a text field page item like P1_REPORT_SEARCH and also create two buttons like
    P1_GO and P1_RESET and after that
    Create two process for it
    <li> one is of Reset pagination process with condition type: request is contained within the expression1, and in expression1 give this: GO,P1_REPORT_SEARCH,RESET(process point- on submit after computation)
    <li> second process is of type clear cache for items(ITEM,ITEM,ITEM)
    Source : P1_REPORT_SEARCH
    condition type: Request = Expression 1
    Expression 1 = RESET
    May be this will help you out.
    Regards,
    Mini
    If this answered your question, mark appropriately.

  • Need SAP BW AR Aging Report with R/3 Aging Report Should Match

    Hello All,
    Could you please let me know SAP Delivered AR Aging Report on BW Side should match with SAP R/3 AR Aging Report for a given Customer.
    When I ran the report on BW Side I am able to match the report values with InfoProvider Values and also with RSA3 Extractor (0FI_AR_4).
    But when i tried to compare BW report with ECC Report values are not Matching at a given Customer Number.
    Please explain the best practice to match the values of BW Standard Aging report with ECC standard AR aging report.
    Thanks,
    Geetha

    Hi,
    I am actually running the SAP Delivered Report in BW.
    So I didn't changed any thing in report.
    I m running the report in ECC using s_alr_87016128 tcode.
    Still I m getting the amount difference.
    I have checked at customer level with company code and Key date.
    Can i get inputs on these.
    ECC Report s_alr_87012168
    BW Report:0FIAR_C03_Q0005
    Thanks,
    Geetha

  • Project Site custom list data reporting with Odata connection, BI reports in Project online 2013.

    Hi,
    Can we create an excel report with Odata feed connection which includes project site custom list data?
    Example: My Project is "ProjectTest" and it has a project site in which i created a custom list "ProjectNotes" with some new columns. I want to include these columns in my report.
    sandeep

    Hello,
    when using the SharePoint ODATA or REST APIs each list and site would have a different endpoint URL. Some example URLs are below:
    REST API:
    https://test.sharepoint.com/sites/pwa/Project01Test/_api/Web/Lists/getByTitle('ProjectNotes')/Items
    https://test.sharepoint.com/sites/pwa/Project01Test/_api/Web/Lists/getByTitle('Risks')/Items
    ODATA SVC:
    https://test.sharepoint.com/sites/pwa/Project01Test/_vti_bin/listdata.svc/Issues
    https://test.sharepoint.com/sites/pwa/Project01Test/_vti_bin/listdata.svc/ChangeRequests
    The down site is that in Excel you cant dynamically update the connection URL so would have to add all of these in manually and create the data models - I guess this is ok if you don't have many projects and don't create many new projects. In code such as
    JavaScript it is easy and you can build up the URL dynamically using variables like below:
    projSiteUrl + "/_api/Web/Lists/getByTitle('ProjectNotes')/Items"
     The options to explore to see if you have make this dynamic and get the data you want are:
    Potentially look at the search API and use that in Excel:
    http://sharepoint.stackexchange.com/questions/98159/retrieving-list-items-from-multiple-sites-via-odata-with-excel
    http://social.technet.microsoft.com/Forums/windows/en-US/727c1893-6b42-478b-afca-b32fb259a53d/retrieve-custom-lists-from-all-projects-for-excel-reports-by-using-odata?forum=sharepointgeneral
    Power Query:
    http://blog.oraylis.de/2013/05/using-dynamic-parameter-values-in-power-query-queries/
    JavaScript (put the data on a page), example:
    http://gallery.technet.microsoft.com/scriptcenter/Server-Risks-and-Issues-on-65dcbe0e
    Or bring the data down to a custom SQL database table and report of that data:
    http://nearbaseline.com/blog/2014/04/project-site-custom-list-reporting-using-ssis-odata-connector/
    Hope that helps
    Paul
    Paul Mather | Twitter |
    http://pwmather.wordpress.com | CPS

  • Difference between Crystal Report with VS2010 and Crystal Report Professional Version

    Dear Experts,
    We want to know the difference between Crystal Report Version with VS 2010 and Crystal Report Profesional Version.
    And from where we should buy it provide the link.
    Thanking you,
    Miral Shah

    If you are looking for difference in features, see this.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/60df293e-41e8-2e10-9293-fa4beeb40a99?QuickLink=index&overridelayout=true&52772263221521
    You could design your report with any one of CR 2008/2011/2013 and still could use in the app with 13 version references.
    Here is the licensing info. http://scn.sap.com/docs/DOC-21575
    - Bhushan
    Senior Engineer
    SAP Active Global Support
    Follow us on Twitter
    Got Enhancement ideas? Try the SAP Idea Place
    Getting started and moving ahead with Crystal Reports .NET applications.

  • Offline Reporting with Excel? -- complete Report +hierarchy possible?

    Hi people! 
    I’m new in SAP BW and I have a question regarding BEX. My goal is to get a complete Excel report that contains all the data and has a working hierarchy structure without connection to BW! 
    I generated a report with Query Designer whose data are represented in several hierarchy levels (option in row-header).
    =>date
    ===>area
    =====>customer
    =======>material
    After the execution of the query in BEX Analyzer or in the web, only the highest level (date) is indicated. If I open the next levels, the data are reloaded of the BW each time.
    But I’d like to load the data completely despite hierarchy (Transaction RSRT and then properties “load all data” is selected).
    Ok to get all the data, I could change the option in Query Designer to open all the levels after the first load, but the hierarchy levels should be closed at the first time.
    <u>My Question is:</u>
    Is there a possibility to get all the data offline in Excel with working hierarchy levels? It’s important for me to get a complete report without connection to BW and so the people can navigate also offline, e.g. open a lower hierarchy level with all the data.
    After saving my report as *.xls-file, the report contains only the part of the shown results and the hierarchy symbols have no function.
    I don’t need any symbols in offline report. I think, the excel function “group by” would enough for my requirements. But I don’t know how can I use this function with my data after running the query.
    In SAP R/3 the same is possible automatically, when a report will be generate.
    I have tried to find responses here in forum. But the search is unfortunately a little complicated and the results were not satisfactory.
    - Why I can’t get a list of the main-topic’s?
    - How can I get satisfactory results for multiple words?
    OK, I have read something about OLE and BSP, but I hope to find an easier solution without programming.
    Maybe the tool XL Reporter would be a solution, but we have no Business One licence. Unfortunately, current links for download a free version (I don’t know if its free), which I found here in the forum are not working for me. What’s wrong with XL Reporter?
    I would be glad about helpful replies.

    Hi Eugene!
    Thanks for your trouble and sorry for the late answer, but unfortunately I had to do a lot.
    I think, to describe my idea is not so easy with my English. But maybe you can understand it.
    First I should say, the web report and the offline Excel report are two different things now. I don't save the webreport to excel.
    The web report gets a hierachy and other formatings and with access to BW the user can use the report just as one likes.
    My idea for the offline Excel report is to save the complete data without hierarchy or other formattings. So every characteristic and every key figure is in a separate column and all rows contains data.
    date/area/customer/material/sales volume/other kf
    01.11.2005/100/34567/66000/34.000 euro/...
    01.11.2005/100/34567/67000/23.000 euro/...
    01.11.2005/100/34567/68000/14.000 euro/...
    01.11.2005/100/34567/69000/43.000 euro/...
    01.11.2005/100/40200/33000/11.000 euro/... (new customer)
    01.11.2005/100/40200/44000/10.000 euro/...
    01.11.2005/100/40200/68000/35.000 euro/...
    01.11.2005/100/40200/69000/22.000 euro/...
    Then the created Excelsheet should be handled by vba.
    As far as I know, you can select the data in Excelsheet with normal SQL commands. If the corresponding data are selected, I try to use the group by function in vba code.
    So first I select the materials from the first customer. If I found the next customer I want to group all materials for the previous customer.
    The Result should look so: (+ -> to open the materials)
    01.11.2005/100/34567/__/+____________/...
    Sum_______/___/_____/__/114.000 euro /...
    01.11.2005/100/40200/  /+____________/...
    Sum_______/___/_____/__/ 78.000 euro /...
    The next Step is to group all customer in one area.
    01.11.2005/100/+_____/__/____________/...
    Sum_______/___/______/__/192.000 euro/...
    01.11.2005/200/+_____/__/____________/...
    Sum_______/___/______/__/320.000 euro/... 
    And the last point is to group all areas per date.
    01.11.2005/+___/_____/__/____________/...
    Sum_______/____/_____/__/512.000 euro/...
    02.11.2005/+___/_____/__/____________/...
    Sum_______/____/_____/__/433.000 euro/...
    Now If I have a hierarchy structure, the offline user of the report can open the single levels to see the details.

  • Documentation: Reporting with evDRE.pdf -- Download Reports?

    Dear Experts,
    I got some documenation from our IBM consultant. One is called "12. Reporting with evDRE.pdf" and you can find some links to download reports in it. It would be very useful for me to know how the links work? How can I get all these mentioned helpful reports available? I already asked our consultant but he also don't know it and refered to that forum.
    Thanks in advance!
    Jeannine

    Yes in some reports yes; but making some tests I tried also to disable the hide from the rows this doesn't change anything;
    A additional information: I did a short report with 1 line and 1 column (with suppression).
    When I launch with 1 column 1 line (of course with column suppressed) the pdf is generated
    When I add a second column after the suppressed column the pdf is generated
    when I add a second column before the suppressed column I have the error.

  • Bug in with-statement?

    According to the docs, the scope chain used by the with
    statement to resolve identifiers is: innermost with-statement
    -&gt; outermost with-statement -&gt; activation object
    -&gt; etc. If this would be true, the following code should
    output &quot;propOfMyObject&quot;:
    Code:
    var foo:String = &quot;propOfActivationObject&quot;;
    var myObject:Object =
    {foo:&quot;propOfMyObject&quot;};
    with (myObject) {
    trace(foo); //outputs:
    &quot;propOfActivationObject&quot;
    But it doesn't. Instead the local variable is shadowing the
    property in myObject. It seems like the scope chain rather is:
    activation object -&gt; innermost with-statement -&gt;
    outermost with-statement -&gt; etc. Which means either the docs
    or the with statement is incorrect. Am I right?

    Query is fine... worked on it [url https://forums.oracle.com/forums/message.jspa?messageID=10902901#10902901]elsewhere first ;-)
    with data as (Select 4 qty from dual)
    select round(100/qty*(level-1)) perc, round(100/qty*(level-1)) c
    from data
    connect by level <= qty +1
    PERC                   C                     
    0                      0                     
    25                     25                    
    50                     50                    
    75                     75                    
    100                    100

  • Generate Paper Report with dynamic columns in Reports 9i

    Hi,
    I'd like to know if it's possible to select wich columns I want to show in the report just before it is shown.
    If yes, how can I do it?
    I'm using 9i Developer Suite and I'm calling the report from Oracle Forms.
    Thanx

    Set the Horizontal Elasticity to varaible.
    With a format trigger you control the visibility.
    function F_fieldFormatTrigger return boolean is
    begin
      if :hide = 'Y' then
        return(FALSE);
      end if;
      return (TRUE);
    end;

  • Modifying Test Report with on-the-fly reporting

    Hello,
    I am using teststand3.0 and trying to use on-the-fly reporting. The problem I am getting is report is adding begin sequence and end sequence tags to the report. Is there any way that I can remove these tags. The sample report looks like this
    Begin Sequence: MainSequence
    (Unsaved Sequence File)
    Message Popup: Failed
    Button Index: 0
    End Sequence: MainSequence
    End UUT Report
    I want to remove the text in italics. I have removed this one by editing AddSequenceResultToReport sequence, when I didn't used the on-the-fly option. But now the tags with on-the-fly option were inrtoduced by "Process Step Result" step of "ProcessOTFStepResult" sequence. And my sequence stack is upto 5 sub sequences. So when a step fails, it report prints 5 sets of begin and end tags, which I wan to avoid. Any help???
    Thanks
    mama007

    Hi,
    You need to modify the InitializeOFT sequence found in the reportgen_html.seq or reportgen_txt.seq. You will see two steps. One the template for the Sequence Header and the other for the Sequence Footer.
    For example:
    Locals.SequenceHeaderTemplate = "<H5>" + ResStr("MODEL", "RPT_BEGIN_SEQUENCE") + "%Sequence%\n<BR>(%SequenceFile%)<BR></H5>\n"
    The SequenceHeaderTemplate is a string built up to create "Begin Sequence: MainSequence". You probably can spot the various parts.
    Hope this helps.
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • XML Publisher report with multi sheet excel report

    HI Guys,
    I need help from you all to develop the report in xml publisher where the output should have multiple sheets in excel file can you pls guide me how to do this

    plz see http://docs.oracle.com/cd/E28271_01/bi.1111/e22254/create_excel_tmpl.htm#ext_multsheets

  • Creating a report with hyperlinks to other reports in data fields

    First sorry for my bad english.
    I've to generate a report where i can click on a field in a specific column and generate
    another report from that, where i can use the record data for another
    query.
    How can i make this?
    In few words I've a report and i've to make clickable some columns.
    There i've to insert an hyperlink to another report using these data like parameters for the new report query.
    I'm using Oracle Developer Suite 10G, Reports Builder 10.1.2.0.2, Windows XP SP2.
    I've seen that post:
    Re: Adding Hyperlink to a Field
    where seems there's a solution, but i'm quite noob in Oracle using and if someone could explain me help'll be appeciated.
    Thanks a lot in advance

    Hello,
    http://www.oracle.com/webapps/online-help/reports/10.1.2/topics/htmlhelp_rwbuild_hs/rwcontxt/props/pi_lay_hyperlink.htm
    Example 4: Data-driven hyperlink
    The following example shows a value for the Hyperlink property that specifies a link that needs to have data values provided:
    HTTP://SERVER/PATH/RWSERVLET?REPORT=DEPARTMENT.JSP&P_DEPTNO=&DEPTNO
    Regards

Maybe you are looking for