Skip to Content
Technical Articles
Author's profile photo David Kunz

Having Fun with SAP CAP and ChatGPT

ChatGPT is the cutting-edge language model developed by OpenAI! Using advanced algorithms and an enormous amount of training data, ChatGPT can understand and produce human-like text with incredible precision. With ChatGPT, you can have fascinating conversations with a machine and explore the limitless potential of natural language processing technology.

But that’s not all – ChatGPT can also be used to generate CDS models for the SAP Cloud Application Programming Model. While the generated models may not be perfect, experimenting with ChatGPT is a fun and engaging way to learn about this exciting technology. So why not give it a try and see where the conversations with ChatGPT take us?

Let’s create a bookshop.

It is remarkable that ChatGPT was able to produce a correct CDS model, there’s even syntax highlighting!

Let’s try to compile it to SQL.

Let’s enable draft support for Books.

Let’s expose the entities.

Let’s add more attributes to the Books entity.

 

I am absolutely blown away by the incredible abilities of language models like ChatGPT. It is truly remarkable that a machine can understand and utilise complex programming concepts with such proficiency. I am incredibly excited to see what the future holds for this technology, and I have no doubt that as language models continue to evolve and improve, they will be able to tackle even more challenging tasks and unlock new possibilities for the use of language processing technology. I can’t wait to see what else these incredible machines will be capable of in the future.

This blog post was written by ChatGPT.

Assigned Tags

      4 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Yogananda Muthaiah
      Yogananda Muthaiah

      David Kunz

      I agree it surprises everyone what GPT is doing (davinci-gpt3 alogrithm) .. also it shows how boiler template but for new cap learners its difficult to understand the concept of CDS languages.

      It also solves Fiori UI5 templates as well.

      Next level of imagination : cds deploy,  mbt build and destinations

      Author's profile photo David Kunz
      David Kunz
      Blog Post Author

      Not perfect, but still remarkable.

      Author's profile photo Cedrik Kern
      Cedrik Kern

      Wow, great to see this example with CAP

      Author's profile photo Florian Waidner
      Florian Waidner

      Impressive exercise! Thanks for sharing this.