Incorrect results with design-time artifacts

Hi,
Problem description:
After creating design-time artifacts, Analytic view with Anlaytic privilege having assign restriction as repository procedure is not returning desired results.
HANA AWS revision 70.
Problem Recreation:
Below I am giving the process for problem recreation.
1. EDW.hdbschema:
schema_name="EDW";
2. EDW_DD.hdbdd:
namespace excent.P1;
@Schema : 'EDW'
context EDW_DD {
type TT_LV {
LowValue : String(18);
entity USER {
@Catalog.tableType: #COLUMN
key User              : String(10);
key InfoObject        : String(10);
key Option            : String(2);
key LowValue          : String(18);
HighValue             : String(18);
ChangedOn             : LocalDate;
ChangedBy             : String(8);
3. Created Analytic view (AN_EDW_SALES.analyticview) based on VBAP table with output as VBELN, MATNR, NETWR. Apply privileges is left empty.
4. Created repository procedure (LowValue_IN.procedure)
CREATE PROCEDURE LowValue_IN (OUT RES "EDW"."excent.P1::EDW_DD.TT_LV" )
       LANGUAGE SQLSCRIPT
       SQL SECURITY DEFINER
       DEFAULT SCHEMA _SYS_BIC
       READS SQL DATA AS
v_cnt INT;
BEGIN
RES = SELECT "LowValue" FROM  "EDW"."excent.P1::EDW_DD.USER"
             WHERE "User"            = SESSION_USER
               AND "InfoObject"       = 'MATNR'
               AND "Option"           = 'EQ'
             GROUP BY "LowValue",  "User"
SELECT COUNT(*) INTO v_cnt FROM :RES;
IF :v_cnt = 0
THEN RES = SELECT 'EMPTY' AS "LowValue" FROM DUMMY;
END IF ;
END;
5. Created Analytic privilege(AP_EDW_SALES.analytic privilege) with assign restriction on Repository procedure (LowValue_IN.procedure) with operator "IN" and Privilege Validity with operator as ">=", From date as yesterday (2014-03-24)
6. Created Role (EDW_SALES.hdbrole) and assigned the below privileges:
system privilege: CATALOG READ;
catalog sql object "SYS"."REPOSITORY_REST": EXECUTE;
catalog schema "_SYS_BI": SELECT;
catalog schema "_SYS_BIC": SELECT;
analytic privilege: excent.P1:AP_EDW_SALES.analyticprivilege;
package excent.P1: REPO.READ;
7. Created user from Systems view (EDWUSER) and assigned the role (EDW_SALES.hdbrole).
8. In SQLConsole, executed the query to insert 1 record, which has in VBAP:
insert into "EDW"."excent.P1::EDW_DD.USER" values('EDWSALES','MATNR','EQ','M-08','','','');
Now when I do the data preview, I can see all the records instead of only 1 record with MATNR "M-08".
Few Observations:
1. When SELECT statement of procedure when executed in SQLconsole for EDWUSER(with extra privilege SELECT on EDW schema) it returns only 1 row but not the Analytic view.
2. Also the repository procedure can be used as catalog procedure in Analytic privilege. This also behaving the same.
3. When I change the "Apply Privileges" option to "Analytic Privileges" in Analytic view, I am getting below error when doing data preview.
I could not understand where I am doing wrong. Is it a product bug or mistake from my end?
Regards
Raj

Ohh! Yes.. Got it now.
Well I tried to recreate your scenario: ( Tested on Rev 70)
1) Am sure you might have used the correct insert statement:
insert into "EDW"."MarchBatch.tst::EDW_DD.USER" values('EDWUSER','MATNR','EQ','1400-310','','','');
The user name must be EDWUSER not EDWSALES.
2) Have created Analytic Privilege with Validity date and others as mentioned by you. Only difference is am using a Repository procedure created under Content folder using Modeller Perspective (PROC_TEST) as shown in the below screenshot.
3) The data preview for EDWUSER as shown below is showing expected results i.e MTNR = 1400-310 is only showing up.
4) When I used the .procedure (LowValue_IN) , I also hit the same error same as you mentioned below:
With only difference being the way the procedure is created, the issue must be in the way .procedure is used. May be a bug I guess
Regards,
Krishna Tangudu

Similar Messages

  • Currency conversion issue in SPM. We are getting incorrect results with SPM conversion function from one of the document currency to USD.

    Currently we are using SPM 2.0 version and we have been facing currency conversion issues.
    Please help me in following aspects.
    1) Where actually currency conversion happens in SPM. Is it the global program which does the conversion or other way.
    2) We have conversion issue for one of the currency where conversion function is giving incorrect results when converting from one of the document currency to USD. here The respective document currency is considering the 1:1 ratio with Dollar which is actually incorrect.
    3) We have verified in both BI side(currency tables) and even ECC side.
    Please help me in understanding this issue and let me know if you need more information on this.
    Its an production issue and appreciated your immediate inputs.
    Thanks
    Kiran

    Hi Arun,
    The following information may be helpful to you.The SSA_HELPER_PROGRAM has options regarding currency settings.
    EXCH_RATE_TYPE: This flag governs the exchange rate type which will be used for currency conversion in data management. For example if RSXAADMIN contains an entry EXCH_RATE_TYPE = „ZSPM‟ then the conversion type used for currency conversion is ZSPM. The default value for the exchange rate type is „M‟. More details can be found in the note 1278988.
    CURRENCYCONVERSION: By default data management converts all the measures in transaction currency to reporting currency and copies over to the corresponding measure in reporting currency. If the measure in reporting currency is already available in source it might be desirable to disable the currency conversion. To disable the conversion you can make an entry CURRENCYCONVERSION = „ „ in the table RSXAADMIN. This can also be achieved by running the program SSA_HELPER_PROGRAM with the option DEACTIVATE_CURRENCYCONVERSION. The conversion can be reactivated by running the same program with option ACTIVATE_CURRENCYCONVERSION.
    UNITCONVERSION: Similar to above. To deactivate unit conversion you can use the program with option and DEACTIVATE_UNITCONVERSION and to reactivate ACTIVATE_UNITCONVERSION. By default both the conversions are switched on
    EXTERNAL_CURRENCIES: Normally most of the international currencies are stored with two decimal places however certain currencies do have 0 and 1 decimal place too. For example JPY has 0 decimal places. SAP internal format stores even these currencies with 2 decimal places and at the time of display it changes the value to right decimal places. In case a file from external source is loaded to SPM it might have the format with 0 decimal places in the file. To convert it to SAP standard format post processing needs to be done on this value. If that is the case you can set the flat EXTERNAL_CURRENCIES = „X‟ in the table which will enable the post processing for these values. This flag can also be set and reset using the helper program using the option TURNON_EXT_CURRENCY_FORMAT and TURNOFF_EXT_CURRENCY_FORMAT.
    Kind Regards,
    John Harris
    Senior Support Engineer, SAP Active Global Support

  • How to store the result with a time are using?

    Hi,
    I'm using the adobe captivate 5.5 to create the Visual Aid Project.
    What i want to ask in captivate 5.5 is :
    Q1. How to record and store the time are using in each slide. ( Record down how long need to take by user to complete one slide)
    Q2. How to create the file above (Q1), and save it in computer. ( For review purpose)
    The purpose for this project is record down how long(time) are need to complete for each Slide. Besides, this project will store the result in computer hardisk and for review purpose.
    Example :
    Slide
    Time Used (in sec)
    Slide 1
    10 sec
    Slide 2
    5 sec
    Slide 3
    20 sec
    Slide 4
    5 sec
    Slide 5
    30 sec
    Total Time
    70 sec
    Thanks,
    Regards,
    Shen

    Hello,
    It is possible to store the time in user variables. How to export those variables depends on the deployment of the file.
    Some information about showing elapsed time can perhaps give you a start:
    Display Time Information
    Lilybiri

  • Incorrect results with To-Date Measures

    Hi , I have a report like year Quantity , Quantity -YTD .
    Though dates are from 1980 to 2030 , i have filtered the dates succh that i have imported the dates greater than or equal to 2008 .
    So now year should start from 2008 to 2030 .
    If the report has year and quantity the dates are from 2008 , but when i add Quantity-YTD column in the report the dates are from 1980 .
    There are no values for Quantity from 1980 to 2008 but Quantity -YTD has values .
    I dont understand the behavior , can some one please help me out in finding the solution , i need it asap please .
    Thank you

    Hi Raj,
    As per your description, Quantity has no value at all from 1980-2008. However, Quantity-YTD is getting values here in the report. May I request you to further check if
    1. There are any other sources in the fact that can get the Quantity-YTD values. Some like aggregate tables etc might have data for previous quantity.
    2. To_date accumulates the value from the beginning of time to the current displayed time. So, say if your current report is for year 2010- Quantity YTD will get values just because 2009,2010 year's quantities are also computed too in to_date.
    3. To check if the Quantity-to_date is working as intended or not, create the report for the year <=2008 and see if this still gets values.
    Hope this helps.
    Thank you,
    Dhar

  • Report does not print exactly same as it appears at design time

    Hello,
    I am using SAP Crystal report with VS 2010.
    I designed a report. At design time every thing appears fine. Margins are set to 0, printer is selected and page size is custom.(right click on report, design>pagesetup)
    When I use <reportname>.printtoprinter(), it dramatically changes the text size and margins of the report in hard copy. I tried literally everything for this. Especially It adds nearly 2 inches extra margin at top.Also , at run time it changes the font size to 8 or 9 points if i have set it to 12 at design time.
    I get the same problem if I do following:
      crystalReportViewer1.ReportSource = rptRcAbh;
       crystalReportViewer1.PrintReport();
    HOWEVER!!
    When I do this:
      crystalReportViewer1.ReportSource = rptRcAbh;
    AND when I manually click the print button of crystal report viewer, i get EXACTLY SAME result as design time. This is what I am expecting from printoprinter() method. But Its changing result dramatically.
    Why is this happening? Am I forgetting any setting?
    I must use reprot.printtoprinter() method here. Because I am printing the bill receipt. I dont want the user to go to printpreview then click print. AND I must get same result as design on printed page.
    Please help me. I am in urgent need.

    Hi Don,
    Firstly I am very very thankful to you for replying me.
    I know I must have irritated you a bit cuz I was expecting everything ready which I should have :P
    but I was in urgent need and there was no time for me to read everything. I must say a thing that I did not get good search results on printcontroller when I used search box of this website.
    Well Thanks again for helping me in deed.
    I am sure this must be the problem for many people across the globe, hence I am posting the exact code that helped me to print the document Accurately:
       rptReceiptAbhishek rptRcAbh = new rptReceiptAbhishek();
            //        rptRcAbh.Load("rptReceiptAbhishek.rpt", OpenReportMethod.OpenReportByTempCopy); i did't need this line
    //////// Directly Entering data to the fields of the report.
                    CrystalDecisions.CrystalReports.Engine.TextObject txtname;
                    CrystalDecisions.CrystalReports.Engine.TextObject txtaddress;
                    txtname = (CrystalDecisions.CrystalReports.Engine.TextObject)rptRcAbh.ReportDefinition.ReportObjects["txtRptName"];
                    txtname.Text = cboInitials.Text + " " + cboDonarName.Text;
                    txtaddress = (CrystalDecisions.CrystalReports.Engine.TextObject)rptRcAbh.ReportDefinition.ReportObjects["txtRptAdd"];
                    txtaddress.Text = txtAddess.Text;
                    rptRcAbh.PrintOptions.PrinterName = Properties.Settings.Default.PrinterName;
                    System.Drawing.Printing.PrintDocument pDoc = new System.Drawing.Printing.PrintDocument();
                    CrystalDecisions.ReportAppServer.Controllers.PrintReportOptions rasPROpts = new CrystalDecisions.ReportAppServer.Controllers.PrintReportOptions();
                    CrystalDecisions.ReportAppServer.ReportDefModel.PrintOptions newOpts = new CrystalDecisions.ReportAppServer.ReportDefModel.PrintOptions();
                    pDoc.PrinterSettings.PrinterName = Properties.Settings.Default.PrinterName;
                    pDoc.PrinterSettings.SupportsColor.ToString();
                    //if (pDoc.PrinterSettings.SupportsColor)
                    //    MessageBox.Show("Printer Supports Color", pDoc.PrinterSettings.SupportsColor.ToString());
                    rasPROpts.PrinterName = Properties.Settings.Default.PrinterName;
                    //   rasPROpts.PaperSize = (CrPaperSizeEnum)pDoc.PrinterSettings.PaperSizes[cboCurrentPaperSizes.SelectedIndex].Kind;
                    //rasPROpts.PaperSource = (CrPaperSourceEnum) pDoc.PrinterSettings.PaperSources[cboDefaultPaperTrays.SelectedIndex].Kind;
          //          rptReceiptAbhishek rpt = new rptReceiptAbhishek();
                    var rptClientDoc = rptRcAbh.ReportClientDocument;
                    rptClientDoc.PrintOutputController.PrintReport(rasPROpts);
                    MessageBox.Show("Printing in progress. Make sure that printer is not turned off.", "RAS", MessageBoxButtons.OK, MessageBoxIcon.Information);

  • Hot News: Possible incorrect results in SAP BW system

    Everyone ,
    We recently identified an issue in SAP ASE which potentially causes incorrect results in a SAP BW system running on SAP ASE.
    The issue affects any application running on SAP ASE using optimisation goal 'allrows_dss' or a user created optimisation goal that enables 'advanced_aggregation' . 
    SAP BW specifies optimisation goal 'allrows_dss' for ceratin DSS queries and is affected by the issue.
    SAP ERP system running on ASE are typically not affected as in SAP ERP systems typically optimisation goal 'allrwos_mix' has been configured. 
    Details and corrections are available in SAP note
    2026328 - SYB: Incorrect results with SUM aggregation on decimal fields
    We strongly suggest to implement the corrections in SAP BW as soon as possible.
    With kind regards
    Tilman Model-Bosch

    Hi,
    Yes, I am using the MDX driver. 
    Is there any pre-requisites of importing certain ABAP transports into SAP Server since I haven't done any? Please  recommend.
    Thanks,
    Amogh

  • Apply Design-Time to entired site

    I'm using PHP templates and dreamweaver wont show my preview
    correctly. Right now I have to select each page (one by one) and
    pick design time. I have my sites defined in DW so you would think
    I could just set a designtime stylesheet to the whole site or
    highlight multiple files and apply them.
    However that doestn work. I have to do each page one by one
    with design-time. Is there a solution to this?

    Here's a link to an extension that will allow you to do that:
    http://www.communitymx.com/abstract.cfm?CID=61265
    Note that this extension is not free, but it's well worth the
    cost of $5.
    HTH,
    Randy
    > I'm using PHP templates and dreamweaver wont show my
    preview correctly. Right
    > now I have to select each page (one by one) and pick
    design time. I have my
    > sites defined in DW so you would think I could just set
    a designtime stylesheet
    > to the whole site or highlight multiple files and apply
    them.
    >
    > However that doestn work. I have to do each page one by
    one with design-time.

  • Query with Cost Center Hierarchy giving incorrect results

    Hi All,
    I have a universe built based on BEx query on Cost Center cubes. When enabling hierarchy in BEx Query and building Web intelligence Report based on the universe, I get incorrect results.  The levels of the hierarchy is incorrect, many of the cost centers are missing etc. I checked the universe and confirmed that all levels of hierarchy are generated correctly. The Lov generated for these levels are correct and I see the complete hierarchy when using the BEx Variable in Universe for filtering.
    I tried the same query with Hierarchy disabled with a different universe and it is providing correct results. Not sure what I'm missing here. Any inputs regarding this is appreciated.
    Thanks & Regards,
    Sree

    Ingo, Thanks for your suggestion. Of course, I did update the Universe after any changes in the query. Tried different query setting related to hierarchy  to make it work, but didn't many any difference and I get consistently incorrect results.
    One thing what I wanted to confirm is, if there is any known bug in SP 2 Fix Pack 2.7 related to hierarchies. If not, it might be me doing some thing wrong  and I will look into in more detail.
    Thanks & Regards,
    Sree

  • Incorrect result set with using isnull() function  in IQ 16

    Hi team,
    We have IQ 16 on HP UX.
    When we use isnull() function in where clause we get incorrect result set if we do not use column name in the result set.
    In first select we get result with one row but in second one we get an empty result set.
    select ID, dat_start, dat_end, dat_stop
    from table_test
    where ID=1105935925
    and isnull(dat_stop,dat_start) <> dat_end
    select ID
    from table_test
    where ID=1105935925
    and isnull(dat_stop,dat_start) <> dat_end
    It depends on number of row or volume of data in table, It is possible to use option Revert_To_V15_Optimizer to get the correct result.
    Do you have any different idea how to solve it?
    Thanks Milos.

    We have tested two versions:
    Sybase IQ/16.0.0.653/131122/P/sp03/ITANIUM/HP-UXi 11.31/64bit/2013-11-22 01:49:18
    SAP IQ/16.0.0.807/140507/P/sp08/ITANIUM/HP-UXi 11.31/64bit/2014-05-07 21:11:45
    Both versions have given same mistake.
    We have not opened any support case for this issue because it is data depended issue. It is not easy to simulate it as an example.
    Do you think we should open a support case for it?
    Miloš

  • Quite sometime ago, I attempted to download 2 episodes of Criminal Minds tv show.  It downloaded for 2 days before I realized it.   I stopped it and tried to delete both downloads after several more efforts with the same result.   Every time I purchase AN

    Some time ago, I attempted to download 2 episodes of Criminal Minds tv show.  It downloaded for 2 days before I realized it.  I stopped and tried to delete both episodes after several more efforts with the same result.  Every time I ANYTHING now, those same two episodes show up again and start to download again!   I can't make them go away!   I have successfully deleted songs and audiobooks over the last year, but these tv shows won't stop downloading and delete.  Any suggestions.    Thanks - danafromcripplecreek.

    Why start a new and very similar thread to your other one which you have not responded to (have you read the replies?)
    I suggest that no response is made to this duplicate thread. 

  • UndefinedException when working with RL-facts and testing at design time

    Hi,
    I'm performing some tests with JDeveloper Rules Designer on a very basic level. I'm defining rl facts (fact types), define a rule and write a test function to test this rule at design time. When executing my test function with the "Test Function" function an error occurs:
    UndefinedException: symbol 'Person' is undefined in main...
    Person is a fact type (RL Fact) that is the output parameter type of the decision function. If I don't use an output parameter everything works fine.
    If I use XML Facts instead of RL Facts and define an output parameter for the decision function everything works fine, too.
    Are there any restrictions for rl facts?
    //Mike

    Sure you can read and write at the same time. But normally you would be reading from one place and writing to another place.
    I rather regret avoiding the OP's earlier post asking how to combine two classes. I looked at the two classes posted and realized the best thing to do was actually to break them into more classes. But I also realized it was going to be a big job explaining why and how, and I just don't have the patience for that sort of thing.
    So now we have a Big Ball Of Tar&trade; and I feel partly responsible.

  • HT3204 Having purchased a Bluray of Les Mis with a digital download, I am unable to download the film through iTunes with each time I try it stops at 1.43GBytes.  I have attempted both Win8 PC and iPad with the same result.  Any ideas?

    Having purchased a Bluray of Les Mis with a digital download, I am unable to download the film through iTunes with each time I try it stops at 1.43GBytes.  I have attempted both Win8 PC and iPad with the same result.  Any ideas?

    Hello there, TindyBobbin.
    Just to make sure, here is a Knowledge Base article that reviews the process for downloading a digital copy:
    Transferring or downloading an iTunes Digital Copy
    http://support.apple.com/kb/ht1539
    If all of the steps still do not help with the download, you may want to follow what is mentioned at the bottom of all instructions:
    If you are experiencing issues downloading your iTunes Digital Copy, please contact iTunes Store Support.
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro D.

  • How to keep the font in the design time appear in run time with forms 10g

    hi guys
    did anyone know if we can keep the font we choose at
    design time in form 10g r2
    appear in runtime cuz the java applet transformer it to
    fonts that it recognise and the original font disappear

    You need to map the font you are using for development to one of the proper Java fonts that is used by the server by editing the related lines in the Registry.dat file located under the BI installation (of the iAS server) The file is located under the BI_HOME/forms/java/oracle/forms/registry/ subdirectory.
    Here is an example from my Registry.dat file. I am using Helvetica when developing (I am on Linux for both iDS and iAS) and mapping it to Dialog (Java font). You can search this form and OTN white papers, I am sure you can find similar mappings for your font (for development) and deployment. I simply used trial and see method to find a solution for my case.
    # Default Font Face mapping.
    # appFontname represents a comma delimited list of Application Font Names.
    # javaFontname represents a comma delimited list of Java Font Names.
    # The number of entries in the appFontname list should match the number in
    # the javaFontname list. The elements of the list are comma separated and
    # all characters are taken literally, leading and trailing spaces are
    # stripped from Face names.
    # Note that this file uses the Java 1.1 Font names in order to be able to
    # handle the NLS Plane (BUG #431051)
    default.fontMap.appFontnames=Courier New,Courier,courier,System,Terminal,Fixed,Fixedsys,Times,Times New Roman,MS Sans Serif,Arial,Helvetica
    default.fontMap.javaFontnames=MonoSpaced,MonoSpaced,MonoSpaced,Dialog,MonoSpaced,Dialog,Dialog,Serif,Serif,Dialog,SansSerif,Dialog
    Hope this proves useful.
    R/ Zaf

  • How to load a file at design time?

    I have a custom component which has a property that takes a path to an xml file.
    I have a file chooser property editor associated with the property which returns a relative path. The component correctly resolves this path at runtime using the application context etc.. but I'm at loss on how to do this at design time.
    The image component in JSC does this correctly as the image is loaded at design time using the url. I'm not sure how this is done but I'm looking for exactly the same functionality.
    The only way I figured to correctly resolve the physical path of the file at design time was through the DesignBean.
    In order to resolve the path and pass the resolved path to the component property I need to intercept property changed event and change the property value. However doing this in PropertyChanged(..) method of DesignInfo bean for my component doesn't do it as this is called 'after' the property value is set and changing the property value at this point results in a circular loop.
    Is there any way to accomplish this? Any help is appreciated.
    Thanks.

    Is this still unresolved? I'm sure you've read everything at "Building Custom Components"
    http://developers.sun.com/prodtech/javatools/jscreator/reference/index.jsp#Building_Custom_Components
    by now. I don't have the answer, but if it's still a problem, I'll work with you to figure it out.

  • Is there a way to have autogenerated columns in SSRS Report without declaring the column defination at design time.

    I just have a procedure in which i do have a dynamic query.It has certain parameter on the basis of which different set of columns will be returned in the result set. Now I want a SSRS report which can automatically pick up the columns from the Procedure
    result.without declaring column Names at Design Time(As i don't know which columns will come in the result set)
    PS:- I can't make separate matrix/table with their respective column names and show/hide them as I don't know which columns will come from procedure.
    Thanks
    Kanwar

    Can you please give a reference.I want a matrix or table to display the result set as is returned from the procedure.(Lets just say you keep the columns fixed).How without writing the column Names in table/matrix it automatically generates
    the columns similar to resultset.
    A bit of background for Understanding scenario:
    We want to give users the column names, arithmetic operators,etc.(From UI) and then send the query to SSRS. This query will be sent to SQL procedure(which is being used in RDL).What after that ??? . SSRS is not changing the result set dynamically.So as the
    result set is not definite i want table/matrix to populate the data returned from procedure automatically (without defining columns at design - time).
    Thanks
    Kanwar

Maybe you are looking for

  • PS and Project Based Accounting

    Is PS and Project Based Accounting one and the same? can you please explain more about the above in simple terms? thanks Ganga

  • Itunes needs quick time? Instillation help please!

    My computer crashed and I took it to a friend a few days ago to get it cleaned off. He cleaned everything off and gave it back to me running like a brand new comp. So I was in the middle of downloading all of my things and I was downloading itunes ag

  • Help with java mapping

    PI File adapter has a processing option u2018Empty-Message Handlingu2019 to ignore or Write Empty Files. In case there is no data created after mapping on target side then this option determines whether to write an empty file or not. But there is a c

  • How to configure the Java Web Services Environment

    My computer is not connected to a network or to internet. I want to perform below mentioned tasks locally(in my own computer). [1] Assume that I am the service provider and I want to publish the service in a Service Registry.      [2] Now assume that

  • IPod Classic 160GB-Splits Complilation Albums into single songs

    Just afer adding a couple of compilation albums to iTunes library.Albums intact on iTunes but after syncing to my iPod all comp albums are split into individual songs.how can i filter/sort albums to make them intact without having to delete artist na