Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

In CDS Consumption View, How user can see Multiple choice and Different label instead of "P_Company"

Former Member
0 Kudos

In CDS Consumption View, How user can see Multiple choice and Different label instead of "P_CompanyCode"

Here is my code. if you have suggestion for Annotation, I will try

@Consumption.defaultValue: '1020' @AnalyticsDetails.query.variableSequence : 10 @Consumption.derivation: { lookupEntity: 'I_CompanyCode', resultElement: 'Companycode', binding: [ { targetElement : 'P_CompanyCode' , type : #PARAMETER, value : 'P_CompanyCode' } ] }

P_CompanyCode : abap.char(20)

1 REPLY 1

Sean_Zhang
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

try to create a data element instead of "abap.char(20)", and the data element should have the label you expect.

or you could also try with the enduser text.

Regards,

Sean