In general all the developments will be done in development system within the SAP system landscape , SAP system landscape consists of some non-production systems ex: Quality and Assurance(QAS). Once we move our developments in development system, the changes will be moved to QAS, once moved to QAS a version will be generated in version management database.Finally we move all the developments to production system.
Version management will mainly helpful for ABAPer in the below ways.
- Recover a version
- Verify/validate versions with production systems
Generate version in SAP ABAP
Scenario: I am a developer and I am developing a program in development system(not yet moved to QAS or PRD), sometime the program is deleted accidentally, in this scenario we can not get the program back, so it is always better to generate versions, see example below.
Go to SE38, create a program ZSAPN_VERSIONS.
Click on utilities -> Versions -> Generate Version to generate a version.
Go to utilities -> Versions -> Version Management.
Now go to SE38, delete the program.
Create a program with same name ZSAPN_VERSIONS and go to utilities -> Versions -> Version Management
Select a version and click on retrieve .
A pop up will come, just press enter.
Now go back and see the older version is ready
Verify/Validate versions with production system
Select active version and click on remote comparison
Provide production system name.
Again click on remote comparison.
You will see the version differences between two systems.