cancel
Showing results for 
Search instead for 
Did you mean: 

How do I link ID and Description in a CDS view for SAC consumption

perage
Participant
0 Kudos

Hi,

I want to link customerID and CustomerName in a touple for consumption in SAC

I've tried

@ObjectModel.text.element: [ 'Customer' ]
Customer.id as CustomerID
@Semantics.text: true 
Customer.name as CustomerName

but that doesn'n work - both in story mode and in Data Analyzer, I just get two dimentions

I've also tried to map link these via association and foreign keys like this

@ObjectModel.foreignKey.association: '_Customer'
@EndUserText.label: 'CustomerID'
Customer as CustomerID,
_Customer

and that seems to work ok in the Data Analyzer, but in story mode, I can only use the customerID and don't have access to the fields of the association

0 Kudos

Hi,

Did you find the solution to your problem?
I have the same problem.

Thank You!

Accepted Solutions (0)

Answers (1)

Answers (1)

ThorstenHoefer
Active Contributor
0 Kudos

Hi,

have you tried CustomerName instead of Customer?

https://help.sap.com/docs/CP/c0d02c4330c34b3abca88bdd57eaccfc/a3d7b4d7d56b46f69660ef430cec278b.html?locale=en-US&q=@ObjectModel.text.element

	@ObjectModel.text.element: [ 'CustomerName' ]
perage
Participant
0 Kudos

Nope, still doesn't work. Should it work in SAC?