cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

ADT - ABAP vs ABAP Cloud

inesmartins
Participant
1,510

Hello,
Is it possible to convert an project from ABAP to ABAP Cloud in Eclipse (ADT)?
I want to use a project that I already have but it is an ABAP project, can I convert to an ABAP Cloud project?

Accepted Solutions (0)

Answers (3)

Answers (3)

Andre_Fischer
Product and Topic Expert
Product and Topic Expert

When you want to move code from an on premise system to SAP BTP ABAP Environment system you do not move the project.

Instead you would export your repository objects (those that can be used in SAP BTP ABAP Environment) to a Git repository and then import the same using the ABAPGit PlugIn in ADT into your SAP BTP ABAP Environment system.

Reports are not supported in SAP BTP ABAP Environment since we do not support SAPGUI based UI's in ABAP cloud.

So building something like a report is described here

abap-platform-rap-workshops/rap1xx/rap100 at main · SAP-samples/abap-platform-rap-workshops (github....

where you will learn how to build a simple RAP application.

Question is whether the data you have been accessing using your report could also be retrieved via CDS views.

Kind regards,

Andre

inesmartins
Participant
0 Kudos

Thanks for your reply!

AndreasMuno
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi ines.martins,

Below you'll find some hints that should answer your initial question.

However, I understand by now you are looking for an approach to cover reporting in (and out of) S/4HANA Cloud. Point 1 below might be of particular significance then: Is 'code conversion' even the right approach for the purpose? Might there be easier or different ways within S/4HANA Cloud to produce reports than with ERP?

Check out chapterStatutory Reporting in SAP Help for example.

The process of converting an on-premise SAP ABAP project to an SAP Cloud project involves several steps. It's not just a simple "conversion", but instead requires rethinking your application architecture and potentially redeveloping portions of your application to work in the cloud environment. Here are the general steps to migrate ABAP code to SAP Cloud Platform ABAP Environment:


1. **Evaluate and Plan**: You need to first evaluate your existing ABAP code and decide what functionality you want to move (as opposed to, replace with a different approach, or new code altogether). Not all ABAP code is compatible with ABAP in the cloud, so you will need to determine what changes will be necessary.

2. **Setup your Development Environment**: Install and setup ABAP Development Tools (ADT) in Eclipse. You can download it from the SAP Development Tools site. (You may already have this covered)

3. **Create ABAP Cloud Project**: In Eclipse, go to `File -> New -> Other -> ABAP Cloud Project`. You would need to have the necessary SAP Cloud Platform ABAP Environment (also known as Steampunk) credentials and endpoints. (You probably have this part covered as well)

4. **Code Adaptation**: Start adapting your ABAP code to be compatible with the cloud environment. This might include removing or changing incompatible ABAP statements, changing the way you use certain SAP modules, and potentially rethinking your application design to be more suitable for a cloud environment.

5. **Use ABAP RESTful Programming Model**: ABAP in the cloud uses a new programming model called the ABAP RESTful Programming Model (RAP). You will need to familiarize yourself with this model and modify your ABAP code to use it.

6. **Testing**: Test your application thoroughly to ensure it works correctly in the cloud environment. Keep in mind that you may need to use different testing tools and methods in the cloud environment.

7. **Deployment**: Once your application is working correctly, you can deploy it to the SAP Cloud Platform.

This process can be complex and may require significant changes to your ABAP code. It may be helpful to work with someone who has experience with SAP Cloud Platform and the ABAP RESTful Programming Model.
inesmartins
Participant
0 Kudos

Hey, thanks for your reply!
Yeah what we really need is to adapt the standard application 'Post Cash Journal Entries' (on-premise transaction FBCJ), but it's not possible in BAS to make an adaptation project from an non-premise system yet, as you guys answer in here in a previous topic that I posted.
So we are trying to find a way to adapt that standard application. So we are exploring the other options that we have, like use the SAP Cloud Platform ABAP Environment.

The system that we have is SAP S/4HANA CLOUD 2302. We have already follow the steps 2 and 3 that you mentioned, what we are trying to find if is still possible to get the standard app code and ui some how in our system to extend from there or if we have to create a new on like that from scratch.

junwu
SAP Champion
SAP Champion
0 Kudos

not sure if I understand you.

just create a new one. why need to convert?

inesmartins
Participant

Sorry for the lack of information, so we have a normal ABAP report, in a normal SAP GUI for a normal on-premise system, now we are using an S4HANA CLOUD system an using BTP, we need the exact same report in that new system too. So we were trying to use the Steampunk. But in Eclipse when we create an new ABAP Cloud Project there is no option to create a report.

What could we do? Does we have to create a new class and define everything from scratch?

junwu
SAP Champion
SAP Champion
0 Kudos

yes, no report.

rap is the way to go.