on 2024 Sep 20 8:25 PM
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
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
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
Request clarification before answering.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
62 | |
8 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.