Search help
This commit is contained in:
19
src/zhs_c_countryvh.ddls.asddls
Normal file
19
src/zhs_c_countryvh.ddls.asddls
Normal 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
|
||||
}
|
||||
20
src/zhs_c_countryvh.ddls.baseinfo
Normal file
20
src/zhs_c_countryvh.ddls.baseinfo
Normal file
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"BASEINFO":
|
||||
{
|
||||
"FROM":
|
||||
[
|
||||
"I_COUNTRY",
|
||||
"I_COUNTRYTEXT"
|
||||
],
|
||||
"ASSOCIATED":
|
||||
[],
|
||||
"BASE":
|
||||
[],
|
||||
"ANNO_REF":
|
||||
[],
|
||||
"SCALAR_FUNCTION":
|
||||
[],
|
||||
"VERSION":0,
|
||||
"ANNOREF_EVALUATION_ERROR":""
|
||||
}
|
||||
}
|
||||
13
src/zhs_c_countryvh.ddls.xml
Normal file
13
src/zhs_c_countryvh.ddls.xml
Normal 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>
|
||||
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user