cancel
Showing results for 
Search instead for 
Did you mean: 

File Upload option not showing in SAP RAP Application

Ram9066
Explorer
0 Kudos
1,773

Hi,

I am working on a File upload Scenario using RAP and I could not see Upload button for the Attachment field, instead it is showing as an Input field in object page when clicked on create.  I have followed implementation referring to the below link.

https://help.sap.com/docs/abap-cloud/abap-rap/working-with-large-objects 

Ram9066_2-1726860196800.png

Attachment table

 

define table zlist_att {

  key client : abap.clnt not null;
  key uuid   : char32 not null;
  listno     : abap.char(6) not null;
  attachment : zattachement_inv;
  mimetype   : abap.char(128);
  filename   : abap.char(128);
  comments   : abap.char(200);

}

 


DTEL - ZATTACHEMENT_INV

Ram9066_1-1726860014750.png

Interface view code

 

define view entity ZI_LIST_ATT
  as select from zlist_att
  association to parent ZI_LIST_TABLE as _list on $projection.listno = _list.Listno
{
  key uuid,
      listno,

      @Semantics.largeObject:{
        contentDispositionPreference: #INLINE,
        fileName: 'Filename',
        acceptableMimeTypes: [ 'text/csv','application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' ],
        mimeType: 'MimeType'
      }
      attachment,
      @Semantics.mimeType: true
      mimetype as MimeType,
      filename as Filename,
      comments,
      
     _list.Lastchangedat as Lastchangedat,
     
      _list

 

 

 


 

View Entire Topic
Ram9066
Explorer

Found out the issue, Annotation - @Metadata.ignorePropagatedAnnotations: true added to both Interface and projection CDS views causing this issue.

When removed this annotation, the attachment field type changed to EDM.Stream and now field is enabled for file upload.

Closing the Post as answer found.

Ram9066_0-1726991158782.png

 

Håkan
Discoverer
0 Kudos
Help this for me. Thanks a lot for this post