Skip to Content
0

sap fiori list report selection field search help

Mar 21 at 01:58 PM

80

avatar image
Former Member

Hi Gurus,

I have implemented SAP Fiori List Report Application using Fiori Elements. I have added Selection Fields using annotations as well and they filter the data as well. I need to implement Search Help(F4) on selection fields similar to what F4 does in Backend instead of the standard Selection Field screen. How should i do this? Any pointers will be helpful.

Thanks everyone.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

3 Answers

Andre Fischer
Mar 23 at 07:40 PM
0

Hi Vinay,

you can try the following annotation that ann

@Consumption.valueHelp: '_Customer' 
  Customer,

where the association would point to a another CDS view that contains the list of customers you want to choose from

Regards,

Andre

Show 1 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Hi Andre,

Thanks for your prompt reply. I did the same thing as you mentioned but still it doesn't work.

I'm sure, i'm missing something somewhere.

Please see below code.

Data Provider View:-

@AbapCatalog.sqlViewName: 'ZSD_VBELN_VHelp'

@AbapCatalog.compiler.compareFilter: true

@AccessControl.authorizationCheck: #NOT_REQUIRED

@Search.searchable: true

@EndUserText.label: 'Value Help for VBELN'

define view ZSD_VBELN_ValueHelp as select from v_vbuk_invoice {

@Search.defaultSearchElement: true

@Search.fuzzinessThreshold: 0.8

key vbeln }

Consumption View:-

@AbapCatalog.sqlViewName: 'ZSD_CUS_HIS_REP'

@AbapCatalog.compiler.compareFilter: true

@AccessControl.authorizationCheck: #NOT_REQUIRED

@Search.searchable: true

@EndUserText.label: 'Customer History Report CDS View'

@OData.publish: true

define view ZSD_CUS_HIS_REP_CDS as

select from vbrk

join vbpa on vbrk.vbeln = vbpa.vbeln

join vbrp on vbrk.vbeln = vbrp.vbeln

association [0..1] to zsd_vbeln_vhelp as _VbelnHelp on $projection.vbeln = _VbelnHelp.vbeln {

@UI: { lineItem: [{position: 10}]}

@UI.selectionField.position: 10

@ObjectModel.mandatory: true

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

@Consumption.valueHelp: '_VbelnHelp'

@Consumption.filter.selectionType: #RANGE

key _VbelnHelp.vbeln

}

0
avatar image
Former Member Mar 27 at 01:51 PM
0

Hello Experts,

Please help. i know i'm missing something very basic. But can't catch it since few days.

Share
10 |10000 characters needed characters left characters exceeded
avatar image
Former Member Mar 28 at 05:22 AM
0

Forgot to expose the association at the end of the Select query which solved the issue.

@UI: { lineItem: [{position: 120}]}

@Semantics.amount c.netwr,

@UI: { lineItem: [{position: 130}]}

a.cmwae,

_VbelnHelp

}

Share
10 |10000 characters needed characters left characters exceeded