Using Variable in SAP HANA

Hi experts,
in the past I´ve been using Input Parameters a lot and I was very satisfied with stuff like Mapping them for filter push down and so on. Due the fact, that I´m using Cognos BI as a frontend, I switched to Variables, because the SQL synthax is easier to handle.
If I´m using the Variable on several fields and checking the Mandatory box, all works fine in the Data Preview of HANA Studio. The Calc View won´t show any data, if I do not fill out the prompt of the Variable.
If I´m using a SQL statement (SELECT *) within the editor on the corresponding Column View in SYS_BIC, the query is still running, although the VARIABLE is mandatory.
Is there anything that needs to be considered? Data Source of the Calc View is an Analytic View.
Best regards, Christoph.

Hi,
After you created that variable as mentioned above, did you apply this variable on your LAND1 attribute.
How: Open Analytic View --> on right-side you see the attributes,measures etc. >right click on 'LAND1' and select>
'Apply Filter'--> In the drop-down  select your created variable and activate.
I assume the above should resolve your issue. Please let me know if it helps.
Revision: I mean the HANA version you are using.
Regards, Rahul

Similar Messages

  • How to use Variable in SAP HANA Information Modeller?

    Hello Folks,
    I have created a variable in Information modeller of SAP HANA Studio on top of an Analytical view (Regional Sales).  This variable is SingleValue (Multiple Value Selections).  This variable should prompt me the name of Country/Regions but somehow this is not working when I am using data preview and Analysis tab of data preview.
    Could you please enlight me where I am going wrong? or Let me know if is there any other forum for this.
    P.S : I am using SAP HANA studio on Cloud.
    Regards
    Muffazzal Fani

    Hi,
    After you created that variable as mentioned above, did you apply this variable on your LAND1 attribute.
    How: Open Analytic View --> on right-side you see the attributes,measures etc. >right click on 'LAND1' and select>
    'Apply Filter'--> In the drop-down  select your created variable and activate.
    I assume the above should resolve your issue. Please let me know if it helps.
    Revision: I mean the HANA version you are using.
    Regards, Rahul

  • How can I create geographic charts with Lumira connected to SAP HANA?

    Hello All
    I'm testing SAP Lumira and I want to make geographic charts with data from SAP HANA. This is possible when I use data from a local Excel-file. But not when I use data from SAP HANA. I was told it should work after installing Service Pack 8. But it still doesn't work. Maybe we have to turn something on, change a configuration file. Maybe it has to do with SAP Lumira, not with SAP HANA. Any help is greatly appreciated.
    Here are some technical details:
    SAP HANA Version: 1.00.81.00.392776 (NewDB100_REL).
    SAP Lumira Version: 1.19.0 (build 1099) (latest version).
    SAP HANA Studio Version: 1.00.81.0.
    Windows Version: Windows 7 Enterprise, Service Pack 1.
    Kind regards, Robbert

    Hello Antoine
    At paragraph 3.2.2 on page 73 it says:
    Creating geography hierarchies with latitude and longitude data is not currently supported for SAP HANA data sources.
    I think this explains everything. Well, almost everything. I created geographic charts with Lumira while connected with Excel or a csv-file. The question now is, am I waiting for an update of SAP Lumira or an update of SAP HANA? Or both?
    Kind regards, Robbert

  • SAP PI: Using Variable Header  Binding in Receiver Mail Adapter

    Hello,
    I try to use Variable Header Bindings in the Receiver Mail Adapter. Therefore I wrote the following User-Defined-Function in a mapping:
    Java Function Start -
    DynamicConfiguration conf = (DynamicConfiguration) container
        .getTransformationParameters()
        .get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key1 = DynamicConfigurationKey.create(
        "http://sap.com/xi/XI/System/Mail",
        "XHeaderName1");
    DynamicConfigurationKey key2 = DynamicConfigurationKey.create(
        "http://sap.com/xi/XI/System/Mail",
        "XHeaderName2");
    DynamicConfigurationKey key3 = DynamicConfigurationKey.create(
        "http://sap.com/xi/XI/System/Mail",
        "XHeaderName3");
    conf.put(key1, new String("Test1"));
    conf.put(key2, new String("Test2"));
    conf.put(key3, new String("Test3"));
    Java Function End -
    As expected I see the Attributes and Parameters in the Dynamic Configuration in the SAP XI Monitor:
    Dynamic Configuration Informattion Start -
      <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Mapping der Request-Message
      -->
    - <SAP:DynamicConfiguration xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
      <SAP:Record namespace="http://sap.com/xi/XI/System/Mail" name="XHeaderName3">Test3</SAP:Record>
      <SAP:Record namespace="http://sap.com/xi/XI/System/Mail" name="XHeaderName2">Test2</SAP:Record>
      <SAP:Record namespace="http://sap.com/xi/XI/System/Mail" name="XHeaderName1">Test1</SAP:Record>
      </SAP:DynamicConfiguration>
    Dynamic Configuration Informattion End -
    Now I configure my Receiver eMail Communication Channel and set the Variable Header Fields as follows:
       Adapter Specific Attributes: Checked
       Variable Transport Binding: Checked
       Variable Header (XHeaderName1): TSender
       Variable Header (XHeaderName2): TReceiver
       Variable Header (XHeaderName3): TOther
    With this configuration I would have expected three new Header fields in the Header of the eMail, the reicever gets. But they are not there.
    When I set standard attributes like THeaderTO, THeaderSubject a.s.o this works fine and the values are also set accordingly. Where it the mistake here?
    The PI version we are working with is PI 7.0 SP10.
    Your help will be highly appreciated.
    Thank you,
    Steffen

    Hi Luciana,
    Honestly, I cant really remember how or if it was resolved and I was just helping out on the issue, but another consultant continued with it, so unfortunately I cant be any help on this.
    Good luck!
    Cheers,
    Brad

  • Which programming is used in SAP HANA? confused b/w ABAp or java?

    Can anyone just tell me As a programmer in which language i have to work on SAp HANA

    Hi Jagaa,
    that really depends on what you'd like to do. But a brief answer:
    a) If you develop ABAP applications - use ABAP (as for other databases) and Open SQL / CDS, and if additional HANA functionality is needed maybe a bit of native SQL (ADBC or ABAP Managed DB Procedures).
    b) If you develop natively on the database please contact the experts on SAP HANA Developer Center.
    Cheers,
    Jasmin

  • Use cases for the SAP HANA Appliance for SAP FI-Accts.Payable

    Hello SAP HANA friends:
    Are there any compelling use cases for the SAP HANA Appliance for SAP FI-AP Accounts Payable module?
    CO-PA and CRM have many immediate use cases, but I'm looking for the use case for Accounts Payable,
    either from a cash flow perspective or performance.
    Any and all comments are appreciated.
    Regards,
    Joe Gonzales
    856 912 1136

    Hi,
    In SQL console please execute below query .
    GRANT SELECT ON SCHEMA <schema Name> TO "_SYS_REPO";
    BR
    Sumeet

  • I want to connect SAP HANA database (Default database) using JDBC connection URL.

    I am using trial account .at sap cloud server.
    What will be my URL of SAP HANA database for Trail account.
    For ex:
    java.sql.Connection conn= java.sql.DriverManager.getConnection("jdbc:sap://<YOUR SAP HANA IP>:host","<YOUR SAP HANA USER>","<YOUR PASSWORD>");
    I had User and password but what supposed to be used in place of IP and Host ?

    Thanks .But iwant to use like this ..and below properties are not working
    repliesd as connectin refused -813
    please help onthis
    <bean id="dataSource"
          class="org.springframework.jdbc.datasource.DriverManagerDataSource">
          <property name="driverClassName" value="com.sap.db.jdbc.Driver"/>
          <property name="url" value="jdbc:sap://localhost:30015/?currrentschema=TestSchema" />
          <property name="username" value="p1940828544"/>
          <property name="password" value="[email protected]"/>
       </bean>

  • How ADBC connection is benefits by using SAP HANA as secondary database ?

    Hi,
    I have one more important question.
    How ADBC connection is benefits by using SAP HANA as secondary database in terms of performance wise for the access of data from HANA database as a secondary database.
    I have 2 options and which is better for the good performance for accessing the data-
    1 .  In ABAP Reports in the SELECT statements by using CONNECTION (“HDB”) will this improve the
         performance.
          e.g : select * from BSEG into TABLE IT_TAB CONNECTION (“HDB”).
    2. Will Create the Stored procedure in HANA studio and Call
       from ABAP as below by using NATIVE SQL–
         EXEC SQL
          SET CONNECTION (‘HDB’).
         ENDEXEC.
        EXEC SQL.
          EXECUTE PROCEDURE proc (IN    p_in1                       
                                 OUT   p_out1   OUT   p_out2 )
       ENDEXEC.
    Regards,
    Pravin
    Message was edited by: Jens Weiler
    Branched from http://scn.sap.com/thread/3498161

    Hi Pravin,
    Option 1: In this case ADBC might even worsen the performance due to the overhead in the ADBC framework. OpenSQL is the method to go here, as OpenSQL - from the ABAP point of view - features the optimal communication with the database while ADBC has overhead like constructor-calls for the statement, parameter binding, etc.
    Option 2: In this case ADBC is comparable with EXEC SQL but features more options, e.g. clean concept of multiple connection (connection objects via CL_SQL_CONNECTION), exception handling, etc. So I strongly propose to favour ADBC over EXEC SQL, but not simply for performance reasons. You might have a look at the ABAP Language Help in your system on more information on ADBC and the advantages over Exec SQL.
    Cheers,
      Jasmin

  • Benefits/ Limitations when we use  SAP HANA Extended and Standard products.

    Hi All,
    We are going to purchase SAP HANA media. Please let me know what are the benefits/ limitations when we use  SAP HANA Extended and Standard products.
    Thanks in Advance,
    Vishall

    Hello,
    please check Master Guide (page 9 - chapter 1.6 Software Components)
    https://service.sap.com/~sapidb/011000358700000604552011
    There you can find edition comparison and detailed description.
    To extract the short summary:
    Platform edition = SAP HANA Database + Studio + Client + Host Agent + Information Composer
    Enterprise edition = (Platform edition) + LT Replication Add-on (SLT) + LT Replication Server (SLT) + SAP BO Data Services
    Enterprise extended edition = (Enterprise edition) + Sybase Adaptive Server Enterprise + Sybase Replication Server + Sybase Replication Server Agent + SAP HANA load controller
    It depends on what licenses you already have and how do you intends to use HANA.
    Platform edition = ETL via BO Data Services (you already have license for BO Data Services)
    Enterprise edition = SLT and/or BO Data Services (including licenses)
    Enterprise extended edition = all replication technologies
    Tomas

  • How to connect to SAP HANA Trial Instance using ODBC

    Hi,
    I am a newbie to SAP HANA. I have a trial account and have created a new SAP HANA instance using it. I have also installed the HANA Client Tool(Dev edition). I wanted to create a ASP.NET application to consume HANA database on trial instance. Creating ODBC connection requries server:port that are not available in case of trial instance. Can this be done ?
    Instead can I create a Java application that consumes HANA database on trial instance using JDBC ?
    Need an answer ASAP. Thanking you in advance.
    Bhavya

    Hi Vladimir,
    I am trying to connect to an HCP system from outside java code using JDBC.
    I could not find out how what will be the jdbc url and how to get that port no.
    Say for example the cloud system is https://account.hanatrial.ondemand.com/ and instance no is xyz. then waht would be the jdbc url?
    "jdbc:sap://xyz.hanatrial.ondemand.com:30015/"   - this is not working.
    Regards,
    Raja

  • Can SAP HANA be used with SAP LVM to provision customised copies of SAP systems within 24 hours?

    I have a requirement to automate the provisioning of new and 'copies of' SAP systems (development and QA environments) within 24 hours.
    New systems created - based on a template (e.g. an existing SAP Portal, ECC or BW system)
    New systems should have unique SID's
    RFC's, IDOC's, printers, profiles, e-mail, etc. all needs to be customisable in each new SAP system
    The systems need to be shut down overnight (to save on running costs)
    Is this possible with a combination of SAP HANA and SAP LVM?

    Hi
    SAP HANA in LVM will be doable in the near LVM 2.0 latest SP  which will come out probably around after october 14 but stay tune as the date might be pushed little due to development changes.
    AFAIK from your questions some of the features will support and some already in LVM today.
    New systems created - based on a template (e.g. an existing SAP Portal, ECC or BW system) - BSuite on HANA will be supported.
    New systems should have unique SID's - LVM use cases such as COPY, CLONE, RENAME will be supported.
    RFC's, IDOC's, printers, profiles, e-mail, etc. all needs to be customisable in each new SAP system. Not sure but Post Copy Automation should allow to do this..
    The systems need to be shut down overnight (to save on running costs). All VM operations such as power off, power on will be normal as long as you configure VCENTER in LVM.
    BR,
    Rushi.

  • SAP HANA rev 82 update using hdblcmgui or LCM in studio?

    Hi All,
    I am updating sap hana to revision 82 from revisoin 81. SAP has suggested to use hdblcmgui for update and LCM in studio is depricated from SPS8.
    Using hdblcmgui I dont see an option to upgrade.
    SAP displays a note on LCM, suggesting hdblcm, but the update is option is not disabled.
    Can I continue to update using LCM or how to upgrade using hdblcmgui?
    Please suggest
    Regards,
    Raj

    Hi Stanimir,
       Yes the IP associated in AWS console was still the same.Now I've terminated the instance since it was halting our development activity.We are using the trail version of HANA rev 72, at any point of time we can't bring in more than one instance through CAL so we have terminated the corrupted instance and recreated a new instance to proceed further.
    But this is really strange behaviour and curious to know, if some else has faced this problem. Unfortunately i couldn't hold the corrupted instance to debug further.
    Thanks.
    Siva.

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

  • Cannot use SAP HANA Studio with SAP HANA One Instance

    Hello together,
    i try to make some tests in the SAP HANA environment. But i got the following error message each time:
    An internal error occurred during: "Updating system 'HDB' ...".
    java.lang.NullPointerException
      at com.sap.ndb.studio.datamodel.manager.SAPSystemState.isThereAtLeastOneIndexserverProcessWithStateColor(SAPSystemState.java:44)
      at com.sap.ndb.studio.navigator.operations.SAPSystemObjectUpdate.execute(SAPSystemObjectUpdate.java:76)
      at com.sap.ndb.studio.navigator.operations.UpdateSAPSystemOperation.execute(UpdateSAPSystemOperation.java:70)
      at com.sap.ndb.studio.datamodel.controler.DataModelOperationJob.run(DataModelOperationJob.java:70)
      at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
    I often read about different SAP HANA One and SAP HANA Studio versions.
    Following information about the versions:
    Studio: Version: 1.0.52
    Hana One Instance 52.1
    What could be the reason for getting this error message? I hope you can help me.
    Thanks in advance.
    CT

    Hi Nicky,
    As per my knowledge, there is no separate licensing required for HANA studio. License for HANA d/b or Enterprise HANA license is sufficient.
    Installation of HANA studio will not ask for any licenses.
    Regards,
    Suma

  • SAP HANA Input parameters in SAP BO Analysis

    Hi, dear experts.
    Please help me with one problem in SAP BO Analysis. Problem is: in sap hana studio i made calculation view that has some input parameters (Param. type - Direct, Sematic Type - Date, Data type - Date). Then i made filter with this parameters in one of projection of my calculation view. When i push data preview in Hana Studio all input parameters are ready to input and they also have "Value help dialog". All is great! SAP HANA Studio version is 1.0.7000 (Build id: 386119). HANA DB version is 1.00.70.00.386119.
    On workstation i installed SAP BO Analysis edition for Microsoft Office 32-bit and driver for SAP HANA 70 Client Win32, made ODBC connection to HANA server. From SAP BO Analysis I found my view and started it. I see my input parameters, and see "value help dialog", but i can't choose value: it's not available for input. Here is the problem: what i have to do to enter the parameters?
    I also try to use variable but value help dialog is empty. Please help me with this issue.
    Message was edited by: Tom Flanagan

    Hello Andrei,
    Tested on:
    HANA Rev 70
    Have tested for variables and the value help is coming.
    Regards,
    Krishna Tangudu

Maybe you are looking for

  • Un-confuse me: sharing images with other apps.

    Hi. I've gotten flummoxed (not unheard of) now that I'm using some of my images in other apps. I would like to understand all of the options/behaviors for moving images from Aperture to other apps. My confusion comes from at least three things . in A

  • IMac constantly Freeze while watching Youtube or Flash-based clip

    Hi everyone It is really getting on my nerves every time that I was watching Youtube or Website using Flash, the machine crashes and crashes and crashes!!!! I did the Hardware Test and it didn't find any problem with Hardware. I used the installation

  • Encoding types in PI

    Hello, Please help to understand how PI 7.1 treats different encoding formats eg ANSCI ect or how it handels properity chacters coming in messages? If PI 7.1 has started supported other encoding formats along with UTF - 8. I have seen many encoding t

  • New Masters vs. New Versions

    OK, I understand that when you choose to edit a file in an external editor, Aperture creates a new master file, therefore the file you edit in Photoshop loses its association with the version from which it was originally created. But when you then ed

  • CRXI R2 - FP 6.2

    Hi, I have CRXI R2 SP6 (Designer IDE also installed) installed on my machine and I need to install the FP 6.2 (Some fixes included in this FP are important for me). As there are only : - Crystal Reports XI Release 2 - FP 6.2 RDC Merge Modules - Cryst