cancel
Showing results for 
Search instead for 
Did you mean: 

Why value help does not work on extend view?

friendlycoder
Participant
0 Kudos

Hi all,

I have extended a SAP standard view as follows:

extend view C_JournalEntryItemBrowser with YFIN_E_JOURNALENTRYITEMBROWSER
association [1..1] to YFIN_I_GLAccCompanyCodeStdVH as _GlAccExtVH on _GlAccExtVH.CompanyCode = $projection.companycode
and _GlAccExtVH.GLAccount = $projection.glaccount
{
@UI.lineItem: {position:20}
@UI.selectionField: {position: 20}
@UI.identification:{position:20, importance:#HIGH}
@Consumption.filter: { multipleSelections: true }
@UI.fieldGroup: [{ qualifier: '_BASIC', groupLabel: 'Basic Fields', position: 03, exclude: false, importance: #HIGH, type: #STANDARD }]
@ObjectModel.foreignKey.association: '_GlAccExtVH'
GLAccount as GLAccExtension,
_ItemAccountDocument,
_GlAccExtVH
}
The field is also enabled as selection field on the FioriApp:

Unfortunately, when presssing F4 for Value Help it does not show the desired result:

The value help provider is defined as follows:
@AbapCatalog.sqlViewName: 'YFINIGLACCSTDVH'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true

@VDM.viewType: #COMPOSITE
@ObjectModel.dataCategory: #VALUE_HELP
@ObjectModel.representativeKey: 'GLAccount'
@ObjectModel.usageType.sizeCategory: #M
@ObjectModel.usageType.dataClass: #MASTER
@ObjectModel.usageType.serviceQuality: #C
@AccessControl.authorizationCheck: #CHECK
@AccessControl.privilegedAssociations: ['_Text']
@ClientHandling.algorithm: #SESSION_VARIABLE
@Search.searchable: true
@Metadata.ignorePropagatedAnnotations: true
@EndUserText.label: 'General Ledger Account Extension'
define view YFIN_I_GLAccCompanyCodeStdVH
as select from I_GLAccountInCompanyCodeStdVH
association [0..*] to YFIN_I_GlAccountText as _Text on $projection.CompanyCode = _Text.CompanyCode
and $projection.GLAccount = _Text.GLAccount
{
@ObjectModel.text.association: '_Text'
@Search.defaultSearchElement: true
@Search.fuzzinessThreshold: 0.8
@Search.ranking: #HIGH
key GLAccount,
@ObjectModel.foreignKey.association: '_CompanyCode'
key CompanyCode,
@Consumption.hidden: true
_CompanyCode,
_Text
}
and text provider:
@AbapCatalog.sqlViewName: 'YFINIGLACCOUNTXT'
//@ClientDependent: true
@AbapCatalog.compiler.compareFilter: true
@EndUserText.label: 'G/L Account Extension'
@ObjectModel.dataCategory: #TEXT
@VDM.viewType: #BASIC
//@AccessControl.authorizationCheck: #NOT_REQUIRED
@AccessControl.authorizationCheck: #CHECK
@ObjectModel.representativeKey: 'GLAccount'
@AbapCatalog.buffering.status: #NOT_ALLOWED
@ObjectModel.usageType.sizeCategory: #L
@ObjectModel.usageType.dataClass: #MASTER
@ObjectModel.usageType.serviceQuality: #C
@ClientHandling.algorithm: #SESSION_VARIABLE
@Metadata.ignorePropagatedAnnotations: true
@Search.searchable: true
@AbapCatalog.preserveKey:true
define view YFIN_I_GlAccountText
as select from I_GlAccountTextInCompanycode
{
@Search.defaultSearchElement:true
@Search.fuzzinessThreshold:0.8
@Search.ranking:#HIGH
@ObjectModel.text.element: 'GLAccountLongName'
key GLAccount,
@ObjectModel.foreignKey.association: '_CompanyCode'
key CompanyCode,
@Semantics.language
@ObjectModel.foreignKey.association: '_Language'
key Language,
@ObjectModel.foreignKey.association: '_ChartOfAccounts'
ChartOfAccounts,
@Semantics.text: true
@Search.defaultSearchElement:true
@Search.fuzzinessThreshold:0.8
@Search.ranking:#HIGH
GLAccountLongName,
/* Associations */
_ChartOfAccounts,
_CompanyCode,
_Language
}
In the metadata of the service I can not find the entity type YFIN_I_GLAccCompanyCodeStdVH. What am I doing wrong? Best regards
junwu
Active Contributor
0 Kudos

how the odata is implemented?

segw rds......

friendlycoder
Participant
0 Kudos

Thanks for your answer. Yes, the OData is implemented as RDS.

The link to the app https://fioriappslibrary.hana.ondemand.com/sap/fix/externalViewer/#/detail/Apps('F2217')/S21OP.

Best regards,

Anujit Marty

Accepted Solutions (0)

Answers (1)

Answers (1)

junwu
Active Contributor
0 Kudos
friendlycoder
Participant
0 Kudos

The problem can not be solved with the App Extensibility: Display Line Items in General Ledger. Do you have another suggestion?

Thanks

junwu
Active Contributor
0 Kudos

what you have done?