SAP-samples / cloud-abap-rap

This repository contains several examples how to develop with the ABAP RESTful Application Programming Model (RAP) in SAP BTP, ABAP environment.
Apache License 2.0
226 stars 62 forks source link

2021 on Premise Class Name mismatch? #16

Closed Sapdevipex closed 1 year ago

Sapdevipex commented 1 year ago

Hello,

This generator was of great help in BTP ABAP environment. I am trying to use this for a 2021 on premise and noticed that one of the filenames references a different class.

I could get it to work after changing the name. ZDMO_CL_RAP_GEN_ENV_ON_PREM ===> zdmo_cl_rap_xco_on_prem_lib

image

Also noticed that 2021 did not support keyword "transactional_interface" in Proj view ZDMO_I_RAPG_ProjectTP .

image

This is an FYI post because fixing these made it work.

Juthbe commented 1 year ago

Hi @Sapdevipex ,

thanks for your corrections!

I have modified the following files: image image

When executing the class "zdmo_cl_rap_generator_setup" I get the following error: image Service Binding "ZDMO_UI_RAPG_PROJECT_O4" is not created.

Debugging-Exception: image

Has anyone the same error or can help here?

How-To: https://github.com/SAP-samples/cloud-abap-rap/tree/on-prem-2021#sap-s4hana-2021-or-2022

Sapdevipex commented 1 year ago

Hello @Juthbe ,

Would you replace the "Transactional_interface" with "Transactional_query?", then use another pull to check what comes in diff?

Juthbe commented 1 year ago

Hello @Sapdevipex ,

i have changed "(..) transactional_interface" to "Transactional_query". Another pull didn´t help to solve the error.

Example for diffs: image

Kind regards, Justin

Juthbe commented 1 year ago

Case Closed. Incorrect naming of the package name.

FacepalmReallyGIF

anfisc commented 1 year ago

There is a new version available. Please try it out. I would assume it has fixed the issues you have described