Handling Characters Like # in Data, when exposing HANA views via oData services?

We've some special characters in the fields (like '#' ), and because of this the client side ODataModel /JSON parsing is breaking when ever the data has these characters.
Is there anyway to encode this at the HANA server level while exposing the views?

Hi Latha,
I've tried numerous combinations but I can't seem to create a view to return the data that I need.
For example, I thought I would need to create an Attribute view based on the M_TIME_DIMENSION_WEEK table BUT then noticed that I can't join this to my table as I only have a date column, i.e. at DAY granularity.
Therefore I created an attribute view based on the M_TIME_DIMENSION table to match the  granularity of the Date column in my table and joined this to my foundation table using the SAPDATE column..
The M_TIME_DIMENSION table also has a WEEK column and I thought I would be able to use that as a basis for the aggregation (SUM) of my Amount column but I haven't been able to make that work.
So basically I have a table like this:
MANDT
NVARCHAR
COMPANYCODE
NVARCHAR
BUSINESSPARTNER
NVARCHAR
AMOUNT
DECIMAL
CURRENCY
NVARCHAR
POSTINGDATE
NVARCHAR
And I want to return sums of the amount field based on the WEEK number of the POSTINGDATE field
The annoying thing is that I can write a simple SQL statement like this to produce what I want:
select  week(postingdate), sum(amount)
from myDbTable
where year(postingdate) = 2014
and companycode = '123'
and currency = 'EUR'
and mandt = '090'
group by week(postingdate)
The problem is reproducing the 'week' function in an analytic/calculation/attribute view.
Of course 'companycode', 'currency' etc would need to be dimensions but I'm sure you understand what I mean.
Any tips/ideas would be very welcome.
Kind regards,
Keith

Similar Messages

  • MY phone is using large amounts of data, when i then go to system services, it s my mapping services thats causing it. what are mapping services and how do i swithch them off. i really need help.

    MY phone is using large amounts of data, when i then go to system services, it s my mapping services thats causing it. what are mapping services and how do i swithch them off. i really need help.

    I Have the same problem, I switched off location services, maps in data, whatever else maps could be involved in nd then just last nite it chewed 100mb... I'm also on vodacom so I'm seeing a pattern here somehow. Siri was switched on however so I switched it off now nd will see what happens. but I'm gonna go into both apple and vodacom this afternoon because this must be sorted out its a serious issue we have on our hands and some uproar needs to be made against those responsible!

  • Can data be loaded in BPC via eSOA Services?

    Can data be loaded in BPC via eSOA Services? If so, how?

    Data can be loaded in BPC via eSOA Services.
    To explain how to do that you first should have the public interface which can be provided on request by support(help desk)
    You will see all the public interfaces which can be called from application server and you will be able to see some functions from data manager.
    Regards
    Sorin Radulescu

  • Authorization Issue while Data Preview from HANA View

    Hi Experts,
    We are using BW on HANA. We have created DSOs (info provider) in BW and generated HANA views from there. We have also created analysis authorizations in BW for authorization relevant characteristics. In HANA, we are able to go to the generated analytic view and preview the data from it successfully.
    Now I have created a test user and assigned a custom role with below authorizations to this user in HANA:
    - bw2hana/../REPORTING role (this role is automatically created by activation of DSO in BW).
    - Roles MODELING, MONITORING, CONTENT_ADMIN, USER.
    - Multiple system privileges although not needed, like REPO.EXPORT, REPO.IMPORT, etc.
    - Analytic Privilege  _SYS_BI_CP_ALL
    - Package Privilege: REPO.READ for all required packages (tried with ROOT package also).
    In BW system also, the test user has analysis authorizations providing access to the relevant info objects.
    But when I am trying to preview data for HANA view, I am getting attached error (also listed below):
    "Cannot get the data provider outline
    SAP DBTech JDBC: [2048]: Column store error: Search table error: [2950] user is not authorized"
    I tried to trace the situation is HANA and got below details in 2 trace files:
    indexserver_alert_saphana.trc:
    [6433]{416977}[66/-1] 2014-10-14 00:59:27.541187 e CalcEngine       ceAuthorizationCheck.cpp(02365) : AuthorizationCheckHandler::addAPsToSearchObject: Error during converting SqlAPs to Query entries
    indexserver_saphana.31003.075.trc
    [6433]{416977}[66/-1] 2014-10-14 00:59:27.541197 i TraceContext     TraceContext.cpp(00702) : UserName=TEST_SSO, ApplicationUserName=<<computer name >>, ApplicationName=HDBStudio, ApplicationSource=csns.modeler.datapreview.providers.ResultSetDelegationDataProvider.<init>(ResultSetDelegationDataProvider.java:118);csns.modeler.actions.DataPreviewDelegationAction.getDataProvider(DataPreviewDelegationAction.java:278);csns.modeler.actions.DataPreviewDelegationAction.run(DataPreviewDelegationAction.java:242);csns.modeler.actions.DataPreviewDelegationAction.run(DataPreviewDelegationAction.java:127);csns.modeler.command.handlers.DataPreviewHandler.execute(DataPreviewHandler.java:53);org.eclipse.core.commands
    [6433]{416977}[66/-1] 2014-10-14 00:59:27.541187 e CalcEngine       ceAuthorizationCheck.cpp(02365) : AuthorizationCheckHandler::addAPsToSearchObject: Error during converting SqlAPs to Query entries
    Do you know what this "Error during converting SqlAPs to Query entries" actually means"? How can we resolve this issue? The authorization is working properly for our user ids. But we need to provide restricted access for business users so trying to create test user and custom role.
    Thanks
    Nitesh Gupta

    Hi Pinaki and Prabhith,
    Yes, my issue was resolved. Sorry, missed to updated here.
    I was just a beginer for BW on HANA Security at that time and didn't know many small things. The solution was pretty simple.
    Whenever you assign analysis authorizations to a user in BW, you also need to generate corresponding HANA authorization. This is done through tcode RS2HANA_CHECK tcode. This tcode converts  BW analysis authorizations into HANA analysis authorizations and assign to the HANA user. You can see generated HANA authorization table RS2HANA_AUTH_STR in both BW and HANA.
    Once the HANA authorizations are successfully generated for a user, he should be able to see data from Views.
    Let me know if this solves issues. Then I will close this thread.
    Thanks

  • Copy data when creating GR return via delivery

    Dear all:
    Is there any ways that I can copy header text (MKPF-BKTXT) to header data of delivery note? (LIKP-LIFEX)
    This happens when I create return delivery in MIGO and tick "via delivery" in header.
    System will automatically create a delivery note when I save this transaction.
    I want to copy some information to delivery note. Other header field except LIKP-LIFEX is OK, too.
    Please advise. Thanks.

    This is solved by Enhancement when creating GR return via delivery
    I don't know how to delete my thread, so I just close it by myself.....

  • Update/insert/delete data from xcelsius to Database via web service

    Hi,
    I need to create dashboard that go function can <b>update/insert/delete</b> data send to <u>Database</u> thru <u>web services</u>, as i know got 2 xcelsius add-on software which support those of function <b>InfoBurst</b> and <b>flynet </b>
    <b>InfoBurst</b>
    http://www.infosol.com/azbocug/minutes/4-Writeback%20to%20a%20Database%20with%20Xcelsius.pdf
    <b>flynet </b>
    http://www.flynetviewer.com/public/community/Blogs/FlynetXcelsiusServerUser/default.aspx
    Except this 2 purchase add-on xcelsius, any other solution ?  
    Maybe need to write some in MSSQL or C# programming which enable insert, update, delete ...etc  ?
    *note: i not use Xcelsius Engage Server , i use Xcelsius Engage only
    thanks,
    regards
    s1
    Edited by: Leong Pui Kee on Mar 1, 2011 6:06 AM

    Hi,
    As of now in Xcelsius/Dashboard Design there is no feature or functionality to insert/update/delete data from database.
    Solution:
    Create a Web service in let’s say C# or Java, which will perform insert/update/delete operation.
    In Xcelsius add Web Service connection and user above web service.
    Xcelsius Web Service connection provides option to pass input values to a Web Service (Input Pane) and get the result (Output values pane).
    We can pass values to be written to the database as a input to Web Service via Web Service connection from Xcelsius and write data to the database.
    Note:
    Performing delete operation from Xcelsius Dashboard could be risky and may delete important data from database. I would not prefer giving delete option/functionality in Xcelsius dashboard.
    Hope this helps!
    Thank you.
    Regards,
    Vinay Mhaske

  • Can we display associated functions when files are viewed via Oracle Drive

    We are on Oracle Portal 10.1.4 and have customised it extensively. We have certain functionality available to the users on the files. these functionalities are provided using associated functions. The user community use WEBDAV commonly as a more easier interface to upload and update files on the Portal. This being our drawback on us providing our custom functiionality via associated functions. Can you please help on how we can enable the associated functions to be viewed via Oracle Drive or WEBDAV

    Hi Jonathan. You've done a commendable job of isolating the problem. I'm not aware of any problem with a middle initial (and we have many users with a middle initial using the client here).
    Please try again with WebFolders to verify that your colleague can get in correctly, but can't through Oracle Drive.
    The Oracle Drive should be using the exact same mechanism.
    If it doesn't work with WebFolders, then the user should reset their password, which should regenerate the DAV verifiers.
    If it works with WebFolders, but not with Oracle Drive, you'll have to look at the Log file in
    C:\Documents and Settings\<username>\Application Data\Oracle\ODrive\cache\logs and see what exactly is sent to the sever, and what the error message is coming back.
    Send that along to us, and we can take a look.

  • Expose stored procedure as Odata service?

    Hello expert,
    is it possible to expose a stored procedure as Odata service operation?

    Yes, you copy and paste your SQLScript code into a Scripted Calculation View or use WITH RESULT SET VIEW in your SQLScript Procedure. Then you can reference the view in OData.
    John

  • SSRS Report is missing data when exported to Excel via a subscription

    I have an SSRS report on a daily subscription that creates an Excel attachment and emails it  to a number of users. Some of the users are reporting that they cannot see all
    of the data in the Excel attachment.
    The report has a date column and 6 numeric columns, and the affected users cannot see the numerical columns - the fields are empty. The date column is displaying
    correctly along with all of the column headers.
    If however I change the format to XHTML, all data is displayed for all users.
    What's weird is that it is not affecting all users - for the affected users, the file size of the attachment is considerably smaller so it doesn't look like the
    issue is with their PC's - the data is not there to begin with.
    I've tried setting the DataElementOutput property on each of the fields to Output but no luck.
    I am using SQL Server 2008R2.

    Hi Wolfmeister,
    Glad to heard that the issue had been solved and thanks for your sharing.
    It will be very beneficial for other community members who have similar questions.
    Thanks,
    Katherine Xiong
    If you have any feedback on our support, please click
    here.
    Katherine Xiong
    TechNet Community Support

  • TP3 bug when exposing app module to web service

    Hello,
    I created a simple appmodule with 3 methods:
    public class AppModuleTestImpl extends ApplicationModuleImplApp
        /**This is the default constructor (do not remove).
        public AppModuleTestImpl()
        public String method1()
            return "hello world";
        public SomeBean method2()
            return new SomeBean();
        public String method3( SomeBean bean )
            return "hello world";
    }I want to expose those methods in a web service but in the "service custom methods" selection I can only see method1 even if SomeBean implements java.io.Serializable:
    public class SomeBean implements Serializable
        private String someField;
        public SomeBean()
        public void setSomeField(String someField)
            this.someField = someField;
        public String getSomeField()
            return someField;
    }The documentation says: "Your custom method parameters and return types can use any datatype that implements the java.io.Serializable interface."
    When I look in the message tab I see this:
    Business Components: Method "method2():SomeBean" cannot be exposed via service interface because the return type "(package).SomeBean" is not supported
    Business Components: Method "method3(SomeBean):String" cannot be exposed via service interface because parameter type "(package).SomeBean bean" is not supported
    where (package) is the correct package of the bean.
    Is this a bug?
    Thanks
    Message was edited by:
    user608288

    Can anyone confirm this problem please?

  • Pdf extension changes to .dat when send a file via e-mail from adobe acrobat 9

    to convert a file from microsoft word 2007 to PDF and send as an attachment via e-mail from adobe 9, the file is received with the extension changed to. dat, so recipients can not open it.
    Can anyone help me with this.

    What is the OS of the sending computer?
    What mail client?
    I receive plenty of files on my PC as .dat files, which come from Mac user(s), rename the extension to what I think they ought to be and have no further problem. (I cannot change the senders email settings where the problem originates)
    If the receiver knows it is a pdf file, they can drag it into Acrobat, but renaming the extension serves future use.

  • "Incomplete logon data" when trying to view BOR or Function Filter

    I have added the a destination to the destinations folder under my portal server.  I have checked the user mapping in the portal and my portal account maps to an account I am told does have RFC permissions.  But I cannot view anything under the BOR or add a filter to view functions.  I get the error in the subject line.
    I can't make any further progress - any help would be appreciated.  I am not a regular SAP user and have never logged in before...maybe its a config thing?

    The issue went away when I changed the User Management option from SAPLogonTicket to UIDPWD.

  • Expose multiple tables via OData automatically.

    Hello everyone,
    Currently I'm developing an application which has a number of database tables exposed using OData by using the extended application services of HANA XS.
    My .xsodata file looks like this:
    service namespace <myNamespace> {
    <mySchema>.<myTable1> as <myName1> keys generate local "GENERATED_ID";
    <mySchema>.<myTable2> as <myName2> keys generate local "GENERATED_ID";
    <mySchema>.<myTable3> as <myName3> keys generate local "GENERATED_ID";
    <mySchema>.<myTable4> as <myName4> keys generate local "GENERATED_ID";
    And sure enough, it works like a charm. But I wonder if there isn't a way to do things more efficiently. Specifically, I have all the tables I want to expose in a folder, And I'd like to know if I can somehow tell the system that every table uploaded to that folder has to be exposed, without having to write each and every one of them manually. And of course, I have the same problem with my permissions and authorizations. I'd like to hear the opinion of the community on this.
    Best regards.

    Well, for anyone who may still care, I'm glad to say I finally solved the problem. Unfortunately, the xsodata framework in HANA doesn't allow the functionality I've just mentioned, apparently for security reasons. The solution to this problem was, then, to not use xsodata, and instead use server side Javascript (XSJS) to program a routine that reads the particular table we're interested in and creates a JSON (or XML) model on the fly, which then can be consumed by our application.
    The problem is, of course, that this approach is more limited in the sense that we aren't using OData, and therefore, we don't have a lot of the functionality that OData provides, unless we code it by ourselves.
    If anyone is willing to suggest a better approach to this problem, feel free to do so!

  • "Unknown error" when adding a page via web services

    I am trying to add a division (a Welcome page) to a section on another welcome page, in order to get a site structure that is one level deeper than what can be built using the iTunes interface. I am using Web Services, which is new to me, to try to do this, as I understand that web services allows this (see http://discussions.apple.com/thread.jspa?messageID=6786261&#6786261). I have build a login page that takes my institutional name and password, authenticates me, constructs the authorization token, requests, and successfully receives an upload URL from iTunes U.
    It sets the action on a file upload form to this received URL. I then, easily within 90 seconds, browse to the Web Services XML file I want to upload, select it in the file upload form field, and submit the form.
    Despite several change to my Web Services document, the text "Unknown error" is all I ever receive back, and my division is not added. Can anyone help?
    An the HTML output of the dynamically constructed page with the upload form, and the web services document I am trying to upload, may be found at:
    http://itc.boisestate.edu/iTunesU.zip
    Thanks,
    Eric Orton

    It's probably due to the unescaped ampersand in your division name. To be well-formed XML, it must be written as "&" (and, 'a', 'm', 'p', semicolon). In addition, the order of your parameters does not match the XSD. Here's a version that does:
    <ITunesUDocument>
    <Version>1.1</Version>
    <AddDivision>
    <ParentHandle>1525601603</ParentHandle>
    <ParentPath/>
    <TemplateHandle>1525143263</TemplateHandle>
    <Division>
    <Name>Modern Languages & Literature</Name>
    <ShortName>Modern Languages</ShortName>
    <Identifier>langlit</Identifier>
    <AllowSubscription>true</AllowSubscription>
    <Permission>
    <Credential>Authenticated@urn:mace:itunesu.com:sites:boisestate.edu</Credential>
    <Access>No Access</Access>
    </Permission>
    </Division>
    </AddDivision>
    </ITunesUDocument>

  • IW52 + Get link data  when stored via 'Store the business document'

    Hi,
    For  Notification change - IW52:
    FM BDS_GOS_CONNECTIONS_GET is used to get the information when attachment are stored via 'Create attachment' .
    CALL FUNCTION 'BDS_GOS_CONNECTIONS_GET'
        EXPORTING
          classname             =  'BUS2080'
          objkey                   =  The notification number
        TABLES
          gos_connections          = w_connections
    EXCEPTIONS
       NO_OBJECTS_FOUND         = 1
       INTERNAL_ERROR           = 2
       INTERNAL_GOS_ERROR       = 3
      OTHERS                   = 4.
    Can any one please let me know FM or Method that should be used to retrieve the link data when attachment are stored via 'Store the business document'.?
    Regards,
    Himanshu

    Hi,
    Try with FM ARCHIVOBJECT_GET_URI or ARCHIV_GET_CONNECTIONS. With this FM you get the business documents attached to an object. You have to fill the object type and the object id.
    Regards,
    Edited by: Jose Vaquero Polonio on Jan 5, 2011 10:42 AM

Maybe you are looking for

  • Issues with iMessage on my iPad

    I'm trying to hook up my iPad to iMessage but when I try and when I go to my iPhone > message> text messaging forward and use the slide to connect iMessage to my iPad, I'm told that enter in the code I should receive.  My problem is that the code isn

  • Safari  has attached a browser link that won't go away. Help

    I went to a site called All Classic Trucks Trader and it has attached itself to my browser and I can't get rid of it. It also put up a little square beside yahoo square with the All classic trucks imbedded in the square. Any help please

  • How to generate an interrupt using DI change detection on m-series card

    Hi, I want to generate an interrupt on the positive edge of a digital input signal on the IO connector. Does anybody know how to configure an m-series card (PXI-6224) for this use through RLP programming? Thanks in advance, Richard

  • What is the sql query to know the database name having known table name?

    when i am running the following query....error coming select * from information_schema.tables where table_name = 'articles' Error starting at line 1 in command: select * from information_schema.tables where table_name = 'articles' Error at Command Li

  • Return delivery while using a service entry sheet

    Hi all, We have created a purchase order related to a service entry sheet. This purchase order is completely confirmed (MIGO, movement type 101). When we try to create a return delivery (MIGO, movement type 102) we get the following message: Purchase