Darshan Asknani
Darshan Asknani

Reputation: 1

Calling ABAP RAP actions( custom and standard both ) from UI5 Application

I have one RAP Application (Odata V2 + Managed) which I extended in VS Code.

Requirement:

  1. Add Button for file upload which should display a dialog screen to upload the Excel file.
  2. Read the data from the file.
  3. Validate the records from the file and create/update existing records in the database table.

I have logic written for validating all the fields inside my behavior class in RAP.

Questions:

  1. Is it possible to trigger the methods from the class in UI5?
  2. How can I create the records from the content of the file (Basically how to trigger the create method)?
  3. How to pass the data from the Excel file to the backend in RAP?

For file upload I found this SpreadSheet Importer, but I'm not sure how to pass the data from the Excel to backend and how to trigger the validation and create method.

Upvotes: 0

Views: 543

Answers (0)

Related Questions