on 2023 Mar 01 10:01 AM
Hello Experts,
I have developed numerous native (non CDS based) BOPF objects over the last few years. I really liked the feature of transient attributes or transient nodes.
Now I am making my first steps with RAP BOs and am looking for a similar feature.
I have already tried virtual elements, which work well for OData-Services but are not calculated with EML-Access (at least in managed szenarios). They also have a length limitation of 1000 characters.
Augmentation does not work for read statements (at least not to my knowledge). So this is feature does not compare to transient BOPF attributes.
The implementation of Unmanaged Queries results in a short dump while trying to access these nodes via EML.
Am I missing any other possibility or do I have to create an unmanaged BO to work with transient data.
Many thanks in advance and best regards,
Chris
Request clarification before answering.
Hello Christoph,
If the transient data cannot be read via ABAP SQL (nor via AMDP or table function) in the BO behavior implementation, then the solution here will be to call/execute the virtual element implementation in an action or a function to calculate and read the field value on the fly via EML call.
Ideally, to avoid code duplication, the implementation logic of the virtual element is stored centrally so that it can be executed in the virtual element's implementation class and in the action or function. And the method implementation of the action or function should be mass-enabled.
Kind regards,
Carine
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @CarineTchoutouo,
How to update virtual elements within BDEF determination/action? Because these virtual elements will be added in BO Projection view whereas the BDEF determination/action will be created against the RAP BO and not RAP BO Projection. So the virtual elements won't be available inside it.
Thanks,
Mainak
User | Count |
---|---|
60 | |
10 | |
8 | |
8 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.