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 new SAP Fiori Elements based UI works similar to the key user tools known from SAP S/4HANA.

The draft enabled Fiori based UI lets you enter the information that is necessary to create your RAP business object such that it tries to prevent you from entering combinations of data that do not work.

I have moved the how-to-guide to the readme.md document in GitHub.

cloud-abap-rap/README.md at main · SAP-samples/cloud-abap-rap (github.com)

 

Assigned Tags

      6 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.

      Author's profile photo Himanshu Verma
      Himanshu Verma

      Thanks for the wonderful blog. I tried to follow it but while trying to generator the objects for a generator I keep getting the below error:

      "Your changes could not be saved. A more recent version is available. To make changes to the latest version, please refresh the data"

      I refresh, restart etc but every time it is the same error, can you point to what I might be doing wrong.

       

      Regards,

      Himanshu