‎2024 Jun 26 6:29 PM - edited ‎2024 Jun 26 6:31 PM
Hello Together,
In my RAP application I defined a virtual element to display and edit standard text (read by READ_TEXT function module )
Then I extended in with Annotation @ui.multilineEdit:true.
For some reason @ui.multilineEdit:true has no effect and virtual element is still displayed as common text in edit mode.
(@UI.multilineEdit:true works perfectly with other fields, coming directly from CDS)
Is there are any way to make virtual element editable?
I'm working on S4HANA 2023.
@Andre_Fischer
I have already left a comment on a similar topic (26.06.2024):
How to implement a custom entity in the ABAP RESTf... - Page 2 - SAP Community
Ivan
Request clarification before answering.
Hi Ivan,
I just generated an unmanged RAP application and added the annotation @ui.multiLineText: true to it.
@ui.lineItem: [ {
position: 20 ,
importance: #HIGH,
label: 'Note'
} ]
@UI.identification: [ {
position: 20 ,
label: 'Note'
} ]
@UI.multiLineText: true
Note : abap.char( 255 );
The result looks like this when I edit it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Andre_Fischer , thank you for the prompt response! I would like to show my situation: Here are two fields - one regular and two virtual:
 This is a UI annotations :
Here is result:
Unfortunately, this is applicable only to regular fields...
Can you advise what to do in this situation?
Kind regards,
Ivan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Maybe you can try to create a custom entity which is connected via a 1:1 association to your CDS based entity since it works for custom entities.
Then you can try to incorporate the multiline field from the custom entity in the UI of your normal entity.
| User | Count |
|---|---|
| 7 | |
| 6 | |
| 6 | |
| 4 | |
| 4 | |
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.