on 09-26-2021 11:24 PM
I have a Scenario where the field should be calculated and should have a filter option to the same field..
tried with below scenario however, couldn't able to resolve it.
Hi Manasa Sanga,
In order to apply filter on a virtual element, interface if_sadl_exit_calc_element_read needs to be implemented. Please see the Use Case 2 in the following link.
Best regards,
Mio
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@ObjectModel.virtualElement
@ObjectModel.filter.transformedBy: 'ABAP:ZCL_DEMO_CDS_CALC'
@EndUserText.label: 'Period'
@UI.selectionField: [{ position: 50 }]
@Consumption.valueHelpDefinition:
[{ entity : {name : 'ZI_PERIOD_VH',
element : 'YearMonth'} }]
cast( '000000' as vdm_yearmonth preserving type ) as YearMonth,
@EndUserText.label : 'Period1'
@UI.lineItem: [{position: 40 }]
@ObjectModel.virtualElement: true
@ObjectModel.virtualElementCalculatedBy: 'ABAP:ZCL_DEMO_CDS_CALC'
cast( ' ' as vdm_yearmonth ) as YearMonth1,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I wonder what is your question about.
Is your problem that the ABAP class does not get called at all?
Do you want to make use of the virtual element in a non-analytical OData or Fiori use case? Or somewhere else?
Have you implemented the SADL exit interfaces?
Do you need help on using the condition factory for the filrter transfmoration?
User | Count |
---|---|
65 | |
8 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.