Skip to Content
Product Information

How to bring your ABAP custom code to SAP Cloud Platform ABAP Environment

Imagine you have an ABAP custom code application, which you think, would perfectly fit into the Cloud. What do you need to do to transfer your ABAP custom code to SAP Cloud Platform ABAP Environment?

The following picture demonstrates how the technical transfer of ABAP custom code from your on-premise SAP system to SAP Cloud Platform ABAP Environment looks like.

At the step 1 you analyze your ABAP custom code for Cloud readiness with SAP Fiori App Custom Code Migration. The App runs in the SAP Cloud Platform ABAP Environment, executes remotely (based on ABAP Test Cockpit) Cloud readiness checks on the ABAP custom code in your on-premise SAP system, and provides the analytical presentation of the ATC check results with comprehensive filtering and navigation capabilities. During analysis you can focus on your ABAP custom code scope for Cloud, get familiar with ABAP language version Cloud, released objects for Cloud and find out, which issues can be fixed in a semi-automated way using Quick Fixes in ABAP Development Tools in Eclipse. For more details see also the blog How to check your ABAP code for SAP Cloud Platform ABAP Environment.

After the analysis is done, it’s time to transfer your ABAP custom code to SAP Cloud Platform ABAP Environment. The technical infrastructure for this is the abapGIT (www.abapgit.org). At the step 2 you use the abapGIT client in SAP GUI to export the ABAP custom code from your on-premise SAP system and store it in the Git Repository.

At the step 3 you use the abapGIT plugin in ABAP Development Tools in Eclipse to import your ABAP custom code from the Git Repository to SAP Cloud Platform ABAP Environment:

Finally, you can adapt the imported code in your ABAP system in SAP Cloud Platform ABAP Environment (step 4). The recommended way to do so is again using the Cloud readiness checks and ABAP Test Cockpit. That means you check your code with the ATC locally in your ABAP system in the SAP Cloud Platform ABAP Environment to get the custom code adaptation worklist. To automate the adaptation of the findings you can use the mass-enabled Quick Fixes for Cloud in ABAP Development Tools in Eclipse. See also the blog Semi-automatic custom code adaptation for SAP Cloud Platform ABAP Environment.

Further information

For more information and detailed step-by-step instructions see also the sap.com tutorial Use abapGit to Transform ABAP Source Code to the Cloud.

14 Comments
You must be Logged on to comment or reply to a post.
  • Excellent & quite helpful article! Could you please also share some information about how to transfer Z-tables and their data from a ECC6.0 EHP4 system to SAP HANA database service on SCP?

    Warm regards,

    Amey

    • Hi Amey,

      SAP Cloud Platform ABAP Environment as PaaS currently offers no business tables into which data transfer would be relevant. The question of data transfer only arises for customer specific tables and this would then be application specific by the customer / partner via the connectivity we offer (ODATA, plain http, RFC from SAP Cloud Platform ABAP Environment to an on premise system).

      Best Regards,

      Olga.

  • Excellent Blog! exactly what I was looking for…Please help to understand how we can call custom ABAP code on SAP Cloud Platform from S/4 HANA On Premise system.

    • Hi Swathi,

      there are different possibilities: over (plain) HTTP Services, OData Services. The RFC support for this direction is not yet there but is planned for future versions of SAP Cloud Platform ABAP environment (evtl. Q3 2020).

      For the calls from SAP Cloud Platform, ABAP environment to on-premise systems you can use HTTP Services, OData services and you can call RFC-enabled function modules.

      Regards,

      Olga.

       

  • Hi Olga, thanks for such good information..

    I have a query, this procedure is strictly required to add own ABAP code in SAP Cloud Platform ABAP Environment ???

    What happens or what are the consequences of, for example, developing ABAP custom code directly in the Cloud system???

    Also, to create a new Z development (custom code) in SAP Cloud Platform ABAP Environment, what is the correct procedure ?? can you just develop the new code, new tablesm new dynpros, etc… directly in the system ?? just as it would be done on an On-Premise platform ??

    Thanks again for your valuable information.

    Regards.

    • Hi Monica,

      this blog is about how to migrate a custom code application from on-premise to Cloud, it doesn’t touches the ABAP development in the Cloud.

      Of course you can develop in SAP Cloud Platform ABAP Environment as you have done it on-premise in any ABAP system. You just need to consider some restrictions like e.g. using only ABAP language statements which are released for Cloud (ABAP Laguage Version 5), using only released APIs to access SAP standard code inside of the Cloud-based ABAP system, and not using the technologies, which are not released for Cloud like Dynpro. For more information please visit SAP Cloud Platform ABAP Environment community.

      Especially I recommend Learning Journeys there to start with ABAP development in the Cloud.

      Best Regards,

      Olga.

  • Hi Olga, Thank you for this blog! Very useful.

    At the moment I haven’t been able to establish abapGIT with an enterprise GitHub account. Looking into the details, it seems it is not yet developed (SAML or similar log in) and there are no plans to do it.

    Do you know if using a github regular account to transfer and store company source code files, might have compliance implications? – I’ve been asked this question lately by customers.

     

    Kindest Regards.

    • Hi Francisco,

      SAP has since years GitHub Enterprise Accounts and delivers productive installations based on them, we have also multiple GitHub Enterprise installations in-house. What exactly is the problem with it? SAML single sign-on is on the features list:  https://github.com/pricing

      Regards,

      Olga.

      • Hi Olga.

        Thank you for answering.

        To my understanding, you can’t connect ABAPgit to a GitHub Enterprise account, and therefore the customer’s (or SAP) repositories. Authentication is directed to “www.github.com” and it’s a hard-coded feature until now.

        I wanted to know if you have found a workaround to this topic or if there is no compliance implication to using our own github accounts instead of enterprise ones, because you will be pulling source code files of an on-premise system, to a GIT server (not enterprise) and from there pushing to cloud.

        Here is the link to the SAML issue with ABAPGit: https://github.com/larshp/abapGit/issues/1257

         

        Regards.

        • Hello Francisco,

          we heavily using our internal GitHub Enterprise infrastructure for testing the capabilities of abapGit. I don’t know what you exactly mean with “Authentication is directed to “www.github.com” and it’s a hard-coded feature until now”?

          Before exporting some SAP sources to a public GitHub account you should definitively contact legal beforehand.

          SAP has different GitHub Enterprise offerings, residing in different network segments. Not all are available from SAP Cloud Platform ABAP Environment.

          Last but not least it’s not possible anymore to use your GitHub User and Password. This is independent of the enterprise accounts and is enforced on all GitHub offerings. Instead, you’ll have to create a personal developer token for your user (see https://docs.github.com/en/github/authenticating-to-github/creating-a-personal-access-token#creating-a-token). This token can then, in turn, to be used with abapGit. Other authentication mechanisms are not supported.

          Regards,

          andre