Using AI in ABAP development
2024-1-5 14:23:17 Author: blogs.sap.com(查看原文) 阅读量:4 收藏

My development setup

I typically use vscode for writing ABAP code in a standalone setup, editing just local files and committing those to git, this works on low-end laptops and tablets just fine.

I guess its also possible to use the ABAP remote file system extension from Marcello Urbani, but I’ve not tested it.

The beginnings

I first tried GitHub Copilot back in the summer of 2021, it did give some suggestions, but had many syntax errors, so I switched it off again after a few hours of playing around.

Image

Now, Today!

Now I’ve been consistently using Copilot for the last month or so. And it has become part of my development flow, helping me to type less.

Its not perfect, but very useful especially when doing scaffolding or code that is very symmetric.

I’ve collected some of the good examples below,

Working as typeahead intellisense,

And scaffolding unit test methods,

The process

I think, AI should not save and activate objects directly in the ABAP system. Instead changes should happen locally, so the developer can verify the changes. After verification the changes can be committed to git.

This triggers the normal quality assurance process in the pull request, kicking off static static analysis, automated unit testing and manual peer review.

After the peer review is done, the changes can be pulled to the central ABAP development system.


文章来源: https://blogs.sap.com/2024/01/05/using-ai-in-abap-development/
如有侵权请联系:admin#unsafe.sh