Skip to Content
1
Mar 16, 2020 at 11:01 AM

EntityType for path XXX could not be found!

1044 Views

Hi @ all,

I have a curious problem.

I use the List Report Template and create the odata with cds view. I have a drop down value help which is working pretty well at one app, but at the other I get an error.

So I checked the two consumption views and I bind the same value help the same way.

The value help ist working, but because of the binding issue the text value doesn't get shown.

The problem only occurs in edit mode.

Example:

1. App, right behaviour

2.App, wrong behaviour

Both consumption views look like this:

define view Z_Test_C
  as select from Z_Test_I
  association [0..*] to /WSW0/A002_1_C      as _wcp        on $projection.wcp = _wcp.Value
  {

(.....)

      @UI.lineItem.position: 50
      @UI.selectionField.position: 50

      @Consumption.valueHelp: '_wcp'
      @ObjectModel.mandatory: true
      @ObjectModel.text.association: '_wcp'
      /wsw0/wcp    as wcp,
      _wcp
}

And value help consumption

@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #CHECK
@Search.searchable: true


@ObjectModel.resultSet.sizeCategory: #XS
@ObjectModel.representativeKey: 'Value'
@ObjectModel.dataCategory: #VALUE_HELP


define view /WSW0/A002_1_C
  as select from /WSW0/A002_I
{
      ///WSW0/A002_I
      @ObjectModel.text.element: ['Text']
  key domvalue_l as Value,
      @Semantics.text: true
      @Search.defaultSearchElement: true
      @Search.fuzzinessThreshold: 0.8
      ddtext     as Text
}

Do you have any idea how to solve this issue?

Thank you.

Regards,

Bettina