Skip to Content
0
Dec 23, 2022 at 07:32 AM

Fiori Element Extension Valuehelp

526 Views

Hi Expert,

I had added custom field in standard fiori application to add field i had used the adapUI method for some field and cds extension for some field. The field is visible but now i want to put value help i.e. f4 help and had added code in the cds still the value help is not visible some link i had followed still value help is not visible. Also one i added associate in extension of CDS when i check the service from segw the message is display "Valuehelp is added!!! generate the project" as this is standard service I can't able to generate. Please help on this

1. Below Url is had refered

https://answers.sap.com/questions/13115363/extended-standard-fiori-element-app-valuehelp-for.html

https://blogs.sap.com/2021/03/31/extending-transactional-fiori-app-based-on-fiori-elements-in-sap/

2. Below is the Extension of cds

@AbapCatalog.sqlViewAppendName: 'ZCDS'

@EndUserText.label: 'CDS extension of C_STANDARD'

extend view C_STANDARD with ZC_Custom

association [0..1] to ZCDS as _VB

on _VB.PurchaseOrder = $projection.purchaseorder

{

@UI.identification: [ { importance: #HIGH, position: 80 } ]

@UI.lineItem.position: 10

@EndUserText.label: 'Test'

@ObjectModel.foreignKey.association: '_VB'

@Consumption.valueHelpDefinition: [{association: '_VB'}]

@UI.dataPoint: { criticality: 0 }

@Search: { defaultSearchElement: true, ranking: #HIGH }

@Consumption: { valueHelp: '_VB', semanticObject: 'PurchaseOrder' }

ZPRD as ZPRD,

@Consumption.filter.hidden: true

@ObjectModel.foreignKey.association: '_VB'

_VB

}