No Measure defined in a reporting enabled analytic or calculation View

Hello,
I'm trying to activate a simple calculation view but getting this error: No Measure defined in a reporting enabled analytic or calculation View
The SQL is working on the SQL COnsole but not as View.
hier is the code. Hopefully, someone can help me.
BEGIN
var_out =
Select * from "SYSTEM"."BKPF"
select a."cnt", a.BELNR, a.BLDAT, a.budat
from (
select count(*) "cnt", BELNR, BLDAT, budat
from "SYSTEM"."BKPF"
group by BELNR, BLDAT, budat) a
where a."cnt" > 1;
END
Kind Regards

Thank you for your help!
but now I am getting an other Error...
this time it is:
Internal deployment of object failed;Repository: Encountered an error in repository runtime extension;Internal Error:Deploy Calculation View: SQL: transaction rolled back by an internal error: return type mismatch:
VAR_OUT[ cnt:BIGINT BELNR:NVARCHAR(10) BLDAT:NVARCHAR(8) BUDAT:NVARCHAR(8) ] !=  [ BELNR:BIGINT BLDAT:VARCHAR(100) BLART:VARCHAR(100) BKTXT:VARCHAR(100) BUDAT:VARCHAR(100) CNT:INTEGER ]: line 4 col 1 (at pos 221)nSet Schema DDL statement: set schema "System"nType DDL: create type "_SYS_BIC".""package/DOPPELTE_BUCHUNG/proc/tabletype/VAR_OUT" as table ("BELNR" BIGINT, "BLDAT" VARCHAR(100), "BLART" VARCHAR(100), "BKTXT" VARCHAR(100), "BUDAT" VARCHAR(100), "CNT" INTEGER)nProcedure DDL: create procedure "_SYS_BIC"."package/DOPPELTE_BUCHUNG/proc" ( OUT var_out "_SYS_BIC"."package/DOPPELTE_BUCHUNG/proc/tabletype/VAR_OUT" ) language sqlscript sql security definer reads sql data as  nBEGIN nnvar_out = nselect a."cnt", a.BELNR, a.BLDAT, a.budat nfrom (nselect count(*) "cnt", BELNR, BLDAT, BUDATnfrom "System"."BKPF" ngroup by BELNR, BLDAT, budat) a nwhere a."cnt" > 1;nnEND n/********* End Procedure Script ************/n
Does this mean that I have to change the length of the attribute or why are they listing my characters again with other numbers?
King Regards
Ayser

Similar Messages

  • Get the parameter fields defined in crystal report

    I am porting my application from crystal 8.5 written in C++ to crystal 2008 in .net.
    Here I am not making use of crystal report viewer neither I am creating .rpt in .net code.
    I have a set of already created .rpt files.
    I have written a function in .net to export the crystal report.
    Its a generic function and will be called for multiple crystal reports.
    I am passing the parameter values to the report by making use of the following function :
         ReportDocument repDoc;
         repDoc.SetParameterValue(APPTYPE, strNextToken[0]);
         repDoc.SetParameterValue(COMPORROLETYPE, strNextToken[1]);
    Similarly I are setting other parameter values.
    The problem here is that, all the reports do not have parameter fields defined that I am trying to set.
    They may be present for one report and absent for another. In this case , if the report does not have a particular parameter
    field, then it gives error on setting parameters and subsequently fails.
    Now I want to find out through code what all parameter fields are defined in the report. Then I will only set those
    parameter fields?
    Please guide how can this be done.
    Thanks
    Sonam

    Not as trivial as you might think. You will have to loop through all the sections of the report looking for the objects you need. I don't have a code specific to parameters, but looping through al the sections would be something like the code below. But... this will only show you parameters in a section. It will not show you parameters used in a formula, record selection formula, group selection formula, text field or a conditional formula. In order to get those parameters, you's have to parse out each of those objects looking for parameters. And this is probably not an exhaustive list of places to look for a parameter in the report.  I get a headache just thinking about this...
    Dim crSections As Sections
    Dim crSection As Section
    Dim crSubreportObject As SubreportObject
    'set the crSections object to the current report's sections
    crSections = crReportDocument.ReportDefinition.Sections
    'loop through all the sections to find all the report objects
    For Each crSection In crSections
    crReportObjects = crSection.ReportObjects
    'loop through all the report objects to find all the subreports
    For Each crReportObject In crReportObjects
    If crReportObject.Kind = ReportObjectKind.SubreportObject Then
    'you will need to typecast the reportobject to a subreport
    'object once you find it (***you'd go to setting the parameter here - or not...)
    crSubreportObject = CType(crReportObject, SubreportObject)
    'open the subreport object
    crSubreportDocument = crSubreportObject.OpenSubreport(crSubreportObject.SubreportName)
    'set the database and tables objects to work with the subreport
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup

  • Print all filters defined in a report

    I would like to print all filters that are defined in a report using DeskI or WebI (both version XI R2 and 3.1)...
    In DeskI there are 2 functions in the "Insert" > "Special Field" menu: "Global Filters" and "Query Prompt"; however, I also want to list all other filters that are set on tables in the report...
    It seems that it's not possible in WebI / WebI Rich Client at all...
    Thanks!

    change your query with like
    SELECT * FROM TABLE1 WHERE ACCEPTED like :P_ACCEPTED.
    and send % as backed value against ALL

  • When I publish projects with AICC reporting enabled the SWF "breaks" and does not load.

    When I publish projects with AICC reporting enabled the SWF "breaks" and does not load. If I change the publish method to SCORM the SWF works, and if I turn off reporting the SWF also works.

    OK.  That makes sense now.  Captivate 6 changed over to Rustici's LMS drivers.  Cp7 must have made even further changes that mean you must have an LMS present if you turn on reporting.
    I would suggest you just turn off reporting while you are testing other aspects of the course functionality during development, and only turn on reporting when you are ready to upload to your LMS.

  • How to display "unit of measure" in CO-PA report?

    Dear all,
    Is it possible to include "unit of measure" in CO-PA report?
    From billing document the sales qty is reported in pcs and kpcs (we have maintained conversion betweed pcs and kpcs).
    if unit of measure is not displayed, we don't know the qty is in pcs or kpcs.
    Thanks~

    Hi Sharon
    Go to KE32 and check - There should be an option to include The UoM as a char
    Also, while using drilldown option, the UoM is displayed at the Column Header itself
    br, Ajay M

  • AWM: Enable Analytic Workspace for OLAP API

    Hi,
    I created an analytic workspace with Analytic Workspace Manager which is based on a relational star-schema.
    Now I want to access this analytical workspace by normal SQL-Statements. For this I executed in AWM the 'Enable Analytic Workspace for OLAP API and BI Beans ...' routine which generated views that contain the fact and dimension data.
    My problem is that these views are very huge, because they
    apparently store all possible combintations of dimension- and fact records. Most of the records contain only NULL values in the fact columns. I also used Composite Dimensions for the fact table in order to reduce sparsity.
    Is it normal to have such huge views with mostly NULL values? If yes, how can I handle this in order to get an acceptable performance.
    Here an example of a small fact table I use:
    A fact table with 5400 records with its two dimension tables (1129 and 233 rows, no hierarchies) produces 263057 rows in the view.
    Thanks for any help.

    Hi,
    First of all, thanks for the quick response flavio.
    Meanwhile I have found a solution to my problem:
    I don't use the 'Enable Analytic Workspace for OLAP API and BI Beans ...' routine of AWM anymore. Instead, I write my own statement for creating a relational view for the analytical workspace. The statement looks like following:
    create or replace force view costrate_cube as
    SELECT producttype_number, producttype_description, machine_sk, notok_costrate, production_costrate
    FROM TABLE(CAST(OLAP_TABLE(
    'costrate_aw DURATION SESSION',
    'costrate_table',
    'FETCH producttype_dim_producttype_number,
    producttype_dim_producttype_description,
    produnit_dim_machine_sk, produnit_dim_module_sk,
    notok_costrate_variable, production_costrate_variable
    USING <costrate_cube_composite>','') as costrate_table));
    The important part is the USING clause of the FETCH command. By using the composite of all dimensions of the cube, rows containing only null values in the fact columns are being eliminated. Now I get only the rows which are in my original relational fact table (which is what I wanted).
    Werner

  • Vehicle reporting and analytic

    Dear all,
    Anyone have any experience with Automotive vertical?
    Can i do a reporting or analytic for Vehicle record type? I want to know which brand Vehicle is the most people use.
    I realised that there is no reporting or analytic can be done for Vehicle record type.
    I cannot see any Vehicle related subject area for reporting and analytic.
    Please advice.
    Thank you.

    They do not have vehicle object for reporting. Vehicles are built of Assets so you can use Assets object for reporting on some fields of Vehicles.

  • Column Value change in BO report vs HANA calculation view

    Hi,
    We are having BO  reports on  Standard hana views.
    We have some columns  in calculation view as below in Hana studio
    Column Name     Column Purpose
    1.Cost Center---(Gives cost center number)
    2.Cost center Name--(Gives description of cost center )
    3.Cost Element-which --(Gives cost center number)
    4.Cost Element Name-(Gives description of cost center)
    when we preview the data with these coulumns in hana studio there are giving the result as specified above.
    But if I run the report in BO using the above 4 columns ,I could see only descriptions for all the four columns as below
    1.Cost Center---(Gives description of cost center)
    2.Cost center Name--(Gives description of cost center )
    3.Cost Element-which --(Gives description of cost center)
    4.Cost Element Name-(Gives description of cost center)
    As per our requirement we should get numbers for cost center and cost element.
    I have observed in semantics that cost center and cost element have label columns mapped to them as below
    cost center has labelcolumn as costcenter name
    cost element has labelcolumn
    Please see the attached file . Is this happend because of the labelcolumn mapping
    we want the cost center and cost element to be displayed as numbers only.  Please suggest me on this.
    Thanku

    Hi Chandra,
    TEXT is coming because you have defined as "Label Column" . In HANA, Data preview the column names will only come but not "Descriptions".
    What is your reporting tool?  If it is AO, have a look on the below blog:
    Using Text Joins to enrich Attributes with "Texts" in SAP HANA with SAP BO Analysis Office
    Regards,
    Krishna Tangudu

  • How can i set SINGLE PAGE. ENABLE SCROLLING as default view?

    how can i set default setting for view? I would like to set DO NOT SHOW GAPS BETWEEN PAGES. SINGLE PAGE. ENABLE SCROLLLING as default view.

    For viewing PDFs without embedded IV options you can set values under Preferences > Page Display, but if a file has the zoom or scroll mode defined in its properties, those will always win over the application defaults.

  • Report not displaying data in Viewer

    Hi All,
    I have a problem, wherein when I run a report on Discoverer Desktop or Plus the report runs fine (with data displayed) but when the same report is run from Discoverer Viewer the report does not fetch any data. It does not even give the error of 'No rows returned'.
    If there are any settings or any other change that needs to be done, please help.
    This is again something very urgent i am looking for. An immediete help will be really appreciated.
    Regards,
    Shruti

    Hi,
    what is the version of Discoverer you are using?
    Also, Is this workbook created in previous versions and upgraded to the existing version?
    log entries in application.log would help in debugging. If you are facing any difficulty to look at the log entires being huge,
    Make sure that you clear or take a backup of the existing application.log, restart the middletier. This will create a fresh application.log file.
    Now, immediately reproduce your issue.This will record the exact log for the event which Viewer is failing to render the report.
    Hope this helps!
    Cheers,
    Prasad Bolla.

  • Crystal report in JSP using activeX viewer

    Hi,I'm trying to integrate JSP and crystal report.
    can you give me a sample code to display crystal report in JSP using activeX viewer(not pure HTML)
    I'm using crystal report 9,there are ASP sample come with CR9,but no JSP.also I don't want use Crystal Enterprise9 even I know the URL reporting may be the eaier way.

    Hi,I'm trying to integrate JSP and crystal report.
    can you give me a sample code to display crystal
    report in JSP using activeX viewer(not pure HTML)
    I'm using crystal report 9,there are ASP sample come
    with CR9,but no JSP.also I don't want use Crystal
    Enterprise9 even I know the URL reporting may be the
    eaier way.Hi, did u manage to get the ActiveX Viewer up with JSP? I'm also trying to do the same thing. If you could, pls kindly email me the basic source codes to [email protected]? Thanks

  • Input parameter of Analytic view in Calculation View

    Hello Folks,
    I have created an analytic view with some input parameters and using this view in a calculation view.
    when i am checking Data Preview of Calculation view , it is not asking for any input parameter and returning blank values.
    Could you please let me know the where i went wrong.
    Thanks.

    Hello Ravindra,
    Here is scenario :
    AV :   AV_1 w/o parameters
    AV :  AV_2  w/  required parameters
    when i join the both them into CV_1 , I am unable to see input parameter mapping.
    Could you tell me where it is located.

  • Hiding report title in Group Tree View Pane

    In a .rpt file, if I provide a Group Field, it is displayed in the "Group Tree View" when I preview the report.
    The Group Tree View pane also contains the name of the report - actually the title. Is there a way that I can choose not to show report title on this pane?
    Here is my requirement:
    I'm localizing the report file and that includes localizing group names too. I've also localized the report title by using a formula and displaying the formula in the report header. But this pane - Group Tree View -  uses report title from "Special Fields", which I'm not able to modify. So I'm always getting the non-localized report title displayed on this pane, which I want to avaid somehow.
    If I remove report title from the report properties, this pane shows report file name instead, which again i do not want to be displayed.
    Rgds,
    Chris

    After removing the report title from the report properties try to place a space " " in the report title field in summaryinfo so that a blank space is shown in the group tree.
    Regards,
    Raghavendra

  • How to biod Crystal Reports based on ABAP Tables/Views

    Hi,
      Can any one post me some document stuff on building Crystal reports based on ABAP Tables/Views please!
    Thanks,
    Madhu.

    Hi,
    Check out the links below for Crystal Reports :
    Re: Crystal report in SAP BW
    http://support.businessobjects.com/documentation/product_guides/
    http://help.sap.com/saphelp_nw04/helpdata/en/86/06a8d3be17fc47aa8d850e50cf5f24/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/46/dfd33b1ed4b47de10000000a114084/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/34/c0523e83464644e10000000a114084/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/0d/5f72b7c0e943d99f4f5cef2bfacfe1/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/06/00a63b60f26e3be10000000a114084/frameset.htm
    Hope this helps.
    Cheers,
    Kedar

  • To enable Log Changes For Views

    Hi,
    How to enable Log Changes for Views?
    Regards,
    Santosh

    Hi Santhosh,
                    There is no seperate indicator for 'Log Data Changes'  for Views. Changes will be automatically logged. Create a sample view, add 2 fields first and activate it. then add 1 more field and activate it. Now goto UTILITIES - > ACTIVATION LOG. you can find the changes here. if it is helpful assign points

Maybe you are looking for

  • Problem with EventHandler in OIM 11g

    Hi All, I followed the Part I(Chapters 6,7 & 30) in pdf file shown below http://download.oracle.com/docs/cd/E14571_01/doc.1111/e14309.pdf I developed the plugin and registered the plugin for custom eventhandler. Iam not able to see the defined eventh

  • Events in ical on my macbook get deleted when I sync w/my iphone5.

    Been having problems getting ical events to merge between iphone5 and macbook.  After some suggestions from the community, I discovered I have no icloud in ical system preferences, and events scheduled in ical on macbook gets deleted when syncing to

  • Save completed form as PDF

    Is it possible to save a completed form as a PDF? Our school is considering using FormsCentral to allow faculty to complete online student Surveys (essentially evaluations of a student's progress). We need to attach the completed survey to the studen

  • Dashboard Studio not showing open ESM

    Hi Again, When I open Dashboard Studio, I don't see any choices in 'Connect to Open Dashboard' even if I have a dashboard open. A coworker remembers a similar problem, but cannot remember the fix. Any ideas? Thank you!

  • Version Control Enhancement

    This is something of an enhancement request for version control functionality. I'm using ClearCase, but I imagine that this applies to CVS and other source control tools too. It is very nice the way that JDeveloper checks out associated files when yo