Skip to Content
avatar image
Former Member

Display XSTRING on UI5 via oData

data.txtHi Experts,

SAP standard service for MYSPEND delivers content of the document in a XSTRING format. I am having difficulty displaying the data on the extended sapui5 application in the content format.

Any one has a solution for this. attached is the sample of the content coming on ui via oData service. URL of the service is as follows

https://xxxxxxxxxx:0000/sap/opu/odata/sap/FCO_MS_SPEND_SRV/Attachments('XXXXXXXXXXXXXXXXXXXXXXXXXX')/Content

data.txt (486.0 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    Oct 19, 2017 at 08:19 PM

    Hello,

    Your XString is probably a base64 encoded file. If your file is a PDF your can look at this answer

    It is an example.

    Regards

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 23, 2017 at 01:55 PM

    Hi,

    Still having difficulty opening the document. I keep getting the error the file is corrupted. Any one ??

    thanks

    -A

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 23, 2017 at 06:26 PM

    Seems to be working now.

    Thanks for your help.

    Cheers

    -A

    Add comment
    10|10000 characters needed characters exceeded