Technology Blogs by SAP
Learn how to extend and personalize SAP applications. Follow the SAP technology blog for insights into SAP BTP, ABAP, SAP Analytics Cloud, SAP HANA, and more.
cancel
Showing results for 
Search instead for 
Did you mean: 
former_member206060
Contributor
3,088
Hello All,

Have you ever wondered if you could view when and what code changes are done in a particular ABSL file or how to view the code changes in comparison with previous versions? Then this new functionality introduced in 2002 upgrade release covers it all. Read on to know more about the Version Management functionality. 

Till now, if there were any changes done in ABSL file, partners were unable to view who made the changes and when. Now from 2002 release it is possible to view all the edits (Save) performed on the ABSL in the current patch version. Following are the functionalities available as part of the Version Management feature: -

  1. Display – View the code of the selected version

  2. Compare – Compare the code between two selected versions

  3. Revert – Revert the code to the selected Version


Now if you login to SDK and right click on any ABSL file, you will see a new option called Manage Versions as shown in the screen shot below:



Let's see the features in detail:-

Display:

Once you click on the option Manage Versions, you will be able to see all the versions for that ABSL.



You can select the version which you want to view and click on the button Display. This will open a window with the code snippet for that particular ABSL file version.

Compare:

The version which is showing in the top will always be the latest version. Select the check box against each version which you want to compare the code changes and click on the compare button. This will display a screen as shown below:



This example shows the differences in version 1 in comparison with version 2. The highlight in red color will show the codes which had been removed in the previous version and green highlight will show the codes which has been added in the current version. Similarly, you can see Selected and Unchanged codes in respective colors as shown.

Please note that once you select multiple versions, automatically Display and Revert buttons will be greyed out and only compare button will be enabled.

Revert:

If there is a scenario where you have made any changes in ABSL, but you realized later that you want to go back to one of the previous versions. In such cases you just need to select the version which you want to go back and click on Revert button. You will get the below pop-up message asking:

"Do you want to revert to Version X"

You can click on Yes if you want to proceed, then you will get another pop-up message: The code is reverted to Version X. Save and Activate the file, as shown below in the screenshot:



Once you Activate the file, a new version will get created. And if you compare the latest version to which the version you reverted to, both will be the same.

Also, if you want to copy the code snippet of a particular version, you can just select the version and click on display. Here you can just select and copy the code

Notes:

  1. These versions will get created each time you make any changes in the ABSL and Save. Also, these versions will be available to view only in the current patch and this will reset once you create the next patch version.

  2. In case more than two versions are selected, all buttons gets disabled along with an error message.

  3. In case the latest version is selected, the Revert button will be disabled. Because reverting to the latest version is not applicable.        


Hope this feature will be helpful for you and makes your work easier!

Best Regards,

Dhanya KV
36 Comments
dhruv_mehta
Active Contributor
This is perfect, I used to save al lhe verisons manually 😄
former_member206060
Contributor
0 Kudos
Then this is the perfect feature for you! 🙂

 
Anantpatel
Active Contributor
Informative Blog.
senthilmurugan
Participant
Great!!.. I thought of developing an addon to keep the versions with the help of git. now there is no need.

 

https://answers.sap.com/questions/12545405/version-history-for-script-file-.html
nikhilwalsetwar
Contributor
This is indeed a great feature!!! Thanks a lot for sharing Dhanya!!


BR,

Nikhil
Rudhra
Participant
Nice Blog, Thanks for sharing.
douglas_rohmann
Product and Topic Expert
Product and Topic Expert
Great blog Dhanya!
former_member206060
Contributor
0 Kudos
Thanks Anant
former_member206060
Contributor
0 Kudos
Yes, now you can use this feature directly from 2002 release!
former_member206060
Contributor
0 Kudos
Thanks Nikhil!
former_member206060
Contributor

Thank you Douglas!

former_member206060
Contributor
0 Kudos
Thanks Rudra!
may_thitsaoo
Contributor
Great!!
Thanks for sharing.
Would this be available on Production Direct Fix too?
This is a great feature for developers. Long awaited.

Thanks for sharing Dhanya!

Regards,
Anand Shukla
former_member206060
Contributor
Hello May, Currently this functionality is not available in Production Fix - Correction status. The product team will look into the feasibility later depending on how this feature goes on.

Thanks,

Dhanya
former_member206060
Contributor
Indeed it is, happy developing 🙂
VVancalbergh
Contributor
I don't doubt this is a "okay" addition. But it's far from great. If SAP would have made a proper integration with Git we would have been able to do so much more. Now we still can't:

  • Do version management on BOs/XBOs (something you can do easily by setting up a Git repository on the Tenant folder)

  • Keep a long lasting history of changes (further than "last patch").

  • Do version management for all the other types of objects (UI components, Extension Scenario's, Internal Communication, ...)


Not to mention that there's still no way to develop features in branches and merge those into a trunk/master version.

This is the equivalent of asking a Coca Cola in a bar on a hot day and getting a cheap offbrand cola with more ice than cola. Sure you got a refreshing drink and that's "okay", but it's far from what you asked.
former_member206060
Contributor
0 Kudos
Hi Vincent,

 

Understand what you are saying. This has taken it as a basic feature currently and as per the feedback from the partners, product team may take this up and further expand to other objects as you have mentioned.

 

Thanks,

Dhanya
VVancalbergh
Contributor
I want to clarify a bit further. This feature is worse than what we could already do (manage the files directly using a seperate version control system, like Git). The development time on this is wasted except for the partner developers who have never taking the time to learn a Source Control system. This work could have gone towards providing ACTUAL source control integration.

At the VERY least: Making UI Changes more visible in the filesystem. Because then we could track them ourselves like we already do for .bo, .xbo and .absl files.

PLEASE don't expand this further. Why recreate the wheel (in a worse way) than use existing technologies??

I don't understand SAP's need to keep making their own versions of things that are, at best, 50% of well designed, proven tech.
former_member206060
Contributor
0 Kudos
Hi Vincent, Will provide your feedback to the product team!
former_member658959
Discoverer
That's a good information, thanks for sharing such a informative Blog Dhanya.

 

Regards

chida

 
former_member206060
Contributor
0 Kudos
Thanks Chidananda!
Finally 🙂 !

 

Thanks for sharing Dhanya.

 

Have a good day.

 

Antoine.

 

 

 

 

 
shankarj
Explorer
Great Information Dhanya.. Look like version management for ABSL is easy and informative..

 

Shankar Jha
former_member206060
Contributor
0 Kudos
Thanks Antoine!
former_member206060
Contributor
0 Kudos
Thank you Shankar!
0 Kudos
Nice Blog! Thank you!
Mugesh
Product and Topic Expert
Product and Topic Expert
This is a good feature but is there any option to compare the changes done from the current patch to the previous one or between any 2 patch versions? Because quite often we get into such situations where it is very difficult to compare and to know what are the changes done in comparison with another patch version.
former_member206060
Contributor
Hi Mugesh, The functionality of comparing different patch versions is not available currently.
Mugesh
Product and Topic Expert
Product and Topic Expert
0 Kudos
Thank you Dhanya
former_member642078
Discoverer
The fact that code changes don't carry over between patch versions makes this feature completely useless.
former_member642078
Discoverer
I totally agree. This is a poorly-implemented feature which was a waste of development time. We need integration and support for modern tools, not proprietary functionality which doesn't solve the problem.
former_member206060
Contributor
0 Kudos
Hello Aaron,

Thank you for your feedback, product team is already looking into the feasibility for bringing this feature to CAS!

Thanks,

Dhanya
PrasanthRajan
Product and Topic Expert
Product and Topic Expert
this is great and one of the most awaited feature 🙂 thank you for sharing Dhanya.
former_member206060
Contributor
0 Kudos
Thank you very much Prasanth!
Robert
Discoverer
0 Kudos
I agree with Aaron and Vincent. We urgently need an integration in versioning tool. Is there an improvement request I can support?