Skip to Content
Technical Articles
Author's profile photo Andre Fischer

How to use the RAP Generator

In this blog I would like to provide a short click-trough so that you know how to generate a RAP BO using the RAP Generator that I have described in detail in this blog:

https://blogs.sap.com/2020/05/17/the-rap-generator/

The click through has now been provided as a Video on YouTube.

The JSON schema that has been used can be found in the GitHub repository of the RAP Generator:

cloud-abap-rap/json_schemas at master · SAP-samples/cloud-abap-rap (github.com)

Assigned tags

      5 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Peter Li Yan Hui
      Peter Li Yan Hui

       

      Today in my case when I followed the outlined procedure and I kept seeing this error

      Type of Parent is not UUID in 16 Bytes (Raw Format)

      i.e. message 039 of message class ZCM_RAP_GENERATOR

      I went and changed the first line in my json file  Implementation_type from "unmanaged_uuid" to "unmanaged_semantic" and hey presto

      it did generate the 12 objects under the ZRAP_#### (whatever you had to change this to) and I finally got the success message. See attached scrshot.

      Hope this will help others (encountering same difficulty). Cheers.

       

      Author's profile photo Andre Fischer
      Andre Fischer
      Blog Post Author

      Hi Peter,

      sorry for the inconvenience.

      The problem is a small bug in the generator that I have meanwhile fixed and published on GitHub.

      In the code I checked for the domain to have the name of the released data element rather than checking the data element itself.

      What is left for me to do is to update the generator in the trial systems unless you do it ;-).

      Best regards,

      Andre

      Author's profile photo Anslem Arnolda
      Anslem Arnolda

      Hi Andre,

      This tool is amazing. Thank you for your contribution.

      I have generated the objects referring to the Blog you have posted on Rap Generator, but I don't see the Connectivity with HTTP services. Any reason for this issue?

       

      Best Regards,

      Anslem.

      Author's profile photo Andre Fischer
      Andre Fischer
      Blog Post Author

      Hi Anselm,

      sorry, I have changed the behavior of the RAP Generator.

      Currently I am concentrating on letting the users use a class instead of a http service that uploads the JSON.

      I will update this blog accordingly.

      But I am thinking about providing a RAP object that you can use using the preview functionality so that you again would have a "UI".

      But stay tuned the ADT colleagues are working on a RAP Generator as well that, once available, can be started with a right click on a table in ADT.

       

      Author's profile photo Anslem Arnolda
      Anslem Arnolda

      Hi Andre.

      Thank you for your response on this.

      Will you be able to let me know on what I need to do to generate the HTTP service manually if so?

      Appreciate your response on this.

      Thanks,

      Anslem.