If you intend to use SAP Business Technology Platform (BTP) ABAP Environment – formerly known as SAP Cloud Platform ABAP Environment – and want to bring your custom code application to the Cloud (see also the blog How to check your custom ABAP code for SAP BTP ABAP Environment) the time will come, when you will need to adapt your custom code for Cloud on your brand new ABAP system running in the SAP BTP ABAP Environment.
For this purpose, you will run the proven tool ABAP Test Cockpit with the ABAP_CLOUD_READINESS check variant in the ABAP Development Tools in Eclipse on your ABAP system in the SAP BTP ABAP Environment and will get a worklist of ATC findings which you will need to fix.
In order to minimize your custom code adaptation efforts for Cloud, we offer automatic code adaptations using the Quick Fixes (or Ctrl +1 shortcut) feature of ABAP Development Tools in Eclipse (see also the similar blog Semi-automatic custom code adaptation after SAP S/4HANA system conversion).
Client: ABAP Development Tools (ADT) >= 3.4
Backend: ABAP system, running in the SAP BTP ABAP Environment.
For more details regarding getting access to the SAP BTP ABAP Environment see SAP BTP, ABAP environment in SAP Discovery Center or SAP BTP, ABAP environment in the SAP Store.
Before you execute an ATC run over your custom code objects, they must be activated.
💡TIP: How to activate your custom code objects despite of syntax errors: 2. Click the button Activate inactive ABAP development objects (Ctrl+Shift+F3), click OK on all following dialog messages and click Yes button on the Activation Results popup:
|
NOTE: The following SAP Note must be implemented before using the Quick Fixes: SAP Note 3486814 - Code Inspector Check for restricted language scope version 5 (ABAP for Cloud Deve...
Currently we offer Quick Fixes for the following use cases.
If your custom code uses ABAP language statements which are not released for Cloud (which are not contained in the ABAP Language Version 5 (Cloud)), e.g. using MOVE statement instead of assignment, then your code will run into a syntax error in the SAP BTP ABAP Environment:
The old language statements must be replaced by ABAP Language Version 5 (Cloud):
If your custom code is using e.g. a data element, which is not released for Cloud but there is an alternative, which must be used in the Cloud. For example, if your code contains not released boolean data types, then it will run into a syntax error in the SAP BTP ABAP Environment:
These boolean data types must be replaced with the released data type ABAP_BOOLEAN:
Currently the following ADT Quick Fixes are available for ABAP Language Version 5 (Cloud):
Original ABAP statement | ABAP statement after Quick Fix |
ADD | += or + |
DIVIDE | /= or / |
MULTIPLY | *= or * |
SUBTRACT | -= or - |
COMPUTE | = |
MOVE | = |
DESCRIBE TABLE LINES | LINES() |
FREE | CLEAR |
REFRESH | CLEAR |
MESSAGE | MESSAGE INTO (only if MESSAGE is used for where-used list in IF 1 = 0. … ENDIF) |
CLASS-DEFINITION-LOAD | Statement deleted |
INTERFACE-LOAD | Statement deleted |
Old Open SQL syntax | New Open SQL syntax |
💡Note: ATC findings that can be fixed with a Quick Fix are displayed with a light bulb icon |
You can use mass-enabled Quick Fixes to adapt full packages or software components in one shot and in this way drastically reduce your custom code adaptation efforts for Cloud.
Just select multiple ATC findings in your ATC result and use the context menu Recommended Quick Fixes…
The wizard with recommended Quick Fixes for your selected ATC findings starts:
On the next screen (Next button) you can see for each of your custom objects which changes are suggested by the Quick Fix in a convenient way in two editors displaying the original and refactored source side by side.
If you click Finish button, you apply the Quick Fixes at one shot for all your selected ATC findings, for which the Quick Fixes are available.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
12 | |
10 | |
10 | |
9 | |
8 | |
6 | |
6 | |
6 | |
5 | |
5 |