cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

JSON Payload Download Implementation in RAP Application

Yash_Rudraksha
Explorer
0 Likes
703

Hello Expert,

I am currently working on a custom RAP (RESTful ABAP Programming Model) Application in SAP S/4HANA Public Cloud. In this application, we use an API to send data to an external portal.

Now there is a new requirement when the user clicks a button, the JSON payload that is used in the ABAP program for sending data via the API should be downloaded in JSON format.

For this purpose, I have already created a custom action in the Behavior Definition, and the button is visible in the Application. My question is how to implement the download functionality so that the same JSON payload used for the API call can be downloaded by the user in JSON format and Also, please explain how to implement the JSON download functionality in the RAP application with step by step guidance.

Thank you,

Accepted Solutions (0)

Answers (1)

Answers (1)

Tugba_C
Associate
Associate
0 Likes

Hello,

your request is not supported in RAP but can be implemented with a workaround which is well described in this blog.

There are no actions described as you would like to implement, instead, there are virtual elements i.e. fields, which represent a link to download the file, you have implement in a separate class.

 

Thank you & Best Regards,

Tugba

RAP Integration Team