cancel
Showing results for 
Search instead for 
Did you mean: 

The upload file name is missing in object page when fiori app is created in SAP BAS using RAP

rammel_sapdev
Participant
268

Basically, I have created an app which can do file upload using RAP. I noticed that when I am using the app created from SAP BAS, whenever I select and upload a file, the file name is always missing although I can see it from the payload. 

rammel_sapdev_0-1718734196815.png

But when I upload the file using the fiori app in ADT (via Preview), this functionality is working fine and I can see the filename getting populated.

rammel_sapdev_1-1718734412539.png

One difference I noticed is that from ADT, it is calling PATCH and GET in a batch.

PATCH zc_fileupload(Uname='AAA',IsActiveEntity=false)?sap-client=100 HTTP/1.1

GET zc_fileupload(Uname='AAA',IsActiveEntity=false)?sap-client=100&$select=Attachment,Filename HTTP/1.1

When testing from SAP BAS, I can only see the PATCH call and not the GET call which might be the reason why the filename is not getting displayed. I wonder if this is a bug or if there is a special handling/setting that I need to do in SAP BAS.

@Andre_Fischer, would you be able to help? Thanks.

View Entire Topic
rupert_nold
Explorer
0 Kudos

Hello,
I can confirm this strange behavior, I have the same problem.
At the first upload the attachment name is not displayed.

rupert_nold_2-1718969130484.png
After a manual refresh in the internet browser everything is fine.

 

rupert_nold_4-1718969370693.png
In ADT preview it is working correctly, but in the deployed Fiori Elements App not any more.
I think it is a problem in the UI5 framework.
I don't have a solution, but i can confirm the problem.
Kind regards, Rupert

rammel_sapdev
Participant
0 Kudos
Thanks Rupert! I am trying to apply the temporary fix that they have suggested via github but so far it isn't working for me. Any luck for you? Have you tried their workaround?