Skip to Content
1
Sep 05, 2019 at 10:07 AM

ATC error using @Consumption.Derivation in CDS View

230 Views

Hi,

I am using the following consumption derivation:

@Consumption:{

derivation:{

lookupEntity:'C_GregorianCalDateFunction',

resultElement:'DateFunctionStartDate',

binding: [

{targetParameter:'P_DateFunction',type:#PARAMETER,value:'P_DateFunction'},

{targetParameter:'P_Language',type:#SYSTEM_FIELD,value:'#SYSTEM_LANGUAGE'} ] },

hidden:true

}

P_StartDate : datum


It works fine, but I run into following ATC error. I am able to make out how to correct this. Please help fix this issue.


Details of Analysis

Element 'DateFunctionStartDate' for 'Consumption.derivation.resultElement' not found

What is the Intent of the Message / Rule?

Referenced element doesn't exist.

How to Resolve Violations?

Use an existing select list entry or association.

What is the Intent of the Check?

This check reports usages of not existing elements, parameters, associations within annotations values with following types: elementRef, keyElementRef, parameterRef and associationRef.

Thanks,

Vimal