on 2025 Mar 18 10:05 AM
I have a CDS entity as value help:
define view entity ZI_CREATEDBY_VH as select from ZI_ORDER
{
key CreatedBy
}
which is used as value help in a projection entity:
define root view entity ZC_ORDER
provider contract transactional_query
as projection on ZI_ORDER
{
key OrderGuid,
@Consumption.valueHelpDefinition: [ {
entity: {
name: 'ZI_ORDER_NAME_VH',
element : 'Name'
}
} ]
@search.fuzzinessThreshold: 0.7
@search.defaultSearchElement: true
OrderName,
...
@Consumption.valueHelpDefinition: [ {
entity: {
name: 'ZC_CREATEDBY_VH',
element : 'CreatedBy'
}
} ]
CreatedBy,
}
CreatedBy type is a data element whose type is string:
Component Type Data Type
zcreated_by string
Problem Description:
1. I cannot see Search and Select Tab under the Created By. Only see Define Conditions Tab.
2. If I attempt to cast String to abap.char(len), I get the following error:
Function CAST: Type STRING of Parameter 1 not supported ( ACCP CHAR CLNT CUKY LANG RAW UNIT NUMC DEC INT1 IN )
Since casting of string to char is not allowed.
Does this mean there is no way to have a value help for string fields?
Request clarification before answering.
check if you have exposed the vh cds in your service definition
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
9 | |
8 | |
7 | |
5 | |
4 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.