Skip to Content
avatar image
Former Member

how to read a CSV file using xsjs program and Batch operation into Hana database??

Hi , I am new to ui5..

can any one tell how to read data form CSV file using xsjs program and performing batch operation to send data into hana database.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Aug 09, 2017 at 09:29 PM

    vasu,

    you can use a file upload control in ui5 and you have to post the content of the file into your xsjs service.

    in the service you have to read the body and parse it out accordingly.

    if you google upload csv to xsjs you will find a lot of results:

    https://blogs.sap.com/2016/09/01/upload-and-retrieve-image-using-sap-hana-xs-sap-ui5/

    https://blogs.sap.com/2013/09/02/upload-data-to-hana-table-with-extended-services/

    etc... please google your topic before posting a question

    Add comment
    10|10000 characters needed characters exceeded