Message type: E = Error
Message class:  DDLS - For DDL source handling 
Message number: 505
Message text: Statement for literal & in CASE for database & not generated
Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of messages in the SAP system have a message text, however this is frequently insufficient to comprehend or resolve the problem.
To make things easier, more detailed information is frequently added to describe the issue, how to fix it, and the necessary steps or configuration modifications.
Unfortunately, there isn't any extra information in this error notice.
First, use our AnswerBot below to get a possible cause and solution (requires a premium subscription).
Also, review the in-depth Common Questions & Answers listed below; you could discover a solution there or be able to connect with others who have faced similar challenges.
You can also try searching the SAP support portal (support.sap.com) but you need a special user ID to access it. It is possible that an SAP support note exists that provides additional details about the mistake or even steps for fixing it.
The SAP error message DDLS505 indicates that there is an issue with a SQL statement that involves a CASE expression in a database context. This error typically arises when the SQL statement cannot be generated due to the use of a literal in a CASE statement that is not supported by the database.
Cause: Unsupported SQL Syntax: The database you are working with may not support the specific syntax or structure of the CASE statement being used. Data Type Mismatch: There may be a mismatch in the data types of the literals used in the CASE statement, which can prevent the SQL from being generated correctly. Database-Specific Limitations: Some databases have limitations on the use of certain SQL constructs, including CASE statements with literals. Incorrect Configuration: The database connection or configuration settings may not be set up correctly, leading to issues in generating the SQL.
Solution: Review the SQL Statement: Check the SQL statement that is being
 Get instant SAP help. Sign up for our Free Essentials Plan.
Get instant SAP help. Sign up for our Free Essentials Plan. 
DDLS504 No support for 'literals' on database & (case statement)
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
DDLS503 Statement for literal & for DB & not generated
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
DDLS506 CAST statement for arithmetic expression & to DB & could not be generated
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
DDLS507 No support for 'literals' on database & (arithmetic expressions)
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.