Search help

This commit is contained in:
2025-11-05 14:46:16 +00:00
parent f4a76263ea
commit 0186e9906d
4 changed files with 54 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'Search help for country'
@Search.searchable: true
@ObjectModel.resultSet.sizeCategory: #XS // Dit maakt een dropdown van de searchhelp
define root view entity ZHS_C_CountryVH
as select from I_Country
{
@Search.defaultSearchElement: true
@Search.fuzzinessThreshold: 0.8
@Search.ranking: #HIGH
@ObjectModel.text.element: [ 'Description' ]
key Country,
@Search.defaultSearchElement: true
@Search.fuzzinessThreshold: 0.8
@Search.ranking: #LOW
_Text[1: Language = $session.system_language].CountryName as Description
}

View File

@@ -0,0 +1,20 @@
{
"BASEINFO":
{
"FROM":
[
"I_COUNTRY",
"I_COUNTRYTEXT"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}

View File

@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<abapGit version="v1.0.0" serializer="LCL_OBJECT_DDLS" serializer_version="v1.0.0">
<asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
<asx:values>
<DDLS>
<DDLNAME>ZHS_C_COUNTRYVH</DDLNAME>
<DDLANGUAGE>E</DDLANGUAGE>
<DDTEXT>Search help for country</DDTEXT>
<SOURCE_TYPE>W</SOURCE_TYPE>
</DDLS>
</asx:values>
</asx:abap>
</abapGit>

View File

@@ -65,10 +65,12 @@ annotate entity ZHS_C_RAPPartner with
@UI.identification: [{ position: 60, qualifier: 'PARTNER_ADDRESS' }]
@EndUserText.label: 'Ctry'
@EndUserText.quickInfo: 'Country'
@Consumption.valueHelpDefinition: [{ entity: { name: 'ZHS_C_CountryVH', element: 'Country' } }]
Country;
@UI.identification: [{ position: 70, qualifier: 'PARTNER_INFO' }]
@EndUserText.label: 'PayCurr'
@EndUserText.quickInfo: 'Payment Currency'
@Consumption.valueHelpDefinition: [{ entity: { name: 'I_CurrencyStdVH', element: 'Currency' } }]
PaymentCurrency;
}