Skip to Content
As with any development project, once the software is released, many times a bug is found or an enhancement requirement is identified.  With an open sourced software development project the fixing of the bug gets a little complicated.  In this blog I will discuss the changes to ABAP code shared during a collaborative open source project via SAPLink.

image

One way to solve this issue is to host the source code of the project in a subversion repository and utilize version control to manage changes.  “How do I host a subversion repository?” you ask, please review these two blogs on subversion and google.code repositories Show me your .slnk and I will show you mine (1of2)   and Show me your .slnk and I will show you mine (2of2) Here we will discuss two scenarios: first, the open sourced code repository belongs to you, second the repository belongs to someone else. Pretty simple right? Lets get started!  Here is a screen shot of the simple little program I wrote..nothing fancy, just enough to demonstrate the point.image This is what the original XML or slinkee looks like generated via SAPlink. image After I modify the source code, for whatever reason, I need to download a new slinkee to the same location I have the original file.  Here is what my new program looks like: image This is the slinkee: image The file should look like this:image If this is your repository, just commit the new file to the repository and you are finished.  If this is not your repository, you need to create a patch and send it to the owner. You can do this by following the following steps:  To make sure your patch is useable, look at the properies of the File:image The dialog should look like this:image If it doesn’t, just highlight the attribute and click Remove:image Now you are set to create the patch!!!  Right click on the file and you will select “Create patch” from the context menu:image Choose the directory and patch file name you desire and add the .patch extension to the file name.  When you open the patch file in any text reader, like notepad you should see something like this: image Now you have to get the patch to the owner of the repository.  Go to the project on Google and select the “Issues” tab.  Create a new issue if this is a new bug or the existing issue if it was reported by someone else.   If this is a new issue, you can attach your patch file to the issue when you create it.  If it is an existing issue you are submitting a patch for, click on the Add a Comment and make Changes text box to reveal the  “Attach a file” link.  Attach your patch file, change the status from new or accepted to fixed  and click the submit changees button.    The owner can download the patch and test the changes.  If you are the owner and someone else has reported they fixed an issue and supplied the patch you can download the patch and do the following.   Once again, right click on the file and choose “Apply patch”image You should be presented with a large blank window with two frames and a floating window for choosing the source file to be modified. Double click on the file you desire patched.  Once retrieved, the large window in the back ground should be populated with three frames, Your file, the original file, and a copy of the merged files combined.  Review the changes submitted and finalize the changes by right clicking on the file name in the floating window and choosing to apply the patch.  Now all you have to do is commit the changed source file in your working directory back to the supository.  Update the issue to “Verified” and you are done.  Congratulations…you have submitted your first patch.        

To report this post you need to login first.

6 Comments

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

  1. Anonymous
    Nice article, subversion is a kick *** tool. Dont know of many Open Source SAP programs/communities.

    What would be the best SAP OSS porjects on the net?

    (0) 
    1. Morten Wittrock
      Hi Cathal

      The Detroubulator project (automated unit testing for SAP XI) is open source as well and we use Subversion too, by the way. SAP4Rails is another very cool open source project.

      Kind regards,

      Morten Wittrock

      (0) 
    2. Ryan Quackenboss
      Cathal,
      Thanks for the comment and question.
      Currently one of the largest OSS initiative is the SAPlink project. 

      This project is just the beginning and has enabled other OSS projects to get started using SAPlink itself.  For example:Sudoku Solver written in ABAP / BSP, and SAPLink and my first real community project project.

      That being said, with SAPlink, the sky is the limit on what can be accomplished using collaboration and imagination. 

      (0) 

Leave a Reply