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

New version of the RAP Generator available

I have just published a new version of my openSource project called the RAP Generator.

The main new features are that I have added an option that allows you to delete the objects that have been generated using the RAP Generator. This option becomes handy when you have generated your objects in a package that contains already several other ABAP repository objects since it can become cumbersome to search the generated objects and delete the same.

Another new feature is that I have added an additional entity in my RAP business object for the RAP Generator that hosts messages and error messages of the generation frameworks being used.

 

You can download the RAP Generator for GitHub using the following link:

https://github.com/SAP-samples/cloud-abap-rap/

Not so visitble for the end user is that I managed to make my life easier when it comes to add new features since I have to support two code lines for on-premise and the SAP BTP ABAP Environment in SAP BTP.

Since I was able to move the code that wraps the basic functionality of the XCO-libraries in just two small classes I perform the development using just one code line.

I plan to publish a small video that shows the basic usage of my tool soon.

Kind regards,
Andre

 

Assigned Tags

      7 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Kai Sicker
      Kai Sicker

      Many thanks!

      Looking forward to the video.

      Author's profile photo Jorg Thuijls
      Jorg Thuijls

      Looks promising, will give it a crack

      Author's profile photo Ian Roper
      Ian Roper

      Thanks Andre.

      This is really cool - however when I try to upgrade to the latest on S4 2021 I receive syntax errors in

      ZDMO_BP_R_RAPGENERATORBO

      For example in the mandatory_fields_check routine ADT is complaining about:

      permission_request-%field-(component_permission_request-name) = if_abap_behv=>mk-on.

      Have you seen this in your tests on S4 2021?

      Thanks,

      Ian

      Author's profile photo Benjamin Weisheit
      Benjamin Weisheit

      Hi Ian, hi Andre Fischer,

      i am also really curious to try out the tool, but I have the same error message as Ian. Have you already found a solution for this?

      Also, there are lines in the 2021 Branch that only work in a 2022 system (e.g. in ZDMO_CL_RAP_GEN_ENV_ON_PREM).

      Class%20ZDMO_CL_RAP_GEN_ENV_ON_PREM%20with%20statements%20valid%20from%202022

      Class ZDMO_CL_RAP_GEN_ENV_ON_PREM from the 2021 branch with statements valid not before 2022

       

      Best regards,
      Ben

      Author's profile photo Kapil Jain
      Kapil Jain

      Hi Andre,

       

      Trust you are doing well.

       

      I was trying installing the RAP Generator to our S4HANA ON PREMISE 2021 01 (02/2022) FP , but getting an error . Below is the screenshot for the same. Could you please help/guide what may be the cause for this error.

      Error%20Screenshot

      Error Screenshot

       

      Best,

      Kapil Jain

      Author's profile photo Matthias Wagenbreth
      Matthias Wagenbreth

      Hi Andre,

      I am facing the issue, that the RAP Generator does not respect our namespace which is /XXXX/. Means, the tables names have exactly this pre-fix. When generating the objects, there is a check for non-alphanumeric characters which raises an exception.
      The RAP Generator recognizes the name space correctly as it is indicated in the respective field. Otherwise, our table names also contain underscores which should be ok as well.

      Kind regards,
      Matthias

      Author's profile photo Matthias Wagenbreth
      Matthias Wagenbreth

      Hi Andre,

      The problem concerning the namespace "/XXXX/" which I mentioned in another post I could fix by simply commenting the respective check in the code. After this, the action "Generate repo objects" finishes without errors, but it does not create any objects. Also the generation log remains empty. This is the status I see in the generator:

      What could be the reason that it is not wokring? Getting no error message and no log makes it not easy to find the problem...

      Kind regards,
      Matthias