cancel
Showing results for 
Search instead for 
Did you mean: 

Column name problem in SALV IDA with CDS View

Hi everyone,

I use CDS annotations to define column names and tooltips. Tooltips work fine, but there is a problem with texts: they appear only for narrow columns (in other words, as a short text), and when I have columns wide enough or change the column width manually, I see texts from underlying data element instead.

Example:

define view Ztest_missing_text
  as select from S_Flights
{
      @EndUserText.quickInfo: 'ID'
      @EndUserText.label: 'ID'
  key CarrierId,


      @EndUserText.quickInfo: 'Number'
      @EndUserText.label: 'Number'
  key ConnectionId
}

Narrow columns - texts from CDS annotations:

Normal (medium) columns - texts from data element:

Is it possible to fix it by means of CDS View? Or the only possibility is to edit a field catalog in the ABAP program?

Regards, Ilya

Accepted Solutions (0)

Answers (1)

Answers (1)

apoeschl
Participant

Hi Ilya,

not sure if you are still searching for a solution, but just to be sure, here is my proposal.

So far the only solution I found was to create data elements in data dictionary and cast the element in the CDS view to this data element.

For example:

cast( ConnectionId as ZCONNID ) as ConnectionId

You are then able to maintain all labels and translations in the data element ZCONNID.

Best regards,
Andreas