Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prefer INSERT INTO TABLE to APPEND TO #415

Open
lucasborin opened this issue Jun 18, 2021 · 0 comments
Open

Prefer INSERT INTO TABLE to APPEND TO #415

lucasborin opened this issue Jun 18, 2021 · 0 comments
Labels
new check New check

Comments

@lucasborin
Copy link
Member

Prefer INSERT INTO TABLE to APPEND TO

INSERT VALUE #( ... ) INTO TABLE itab.
INSERT INTO TABLE works with all table and key types, thus making it easier for you to refactor the table's type and key definitions if your performance requirements change.

Use APPEND TO only if you use a STANDARD table in an array-like fashion, if you want to stress that the added entry shall be the last row.

https://github.com/SAP/styleguides/blob/main/clean-abap/CleanABAP.md#prefer-insert-into-table-to-append-to

@lucasborin lucasborin added the new check New check label Jun 18, 2021
@lucasborin lucasborin self-assigned this Jun 18, 2021
@lucasborin lucasborin removed their assignment Jun 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new check New check
Projects
None yet
Development

No branches or pull requests

1 participant