on 2021 Apr 12 10:05 AM
Hi,
I am using Value help is displaying by using @Consumption.valueHelpDefinition: but it is not displaying and please find the below code.
1)I had created the below CDS View to get the list of Document Types

2)In the below CDS View i am using Annotation @Consumption.valueHelpDefinition: and given element and name(CDS View name)

3) As per the below screen still appearing as normal which should appear as valuehelp

Request clarification before answering.
Create your value help e.g.
@AbapCatalog.sqlViewName: 'ZVHSALESORDTYPE'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'Sales Order Types VH'
@ObjectModel.resultSet.sizeCategory: #XS
@Search.searchable: true
define view ZCDS_VH_SALES_ORDER_TYPES
as select from tvakt
{
@Search.defaultSearchElement: true
@ObjectModel.text.element: ['SalesOrderDescription']
key auart,
@Semantics.text: true
bezei as SalesOrderDescription
}
where
spras = 'E'In your composite view
association [1] to ZCDS_VH_SALES_ORDER_TYPES as _SalesOrderVH on $projection.auart = _SalesOrderVH.auart
......
@ObjectModel.text.element: ['SalesOrderDescription']
auart,
@Semantics.text: true
@EndUserText.label: 'Sales Order Type'
_SalesOrderVH.SalesOrderDescription,
......
_SalesOrderVH,In your consumption view
@Consumption.valueHelp: '_SalesOrderVH'
auart
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Post a screenshot of your OData service metadata showing the relevant fields and the association section. Also the local metadata.xml file in webapp->localService folder. Also, make sure that you have refreshed your Data Source in manifest (right click manifest.json -> Open Service Manager (if using BAS)).
| User | Count |
|---|---|
| 15 | |
| 9 | |
| 6 | |
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.