Help in Calculation View

Hi Frzz,
Am trying to create a calulation view with two tables. After joining two tables i want the data in below format could you please guide me how to achieve this.
I tried doing it by creating calulated columns of different Status and performed join at each level. But it degrades the performance. Is there is any other way that i can ahieve this??
Table1:
EmployeeID
Name
EMP001
Ram
EMP002
Raj
EMP002
Rahul
Table2:
EmployeeID
Status
EMP001
Temporary
EMP002
Contract
EMP003
Permanent
Result:
EmployeeID
EmployeeName
Temporary
Contract
Permanent
EMP001
Ram
YES
NULL
NULL
EMP002
Raj
NULL
YES
NULL
EMP003
Rahul
NULL
NULL
YES
Best Regards,
Krishna.

Hi Krishna,
Even I have the same requirement in my project.
I tried in this way .
I took three projections and in each project I have created a calculated column with data type as interger and used if condition as below.
projection 1
if("STATUS" = 'Temporary', 1,0)
Projection2:
if("STATUS" = 'contract', 1,0)
Projection3:
if("STATUS" = 'Temporary', 1,0)
and then I used union
finally in sematics I took aggregation as sum for all these calculated colum values.
the output is as below.
did you get any other way to resolve it. please share.
see the structure as an attachement to this
Hope this resolves your issue.
Thankyou

Similar Messages

  • 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,

  • Out of memory Error while querying SQL Script based Calculation View

    Hi All,
    I wanted to test the performance of Graphical and SQL Script based Calculation views.
    Created Graphical (CA_GRPH) and SQL Script (CA_SQL) Calculation views.
    Analytic View (AN_GRPH) for both Calculation views are the same which is Graphical based (90 Attributes and 5 Measures)
    In Analytic View data foundation I have a Fact table which has 1.5 Billion records and 9 Dimension Tables –collectively 500 million records (7 Attribute Views). 9 Referential joins with cardinality N:1 and 1 Referential join with cardinality N:N.
    I wanted to keep (CA_GRPH) and (CA_SQL) as a base Calculation views and leverage those to create various calculation views (Will be creating different Calc views for respective Business segments)
    In order to test this I have created below calc views on top of base calc views.
    Graphical Based: Created (CA_GRAPH_XYZ) by having CA_GRPH in projection with 30 Calculated Columns. – This retrieves data in 13 secs
    SQL Script Based: Created (CA_GRPH_ABC) by having CA_SQL in projection view with 30 calculated columns – This errors out after 1.50 mins.
    Could not execute 'SELECT "COLUMN_A","COLUMN _B"," COLUMN _C"," COLUMN _D", SUM("COLUMN _REVENUE") AS ...' in 1:50.480 minutes .
    SAP DBTech JDBC: [2048]: column store error:  [2048] column store error: search table error: [1000002] Error executing physical plan: exception 1000002:
    ltt/impl/memory.cpp:63
    Out of memory ; $size$=1507711; $name$=ihm; $type$=pool; $inuse_count$=170104; $allocated_size$=219215007925
    exception 1000002:
    Any suggestion / help in fixing this issue will be greatly appreciated.
    Regards,
    Av

    Hi Raj,
    Thanks for your time, please find edited snap hot of Analytic View (AN_GRPH) below,
    Calculation view(CA_SQL)
            /********* Begin Procedure Script ************/
    BEGIN
           var_out =
         SELECT
                "COLUMN_1"
                "COLUMN_2",
                "COLUMN_84",
                "COLUMN_85;",
                SUM("REVN") AS "REVN",
                SUM("MGN") AS "MGN",
                SUM("ORD_QTY") AS "ORD_QTY",
                SUM("SYS_QTY1") AS "SYS_QTY1",
                SUM("SYS_QTY") AS "SYS_QTY"
    FROM
          "_SYS_BIC"."XYZ/AN_GRPH"
    GROUP BY
                "COLUMN_1"
                "COLUMN_2",
                "COLUMN_84",
                "COLUMN_85";
    END
    /********* End Procedure Script ************/
    Later i have built one more Calculation view(CA_GRPH_ABC) using (CA_SQL)in projection. i have 30 calculated measures in this final calc view. this final calc view is throwing above mentioned error.
    Not sure if i can use SQL script based calc view in graphical based calc views?
    Regards,
    AV

  • Getting Error while creating Calculation view.

    Hi Expert,
    I was trying to create one simple calculation view using SQL script but getting below error.
    /********* Begin Procedure Script ************/
    BEGIN
    create type var_out1 as table (ebeln varchar(10),menge decimal);
            var_out  = CE_COLUMN_TABLE ("SAPEH2"."EKKO",[EBELN,AEDAT] );
            var_out1 = CE_COLUMN_TABLE ("SAPEH2"."EKPO",[EBELN,MENGE] );
            var_out2 - CE_UNION_ALL (:var_out1,:var_out2);
    END
    /********* End Procedure Script ************/
    I thought , i might need to declare a table type for output table var_out1 and var_out2. I tried by declaring table like below couldn't get any success.
    create type var_out1 as table (ebeln varchar(10),menge decimal);
    create type var_out2 as table (ebeln varchar(10), aedat DATE ,menge decimal);
    error:
    Message :
         Internal deployment of object failed;Repository: Encountered an error in repository runtime extension;Internal Error:Deploy Calculation View: SQL: sql syntax error: CREATE TYPE is not allowed in SQLScript: line 5 col 2 (at pos 277)nSet Schema DDL statement: set schema "SAPEH2"nType DDL: create type "_SYS_BIC"."pkg-sapuser03.test_giri/CA_SALES1/proc/tabletype/VAR_OUT" as table ("EBELN" VARCHAR(10), "AEDAT" DATE, "MENGE" DECIMAL(13,3))nProcedure DDL: create procedure "_SYS_BIC"."pkg-sapuser03.test_giri/CA_SALES1/proc" ( OUT var_out "_SYS_BIC"."pkg-sapuser03.test_giri/CA_SALES1/proc/tabletype/VAR_OUT" ) language sqlscript sql security definer reads sql data as  n /********* Begin Procedure Script ***********/ n BEGIN n n create type var_out1 as table (ebeln varchar(10),menge decimal);n create type var_out2 as table (ebeln varchar(10), aedat DATE ,menge decimal);n n t   var_out  = CE_COLUMN_TABLE ("SAPEH2"."EKKO",[EBELN,AEDAT] );n t   var_out1 = CE_COLUMN_TABLE ("SAPEH2"."EKPO",[EBELN,MENGE] );n t   var_out2 - CE_UNION_ALL (:var_out1,:var_out2);nnEND /******** End Procedure Script ************/n
    Could you please help me to understand the cause of this?
    Thanks,
    Girdhari

    Hi Lars,
    Thanks for the reply.
    If i understood correctly , you are suggesting to create var_out1 and var_out2 in output ? If yes can you please guide me on how to do that? I tried but did not find anything suitable to declare table.
    Thanks,
    Girdhari

  • Invalid column Index error - While consuming Calculation view via Native SQL

    Hi Experts,
    I am trying to consume a Calculation view (sql script one) , which has input parameters, via Native SQL in a ABAP program .
    Code snippet for the same would be as follows , Upon execution, it throws an error "Invalid Column Index (8) error " . Can anyone help what could be the issue here ?
    Thanks in Advance,
    Suma
    REPORT ZTEST_HANA2.
    *Report to consume Calculation view (script based) from ABAP
    PARAMETERS: ip_docnr type BELNR_D,
                ip_gjahr type GJAHR,
                ip_bukrs type BUKRS,
                ip_blgr type FAGL_RLDNR.
       DATA: LO_SQL_STMT TYPE REF TO CL_SQL_STATEMENT,
              LO_CONN     TYPE REF TO CL_SQL_CONNECTION,
              LO_RESULT   TYPE REF TO CL_SQL_RESULT_SET,
              LV_SQL      TYPE STRING,
              LR_DATA     TYPE REF TO DATA.
        DATA: LX_SQL_EXC           TYPE REF TO CX_SQL_EXCEPTION,
              LT_SEPMAPPS_CLSDINV  TYPE TABLE OF SEPMAPPS_CLSDINV,
              LV_TEXT              TYPE STRING.
        TRY.
    lv_sql = |SELECT * FROM "_SYS_BIC"."DEMO-ABAP/CA_GET_FI_DATA" | &&
                     |WITH PARAMETERS ('placeholder'= ('$$p_DOCNR$$','{ ip_docnr }'),| &&
                      |'placeholder'=('$$p_GJAHR$$','{ ip_gjahr }')| &&
                      |,'placeholder'= ('$$S_BUKRS$$','{ ip_bukrs }')| &&
                      |,'placeholder'= ('$$p_base_ledger$$','{ ip_blgr }') )| .
             LO_CONN = CL_SQL_CONNECTION=>GET_CONNECTION( ).
             "Create an SQL statement to be executed via the connection
              LO_SQL_STMT = LO_CONN->CREATE_STATEMENT( ).
             "Execute the native SQL query
             LO_RESULT = LO_SQL_STMT->EXECUTE_QUERY( LV_SQL ).
             "Read the result into the internal table lt_sepmapps_clsdinv
             GET REFERENCE OF LT_SEPMAPPS_CLSDINV INTO LR_DATA.
             LO_RESULT->SET_PARAM_TABLE( LR_DATA ).
             LO_RESULT->NEXT_PACKAGE( ).
             LO_RESULT->CLOSE( ).
             LO_CONN->CLOSE( ).
        CATCH CX_SQL_EXCEPTION INTO LX_SQL_EXC.
             LV_TEXT = LX_SQL_EXC->GET_TEXT( ).
             MESSAGE LV_TEXT TYPE 'E'.
        ENDTRY.

    Hi Suma,
    Post the SQL you success run directly on Studio together with error message (even if is the Invalid column index error).
    Check there if the parameters case is working properly... Is it really this confusing options:
    p_GJAHR
    S_BUKRS
    p_base_ledger
    Why not all lower or all upper? Anyhow you must test and find which option works according your modeling
    Regards, Fernando Da Rós

  • Error in activating Sqlscript Calculation view - Data type mismatch

    Hi All,
    I am trying to create a Calculation view using sql script. When I try to activate the calculation view I get the below error., Could you please help.
    Error
    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: column store error: [34011] failed to save calculation scenario : The following errors occured: Inconsistent calculation model (34011)nDetails (Errors):n- CalculationNode (_ELECTION_ANALYTICAL_VIEW) -> attributes -> attribute (VOTE):
    Datatype int of VOTE does not match to datatype fixed18.0(9) in datasource.
    nnnSet Schema DDL statement: set schema "_SYS_BIC"nType DDL: create type "_SYS_BIC"."p1940328499trial.logesh.HanaElection/ELECTION_SQL_CA/proc/tabletype/VAR_OUT" as table ("VOTE" INTEGER, "NAME_1" VARCHAR(250), "NAME_4" VARCHAR(250))nProcedure DDL: create procedure "_SYS_BIC"."p1940328499trial.logesh.HanaElection/ELECTION_SQL_CA/proc" ( OUT var_out "_SYS_BIC"."p1940328499trial.logesh.HanaElection/ELECTION_SQL_CA/proc/tabletype/VAR_OUT" ) language sqlscript sql security definer reads sql data as  n /********* Begin Procedure Script ************/ n BEGIN n n election_analytical_view = CE_OLAP_VIEW("_SYS_BIC"."p1940328499trial.logesh.HanaElection/ELECTION_RESULTS_ANA",[VOTE,NAME,NAME_1,NAME_3,NAME_4]);n n var_out = CE_PROJECTION(:election_analytical_view,[VOTE,NAME_1,NAME_4]);nnnnEND /********* End Procedure Script ************/n
    SQL Script
    /********* Begin Procedure Script ************/
    BEGIN
    election_analytical_view = CE_OLAP_VIEW("_SYS_BIC"."p1940328499trial.logesh.HanaElection/ELECTION_RESULTS_ANA",[VOTE,NAME,NAME_1,NAME_3,NAME_4]);
    var_out = CE_PROJECTION(:election_analytical_view,[VOTE,NAME_1,NAME_4]);
    END /********* End Procedure Script ************/

    Hi Logesh,
    You have to use at least one aggregation while using CE_OLAP_VIEW. You can not use the same with out aggregation of at least on of the available measures .
    page 96 of SQL Script reference says
    Note you must have at least one <aggregation_exp> in the attributes.
    where
    <aggregate_exp> ::= <aggregate_func>(<aggregate_column> [AS <column_alias>])
    Specifies the required aggregation expression for the key figure.
    <aggregate_func> ::= COUNT | SUM | MIN | MAX
    Specifies the aggregation function to use. Supported aggregation functions are:
    ●count("column")
    ●sum("column")
    ●min("column")
    ●max("column")
    Sreehari

  • Error in activating Calculation view

    Hi Gurus,
    Please help me in resolving this issue below as I get an error when activating calculation view.
    Internal deployment of object failed;Repository: Encountered an error in repository runtime extension;Internal Error:Unable to create hierarchy view: CREATE COLUMN VIEW
              SQL: transaction rolled back by an internal error: identifier is too long: the identifer
              description" is too long. Maximum length is 127:
    I have checked all content related to this error but not able to find a solution.
    Please advise

    Though your calc view name could be small, the 'fully qualified' calculation view name could be bigger than 127 character.
    Fully Qualified name = <packagename.packagename.packagename.....>/<calc view name>
    For each calc view that you activate, HANA internally creates more than one column views (based on your attributes) which are found under the _SYS_BIC schema and there it will fail if the column view name is exceeding 127 characters.
    Solution: make sure the fully qualified name is not too big
    Regards,
    Sesh

  • 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.

  • Using Hierarchy in Calculation View

    Hi guys,
    Can any one let me know the importance of Hierachy in the Calculation View.
    I have created a Hierachy with the Hierachy type as Level Hierarchy and have set the elements manually in it.
    I dont see any changes in the resultant data. Preview of data is as such similar to that when i was not using the Hierachy level.
    Can any one guide me in this!!
    Thanks and regards
    Sanjay

    You wil not find any difference in the "Data Preview".
    Tools like Excel or Analysis office will help you to see the difference
    Regards,
    Krishna Tangudu

  • 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

  • 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

  • View Calculation view of ECC in SAP BW on HANA Server

    Hello All,
    I have a question
    1. We have SAP BW powered by HANA
    2. We have ECC System which is also powered by HANA
    3. We have HANA Studio installed on our desktop
    4. Lets say I have connected to ECC Data Base VUA HANA studio and created Calculation Views.
    5. Now when I logon to BW server I want the calculation VIew to be exposed to BW
    what are the steps to establish connection between BW and HANA
    how can I see the Calculation view created VIA Hana Studio in ECC Hana Database in BW Server
    My requirement it I will upload all master data in BW and then Calculation view created in ECC will need to be exposed to BW on HANA server then link this Calculation View to Master Data in BW Via Composite Provider and then use this for reporting.
    Please suggest possible ways by which by which I can see the calculation views created VIA HANA Studio on ECC HANA Data base.
    Regards,
    Sachin

    Hi Sachin,
    You have my Role model & hero's name I will definitely help you out ...
    To repeat your question..
    You have ECC on HANA and also BW on HANA
    ECC and BW cannot coexists on single HANA box as of today. So in your landscape you might be having two HANA boxes ,one connecting to ECC and other to BW.
    Now your question is you want to bring the Calculation view build on ECC HANA box to BW  HANA box. Check the steps below to achieve the same.
    1) if you have already build a calculation view in ECC HANA box then export the Calculation view  .
    2) Connect the two HANA box via SLT and replicate all the tables that is required for the calculation view.
    3) Once the tables are replicated   then import the Calculation view that is exported earlier.
    4) Now the calculation view is in BW on HANA box. Now its possible to build a composite provider by combining the BW master data and ECC transaction data calculation view.
    If you don't want to use SLT then use SDA option to virtualize all the required tables and rebuild the calculation view again on these virtual tables.
    Hope this answers your question.
    Thanks & Regards
      A.Dinesh

  • Filters from BW in HANA Calculation View

    Hi, Gurus!
    We start using HANA modeling and faced with some issues in filtering. Hope someone can help us, maybe anybody faced with same error and give us they expirience.
    Well, we have following model
    On this model we create Virtual Cube in BW. All objects mapped.
    So, when we try to open query for 1 day, or for 1 month, or even for 1 quarter time of execution the same. Of course in simple models (one analytic view on them projection and after aggregation) this situation not occurred.
    We tried to find some information about this case, but all in vain. As we think filter from BEX Query or ABAP cube preview must transfer to all objects in calculation view but in fact, we fully sure about it, block 1 (look at picture above) not limited...
    Maybe this happen because our usage this block (type of join, or maybe characteristics which joined) :
    So any help about how to understand this behaviour of system, or how correctly create CALC View to using all filters from BEX, or how debug in HANA call of CALC view from BEX, will be very useful!
    Thanks in advance!
    Best regard,
    Alex

    I'm not sure I understand your question, but I think you are saying that your execution time is the same for any query, even if you filter heavily.
    This can be the case if you join between two fact tables. Avoid this by using Attribute Views or a Union with Constant Values.

  • 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.

  • 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.

Maybe you are looking for

  • Issue with Bootcamp 5.0 and Windows 7: Ultimate 64-Bit Install

    HERE are the specifications of my iMac. I am trying to install Windows 7 Ultimate 64x on a 150GB partition i created using bootcamp 5.0.  I get to the point where it finalizes the windows setup, and then it says "Setup Up Desktop for first use" or so

  • UWL - open item in new window

    Hi guys! If I click any UWL item I want it to be opened in new window and not in the main portal window. How to achieve this? Thanx for answer! Olian

  • Hours assigned to a resource are not showed in CAT2

    Hi, We have configured cproject in order to hours are entered by CAT2. When a employee assigned to a task enter in CAT2 see this task-WBS in his worklist ( this works OK), The problem we have found is hours assigned in cproject are not being retrieve

  • See burger EDI adapter (X12) functionalities

    Hi All, We are a consumer products company and have See burger EDI adapter (X12) implemented in XI IE. Could anyone tell me about the standard software components and mapping which comes along with the see burger adapter components, and how to custom

  • BI - XI Integration

    Dear All, Can we transfer data of a DataCube in BI System to another DataCube in another BI System with the help of PI? If yes, then how can we do it and is it beneficial? Regards