cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Value help is displaying by using @Consumption.valueHelpDefinition:

durgaprasanth_vemula
Participant
38,898

Hi,

I am using Value help is displaying by using @Consumption.valueHelpDefinition: but it is not displaying and please find the below code.

1)I had created the below CDS View to get the list of Document Types

2)In the below CDS View i am using Annotation @Consumption.valueHelpDefinition: and given element and name(CDS View name)

3) As per the below screen still appearing as normal which should appear as valuehelp

View Entire Topic
mdcastle
Active Participant
0 Likes

Try something like this for your Value Help

@AbapCatalog.sqlViewName: 'ZVHSALESORDTYPE'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'Sales Order Types VH'
@ObjectModel.resultSet.sizeCategory: #XS
@Search.searchable: true
define view ZCDS_VH_SALES_ORDER_TYPES
  as select from tvakt


{
      @Search.defaultSearchElement: true
      @ObjectModel.text.element: ['SalesOrderDescription']
  key auart,
      @Semantics.text: true
      bezei as SalesOrderDescription


}
where
  spras = 'E'
durgaprasanth_vemula
Participant
0 Likes

@mark_castle

Hi Mark,

Please find the below screen and i had not given any association between ZI_DOCUMENTTYPE_VH is defined in ZI_POSTINGS_R1V2.

But as per the below screen shot i had used for the ZI_COMPANYCODE_VH and it is displaying perfectly fine for the Cmpany Code


durgaprasanth_vemula
Participant
0 Likes

@mark_castle

Hi Mark,

As you had asked me to do the change and i had done the change but still nothing is displaying.

mdcastle
Active Participant
0 Likes

Are you sure that the BUKRS Value Help isn't coming from the value help on the field from the database table, rather than ZI_COMPANYCODE_VH?

durgaprasanth_vemula
Participant
0 Likes

@mark_castle

Hi,

I am getting those values in F4 which are there in the ZI_COMPANYCODE_VH. but i am not able to understand why it is not working for ZI_DOCUMENTTYPE_VH.

durgaprasanth_vemula
Participant
0 Likes

@Mark Castle

Hi Mark,

I found out why for the ZI_COMPANYCODE_VH value is coming because for the field BUKRS there is search help and for the blart field there is no search help and can i know how to proceed.

but for field Blart there is not search help.