Quantcast
Channel: SCN : All Content - ABAP for SAP HANA
Viewing all articles
Browse latest Browse all 831

Error in CDS View

$
0
0

In my program I am fetching a certain type of inbound IDOC which in 53 status and updating my custom table, for which I have written a select query which executes perfectly but gives me an error while executing as a DDL source.

 

Select Query in Program: -

 

Program.jpg

 

DDL Source: -

 


DDL Source1.jpg

 

Error:- Preceding INT2 field cannot be a key field.

 

Even though I haven't declare INT2 field as a key field, the view which is being created (after commenting field sdata) is considering that. Please help me fix this issue.

 

Table.jpg


Viewing all articles
Browse latest Browse all 831


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>