cancel
Showing results for 
Search instead for 
Did you mean: 

Media Handling in SAP ABAP On-Premise Using RAP model

For Media Handling in ABAP Programming model for Fiori, we can implement CREATE_STREAM, GET_STREAM in code based implementation of the DPC_EXT class. What is the equivalent approach in RAP?

The requirement is to update data from csv or json file into database tables in on-premise system using RAP model.

It is purely on-premise no cloud involved.

Accepted Solutions (0)

Answers (3)

Answers (3)

lauraquinterosa
Participant
0 Kudos

Hi volker.drees ,

Is this workaround still valid, or there is a way using RAP to upload data from an Excel file (xlsx) into a responsive table within an object page section (using Fiori Elements).

I've seen standard Fiori apps on S4H 2020 doing so, so just asking if any improvements in this matter have been made?

I haven't found info about it in the documentation for RAP/Fiori extenions.

Thanks and best regards,

Laura

volkerdrees
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Laura,

from a RAP perspective the stream end-2-end support is unfortunately still not available.

I can't speak for local UI handling of Excel files, but sending any binary content to the backend should be possible with the mentioned workaround.

Best Regards, Volker

volkerdrees
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Naveen,

it's certainly just a workaround, but you would use the string field just as a transport container.

Best Regards, Volker

tobias_bock
Explorer
0 Kudos

Hello Volker,

is it possible to add string fields (or long character fields) to CDS Views/CDS View Entities?

Isn't there a restriction that fields longer than 250 characters are not allowed in CDS Entities?

Regards

volkerdrees
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Naveen,

native stream support in RAP is planned, but not yet available. As an alternative you can put your file into a string / blob field. This at least allows you to transport the file using the OData channel.

Best Regards,

Volker

0 Kudos

Hi Volker,

In that case in order to update data from csv file, the current approach should be to convert csv into string format from front end and store in back end?

Regards,

Naveen

shavneet1
Participant
0 Kudos

Hi Volker ,

Is attachment handling still not avaolable in RAP framework ?

I have the similar requirement , Uploading data from Xlxs File.

Regards ,

Shavneet

volkerdrees
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello,

end-2-end support for handling large objects has been released yesterday in the cloud (2208). See https://help.sap.com/docs/BTP/923180ddb98240829d935862025004d6/10a3eb645b83413cbbebe4fc1d879a62.html...

Best Regards, Volker

Ramjee_korada
Active Contributor
0 Kudos

Dear Volker,

It looks there are many limitations. I have mentioned few in the blog post .

https://blogs.sap.com/2022/08/23/sap-btp-abap-environment-release-2208/#comment-636483

Best wishes,

Ramjee Korada.