Show TOC

Applying Quick FixesLocate this document in the navigation structure

Quick fixes enable you to resolve errors and warnings in the DDL source code using the corresponding functionality that is provided in the Quick Fix popup.

In the DDL source code editor, the following quick fixes are provided:

  • Name of SQL view is missing

    Effect: Adds the annotation @AbapCatalog.sqlViewName: 'SQL_VIEW_NAME' , which specifies the name of the SQL view to be generated in the ABAP Dictionary.

  • Name of SQL view append is missing

    Effect: Adds the annotation @AbapCatalog.sqlViewAppendName: 'APPEND_VIEW_NAME' , which specifies the name of the append view that will be generated in the ABAP Dictionary.

  • GROUP BY clause is missing

    Effect: Adds the GROUP BY clause that is required if aggregate functions (MAX, SUM, ...) are contained in the SELECT list. In addition, all elements not defined using aggregate functions are specified after GROUP BY.

  • EXTEND GROUP BY clause is missing

    Effect: If the GROUP BY clause is already added, you can extend this group to include all elements not defined using aggregate functions and not yet part of the GROUP BY clause. The latter elements, when included, are also added to the existing GROUP BY clause.

  • Alias is missing

    Effect: Adds an alternative name (alias) for each aggregate function that is used as an element in the SELECT list.

To execute a quick fix...

You can trigger quick fixes in any of the following ways::

  1. From the Problems view:
    1. Click on the error to open the context menu.
    2. Choose Start of the navigation path Quickfix End of the navigation path.
    3. In the list of possible quick fixes, double-click the relevant quick fix function.
  2. From the ruler bar in the DDL source code editor:
    1. Click the error decorator in the ruler bar.
    2. In the list of possible quick fixes, double-click the relevant quick fix function.
      Adding annotation for missing SQL view name
      Figure 1: Adding annotation for missing SQL view name
  3. From the Quick Assist view:
    1. In the DDL source code editor, position the cursor where the error occurs and is highlighted.
    2. In the Proposals tree, double-click the relevant quick fix function.