Skip to Content

How to enable value help in extend CDS view on the field

Hello friends!

Doesn't work value help on the additional field in the extend view.

Could you see what's wrong in the code below, please:

@AbapCatalog.sqlViewAppendName:'ZCPOMNTRACC_EXT'

@EndUserText.label:'Purchaseorderitemacct ext'

extend view C_Purchaseorderitemacctmntr with Z_C_Purchaseorderitemacct_ex01 {

@Search.defaultSearchElement:true

@UI.selectionField:{position:100,importance:#HIGH}

@Consumption.valueHelpDefinition:[{entity:{name:'ZC_MM_OrderValueHelp',element:'OrderID'}}]

PurOrdAccAssign.OrderID

}


Unfortunately, I haven't got enough experience and don't know where the bug is.

Thanks in advance, Mike.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Mar 21 at 08:26 PM

    Andre, thank you a lot for your answer!

    I tried to add that annotation, but value help doesn't work.

    My attempts in files below. Could you see for them, please

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Mikhail,

      Recently did the same.

      My problem was, I did not specify the KEY for the VH CDS entity and it was not visible as actually a value help, not giving me any hint or warning message.

      But what is your problem now? Not clear. The model seems to be changed (on the pictures) and the VH is there, right?

      Did you check if OData is properly called? Did you regenerate/recreate DPC classes?

      Thanks, Dima

  • Mar 21 at 03:00 PM

    Try to add a @ObjectModel.foreignKey.association for the associations you are using:

    @ObjectModel.foreignKey.association: '_Customer'  SalesOrder.customer 
    as Customer

    BR

    Andre

    Add comment
    10|10000 characters needed characters exceeded

  • Sep 11 at 07:56 AM

    Hi Mikhail Postnikov,

    Were you able to solve your problem. I also need value help on extended fields in goods movement CDS view. The extended fields are in prompt (variable screen) of BEx query. The CDS view is used as transient provider.

    Regards,

    Mihir Kiri

    Add comment
    10|10000 characters needed characters exceeded