cancel
Showing results for 
Search instead for 
Did you mean: 

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

former_member358451
Discoverer
0 Kudos

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.

Accepted Solutions (0)

Answers (8)

Answers (8)

jmalla
Contributor
0 Kudos

Did you ever figure out how to do this?

Thanks.

Jay

0 Kudos

HI,

Currently i am facing the same issue. can anyone please tell what is the soultion for this?

0 Kudos

Guys, did some body manage to solve this issue?

p619793
Active Participant
0 Kudos

Hello andre.fischer,

I am having the same problem. I have used the annotation @ObjectModel.foreignKey.association in extending a standard CDS view. But since there is no GET_ENTITYSET method generated by itself on activation of the extended CDS view. Nor the value help entity is created in the model.

@AbapCatalog.sqlViewAppendName: 'ZE_SQLC_PRITEM'
@EndUserText.label: 'Extension view of C_PURCHASEREQNITEM'
extend view C_PurchaseReqnItem with ZE_PURCHASEREQNITEM
association to ZI_USER_VH as _UserVH
 on $projection.requisitionername = _UserVH.UserId {
//@ObjectModel.foreignKey.association: '_UserVH'
@Consumption.valueHelp:'_UserVH'
//@Consumption.valueHelpDefinition: [{ entity:{ name: 'ZI_USER_VH', element:'UserId' } }] 
@UI:  {
              lineItem: { position: 100, importance: #HIGH, type: #STANDARD },
              fieldGroup: { qualifier: 'Contact02', position: 50, importance: #HIGH }
            }
    RequisitionerName as ZDummyRequisitioner,    
    _UserVH
}

Does this mean, it is not possible to use custom value help provider with custom field in CDS?

Regards,

0 Kudos

Hi,

Are you able to find the solution for this value help working on fuzzy search for custom field in smart filter?

I am also facing the same issue. i tried your logic too.

@Andre Fischer - could nt get it. please help.

Regards,

Soumya

former_member582477
Discoverer
0 Kudos

Hello Dima,

Please let me know how you addressed below mentioned issue?

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.

Thanks in advance.

0 Kudos

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

former_member358451
Discoverer
0 Kudos

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

dmitry_sharshatkin
Active Participant
0 Kudos

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

Andre_Fischer
Product and Topic Expert
Product and Topic Expert
0 Kudos

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

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

BR

Andre