on 2024 Dec 10 2:11 PM - last edited 2 weeks ago
Greetings all, first let me apologize as I am extremely new to ABAP, hence forgive my confusion. I am currently experimenting with an abap class that determines the current approver for work items. I am using virtual elements to determine this field which is displayed in my cds view as follows:
@ObjectModel.readOnly: true
@ObjectModel.virtualElement: true
@ObjectModel.virtualElementCalculatedBy: 'ABAP:Z_TEST_CLASS'
cast('' as abap.sstring( 12 )) as CurrentApprover,
My virtual element displays a current approver in my fiori elements preview, however, the same user is shown for every work item and I am completely stumped as to where I am going wrong. From my understanding the code should work correctly as I have:
- Used the correct virtual element interfaces and methods
- Specified an internal table of type of my CDS view
- moved it_original-data into my local table
- have specified the fields that are required in my get_calculation_info method
Request clarification before answering.
just debug it. not just looking at the code.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
52 | |
6 | |
5 | |
5 | |
5 | |
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.