https://github.com/abappm/abap-semver-sap
Mapping between SAP releases and semantic versions
https://github.com/abappm/abap-semver-sap
abap apm sap semver versioning
Last synced: 3 months ago
JSON representation
Mapping between SAP releases and semantic versions
- Host: GitHub
- URL: https://github.com/abappm/abap-semver-sap
- Owner: abapPM
- License: mit
- Created: 2022-06-20T19:15:31.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2025-01-30T18:57:24.000Z (6 months ago)
- Last Synced: 2025-03-27T13:51:32.388Z (4 months ago)
- Topics: abap, apm, sap, semver, versioning
- Language: ABAP
- Homepage: https://abappm.com
- Size: 43.9 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

[](https://github.com/abapPM/ABAP-SemVer-SAP/blob/main/LICENSE)
[](https://github.com/abapPM/.github/blob/main/CODE_OF_CONDUCT.md)
[](https://api.reuse.software/info/github.com/abapPM/ABAP-SemVer-SAP)# Semantic Version for SAP Releases
Since SAP does not use semantic versioning for components of ABAP systems, this class implements a bi-directional mapping between the two covering as many cases as possible.
NO WARRANTIES, [MIT License](https://github.com/abapPM/ABAP-SemVer-SAP/blob/main/LICENSE)
## Usage
Derive semantic version from SAP release:
```abap
DATA(semver) = NEW zcl_semver_sap( ).WRITE semver->sap_release_to_semver( '750' ). " 7.50.0
" with support package
WRITE semver->sap_release_to_semver( release = '750' support_pack = '0012' ). " 7.50.12
```Convert SAP release to semantic version:
```abap
WRITE semver->semver_to_sap_release( '7.50.0' ). " 750
" with support package
semver->semver_to_sap_release_sp(
EXPORTING
version = '7.50.12'
IMPORTING
release = release " 750
support_pack = support_pack ). " 0000000012
```Get semantic version for installed SAP component:
```abap
WRITE semver->sap_component_to_semver( 'SAP_BASIS' ). " 758
```See the code and test classes for mapping of other "strange SAP release formats" like 1909 or 2011_1_731.
## Prerequisites
SAP Basis 7.50 or higher
## Installation
Install `semver-sap` as a global module in your system using [apm](https://abappm.com).
or
Specify the `semver-sap` module as a dependency in your project and import it to your namespace using [apm](https://abappm.com).
## Contributions
All contributions are welcome! Read our [Contribution Guidelines](https://github.com/abapPM/ABAP-SemVer-SAP/blob/main/CONTRIBUTING.md), fork this repo, and create a pull request.
You can install the developer version of ABAP SEMVER-SAP using [abapGit](https://github.com/abapGit/abapGit) by creating a new online repository for `https://github.com/abapPM/ABAP-SemVer-SAP`.
Recommended SAP package: `$SEMVER-SAP`
## About
Made with ❤ in Canada
Copyright 2025 apm.to Inc.
Follow [@marcf.be](https://bsky.app/profile/marcf.be) on Blueksy and [@marcfbe](https://linkedin.com/in/marcfbe) or LinkedIn