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.

Similar Messages

  • Dynamically Pass a list as input parameter to a Graphical Clac View

    Hi All,
    Can anyone please let me know if it is possible to pass a list of comma separated values as an input parameter to a graphical calculation view and how this list can be parsed inside the view?
    The requirement is to invoke the graphical view using sql script.
    Thanks,
    Goutham

    Hi Goutham,
    Have a look on these documents:
    Using Multiple Values in Input parameter for filtering in Graphical Calculation View
    SAP HANA: Handling Dynamic Select Column List and Multiple values in input parameter
    Regards,
    Krishna Tangudu

  • Call a Graphical Calc view with input Parameters from a Script Based Calc View

    Hi All.
    I am trying to call a graphical calculation view with input parameters from a script based calculation view as below but getting syntax error:
    SESSION_SAMPLE = SELECT SESSION_CREATE_DATE,SHA256,CA_MEASURE
                                 FROM "_SYS_BIC"."WILDFIRE/CV_SESSION_SAMPLE"
                                 WITH PARAMETERS  ('PLACEHOLDER' = ('$$IP_START_DATE$$',:START_DATE),
                                     'PLACEHOLDER' = ('$$IP_END_DATE$$',:END_DATE));
    START_DATE  and END_DATE are input parameters of the script based calculation view.
    Can anyone please help me with the correct syntax for accomplishing this?
    Thanks,
    Goutham

    Hi Gautham,
    One more option  what i would like you to try is the below option , here i have just changed the order of passing nothing else.
    SESSION_SAMPLE = SELECT SESSION_CREATE_DATE,SHA256,CA_MEASURE
                                 FROM "_SYS_BIC"."WILDFIRE/CV_SESSION_SAMPLE"
                                   ('PLACEHOLDER' = ('$$IP_END_DATE$$','$$END_DATE$$'),
                                  'PLACEHOLDER' = ('$$IP_START_DATE$$','$$START_DATE$$'))
    Regards,
    Vinoth

  • Input Parameter Mapping is not working in Sap HANA

    Hi, We created on ANALYTICAL view(A) with Input Parameters, on top of Analytical view created one Calculation view(B) and mapped Calculation view input parameter with Analytical view input paramter and its working fine. Finally we created one more calculation view on top existing calculation view(B) and mapped with corresponding input parameters. Input parameter mapping is working fine in between A(analytical view) and --------> B (first Calc view) but input parameter mapping is not working properly in between B(first Calc View)-----------C(second Calc View). it is giving all data whatever is coming from Calc View B. Kindly help us to resolve this.

    Hi,
    Write c in small for Command,
    theButton.mappingOfOnAction().addParameter("command","Save");
    Regards,
    Murtuza

  • Hierarchy on HANA Calculation View with Optional Input Parameters Fails

    Hi,
    Has anyone succeeded in building a hierarchy on top of a calculation view with optional input parameters, where an input parameter is not filled?
    The original requirement came from the wish to create a parent child hierarchy on a calculation view that was copied into the customer space from a HANA Live Financial Statement query view, but I have found the following when creating a simple level hierarchy on a calculation view that consumes one table. The Calculation View has one Input Parameter where the 'mandatory' box is unchecked.
    Calculation view reads ECC table FAGLFLEXT
    Simple level based hierarchy on fields PRCTR, RACCT and SEGMENT
    Input parameter is used as a filter for PRCTR with logic ("EMPTY" = '$$P_PROFITCTR$$' or "PRCTR" = '$$P_PROFITCTR$$')
    When I run the view I see the following behaviour in HANA Studio and Analysis for Excel
    Before building the hierarchy I could run the view with or without the Input Parameter
    After building the hierarchy I can run the view with the Input Parameter filled, but it fails when the Input Parameter is not filled.
    Error message is "error: search table error:  [2426] missing placeholder; missing value for mandatory parameter P_PROFITCTR"
    P_PROFITCTR is not a mandatory parameter, but the selection for the hierarchy view thinks it should be. I don't find any notes around this issue, so I don't think it's version related, however the version I have used for this test is 1.00.70.
    It's a shame we can't currently build the hierarchy as the parent child relationship is provided in HANA Live view NewGLFinancialStatementQuery.
    Thanks,
    Ken

    Hi Ken,
    We have been facing similar issue. We have even tried to set default value and as optional parameter. View still fails to create hierarchy (we are not using HANA live). As mentioned on page 97 of HANA modelling guide input parameter is mandatory from engine point of view. Hierarchy is generated as column view during the initial activation of calculation view and therefore expect a value by caller.
    This seems to be a product error. Some one from HANA development team should explain this issue in detail. I would expect someone like Thomas Jung reply to us.
    At the moment, we cant use input parameter for date prompt which gives us calendar popup feature for date selection. Hierarchies just don't work with input parameter. We are missing something.
    Regards
    Angad

  • Calculated view with input parameters

    Hello there.
    I've created a calculated view with input parameters, which I am going to call  it  'VIEW_A'.
    This view has been working just fine.
    But now I have to create another calculated view and import the last one(VIEW_A) in a projection.
    But I got a error when trying to see the data content. 
    It says :
    Error: SAP DBTech JDBC: [2048]: column store error: search table error:  [6968] Evaluator: syntax error in expression string;expected TK_ID,parsing '"DT_DOC_MES_ANO" >= [here]and "DT_DOC_MES_ANO" <='
    At the 'Problems' panel it says the all the input parameters are unmapped.
    What Am I doing wrong?  Sorry but I am kind new at SAP world.

    http://scn.sap.com/message/15489475Hello Tiago,
    Could you please let me know if you're able to resolve your issue, I'm getting the similar error when I'm passing alpha numeric values as parameter via my SP.
    Thanks for your help in advance!
    Regards,
    Sathish

  • Passing mandatory parameter within several calculation view

    Hi, I have syntax error when I try to pass parameter between several calculation view; let say:
    Calculation view A: has mandatory parameter called company;
    and
    Calculation view B: has mandatory parameter called company;
    What I want to achieve is to passing parameter from user from Calculation view B and then within Calculation view B, I called Calculation view A with user inputted parameter.
    I have try similar like this, but giving me error:
    var_out = SELECT ...
               FROM :CA_A a,
              "_SYS_BIC"."package-testing/CA_B" ('PLACEHOLDER' = ('$$COMPANY$$', COMPANY)) b
    SQL: sql syntax error: incorrect syntax near "COMPANY": line ...
    NB: COMPANY is mandatory parameter inside Calculated view B

    Got it.
    Actually, passing the parameters from one CA to the other should be the easiest part.
    Just do something like:
    lt_a = SELECT * FROM "_SYS_BIC"."package/CA_A" ( 'PLACEHOLDER' = ('$$COMPANY$$', :COMPANY) );
    Where "COMPANY" is the input parameter's name within both views.
    Basically, within the calc view's code, just use colon & the parameter's name to refer to the paramete, similar to how you do with a logical table (e.g. :lt_a in the aforementioned case). It would also be the same to refer to a parameter within a procedure.
    From your original code, the only difference is the colon you forgot before "COMPANY" parameter reference.
    Within CA_A's own code, it should be the same to refer to the parameter within the code (i.e. :IP_COMP in the above case).
    How to achieve what you're trying to is another story. But if you want help with the SQL itself, I'd ask it in another discussion thread.

  • Error while creating a BO Universe (using IDT) on top of SAP HANA Calculation View with Input Parameters

    Hi All..
          We are trying to create a Universe (using IDT-Version4.0) on top of the HANA Calculation view. The Calculation view has 4 input parameters, So
    in Universe side we have created the respective prompts. For the creation of derived table we have used the following code
    SELECT *
    FROM "_SYS_BIC"."<schema_name>.<CV_Calculation_View_test>"
    'PLACEHOLDER'=('$$IP_A$$','@Prompt(A)'),
    'PLACEHOLDER'=('$$IP_B$$','@Prompt(B)'),
    'PLACEHOLDER'=('$$IP_C$$','@Prompt(C)'),
    'PLACEHOLDER'=('$$IP_D$$','@Prompt(D)')
    While validating the above code we are getting an error.
    I have attached the snapshot of that error for your reference. Please find the attachment and help me in resolving it.
    Thanks in advance.

    Hello George,
    I don't have any personalization set on the info space. Also I am using mapped Account in BI to connect to HANA. The confusing part is that it is able to validate the infospace with the input parameters and index it. However query does not return any results. I even tried running the same query which explorer sends to HANA in the SQL editor and there too the same results,the query does not return anything. The model does return data when I do a data preview and if accessed from other tools like AAO.
    Also when I use SSO connection to HANA, indexing of the infospace fails. Where can I see the error log?
    Thanks,

  • Using calculation view in excel with input parameters

    Hello
    I have a calculation view which receives 2 input parameters for a range of dates, when i create the connecction with Excel i get the error "sql processing error: Hierarchy source query: SQL: column store error: search table error: [34092] search on calculation model requires parameters: Required variable $$MyVariable$$ is not set"
    I would like to know how can i pass the parameteres from excel to my calculation view??
    Thanks

    I doubt this can be achieved with a native Excel connection. Try SAP Advanced Analysis for Office. (I believe it may now just be called Analysis for Office).

  • Calculation view with input parameters

    Hello there.
    I got a calculation with that expects 2 input parameters.
    But now I have to created another calculation view that import this calculation view.
    How can I pass these 2 parameters using sqlscript?
      My script so far
      cv1 = CE_CALC_VIEW("_SYS_BIC"."calc_1",["CR"],'"COMPANY"=''7000''');
    I must pass 2 parameters in this  "_SYS_BIC"."calc_1" table

    Hi Tiago,
    as I am aware, you cannot pass input parameters to CE function.
    You can try using regular SQL syntax:
    SELECT "CR" FROM "_SYS_BIC"."calc_1"
    WHERE "COMPANY" = 7000
    (PLACEHOLDER."$$PARAM_1$$" => VALUE_1,
    PLACEHOLDER."$$PARAM_2$$" => VALUE_2)

  • 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

  • Using K Means in a Calculation View

    Hi Experts,
    Can you please help me with the below scenario.
    I am trying to use K-Means function to perform clustering on customer data. I have the below columns:
    Attributes:
    Customer ID, Home Ownership Status
    Measures:
    Customers Debt to Income Ratio, Annual Income
    1. Is it possible to use multiple attributes given above to perform the clustering as i read that clustering can be only done using measures.
    2. I need to pass the number of clusters dynamically from report to the K-Means function to perform clustering. I tried to use calculation view to get this parameter from user at runtime and pass to the input parameter table of K-Means function. But the problem is, calculation views will not allow any kind of DDL statements like create/drop/insert/delete/update etc.
    3. Further i would like to understand how to use the results of the K-Means clustering delivered via two tables one having clusters, distance and other having clusters and remaining measures to build a scatter chart. How this can be achieved.
    Please help.
    Thanks and Regards,
    M.N.Adinarayanan

    Hello,
    Would you share your dataset maybe I can help.
    Kind regards.

  • How to Rap a Stored Procedure in Calculation View

    Please suggest/guide with step by step how to rap a stored procedure in calculation view, which latter I can use to call from odata service.
    I have one input parameter PRDID
    Table: Product
    PRDID
    PRDTYPE
    PRDCAT
    QTY
    PRICE
    MMT1
    OP
    BOOKS
    1
    12
    MMT2
    OP
    BAG
    2
    32
    MMT3
    OP
    PEN
    3
    12
    MMT4
    OP
    NOTEPAD
    6
    12
    MMT5
    OP
    MOUSE
    6
    36
    MMT6
    OP
    HANDBAG
    1
    22
    CREATE PROCEDURE <yourschema>."Product" (INOUT prd VARCHAR(10)) LANGUAGE SQLSCRIPT AS
    BEGIN
    select "PRDID", "PRDTYPE","PRDCAT","PRICE"
       from <yourschema>."Product"
       where "PRDID" = :prd;
    END;
    Thanks

    Hi Deere,
    Check this post, we already discussed the same.
    http://scn.sap.com/thread/3528968
    Step 1 : Create a calculation view in script mode.
    Step 2 : Create your output structure(as same as the procedure output structure)
    Step 3 : Call the procedure inside the script .
    Step 4: Map the fields to the output variable.
    Step 5: Map the input variables to the procedure input(if needed)
    Exposing :
    Step 5 :  In the xsodata file, you can consume as usual .
    Sreehari

  • Writing an sql script to query a calculation view  and an attribute view inside a calculation view

    Hi,
    I was trying to query a calculation view with sql , and as one of the input parameters i was trying to give a query over an attribute view
    So my sql will look like this
    SELECT * FROM "MyApp.calculation_views::GET_CHECKLIST_FOR_ACCOUNT"('PLACEHOLDER' = ('$$ACCOUNT_ID$$', '1','$$CHECKLIST_ID$$',' SELECT CHECKLIST_ID FROM "MyApp"."CHECKLIST_PRODUCTS" WHERE PRODUCT_ID = 5'));
    So as an input to $$CHECKLIST_ID$$   i wanted to give an id selected from checklist products table where products id is passed as an input
    but this is not working, i am getting syntax error at the $$CHECKLIST_ID$$ there i can only pass values like  $$CHECKLIST_ID$$, '1'
    Please help me to figure out which  is the correct syntax  i tried putting the sql statement to get the checklist_id in '' but it too didnot work

    I'm not sure you'll be able to do a SELECT subquery directly in the placeholder definition, but you can create another calc view (scripted) as a wrapper to your original calc view and use a scalar variable to pass the parameter over.
    Try this as the base code for your second calc view:
    var_id VARCHAR(10);
    BEGIN
         SELECT CHECKLIST_ID INTO :var_id FROM "MyApp"."CHECKLIST_PRODUCTS" WHERE PRODUCT_ID = 5;
         var_out = SELECT * FROM "MyApp.calculation_views::GET_CHECKLIST_FOR_ACCOUNT"
              (PLACEHOLDER."$$ACOUNT_ID" => 1, PLACEHOLDER."$$CHECKLIST_ID$$" => :var_id);
    END
    You could even create input parameters in the second Calc View for the Account Id & Product Id (which are currently hard coded in your code below).
    Best,
    Henrique.
    PS: avoid using SELECT * for the var_out in the scripted calc view. It's better, from a code maintenance perspective, to explicitly define the columns you're outputting.

  • Errow with IF statement in Scripted Calculation view

    Hi Team,
    I am trying to use IF statement in Scripted Calculation view.
    My scenario is:-
    I need to create a restricted Key figure based on input date from user.
    While i am activating my view system gives "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: Syntax Error for calculated Attribute: line 29 col 9 (at pos 1501)" error.
    Below is the code i have used in my CV.
    CE_CALC('IF((to_int("BUDAT") >= to_int(2013-01-01),"AMOUNT",'''')', DECIMAL(13,2)) AS "DTR"
    Here, "AMOUNT" is another calculated field created using CE_CALC.
    Without above IF statement my CV runs perfectly fine. The moment i include IF statement it does not activate.
    Kindly provide your inputs.
    Thanks & Regards,
    Anup

    Hi Lars,
    I am extremely sorry about the confusion.
    There was an extra parenthesis in the IF statement which was not allowing the CV to be activated. CV is now successfully activated.
    But my data is not getting restricted correctly.
    It is showing 0 against all the records.
    Below is the sql used for calling the CV.
    SELECT * FROM "_SYS_BIC"."A_123/CV_SCR_BSID_BSAD_ITEMS" ('PLACEHOLDER' = ('$$Currency$$', '''Local'''),'PLACEHOLDER' = ('$$Date_From$$','2014-01-01' ), 'PLACEHOLDER' = ('$$Date_To$$','2014-06-30' ));
    Below is my updated CE_CALC function :-
    CE_CALC('IF(date("BUDAT") >= date(:Date_From) and date("BUDAT") <= date(:Date_To),"AMOUNT",0)', DECIMAL(13,2)) AS "DTR"
    Is there any issue while passing values here?
    Regards,
    Anup

Maybe you are looking for

  • How to make editable Table in LabVIEW

    Hi, Could you please let me know how can I make an editable table. I read all the contents of the table from a spreadsheet file but I would like when I click on any of the entries in the first column I get checkboxs for all the entries in that row an

  • Error when creating table (Document contains no data)

    Hi, I've installed htmldb 2.0 and after playing with it for a while, everything seems to be ok, except for table creation. No matter I use the sql command console or the object creation wizard, the situation is the same: i can arrive until the last c

  • Publicate a book at a specific group (not at public group)

    Hi, All! Could anybody help us? We have SAP BPC 10.0 NW and we create a book. It is working well and it is located at public group. How can we publication at a different group? Best Regards, Ana Teresa

  • Can I Change Photo/File Date In Photoshop Elements 2?

    Whenever I change the batteries in my digital camera I have to reset the time and date. Often I don't have time (or just forget) with the result that all the pictures have incorrect times and dates on them. This is NOT destroying my life but it is ir

  • Clean up memory Mac mini

    I am looking at my total capacity of memory, it sits at 74.21GB capacity.  I have 7.77GB available.  Problem is I can only account for maybe 40GB of memory based on photos, music, videos, doc's.  I found this by looking at my account name in PLACES o