SAP-samples / abap-platform-rap-workshops

This repository contains materials for workshops about the ABAP RESTful Application Programming Model (RAP).
Apache License 2.0
188 stars 86 forks source link

Generator class cl_gen_rap400_artifacts does not create objects #22

Closed mceciabate closed 5 months ago

mceciabate commented 6 months ago

Only get 3 objects objects

anfisc commented 5 months ago

The problem is that the generator version being used for the RAP400 is really outdated.

I managed to get it working with my new RAP Generator version. You will find additional CDS views and a BDEF called ZRAP400Z.... This is because my new generator always add an interface view to the BO. The naming convention in the past used an “I” for the base restricted view. Create a class ZDMO_gen_rap400_single in the TRL system and run it via F9 instead of using the class in the /DMO/ namespace that is currently mentioned in the script. You can find the source code of the new class here: ZDMO_gen_rap400_single

mceciabate commented 5 months ago

Now it works perfectly, thanks a lot!