mcpField
A
abapgit

abapgit

github.com/likweitanDevelopment7286 installsUpdated 2w ago
Repository

About abapgit

abapgit is a skill that guides ABAP developers through Git-based development workflows in abapGit. It covers setup, repository operations, branching, CI/CD, and troubleshooting across on-premise SAP, BTP ABAP Environment, and gCTS.

Key features

  1. 01Setup guidance for abapGit environments
  2. 02Repository cloning, pulling, and pushing
  3. 03ABAP branching and transport strategies
  4. 04CI/CD and abaplint configuration
  5. 05Troubleshooting common repository issues

Use cases

  1. 01Set up abapGit in an SAP system
  2. 02Move ABAP objects between Git and SAP
  3. 03Plan branches alongside transport workflows
  4. 04Diagnose HTTPS or serialization problems

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/likweitan/abap-skills --skill abapgit

After installing, type/abapgitin Claude Code to confirm it loaded.

Details

From the project README

abapGit Workflows

Guide for managing ABAP development objects in Git repositories using abapGit.

Workflow

  1. Determine the user's goal:

    • Setting up abapGit for the first time
    • Cloning an existing repository
    • Pushing ABAP code to a Git repository
    • Configuring branching or transport strategies
    • Setting up CI/CD pipelines for ABAP
    • Troubleshooting abapGit issues
  2. Identify the environment:

    • On-premise SAP system with abapGit standalone
    • SAP BTP ABAP Environment (abapGit integration in ADT)
    • gCTS (Git-enabled Change and Transport System)
  3. Guide implementation with best practices for ABAP-specific Git workflows

abapGit Overview

AspectDescription
WhatOpen-source Git client for ABAP, runs inside the SAP system
SerializationConverts ABAP objects to file-based format for Git storage
DeserializationImports file-based format back into ABAP objects in the system
Supported ObjectsClasses, interfaces, CDS, function groups, programs, tables, etc.
InstallationVia abapGit standalone report or Eclipse plugin

Setup

Installing abapGit Standalone (On-Premise)
  1. Create report ZABAPGIT_STANDALONE or ZABAPGIT_FULL
  2. Download latest version from https://raw.githubusercontent.com/abapGit/build/main/zabapgit_standalone.prog.abap
  3. Copy content into the report and activate
  4. Run the report via SE38 or transaction ZABAPGIT
abapGit in ADT (BTP ABAP Environment)
  1. In ADT: Window → Show View → Other → abapGit Repositories
  2. Link repository using HTTPS URL
  3. Requires communication arrangement for Git service
SSL Certificates
  • Download GitHub/GitLab root certificates
  • Import via STRUST (transaction) → SSL Client (Anonymous) or (Standard)
  • Required for HTTPS connections to Git providers

Core Operations

Clone a Repository
1. Open abapGit (standalone or ADT)
2. Click "+ Clone" / "Link abapGit Repository"
3. Enter repository URL (HTTPS)
4. Select target package (create if needed)
5. Select branch (default: main)
6. Pull objects into the system
Push Changes to Git
1. Stage changed objects (select what to include)
2. Write a meaningful commit message
3. Push to remote branch
4. Resolve conflicts if any
Pull Updates from Git
1. Open the repository in abapGit
2. Click "Pull"
3. Review incoming changes
4. Activate pulled objects

.abapgit.xml Configuration

The .abapgit.xml file in the repository root controls serialization settings:

<?xml version="1.0" encoding="utf-8"?>
<asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
 <asx:values>
  <DATA>
   <MASTER_LANGUAGE>E</MASTER_LANGUAGE>
   <STARTING_FOLDER>/src/</STARTING_FOLDER>
   <FOLDER_LOGIC>PREFIX</FOLDER_LOGIC>
   <IGNORE>
    <item>/.gitignore</item>
    <item>/LICENSE</item>
    <item>/README.md</item>
    <item>/package.json</item>
    <item>/.travis.yml</item>
   </IGNORE>
   <REQUIREMENTS/>
  </DATA>
 </asx:values>
</asx:abap>
Key Settings
SettingValuesDescription
MASTER_LANGUAGEE, D, etc.Master language for texts
STARTING_FOLDER/src/Root folder for serialized objects
FOLDER_LOGICPREFIX / FULLHow package hierarchy maps to folders
IGNOREFile patternsFiles to exclude from deserialization
REQUIREMENTSSoftware componentsDependencies that must be present before import
Folder Logic
  • PREFIX: Package name prefix is removed. Z_PKG_SUB under Z_PKG → sub/ folder
  • FULL: Full package name becomes folder. Z_PKG_SUB → z_pkg_sub/

Branching Strategy

Recommended: Trunk-Based for ABAP
main (production-ready)
  └── feature/add-validation
  └── feature/new-report
  └── bugfix/fix-calculation
  • Keep main branch stable and deployable
  • Create short-lived feature branches
  • Merge via pull requests with code review
  • One SAP system per branch for development
Transport-Based Strategy
DEV system ←→ feature branches
QAS system ←→ release branch
PRD system ←  main branch (tags for releases)

Transport vs. Git Workflows

AspectTransport-BasedGit-Based (abapGit)
VersioningTransport requestsGit commits with full history
CollaborationTransport of copiesBranches, pull requests, code review
RollbackDifficultgit revert or checkout previous commit
CI/CDLimitedFull integration with pipelines
Multi-systemTransport routesClone/pull to each system
Conflict resolutionManualGit merge tools
Hybrid Approach

Many teams use abapGit for version control while retaining transports for deployment:

  1. Develop in DEV system
  2. Commit changes to Git (abapGit push)
  3. Use transport requests to move to QAS/PRD
  4. Git serves as source of truth and backup

CI/CD Integration

abaplint in CI Pipeline
# .github/workflows/abaplint.yml
name: abaplint
on: [push, pull_request]
jobs:
  abaplint:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: niclas-timm/abaplint-action@main
abaplint.json Configuration
{
  "global": {
    "files": "/src/**/*.*"
  },
  "syntax": {
    "version": "Cloud",
    "errorNamespace": "^(Z|Y|LCL_|LIF_)"
  },
  "rules": {
    "description": "ABAP lint configuration"
  }
}

Troubleshooting

IssueSolution
SSL handshake errorImport SSL certificates via STRUST
Authorization errorCheck S_DEVELOP authorization object
Object locked by transportRelease or remove transport lock
Serialization errorCheck object type support in abapGit
Namespace conflictsEnsure unique naming conventions
Large repository slowUse shallow clone or split into sub-packages

Output Format

When helping with abapGit topics, structure responses as:

## abapGit Guidance

### Context

- Environment: [On-premise / BTP / gCTS]
- Operation: [Clone / Push / Pull / Setup]

### Steps

[Step-by-step instructions]

### Configuration

[Relevant .abapgit.xml or abaplint settings]

References

Related Skills

  • abap: Use for abaplint integration with abapGit repositories
  • btp-abap-environment: Use for abapGit setup in BTP ABAP Environment
  • abap-cloud: Use for ensuring abapGit repositories are ABAP Cloud compliant

Comments

Markdown supported