cancel
Showing results for 
Search instead for 
Did you mean: 

How to create RAP Action to generate a file to download?

MattDion
Participant
0 Kudos
687

In BTP ABAP Environment, I have a RAP entity with an action. Let's call the action 'generateFile'. In that action, I have specific logic that uses the XCO classes to build out an XLSX file. The RAP entity and its action are projected and exposed into a Fiori Elements application. The action is triggered from a user pressing a button.

The final step is that the XLSX file that is generated needs to be automatically downloaded to the user's frontend. Is there a way of doing that from the action itself? Or do I need to handle this from the Fiori app (meaning, no way to test the action from the OData service preview)?

rcaziraghi
Participant
0 Kudos

Hello @MattDion ,

Did you find a solution for this? Really interested if it is possible.

Thank you.

Rafael

Rajeshwari_09
Product and Topic Expert
Product and Topic Expert
0 Kudos
Same Requirement

Accepted Solutions (0)

Answers (1)

Answers (1)

kyo_choi2
Participant
0 Kudos

Utilizing BTP/BAS, create a UI5 enhancement project for the RAP application and enhance a Custom SAP UI5 application with XSLX library by SheetJS to download as Excel File for a custom view table.