Do you have any question about this error?
Stop googling SAP errors. Use our Free Essentials plan instead - no credit card needed. Start Now →
Message type: E = Error
Message class: SDDL_PARSER_MSG - Message Class for DDL Parser
Message number: 486
Message text: Selection list must be specified after FROM clause in view entities
In view entities, the selection list must be specified in curly brackets
after the FROM clause:
<EX>SELECT FROM <(><<)>datasource> { <(><<)>select_list> }</>
The syntax
<EX>SELECT <(><<)>select_list> FROM <(><<)>datasource></>
familiar from SQL is invalid.
The system issues an error message and will not allow you to continue with this transaction until the error is resolved.
Error message extract from SAP system. Copyright SAP SE.
SDDL_PARSER_MSG486
- Selection list must be specified after FROM clause in view entities ?The SAP error message SDDL_PARSER_MSG486 indicates that there is an issue with the syntax of a query in a CDS (Core Data Services) view. Specifically, the error states that a selection list must be specified after the
FROM
clause in the view entities. This typically occurs when the CDS view is not properly defined, particularly in the way it selects fields from the underlying database tables or views.Cause
The error is usually caused by one of the following issues:
- Missing Selection List: The CDS view does not specify which fields to select after the
FROM
clause.- Incorrect Syntax: There may be a syntax error in the definition of the CDS view, such as missing commas, incorrect use of keywords, or other structural issues.
- Improperly Defined Associations: If the view is trying to use associations or joins without properly defining them, it can lead to this error.
Solution
To resolve the error, you can follow these steps:
Check the CDS View Definition:
- Ensure that after the
FROM
clause, you have specified a selection list. For example:define view Z_MY_CDS_VIEW as select from my_table { key field1, field2, field3 }
- Make sure that the fields you want to select are correctly listed.
Review Syntax:
- Look for any syntax errors in your CDS view definition. Ensure that all keywords are used correctly and that commas are placed appropriately between fields.
Validate Associations and Joins:
- If your CDS view includes associations or joins, ensure that they are correctly defined. For example:
define view Z_MY_CDS_VIEW as select from my_table as t1 inner join another_table as t2 on t1.key_field = t2.key_field { key t1.field1, t2.field2 }
Use the ABAP Development Tools (ADT):
- If you are using ADT in Eclipse, it can help you identify syntax errors and provide suggestions for corrections.
Check for Updates:
- Ensure that your SAP system is up to date, as sometimes bugs in earlier versions can lead to unexpected errors.
Related Information
By following these steps, you should be able to identify and correct the cause of the SDDL_PARSER_MSG486 error in your CDS view.
Get instant SAP help. Sign up for our Free Essentials Plan.
SDDL_PARSER_MSG485
&1 cannot be used in view entities
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
SDDL_PARSER_MSG484
Data source with parameters cannot be used in projection view
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
SDDL_PARSER_MSG500
Error "&1" in usage calculation for DDLS source "&2"
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
SDDL_PARSER_MSG501
Syntax "&1" is supported in projection views only
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
Click on this link to search all SAP messages.