For last couple of days I was struggling to understand Version control and Change Management features of SAP HANA. I am new to HANA and to SAP 😐 .I went through many documents and blogs to understand this so thought of sharing my research with all of you. I hope I will be able to help my some newbies like me 🙂

For version control you need to make sure that all development is done through Project window on local repository. (I was reading somewhere that after SPS09 objects can be directly modified in Repository window but we are using SPS08 so we had to use Project window).  Earlier we were directly modifying/Activating objects using SYSTEM window so we were not able to use version control conflict resolution features. To modify objects using Project window you need to :

    1. Create local repository for your server using Repository->Create Repository Workspace. By unchecking  “Use Default Workspace” option you can give your own (more readable) name to repository.

Pic1.png

2. Once Repository is created then you need to checkout objects on which you want to work. For New objects you can directly create them using Project window.  Right click on object in repository window-> Checkout.

PIC2.png

3. Create Project for checked out objects. In Project Explorer go to File->New Project. Uncheck default location option to map Project to folder which has objects which you have checkout for your development.

PIc3.png

Pic4.png

4. Right click on Project-> Team-> Share Project.

Pic5.png

5. Once Project is Shared you can modify objects inside and also add new objects. All these objects will be tracked under version control. You can saves changes to local repository but when you will activate object(Team->Activate)  then system will compare  checked out copy of object with remote(server) copy and if your local copy will not match with server copy (i.e. somebody else deployed their changes while you were working on your changes) then you will get error related to conflict resolution.

Pic6.png

6. At this point you have option handle the conflict by merging your code with server code using merge tool or deploying local copy on server or using remote copy for your development.

Pic7.png

7. Merge tool will show you exact mismatch between local and remote and provides you option to merge changes.

Pic9.png


8.You can also see history of changes by Right click on object in Repository–>Show in History. This will give you information about different revision of code. You can also see the code deployed in selected revision. You can check out the code associated with any revision and deploy it as current revision. You also have option to compare codes associated with two different revisions.

Pic8.png

9.One important point to make is that all these version control features works only for content objects so if you have tables/procedures created as catalog objects then you have to use HDB scripts to create table/procedures and other catalog objects and create them as content objects. This will also allow these objects to be added as part of a DU(Delivery Unit) and can be migrated to another system using Transpoter. 

Hope you liked the post. Please provide your feedback/comments.

Thanks,

PB.

To report this post you need to login first.

2 Comments

You must be Logged on to comment or reply to a post.

  1. Charles King

    Hi PB,


    Thanks for the info in the blog.

    I have some doubts regarding the same.Request your help.

      1) What are the Prerequisites for implementing the version control features??

      2) what are the roles that needs to be given for the user who is implementing this??

      3) Can we do the version control only for the objects in the package which are content level and what about the tables in the catalog???

    Looking forward for your response on the same.

    Regards,

    Charles

    (0) 

Leave a Reply