SlideShare uma empresa Scribd logo
1 de 12
Baixar para ler offline
Version Management of ABAP
 Programs




Applies to:
SAP Netweaver 2004s.
For more information, visit the ABAP homepage.

Summary
In some companies we may have different systems for Development, Quality Control and Production.
Writing a new program from scratch in Development will never be a problem for developers.
However, sometimes someone else writes a code and the program is maintained, changed, or enhanced by
some other developers.
In those cases, there is a great possibility that we start changing or updating wrong versions of the program.
In addition, manual comparison of the ABAP programs can lead to a waste of time, which can be avoided.

Author:      Mukesh Sharma
Company: Infosys Technologies Limited
Created on: 11 August 2009

Author Bio
                Mukesh Sharma is working, as Technology Analyst in SAP BI with Infosys Technologies
                Limited. He is SAP Netweaver 2004s certified solution consultant. His area of expertise is in
                HR sub modules like Personal Administration and Time.




SAP COMMUNITY NETWORK                                     SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com
© 2009 SAP AG                                                                                                     1
Version Management of ABAP Programs




Table of Contents
Scenario 1: When a Program with Different Versions Needs to Be Compared ................................................. 3
   When Both the Versions Are in Same System ............................................................................................... 3
   When the Program Versions Are in Different Systems ................................................................................... 6
Scenario 2: For Comparison of Two Programs .................................................................................................. 7
Related Content ................................................................................................................................................ 11
Disclaimer and Liability Notice .......................................................................................................................... 12




SAP COMMUNITY NETWORK                                                                SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com
© 2009 SAP AG                                                                                                                                2
Version Management of ABAP Programs




Scenario 1: When a Program with Different Versions Needs to Be Compared
When Both the Versions Are in Same System
Go to transaction SE38.
Enter the name of the program as per attached screenshot below:




SAP COMMUNITY NETWORK                                 SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com
© 2009 SAP AG                                                                                                 3
Version Management of ABAP Programs



Go to Utilities as per the below screenshot:
Then open the options for VERSIONS, we will see “Version Management”




Once we click on “Version Management” we will get a window like as below.
From below screenshot, we will get info about various Transports used for the same program.
In addition we can get lots of other information also like date of last change and etc.




From the above screenshot, we can select the Active version and other versions available to us for
comparison.
For instance from above screenshot we have selected Active version and version 0004 to compare.




SAP COMMUNITY NETWORK                                      SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com
© 2009 SAP AG                                                                                                      4
Version Management of ABAP Programs


After checking CHECK BOX click on the icon as below:



To get the code for both the versions we have selected above.
We will see both the codes as below for comparison:




Different options available while comparisons are as follows:



When we click on the Settings Tab as below:



We will get following options , where we can remove comments or indentations or change the display
layouts.




SAP COMMUNITY NETWORK                                    SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com
© 2009 SAP AG                                                                                                    5
Version Management of ABAP Programs


When the Program Versions Are in Different Systems
We can also do comparison of the programs that lies in two different systems.
For this, proceed as below:
Click on the below shown icon “Remote Comparison”.




Enter the Target system for comparison:
We can also use the RFC destination from where we need to compare the programs.




In the above screenshot we need to put either Target system name or RFC Destination in order to compare
the program in two different systems.
Limitation with this is we need the RFC destination defined with the system we are comparing the program.




SAP COMMUNITY NETWORK                                   SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com
© 2009 SAP AG                                                                                                   6
Version Management of ABAP Programs




Scenario 2: For Comparison of Two Programs
Go to Utilities as per the below screenshot:
Then open the options for “Splitscreen editor”




SAP COMMUNITY NETWORK                            SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com
© 2009 SAP AG                                                                                            7
Version Management of ABAP Programs



The “Splitscreen” option will take us to a screen as below:




We have to enter the name of the program with which we want to compare as in below screenshot:




SAP COMMUNITY NETWORK                                    SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com
© 2009 SAP AG                                                                                                    8
Version Management of ABAP Programs



We may the select version of the program for comparison.
After entering name we may select for display or Change mode of the program.
On selecting the display mode we will come to a screenshot as below:




Use the below icon to start the compassion:




The below mention icons will be used to figure out the mismatch code or the Equal code to drill down or up in
the program.




SAP COMMUNITY NETWORK                                    SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com
© 2009 SAP AG                                                                                                    9
Version Management of ABAP Programs



From the below mention screenshot we can get idea as how the comparison goes .The highlighted portion
in blue will tell us about the line of codes under comparison.




Conclusion:
By this small knowledge about the availability of the various options in program editor, we can make our
code in harmony with other versions of the same program residing in different or same system.




SAP COMMUNITY NETWORK                                    SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com
© 2009 SAP AG                                                                                                    10
Version Management of ABAP Programs




Related Content
http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/e0c5d414-bc11-2a10-76b5-
bfd294549e6d&overridelayout=true
http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/8e1b5bbe-0601-0010-a28b-c8d964cd0a03
http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/d6dfa210-0a01-0010-fdb3-95bbf075cd4f
For more information, visit the ABAP homepage.




SAP COMMUNITY NETWORK                                 SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com
© 2009 SAP AG                                                                                                 11
Version Management of ABAP Programs




Disclaimer and Liability Notice
This document may discuss sample coding or other information that does not include SAP official interfaces and therefore is not
supported by SAP. Changes made based on this information are not supported and can be overwritten during an upgrade.
SAP will not be held liable for any damages caused by using or misusing the information, code or methods suggested in this document,
and anyone using these methods does so at his/her own risk.
SAP offers no guarantees and assumes no responsibility or liability of any type with respect to the content of this technical article or
code sample, including any liability resulting from incompatibility between the content within this document and the materials and
services offered by SAP. You agree that you will not hold, or seek to hold, SAP responsible or liable with respect to the content of this
document.




SAP COMMUNITY NETWORK                                                    SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com
© 2009 SAP AG                                                                                                                    12

Mais conteúdo relacionado

Mais procurados

Sap sapscripts tips and tricks
Sap sapscripts tips and tricksSap sapscripts tips and tricks
Sap sapscripts tips and tricks
Kranthi Kumar
 
Call transaction method
Call transaction methodCall transaction method
Call transaction method
Kranthi Kumar
 

Mais procurados (20)

Reports
ReportsReports
Reports
 
Table maintenance generator and its modifications
Table maintenance generator and its modificationsTable maintenance generator and its modifications
Table maintenance generator and its modifications
 
ABAP in 21 days
ABAP in 21 daysABAP in 21 days
ABAP in 21 days
 
List Processing in ABAP
List Processing in ABAPList Processing in ABAP
List Processing in ABAP
 
Sap sapscripts tips and tricks
Sap sapscripts tips and tricksSap sapscripts tips and tricks
Sap sapscripts tips and tricks
 
Smartforms interview questions with answers
Smartforms interview questions with answersSmartforms interview questions with answers
Smartforms interview questions with answers
 
How to guide-fiori-mm_en_xx
How to guide-fiori-mm_en_xxHow to guide-fiori-mm_en_xx
How to guide-fiori-mm_en_xx
 
Call transaction method
Call transaction methodCall transaction method
Call transaction method
 
User exits
User exitsUser exits
User exits
 
ABAP for Beginners - www.sapdocs.info
ABAP for Beginners - www.sapdocs.infoABAP for Beginners - www.sapdocs.info
ABAP for Beginners - www.sapdocs.info
 
Sap abap part1
Sap abap part1Sap abap part1
Sap abap part1
 
Guide to Configure Custom SD Output Types in S/4HANA Using BRF+
Guide to Configure Custom SD Output Types in S/4HANA Using BRF+Guide to Configure Custom SD Output Types in S/4HANA Using BRF+
Guide to Configure Custom SD Output Types in S/4HANA Using BRF+
 
Step by step lsmw tutorial
Step by step lsmw tutorialStep by step lsmw tutorial
Step by step lsmw tutorial
 
SAP workflow events
SAP workflow eventsSAP workflow events
SAP workflow events
 
Bdc BATCH DATA COMMUNICATION
Bdc BATCH DATA COMMUNICATIONBdc BATCH DATA COMMUNICATION
Bdc BATCH DATA COMMUNICATION
 
Badis
Badis Badis
Badis
 
Sap hr-programming
Sap hr-programmingSap hr-programming
Sap hr-programming
 
SAP SD Complete Guide
SAP SD Complete GuideSAP SD Complete Guide
SAP SD Complete Guide
 
SAP ABAP - Needed Notes
SAP   ABAP - Needed NotesSAP   ABAP - Needed Notes
SAP ABAP - Needed Notes
 
Beginner's Guide: Programming with ABAP on HANA
Beginner's Guide: Programming with ABAP on HANABeginner's Guide: Programming with ABAP on HANA
Beginner's Guide: Programming with ABAP on HANA
 

Semelhante a Version management of abap programs

Troubleshooting Your ABAP Programs Using Coverage Analyzer
Troubleshooting Your ABAP Programs Using Coverage AnalyzerTroubleshooting Your ABAP Programs Using Coverage Analyzer
Troubleshooting Your ABAP Programs Using Coverage Analyzer
zahack
 
SAP Adding fields to dynamic selection for fbln transactions (2)
SAP Adding fields to dynamic selection for fbln transactions (2)SAP Adding fields to dynamic selection for fbln transactions (2)
SAP Adding fields to dynamic selection for fbln transactions (2)
Imran M Arab
 
Variables in sap bi
Variables in sap biVariables in sap bi
Variables in sap bi
shabari76
 
Creating attachments to work items or to user decisions in workflows
Creating attachments to work items or to user decisions in workflowsCreating attachments to work items or to user decisions in workflows
Creating attachments to work items or to user decisions in workflows
Hicham Khallouki
 
Introducing enhancement framework.doc
Introducing enhancement framework.docIntroducing enhancement framework.doc
Introducing enhancement framework.doc
Kranthi Kumar
 
Smp agentry app_development
Smp agentry app_developmentSmp agentry app_development
Smp agentry app_development
Ganesh Kumar
 
Smp agentry sap_framework
Smp agentry sap_frameworkSmp agentry sap_framework
Smp agentry sap_framework
Ganesh Kumar
 

Semelhante a Version management of abap programs (20)

Dynamic variant creation
Dynamic variant creationDynamic variant creation
Dynamic variant creation
 
Troubleshooting Your ABAP Programs Using Coverage Analyzer
Troubleshooting Your ABAP Programs Using Coverage AnalyzerTroubleshooting Your ABAP Programs Using Coverage Analyzer
Troubleshooting Your ABAP Programs Using Coverage Analyzer
 
SAP Adding fields to dynamic selection for fbln transactions (2)
SAP Adding fields to dynamic selection for fbln transactions (2)SAP Adding fields to dynamic selection for fbln transactions (2)
SAP Adding fields to dynamic selection for fbln transactions (2)
 
Variables in sap bi
Variables in sap biVariables in sap bi
Variables in sap bi
 
Badi
BadiBadi
Badi
 
Zebra -bar one label printing
Zebra -bar one label printingZebra -bar one label printing
Zebra -bar one label printing
 
Creating attachments to work items or to user decisions in workflows
Creating attachments to work items or to user decisions in workflowsCreating attachments to work items or to user decisions in workflows
Creating attachments to work items or to user decisions in workflows
 
Co pa extraction
Co pa extractionCo pa extraction
Co pa extraction
 
Beginner's guide create a custom 'copy' planning function type
Beginner's guide  create a custom 'copy' planning function typeBeginner's guide  create a custom 'copy' planning function type
Beginner's guide create a custom 'copy' planning function type
 
sum-week1.pdf
sum-week1.pdfsum-week1.pdf
sum-week1.pdf
 
Srm 6.0
Srm 6.0Srm 6.0
Srm 6.0
 
SAP Quickviewer
SAP QuickviewerSAP Quickviewer
SAP Quickviewer
 
Introducing enhancement framework.doc
Introducing enhancement framework.docIntroducing enhancement framework.doc
Introducing enhancement framework.doc
 
Smp agentry app_development
Smp agentry app_developmentSmp agentry app_development
Smp agentry app_development
 
Abap fundamentals-training-course-document
Abap fundamentals-training-course-documentAbap fundamentals-training-course-document
Abap fundamentals-training-course-document
 
sap
sap sap
sap
 
_Using Selective Deletion in Process Chains.pdf
_Using Selective Deletion in Process Chains.pdf_Using Selective Deletion in Process Chains.pdf
_Using Selective Deletion in Process Chains.pdf
 
New dimensions for_reporting
New dimensions for_reportingNew dimensions for_reporting
New dimensions for_reporting
 
Smp agentry sap_framework
Smp agentry sap_frameworkSmp agentry sap_framework
Smp agentry sap_framework
 
Interfacing sap - BDC
Interfacing sap - BDC Interfacing sap - BDC
Interfacing sap - BDC
 

Último

Nelamangala Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Nelamangala Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...Nelamangala Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Nelamangala Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
amitlee9823
 
unwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabi
unwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabiunwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabi
unwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabi
Abortion pills in Kuwait Cytotec pills in Kuwait
 
Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...
Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...
Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...
lizamodels9
 
Quick Doctor In Kuwait +2773`7758`557 Kuwait Doha Qatar Dubai Abu Dhabi Sharj...
Quick Doctor In Kuwait +2773`7758`557 Kuwait Doha Qatar Dubai Abu Dhabi Sharj...Quick Doctor In Kuwait +2773`7758`557 Kuwait Doha Qatar Dubai Abu Dhabi Sharj...
Quick Doctor In Kuwait +2773`7758`557 Kuwait Doha Qatar Dubai Abu Dhabi Sharj...
daisycvs
 
Call Now ☎️🔝 9332606886🔝 Call Girls ❤ Service In Bhilwara Female Escorts Serv...
Call Now ☎️🔝 9332606886🔝 Call Girls ❤ Service In Bhilwara Female Escorts Serv...Call Now ☎️🔝 9332606886🔝 Call Girls ❤ Service In Bhilwara Female Escorts Serv...
Call Now ☎️🔝 9332606886🔝 Call Girls ❤ Service In Bhilwara Female Escorts Serv...
Anamikakaur10
 
Call Girls in Delhi, Escort Service Available 24x7 in Delhi 959961-/-3876
Call Girls in Delhi, Escort Service Available 24x7 in Delhi 959961-/-3876Call Girls in Delhi, Escort Service Available 24x7 in Delhi 959961-/-3876
Call Girls in Delhi, Escort Service Available 24x7 in Delhi 959961-/-3876
dlhescort
 
Insurers' journeys to build a mastery in the IoT usage
Insurers' journeys to build a mastery in the IoT usageInsurers' journeys to build a mastery in the IoT usage
Insurers' journeys to build a mastery in the IoT usage
Matteo Carbone
 
Call Girls In Noida 959961⊹3876 Independent Escort Service Noida
Call Girls In Noida 959961⊹3876 Independent Escort Service NoidaCall Girls In Noida 959961⊹3876 Independent Escort Service Noida
Call Girls In Noida 959961⊹3876 Independent Escort Service Noida
dlhescort
 
Call Girls From Pari Chowk Greater Noida ❤️8448577510 ⊹Best Escorts Service I...
Call Girls From Pari Chowk Greater Noida ❤️8448577510 ⊹Best Escorts Service I...Call Girls From Pari Chowk Greater Noida ❤️8448577510 ⊹Best Escorts Service I...
Call Girls From Pari Chowk Greater Noida ❤️8448577510 ⊹Best Escorts Service I...
lizamodels9
 

Último (20)

Call Girls Zirakpur👧 Book Now📱7837612180 📞👉Call Girl Service In Zirakpur No A...
Call Girls Zirakpur👧 Book Now📱7837612180 📞👉Call Girl Service In Zirakpur No A...Call Girls Zirakpur👧 Book Now📱7837612180 📞👉Call Girl Service In Zirakpur No A...
Call Girls Zirakpur👧 Book Now📱7837612180 📞👉Call Girl Service In Zirakpur No A...
 
Call Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service Available
Call Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service AvailableCall Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service Available
Call Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service Available
 
Nelamangala Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Nelamangala Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...Nelamangala Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
Nelamangala Call Girls: 🍓 7737669865 🍓 High Profile Model Escorts | Bangalore...
 
unwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabi
unwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabiunwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabi
unwanted pregnancy Kit [+918133066128] Abortion Pills IN Dubai UAE Abudhabi
 
Eluru Call Girls Service ☎ ️93326-06886 ❤️‍🔥 Enjoy 24/7 Escort Service
Eluru Call Girls Service ☎ ️93326-06886 ❤️‍🔥 Enjoy 24/7 Escort ServiceEluru Call Girls Service ☎ ️93326-06886 ❤️‍🔥 Enjoy 24/7 Escort Service
Eluru Call Girls Service ☎ ️93326-06886 ❤️‍🔥 Enjoy 24/7 Escort Service
 
Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...
Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...
Call Girls In DLf Gurgaon ➥99902@11544 ( Best price)100% Genuine Escort In 24...
 
Falcon Invoice Discounting platform in india
Falcon Invoice Discounting platform in indiaFalcon Invoice Discounting platform in india
Falcon Invoice Discounting platform in india
 
Organizational Transformation Lead with Culture
Organizational Transformation Lead with CultureOrganizational Transformation Lead with Culture
Organizational Transformation Lead with Culture
 
Famous Olympic Siblings from the 21st Century
Famous Olympic Siblings from the 21st CenturyFamous Olympic Siblings from the 21st Century
Famous Olympic Siblings from the 21st Century
 
The Path to Product Excellence: Avoiding Common Pitfalls and Enhancing Commun...
The Path to Product Excellence: Avoiding Common Pitfalls and Enhancing Commun...The Path to Product Excellence: Avoiding Common Pitfalls and Enhancing Commun...
The Path to Product Excellence: Avoiding Common Pitfalls and Enhancing Commun...
 
Quick Doctor In Kuwait +2773`7758`557 Kuwait Doha Qatar Dubai Abu Dhabi Sharj...
Quick Doctor In Kuwait +2773`7758`557 Kuwait Doha Qatar Dubai Abu Dhabi Sharj...Quick Doctor In Kuwait +2773`7758`557 Kuwait Doha Qatar Dubai Abu Dhabi Sharj...
Quick Doctor In Kuwait +2773`7758`557 Kuwait Doha Qatar Dubai Abu Dhabi Sharj...
 
Call Now ☎️🔝 9332606886🔝 Call Girls ❤ Service In Bhilwara Female Escorts Serv...
Call Now ☎️🔝 9332606886🔝 Call Girls ❤ Service In Bhilwara Female Escorts Serv...Call Now ☎️🔝 9332606886🔝 Call Girls ❤ Service In Bhilwara Female Escorts Serv...
Call Now ☎️🔝 9332606886🔝 Call Girls ❤ Service In Bhilwara Female Escorts Serv...
 
Monthly Social Media Update April 2024 pptx.pptx
Monthly Social Media Update April 2024 pptx.pptxMonthly Social Media Update April 2024 pptx.pptx
Monthly Social Media Update April 2024 pptx.pptx
 
Call Girls in Delhi, Escort Service Available 24x7 in Delhi 959961-/-3876
Call Girls in Delhi, Escort Service Available 24x7 in Delhi 959961-/-3876Call Girls in Delhi, Escort Service Available 24x7 in Delhi 959961-/-3876
Call Girls in Delhi, Escort Service Available 24x7 in Delhi 959961-/-3876
 
Insurers' journeys to build a mastery in the IoT usage
Insurers' journeys to build a mastery in the IoT usageInsurers' journeys to build a mastery in the IoT usage
Insurers' journeys to build a mastery in the IoT usage
 
It will be International Nurses' Day on 12 May
It will be International Nurses' Day on 12 MayIt will be International Nurses' Day on 12 May
It will be International Nurses' Day on 12 May
 
Call Girls In Noida 959961⊹3876 Independent Escort Service Noida
Call Girls In Noida 959961⊹3876 Independent Escort Service NoidaCall Girls In Noida 959961⊹3876 Independent Escort Service Noida
Call Girls In Noida 959961⊹3876 Independent Escort Service Noida
 
B.COM Unit – 4 ( CORPORATE SOCIAL RESPONSIBILITY ( CSR ).pptx
B.COM Unit – 4 ( CORPORATE SOCIAL RESPONSIBILITY ( CSR ).pptxB.COM Unit – 4 ( CORPORATE SOCIAL RESPONSIBILITY ( CSR ).pptx
B.COM Unit – 4 ( CORPORATE SOCIAL RESPONSIBILITY ( CSR ).pptx
 
Call Girls From Pari Chowk Greater Noida ❤️8448577510 ⊹Best Escorts Service I...
Call Girls From Pari Chowk Greater Noida ❤️8448577510 ⊹Best Escorts Service I...Call Girls From Pari Chowk Greater Noida ❤️8448577510 ⊹Best Escorts Service I...
Call Girls From Pari Chowk Greater Noida ❤️8448577510 ⊹Best Escorts Service I...
 
Enhancing and Restoring Safety & Quality Cultures - Dave Litwiller - May 2024...
Enhancing and Restoring Safety & Quality Cultures - Dave Litwiller - May 2024...Enhancing and Restoring Safety & Quality Cultures - Dave Litwiller - May 2024...
Enhancing and Restoring Safety & Quality Cultures - Dave Litwiller - May 2024...
 

Version management of abap programs

  • 1. Version Management of ABAP Programs Applies to: SAP Netweaver 2004s. For more information, visit the ABAP homepage. Summary In some companies we may have different systems for Development, Quality Control and Production. Writing a new program from scratch in Development will never be a problem for developers. However, sometimes someone else writes a code and the program is maintained, changed, or enhanced by some other developers. In those cases, there is a great possibility that we start changing or updating wrong versions of the program. In addition, manual comparison of the ABAP programs can lead to a waste of time, which can be avoided. Author: Mukesh Sharma Company: Infosys Technologies Limited Created on: 11 August 2009 Author Bio Mukesh Sharma is working, as Technology Analyst in SAP BI with Infosys Technologies Limited. He is SAP Netweaver 2004s certified solution consultant. His area of expertise is in HR sub modules like Personal Administration and Time. SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 1
  • 2. Version Management of ABAP Programs Table of Contents Scenario 1: When a Program with Different Versions Needs to Be Compared ................................................. 3 When Both the Versions Are in Same System ............................................................................................... 3 When the Program Versions Are in Different Systems ................................................................................... 6 Scenario 2: For Comparison of Two Programs .................................................................................................. 7 Related Content ................................................................................................................................................ 11 Disclaimer and Liability Notice .......................................................................................................................... 12 SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 2
  • 3. Version Management of ABAP Programs Scenario 1: When a Program with Different Versions Needs to Be Compared When Both the Versions Are in Same System Go to transaction SE38. Enter the name of the program as per attached screenshot below: SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 3
  • 4. Version Management of ABAP Programs Go to Utilities as per the below screenshot: Then open the options for VERSIONS, we will see “Version Management” Once we click on “Version Management” we will get a window like as below. From below screenshot, we will get info about various Transports used for the same program. In addition we can get lots of other information also like date of last change and etc. From the above screenshot, we can select the Active version and other versions available to us for comparison. For instance from above screenshot we have selected Active version and version 0004 to compare. SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 4
  • 5. Version Management of ABAP Programs After checking CHECK BOX click on the icon as below: To get the code for both the versions we have selected above. We will see both the codes as below for comparison: Different options available while comparisons are as follows: When we click on the Settings Tab as below: We will get following options , where we can remove comments or indentations or change the display layouts. SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 5
  • 6. Version Management of ABAP Programs When the Program Versions Are in Different Systems We can also do comparison of the programs that lies in two different systems. For this, proceed as below: Click on the below shown icon “Remote Comparison”. Enter the Target system for comparison: We can also use the RFC destination from where we need to compare the programs. In the above screenshot we need to put either Target system name or RFC Destination in order to compare the program in two different systems. Limitation with this is we need the RFC destination defined with the system we are comparing the program. SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 6
  • 7. Version Management of ABAP Programs Scenario 2: For Comparison of Two Programs Go to Utilities as per the below screenshot: Then open the options for “Splitscreen editor” SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 7
  • 8. Version Management of ABAP Programs The “Splitscreen” option will take us to a screen as below: We have to enter the name of the program with which we want to compare as in below screenshot: SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 8
  • 9. Version Management of ABAP Programs We may the select version of the program for comparison. After entering name we may select for display or Change mode of the program. On selecting the display mode we will come to a screenshot as below: Use the below icon to start the compassion: The below mention icons will be used to figure out the mismatch code or the Equal code to drill down or up in the program. SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 9
  • 10. Version Management of ABAP Programs From the below mention screenshot we can get idea as how the comparison goes .The highlighted portion in blue will tell us about the line of codes under comparison. Conclusion: By this small knowledge about the availability of the various options in program editor, we can make our code in harmony with other versions of the same program residing in different or same system. SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 10
  • 11. Version Management of ABAP Programs Related Content http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/e0c5d414-bc11-2a10-76b5- bfd294549e6d&overridelayout=true http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/8e1b5bbe-0601-0010-a28b-c8d964cd0a03 http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/d6dfa210-0a01-0010-fdb3-95bbf075cd4f For more information, visit the ABAP homepage. SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 11
  • 12. Version Management of ABAP Programs Disclaimer and Liability Notice This document may discuss sample coding or other information that does not include SAP official interfaces and therefore is not supported by SAP. Changes made based on this information are not supported and can be overwritten during an upgrade. SAP will not be held liable for any damages caused by using or misusing the information, code or methods suggested in this document, and anyone using these methods does so at his/her own risk. SAP offers no guarantees and assumes no responsibility or liability of any type with respect to the content of this technical article or code sample, including any liability resulting from incompatibility between the content within this document and the materials and services offered by SAP. You agree that you will not hold, or seek to hold, SAP responsible or liable with respect to the content of this document. SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com © 2009 SAP AG 12