How to use Alias name in OData service in SAP HANA

Hi,
     I need to change one column name with alias of another name in odata service definition or odata url running in rest client. I am trying to give alias name with as key in the service definition like sql query.
ex:
There is one table with column name of PRODUCT_ID. I exporting that table via odata service to SAP UI. In the UI i dont want the product id column as PRODUCT_ID. It should be ike "Prodcut". Like we are using in SQL example
select "PRODUCT_ID" as "Product" from "producttab";
But i can't use as key for alias name. So i am getting syntax error.
I have tried in rest client also ie executing odata file in rest based service. But i got error only.
If anyone knows about this alias name in odata service, Please help me to resolve this issue..

Hi Thomas
     Thanks for your reply.
     Actually in odata service definition i am using attribute and calculation views only. But in some case from the model view itself i need to use some alias names to the UI through odata service.
     For example in attribute view i have some columns with name col1,col2... I am getting those columns in UI using  odata service, for particular col2 column i need to change column name as product. And i am using the same view as source of another odata service in that service i need to change that column name as productname.
     In that case i need alias name usage. So that only i am searching alias keyword in odata service.
     Is there any possibility to use alias names in odata service.

Similar Messages

  • How to use alias name in where clause

    Hello,
    DECODE (item.inv_type,'OT', (DECODE (item.attribute2, 'STONE', 0, xfer.release_quantity1 * xfer.attribute10)
    'FG', (xfer.release_quantity1 * xfer.attribute10)
    ) matl_val
    In the above code matl_val is alias name i need to use that one in where clause as
    where matl_val > 0
    is this possible or anyother way can anyone help me.

    But the point is as you haven't read the documentation you may miss some valuable points about alias and will soon end with another problem.
    >
    Specify an alias for the column expression. Oracle Database will use this alias in the column heading of the result set. The AS keyword is optional. The alias effectively renames the select list item for the duration of the query. The alias can be used in the order_by_clause but not other clauses in the query.
    >
    http://download.oracle.com/docs/cd/E11882_01/server.112/e10592/statements_10002.htm#SQLRF01702

  • How to use Tree control like a Tree in SAP HANA Live Browser?

    Hello SDN!
    I need a Tree control such as following:
    As I understand, there is no such standard control in SAPUI5 control library. Is it possible to use this control? If yes, how I can embed it in my app?
    Regards,
    Lev

    Hi Sandip!
    Thanks for your tip. I've applied this example to my app. Tree is working now, but this is a little problem - on each expand/collapse and click on treeItem the onAfterRendering() method called. It means that the complete rerender of tree executed which looks not good. How I can avoid this?
    Lev

  • How to specify alias name in system property while making 2way SSL con ?

    Hi All,
    I am tring to run a java client with 2way SSL which uses CAC card as keystore for the client. I have addded the following system property in my client program to make it work and change the java.security file to add pcks11 provider.
    System.setProperty("javax.net.ssl.keyStoreType", "pkcs11");
    System.setProperty("javax.net.debug", "ssl");
    The program works fine and handshake is successfully done . But the problem is when i have more than one trusted certificate in the CAC card, it take a default certificate. I want to specify the certificate that should be used to do the client auth maybe specify the alias name . I didnt find any system property to do so.
    Please let me know how to specify alias name as system property so that the 2way SSL used the specified alias for the client auth or is there any other way to specify the alias name. As in case i acccess the server URL from any browser i get a certificate selection prompt and the connection is established with the selected certificate.
    Thanks in advanced,
    Ruhul

    I didn't find any system property to do so.There isn't one.
    Please let me know how to specify alias name as system propertyYou can't.
    You would have to write a custom KeyManager. See the JSSE Reference Guide.

  • How to get alias name of stored certificate from iKey token 2032

    Hi All,
    Below is my code woks well to use the same keypair for both encrypt/decryprt-SunPKCS#11 in SDK1.5. In my code i hard coded alias name of certificate, kindly tell me how to read alias name of certificate from iKey token 2032??
    import java.io.*;
    import java.util.*;
    import java.lang.*;
    import java.sql.*;
    import java.text.*;
    import java.math.*;
    import java.security.*;
    import java.security.cert.*;
    import java.security.interfaces.*;
    import javax.crypto.interfaces.*;
    import javax.net.ssl.*;
    import javax.crypto.*;
    import javax.crypto.spec.DESKeySpec;
    import java.security.KeyStore.*;
    public class Encrypt
    public Encrypt(){}
    public void loginToken() {
    Provider p = new sun.security.pkcs11.SunPKCS11(MQConfig.getvalue("SecurityPropertyPath"));
    String myAlias = "349eefd1-845b-4ba4-9f88-06e9f5cb82f6";
    /** to view alias name
    keytool -list -v -keystore NONE -storetype PKCS11 -storepass PASSWORD
    Security.addProvider(p);
    KeyStore ks = null;
    PrivateKey privKey = null;
    PublicKey pubKey = null;
    try{
    String password = General.ReadFiles(MQConfig.getvalue("logFilePath"),"Simple");
    password = password.trim();
    char pin[] = password.toCharArray();
    ks = KeyStore.getInstance("pkcs11");
    ks.load(null,pin);
    java.security.cert.Certificate cert = ks.getCertificate(myAlias);
    Key key = ks.getKey(myAlias, pin);
    if(PrivateKey.class.isInstance(key)) {
    privKey = (PrivateKey)key;
    pubKey = cert.getPublicKey();
    FileInputStream in = new FileInputStream("C:\\ReportDBBE.properties");
    FileOutputStream out = new FileOutputStream("C:\\ReportDBAE.properties");
    Cipher cp=Cipher.getInstance("RSA/ECB/PKCS1Padding", p);
    cp.init(cp.ENCRYPT_MODE,pubKey);
    CipherOutputStream cout=new CipherOutputStream(out,cp);
    byte[] input=new byte[8];
    int byteread=in.read(input);
    while(byteread!=-1){
    cout.write(input,0,byteread);
    byteread=in.read(input);
    cout.flush();
    in.close();
    cout.close();
    catch(NoSuchAlgorithmException nsae)
    System.out.println("No Such Algorithm Exception " + nsae.getMessage());
    catch(NoSuchPaddingException nspe)
    System.out.println("No Such Padding Exception " + nspe.getMessage());
    catch(InvalidKeyException ike)
    System.out.println("Invalid Key Exception " + ike.getMessage());
    ike.printStackTrace();
    catch(IllegalStateException ise)
    System.out.println("Illegal State Exception " + ise.getMessage());
    catch(KeyStoreException kse)
    System.out.println("Key Store Exception " + kse.getMessage());
    catch(CertificateException ce)
    System.out.println("Certificate Exception " + ce.getMessage());
    catch(IOException ioe)
    System.out.println("IO Exception " + ioe.getMessage());
    catch(UnrecoverableKeyException unrke)
    System.out.println("Unrecoverable Key Exception " + unrke.getMessage());
    public static void main (String args[]) throws Exception {
    try{
    Encrypt tl = new Encrypt();
    tl.loginToken();
    }catch(Exception e){
    e.printStackTrace();
    Your help is very much appreciated!!!!

    Hi All,
    Now i managed to get alias name.
              char pin[] = password.toCharArray();
              ks = KeyStore.getInstance("pkcs11");
              ks.load(null,pin);
    Enumeration ea = ks.aliases();
              while(ea.hasMoreElements()) {
              myAlias = (String)ea.nextElement();
              }

  • Using alias name from view

    Can I create somehow a view like this one:
    CREATE VIEW clerk_view AS
       SELECT employee_id as ei, last_name as ln, department_id as di
       FROM employees
       WHERE job_id = 'PU_CLERK' ;and using this view with aliases, e.g.:
    select * from clerk_view where ln = 'Mickey';
    My Oracle database version is 11.2.0.3
    Best.

    Hi,
    lesak wrote:
    So can you tell me what I'm missing in above CREATE statement? Sorry, no, not without knowing exactly what you're doing. That's why you need to post a complete test script that people can run to re-create the problem. Except for the identifier LN, there's nothing wrong with the code you posted per se , but there could be millions of things wrong with how how you're trying to use it. Even if I could post millions of suggestions, you wouldn';t want to read them all, just to fond the one or two that apply to your case. So way exactly what your case is. Post a complete test script that creates and populates the table (if necessay), calls the view, tries to use the view, and gets the error.
    When I create view in the same way in production and use alias name, I've got following error: ORA-00904. Not everyone who wants to help you has all the error codes memorized. That's why you should post the complete error message.
    So Oracle don't know that my employee_id or other column have also alias name?!Sure, it will know the alias name. That's exactly what aliases are for.

  • Help me!    How to use it as a web service from third party application?

    After using JDeveloper to develop BSSV object e.g. JP550010, how to use it as a web service from third party application?
    TKS!

    Obviously the OP is working on a project for the Bead Society of Southeastern Virginia http://www.bssv.org. Oh, wait, maybe he's researching the Blueberry Shoestring Plant Virus http://abbreviations.yourdictionary.com/bssv
    :D
    John

  • How to setup database trace on odata service

    I have found two discussion which mention that we have to setup database trace but how is the question? if some one can please help me out step by step  setting up the trace on odata service, links are as follows
    Manage multi-table insert using OData Service
    Where can I see logs of OData Service usage?
    in aforesaid discussion they have said plz give path to xsa:<package path> but when i go to database trace config there is no option where i can give the path so please help...

    In the database trace / trace configuration dialog: first be sure to check Show All Components.  Then in the input box at the top of the dialog type xsa:<your package>.  You can type just a partial package name as well and the search will find all matches.

  • How to use multiple name-adresses pairs in Mail?

    Hello there,
    I had to format my machine due to a RAM glitch, and forgot how this was done.
    On the same email account, I want to use different names-addresses pairs (Alias), not just adresses (that is easy to do). I know it involves the edition of com.apple.mail.plist with a specialized editor (I started with Pref Setter, but it doesn't seem to be working properly as one item can't be renamed) since it is not in clear text anymore, but I can't succeed.
    Can anyone detail what is implied by this change?

    Thanks Abishek for your reply. 
    The problem is about passing 2 array list objects. 
    I have already done your proposal and the problem is you have both array list object with same value.
    My requirement is,
       I want to have ArrayList variables arrayList1  and arrayList2. Each will be populated with corresponding values based on the Rules fired.
    For. eg. Rule1 fires and adds "Value1" to arrayList1. Rule2 fires and adds "Value2" to arrayList2.
    I guess, this is not possible with default behaviour. Only Custom Helper Class can help.
    However I solved the problem in a different way. I created a schema which supports repeating nodes. Also I created a Helper class to Add Node to the document.
    <Test>
          <RepeatingNodes1><Node></Node><Node></Node>.......</RepeatingNodes1>
          <RepeatingNodes2><Node></Node><Node></Node>.......</RepeatingNodes2>
    </Test>
    Using the helper class, I add as many nodes possible.
    thanks

  • How to use alias in "From" field when I send a mail with utl_smtp ?

    Hi all,
    I'm using a PL/SQL package with an Oracle 11G database to send mails. It works fine but instead of use of my mail in "From" field like "[email protected]" as sender E-mail address, I would like to have "Toto" in the sender address. I tryied to use utl_smtp.mail(l_connection, '<toto> [email protected]') but it doesn't work. The only way I can send mail is when I set utl_smtp.mail(l_connection, '<[email protected]>') directly. When I use the Alias, I have an error from smtp server telling that I use a bad syntax address.
    Does someone know how to use the alias ? Where do I do a mistake ?
    Thank you for your help.
    sis2b

    Thank you, I find how to solve the problem thanks to your link.
    I try to send HTML E-mail so I had the From in the from field writen in the header of the mail and not to initialize the connection.
    sis2b.

  • How to use P=name for Physical path name via t-cd:file

    Hello experts,
    I want to define physical path name using <P=name> for add-on programs.
    It is desirable to save files on another drive from SAP installed drive.
    I don't know which profile parameter can be changed.
    I'm afraid if standard logic wouldn't work when I change a parameter.
    I'm not sure, but DIR_TEMP doesn't seem to affect standard logic.
    What parameter should I use for add-on?
    Or can I create own profile parameter?
    Regards,
    Fukuhara Yohei

    In my detail block I have 10 rows displaying that may or may not have data after querying. To set the default value in the detail block, you have to set the index value of p_session.set_value. Since I don't know how many rows are already populated, I'm setting the default value to all 10 rows. Is there a better approach?
    Here's my code example, which I've placed in the additional PL/SQL section before displaying the form...
    DECLARE
    l_district_id VARCHAR2(7);
    BEGIN
    l_district_id := p_session.get_value_as_varchar2
    (p_block_name => 'MASTER_BLOCK',
    p_attribute_name => 'A_DISTRICT_ID');
    FOR i in 1 .. 10 LOOP
    p_session.set_value
    (p_block_name => 'DETAIL_BLOCK',
    p_attribute_name => 'A_DISTRICT_ID',
    p_value => TO_CHAR(l_district_id), p_index => i);
    END LOOP;
    END;

  • Forcing created by field to use alias name

    Hi,
    How can I modify User Profile Service in SharePoint 2007, so that "Created by" field uses "domain\user" as opposed to fullname in the created by field or any hidden person field like "modified by".
    Thanks

    Hi,
    Per my understanding, you might want to set default value for the “Business Unit” column by looking up to another list.
    You can apply
    JavaScript with Client Object Model to the NewForm.aspx page to meet your requirement.
    A possible solution can be like this: When user opens the NewForm.aspx page of the current list, the custom JavaScript will be executed to get information about the
    current user, then query the other list for the default value, set the value to the drop down list of the “Business Unit” column dynamically. The JavaScript can be added into a Content Editor Web Part and insert into the NewForm.aspx page.
    The links below would be helpful for implementing this scenario:
    About how to
    select an option of drop down list using JavaScript:
    http://www.imranulhoque.com/javascript/javascript-beginners-select-a-dropdown-option-by-value/
    About
    how to use JavaScript Client Object model to access SharePoint list:
    How to: Create, Update, and Delete List Items Using JavaScript
    http://msdn.microsoft.com/en-us/library/office/hh185011(v=office.14).aspx  
    Common Programming Tasks in the JavaScript Object Model
    http://msdn.microsoft.com/en-us/library/office/hh185015(v=office.14).aspx
    Here are two links about how to
    add code into SharePoint page via Content Editor Web Part:
    http://blogs.msdn.com/b/sharepointdev/archive/2011/04/14/using-the-javascript-object-model-in-a-content-editor-web-part.aspx
    http://sharepointadam.com/2010/08/31/insert-javascript-into-a-content-editor-web-part-cewp/
    Best regards
    Patrick Liang
    TechNet Community Support

  • How to use form name in struts html:form tag

    Hi,
    I want to validate text box value, if it is ordinary html form I would have done like this <form name="myform" action="xxxx.jsp" onsubmit="return validate()">
    But am using struts html:form tags. In this case how can I use/specify name for a form.
    Can any one help me.
    Thanks

    The name of the form comes from the actionForm you have defined backing it.
    View source on the generated page to see what HTML it constructs.
    You are able to use the onsubmit event with the <html:form> tag just like the standard one, so if all you want to do is that:
    <html:form action="/saveUser" onsubmit="return validate()">
    ...You can also give it a styleId, which will generate an id in the HTML.
    See the tag documentation for details: http://struts.apache.org/1.2.x/userGuide/struts-html.html#form

  • How to use table name dynamically in report  procedure

    Hello every body
    I want to use table name dynamically means at runtime i want to pass table name.
    I can do this by lexical parameter in main query.
    But my problem is that i want to crate new format trigger or new function that use 1 cursor in which that lexical parameter : table name is used.
    so how to do that?
    i can not use that lexical parameter it is giving error.
    please help me how to do that.

    Call a database function which you pass the lexical parameter. Then in the database function you use dynamic sql or the execute immediate option to build the SQL string.
    Return the information from this function to build your business logic on in your format trigger.
    Marcos

  • How to use technical names in ecatt's

    Hi All
    I am functional MM consultant, right now i am working on ecatts'.
    In ecatts in pattern tab in all commands in command there are various technical names.
    Now i want to use these technical names in ecatt's, how do i use them or where do i find the detail (how to use).
    Regards
    Hemant

    hi,
    There you can find the commands that u can use in eCATT editor for scripts development. Each command is meant for one particular use.
    I that we user TDC, SAPGUI,ABAP..ENDABAP.....and soon very often in ecatt scripts development.
    Go tru this link below for details,
    http://help.sap.com/saphelp_nw04/helpdata/en/c6/3c333b40389c46e10000000a114084/content.htm
    And for more info
    Also see..
    /people/sapna.modi/blog/2006/04/10/ecatt--an-introduction-part-i
    /people/sapna.modi/blog/2006/04/10/ecatt-scripts-creation-150-tcd-mode-part-ii
    /people/sapna.modi/blog/2006/04/10/ecatt-scripts-creation--sapgui-mode-part-iii
    /people/sapna.modi/blog/2006/04/18/ecatt-logs-part-vi
    http://prasadbabu.blogspot.com
    >>reward if it helps.
    Cheers,
    kvr
    Message was edited by:
            PrasadBabu Koribilli

Maybe you are looking for

  • How to Restore a Backup?

    What a freakin' pain! I'd like to sync my iPod on my latest computer, but iTunes is making this difficult. I did do a back up of my iTunes a long time ago, but I see no way to restore a backup (even after searching help). Also, it says I've used 4 ou

  • Report Source is disbaled, not allowed to be changed/edited

    Hi All, On one of my Page there is a Report. I am unable to change the Source of the Query. I have found this only on this particular page on other pages for Reports I am allowed to change the Source. Also for this Report Under Source, there is Optio

  • Site plan rendering in illustrator

    I am rendering a site plan I made in AutoCAD in illustrator. I'll be rendering trees, flooring, water,etc. It is actually a site plan of a public park. I need tips and tricks to speed up my workflow. Anyone doing such stuff, kindly comment here. I am

  • Outlook synchronisation still not working in OVI 3

    Windos 7, 32-bit with bitlocker encryption, Otlook SP2. Will not sync with N97. Made a new Outlook profile, deleted the old one, ran the PC suite cleaner. Then installed OVI suite 3 and set up synchronisation. It came further than OVI 2, and actually

  • Printing wirelessly from laptop but can't print from iPhone or iPad to officejet pro 8600

    I can print wirelessly from laptop but printing from i-Phone has stopped working.  It locates the printer and says it's "sending to printer" but nothing happens on the printer.  I have shut down i-phone and rebooted computer but it's still not workin