Introduction
ABAP development tools for Visual Studio Code provides set of tools for ABAP development within the ABAP Cloud development model.
Follow below steps to access VS Code and Establish system connection
1. Download Visual Studio Code
2. Installing ABAP Development Tools for VS Code
3. Establishing a System Connection via HTTP Destination
Open Destination Settings
Add Destination to Workspace
Add Package to Workspace
Download Visual Studio Code
To download Visual studio Code, please navigate to below URL.
Download Visual Studio Code – Free AI Code Editor for Mac, Linux, Windows
Installing ABAP Development Tools for VS Code
Navigate to the Extensions tab in the Activity Bar, search for ABAP Development Tools, Install the extension and restart the IDE.
Installation is done.
Establishing a System Connection via HTTP Destination
Creation of a destination is needed to establish a system connection between frontend and backend via HTTP.
Shortcut key – Ctrl + Shift + P to open the Command Palette.
In the Command Palette, choose ABAP: New Destination.
Between the two connection types displayed, choose HTTP.
- RFC for on-premise or SAP S/4HANA Cloud Private Edition
- HTTP for SAP BTP ABAP environment or SAP S/4HANA Cloud Public Edition
Enter the URL of the cloud system.
Enter a system ID
The system connection has been established and is visible under Workspace in the Explorer view.
Open Destination Settings
In the Command Palette, search ABAP: Open Destination Settings (JSON)
Destination Settings
Add Destination to Workspace
In the Command Palette, search ABAP: Add Destination as Folder to Workspace
Destination is added as folder to workspace
Add Package to Workspace
In the Command Palette, search ABAP: Add Package as Folder to Workspace
Select a destination
Select Open with Default Browser or copy to clipboard
Logged successfully.
Search package
Package is added to workspace
Data Definition from that package can be opened.
Data Definition details
Opening Development Object
In the Command Palette, search ABAP: Open Object
Shortcut key – Ctrl + Shift + A to open object.
Search object
Object is opened.
Creating ABAP Development Objects
Create New ABAP Object
Ctrl + Shift + P to open the Command Palette.
In the Command Palette, search ABAP: Create New ABAP Object or choose short cut key Ctrl + Shift + Alt + N.
Select the relevant object type.
Choose Data definition
Enter or select the Package Name, the Name, and the Description.
Choose package
Enter Name of object
Enter description of object
Enter reference object
Added all fields of source object
Checking ABAP Syntax
The ABAP syntax check is enabled to verify code-based development objects before activating.
In the Command Palette, search ABAP: Check Object.
Shortcut key – Ctrl + Shift + P to check syntax
Activating ABAP Development Objects
In the Command Palette, search ABAP: Activate.
Shortcut key – Ctrl + F3 to activate the object.
Activated successfully.
In the Command Palette, search ABAP: Activate All.
Shortcut key – Ctrl + Shift + F3 to activate the objects.
Keyboard Shortcuts for ABAP Development
Conclusion
ABAP development tools provides ABAP development to the preferred editor, enabled to create, edit, debug, and manage ABAP artifacts directly in VS Code.
It support object types like below
- ABAP core objects (classes, interfaces)
- Core Data Services (CDS data definitions, CDS metadata extensions, CDS entity extension, CDS types, CDS aspects, CDS access controls)
- ABAP RESTful Application Programming Model (service bindings, service definitions, behavior definitions, change documents, number range objects)
ABAP development tools for Visual Studio Code provide features that may depend on the client or require a specific backend system version
References
- ABAP Development Tools for Visual Studio Code | SAP Help Portal
- Installing ABAP Development Tools for VS Code | SAP Help Portal
- Creating ABAP Development Objects | SAP Help Portal
Read More Technology Blog Posts by Members articles
#abap