cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

CDS view error Unexpected word er zxxx_c_rules

UmaArjunan
Active Participant
0 Likes
1,003

SAP Experts, 

created cds view with naming convention zxxx_c_rules in higher version S4 2022

and transported to lower version S4 1809 

Transport ended with error, its unable to create CDS view 'define root view entity' in 1809

Data Definition : Zxxx_c_rules

Unexpected word "Zxxx_c_rules"

i can identify this relevant note , but there's no correction instruction in this note. is there any supporting note related to this ?

UmaArjunan_0-1741179772394.jpeg

Thanks

 

Accepted Solutions (0)

Answers (2)

Answers (2)

junwu
SAP Champion
SAP Champion
0 Likes

1809 is probably too old, which doesn't support view entity.

MKreitlein
Active Contributor
0 Likes

Hello @UmaArjunan 

unfortunately you did not mention if your CDS view contains parameters?

If yes, then this note really seems to be applicable ... I guess then you have to change it and remove the parameters.

I don't think there is any other solution than to upgrade the system

BR, Martin

UmaArjunan
Active Participant
0 Likes

thanks for the reply Martin.

My cds view does not have any parameters: 

UmaArjunan_0-1741229405450.png

But other objects Metadata definition, behavior definition, Service definition and Service binding are active.  i think root entity definition is not supported in 1809  other wise without parameters it should work

MKreitlein
Active Contributor
0 Likes

Ah ok. Now I see it too ...

View entities exist only from S4 2021 onwards!

In versions before that you have to define the CDS view like:

define view ZD___RULES as select from <table>

see https://help.sap.com/docs/SUPPORT_CONTENT/bwplaolap/3361382575.html?locale=en-US

BR, Martin