Version Management in abap coding

Hi Expertise,
There is one report of 2000 lines, by mistake i have added few lines in middle.
That has changed functionality completely which is wrong.
I have to revert it back .
I have tried with Version Management, but that is for program.
Please help me out .
Best Regards,
Priyaranjan

Hi Priyaranjan,
     Please go to version management. There you can see all versions available. Just check the desired version and click on the Retrieve button. It will discard the current changes and will return the earlier version as it is.  Hope this might be helpful for you.
Regards,
Anubhab

Similar Messages

  • Version Management of ABAP objects in Workbench

    Dear Friends,
    Can any one give idea about document, blog or link, which gives brief explanation about "Version Management of ABAP objects in workbench" with screen dispaly?
    Regards,
    Nilay

    Hello,
    Please see these: [https://websmp101.sap-ag.de/slm], [/people/manish.agarwal4/blog/2007/04/04/sap-centric-enterprise-architecture--part-3--software-lifecycle-manager] and [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/fbec764c-0601-0010-c7a4-cbb73e7fe2eb].
    Regards.

  • Version management in  ABAP query

    Hi,
    How  to  retrieve a infoset &Query using version management, but unfourtunately there is no option for this.Can u n please tell me how is this  possible?

    Havent' work that much with ABAP Querys, but AFAIK it doesn't support Version Management...
    Greetings,
    Blag.

  • Version Management of ABAP program gives the wrong request number

    Hi,
    When i click on Utilities-->Version Management for any program it is not giving me the latest request number as the version info. My system is ECC 6.0 and the kernel level is 175. Please help.
    Regards,
    Sridevi

    Did you do user master with variants import after your system copy in your development?
    Did the program created in Production and moved to development or from dev to prod?
    Which system has the latest timestamp of the transport request?
    once you identified the system,which has the latest change...check if the transport has been moved to the other system.
    Note:
    Its a wrong practice to rebuild your development with your production.
    You development has already lost all the version history and you may not get past history.
    Its most like a coplicated scenarion than the traditional one.

  • Version management for SAP Screens?

    Hi,
    I need to do version comparison  for sap screens .
    My source system is R/3 4.7 & Target system is ECC 6.0.

    For front end SAPUI5 CODE in Elipse or RIVER RDE you can use GIT which is pretty standard way of doing code management. Once you push the code to GW it is in BSP and then you dont have much control on the version management side. If there are multiple developers working on front end code then you can push to GW using ABAP Team Provider plugin in Eclipse that pushes the sapui5 code to BSP via workbench request and once 1 developer is done then he/she will submit the code. the next person then does the GET from GW into their Eclipse to get the latest version of source code. But if there are 10 changes to the sapui5 code then on front end side you should use GIT or BitBucket or MS Team Share kind of source code control tools that integrate with ECLIPSE.
    For oData Service you can do version management in ABAP stacks. you can have multiple versions for your service and then deploy to prod the one that you are sure of. Std change management can be used for backend GW service development.
    thanks
    Ashish

  • SAP Fiori: Version Management for SAP Gateway Enhanced Services & SAP UI5 Application

    Hello Experts,
    Greetings!!
    I would like to check how version control is achieved for SAP Fiori app extensions. Or while enhancing the SAP UI5 applciation or enhancing a SAP netweaver gateway backend service for Fiori App.
    I would appreciate your inputs. Thanks in Advance.
    Sudhanshu ~
    Tags edited by: Michael Appleby

    For front end SAPUI5 CODE in Elipse or RIVER RDE you can use GIT which is pretty standard way of doing code management. Once you push the code to GW it is in BSP and then you dont have much control on the version management side. If there are multiple developers working on front end code then you can push to GW using ABAP Team Provider plugin in Eclipse that pushes the sapui5 code to BSP via workbench request and once 1 developer is done then he/she will submit the code. the next person then does the GET from GW into their Eclipse to get the latest version of source code. But if there are 10 changes to the sapui5 code then on front end side you should use GIT or BitBucket or MS Team Share kind of source code control tools that integrate with ECLIPSE.
    For oData Service you can do version management in ABAP stacks. you can have multiple versions for your service and then deploy to prod the one that you are sure of. Std change management can be used for backend GW service development.
    thanks
    Ashish

  • ABAP coding issues after BW upgrade

    Hello Gurus,
    We recently did a BW upgrade from version 3.5 to 7.31 and even since have been encountering few strange issues with many of our ABAP coding.
    For example, there is an APPEND statement in one of our Update Rules as below:
    APPEND <lw_rtab_wa> TO <lt_rtab>.
    Before upgrade, this was working as expected and the contents of <lw_rtab_wa> was getting transferred to <lt_rtab> without any issues.
    Now after upgrade, we find that the contents of <lw_rtab_wa> is being clubbed together in the 1st few columns of <lt_rtab>.
    Both the <lw_rtab_wa> & <lt_rtab> have the same fields, but the length of few fields in <lt_rtab> is bigger than that in <lw_rtab_wa>. For example DOC_NUMBER in <lw_rtab_wa> is of type C(10) while in <lt_rtab> it is C(20). This difference is causing the data of the 2nd field also to be over-writen in the DOC_NUMBER field of <lt_rtab>.
    Please let us know if you have encountered similar situations after your BW upgrade. Any possible solutions to this would be very much appreciated as this is causing PROD issues at the moment!
    Thanks
    Arvind

    Hi Arvind,
    After Upgrade In BW 7.3 or higher versions All data elements that use the domain RSCHAVL are converted from CHAR60 to SSTRING. thats the reason you are getting that syntax error.
    Take help of some ABAP programmer and try to change the syntax as suggested from below link.
    Just scroll down and check the same. even though link shows for BW 7.4 issues, its applicable for 7.3 too. Please let me know
    http://scn.sap.com/community/data-warehousing/bw/blog/2014/07/28/sap-bw-74-analysis-issues
    Thanks
    Ajay

  • Software Configuration Management for ABAP Development ?

    Hi,
    we are a software company selling a Data Capture Solution.
    For this, we are currently in the process to develop an interface for transferring the extracted data into a customer's SAP R/3 system.
    Since we want to develop this interface following certain software engineering principles, we are looking for a way to solve certain simple common Software Configuration Management issues, such as:
    - Object Versioning (Similar to file versioning in classic software development): That means being able to:
    -- Keep track WHO changed WHAT WHEN and WHY?
    -- Revert to a former version of an object (e.g. when the fix of a former defect must be revoked for some reason)
    -- Keep track which changes have been made for a certain Change Request (NOT meaning SAP Change   Requests, but Change Request for our interface development)
    - Label a certain version state as 'released' or 'tested' or whatever
    - Perform a kind of 'Branching' (Classical Software Configuration Management task), e.g. when we   release a version of our interface and start the development of a new version, we must open a   'Maintenance Branch' of our released version parallel to the ongoing development of the future release.
    When I say 'Objects', I mean everything being concerned when developing something within R/3; that can be ABAP programs, forms, tables (structure and content(!)), etc.
    We are using an SAP System version ECC 5.0 for development; as for now, we have come to the conclusion to use the versioning that comes with the Transforms, although they do not really cover the above requirements as we would like to.
    Is there anybody out there who had the same idea and solved it somehow?
    My impression is that in the SAP world, classical Software Configuration Management is not a part of the way of thinking; and that development for SAP R/3 has little in common with classical software development.
    But maybe there is an add-on or some hidden features of NetWeaver or anything that can solve these issues.
    Hope is the last to die...
    Thank you very much for any feedback,
    Regards,
    Jörg

    Thank you very much for your answers!
    @Pushkar:
    No this is not exactly what I meant;
    What we want to do is a kind of classical configuration management or at least version control of
    development objects like ABAP programs, table definitions, table data etc. that are contained within our SAP development system.
    It's not about version management of external documents imported into SAP.
    I know that there is a kind of version control via Transports, but this does not cover all classical version control mechanisms; what we are missing there is
    - the possibility of reverting to an older version of an 'object'
    - Branching / Merging mechanisms
    - the possibility to choose which changes I want to release with which transform and which objects
    - view differences between arbitrary versions of an object
    I was hoping there is maybe a kind of 'add-on' or maybe even a built-in tool that provides classical version control mechanisms or something similar.
    Thank you for further help,
    Regards,
    Jörg

  • Performance of ABAP coding very poor

    Hi gurus,
    I'm a newbie in ABAP programming.
    Currently, I managed to write an ABAP coding for BW to load data from a source DSO to target DSO.
    We are using BW 3.5.
    In the source, we have YTD amount as Key Figures.
    In the start routine, we use ABAP coding to calculate the Monthly value and Last 12 Months value.
    Monthly value is defined as: current month YTD - last month YTD (except when current month = January, then monthly value for January = YTD value for January)
    Last 12 months value is calculated for example as follow:
    for March 08, then Last 12 months value is April 07-March08
    Thus the formula for last 12 Months value is:
               YTD current month current year + YTD month12 last year - YTD current month last year
    I used internal table to read and store all of the information
    However, I need to read 3 times from internal table to get all of the necessary value to calculate the monthly value and last 12 months value.
    The performance is very low. The system runs for 40 minutes to read and calculate 15500 data.
    Therefore if you can perhaps give some hint/tip/tricks how to improve the performance of the code, it will be highly appreciated.
    Thank you very much in advance.
    Best regards,
    Fen
    My code is as follow:
    Define internal table to hold last year & current year data:
      DATA: LCYEARDATA type sorted table of /bic/aZABC3_O00
            with unique key /BIC/ZABC_ENTI /BIC/ZABC_ACC
            /BIC/ZABC_SUBA /BIC/ZABC_VERS CALMONTH
            with header line.
    Create variables needed to hold last month/year values.
      DATA: CALMONTHLOW TYPE /BI0/OICALMONTH.
      DATA: CALMONTHHIGH TYPE /BI0/OICALMONTH.
      DATA: CALYEARTHISYEAR TYPE /BI0/OICALYEAR.
      DATA: CALYEARLASTYEAR TYPE /BI0/OICALYEAR.
      DATA: CURRENTMONTH TYPE /BI0/OICALMONTH2.
      DATA: CURRENTMONTHLASTYEAR TYPE /BI0/OICALMONTH.
      DATA: LASTMONTH TYPE /BI0/OICALMONTH.
      DATA: CALMONTH12LASTYEAR TYPE /BI0/OICALMONTH.
      DATA: LASTMOYTD type /BI0/OIAMOUNT.
      DATA: LAST12MONTH TYPE /BI0/OIAMOUNT.
      DATA: YTDLASTYEAR type /BI0/OIAMOUNT.
      DATA: FIRSTRUN type N.
      DATA: MONTHLYVALUE type /BI0/OIAMOUNT.
      DATA: YTDMONTHLASTYEAR type /BI0/OIAMOUNT.
      DATA: AMOUNT type /BI0/OIAMOUNT.
    Set initial value of all variables to 0.
      CALMONTHLOW = 0.
      CALMONTHHIGH = 0.
      CALYEARTHISYEAR = 0.
      CALYEARLASTYEAR = 0.
      CURRENTMONTH = 0.
      CURRENTMONTHLASTYEAR = 0.
      LASTMONTH = 0.
      LASTMOYTD = 0.
      LAST12MONTH = 0.
      YTDLASTYEAR = 0.
      YTDMONTHLASTYEAR = 0.
      FIRSTRUN = 0.
      MONTHLYVALUE = 0.
      CALMONTH12LASTYEAR = 0.
    Loop through data package.
      LOOP AT DATA_PACKAGE.
        IF DATA_PACKAGE IS NOT INITIAL.
    First run:
          IF FIRSTRUN = 0.
    Get current year from any line in the data package.
            CALYEARTHISYEAR = DATA_PACKAGE-CALMONTH(4).
            FIRSTRUN = 1.
          ENDIF.
    Calculate last year (i.e. data package year - 1).
            CALYEARLASTYEAR = CALYEARTHISYEAR - 1.
    Calculate current month
            CURRENTMONTH = DATA_PACKAGE-CALMONTH+4(2).
    *Set CALMONTHLOW and CALMONTHHIGH as time period to fill the internal
    *table:
            CONCATENATE CALYEARLASTYEAR CURRENTMONTH INTO CALMONTHLOW.
            CONCATENATE CALYEARTHISYEAR CURRENTMONTH INTO CALMONTHHIGH.
    Fill internal table with Last Years data and Current Year data:
            select *
              from /bic/aABC2_O00
              into table LCYEARDATA
              WHERE CALMONTH >= CALMONTHLOW
                AND CALMONTH <= CALMONTHHIGH
                AND /BIC/ZABC_ENTI = DATA_PACKAGE-/BIC/ZABC_ENTI
                AND /BIC/ZABC_ACC = DATA_PACKAGE-/BIC/ZABC_ACC
                AND /BIC/ZABC_SUBA = DATA_PACKAGE-/BIC/ZABC_SUBA
                AND /BIC/ZABC_VERS = DATA_PACKAGE-/BIC/ZABC_VERS.
    Continue with the looping
    Get last month from current month.
            LASTMONTH = DATA_PACKAGE-CALMONTH - 1.
    *CHECK IF CURRENTMONTH = JAN then LastmonthYTD amount = 0, else read
    *from the internal table.
    *CURRENTMONTH = DATA_PACKAGE-CALMONTH+4(2). (this variable has been set
    *above)
            IF CURRENTMONTH = '01'.
              LASTMOYTD = 0.
            ELSE.
              READ TABLE LCYEARDATA
                WITH KEY
                /BIC/ZABC_ENTI = DATA_PACKAGE-/BIC/ZABC_ENTI
                /BIC/ZABC_ACC = DATA_PACKAGE-/BIC/ZABC_ACC
                /BIC/ZABC_SUBA = DATA_PACKAGE-/BIC/ZABC_SUBA
                /BIC/ZABC_VERS = DATA_PACKAGE-/BIC/ZABC_VERS
                  CALMONTH = LASTMONTH.
              IF sy-subrc IS INITIAL.
                LASTMOYTD = LCYEARDATA-AMOUNT.
              ENDIF.
            ENDIF.
    *Calculate Monhtly value for this month (to later be stored in data
    *package)
            MONTHLYVALUE = DATA_PACKAGE-AMOUNT - LASTMOYTD.
    Count value for Last 12 Months:
    1: Get the YTD Month12 Last Year & YTD CurrentMonth Last Year.
            CONCATENATE CALYEARLASTYEAR CURRENTMONTH INTO
            CURRENTMONTHLASTYEAR.
            CONCATENATE CALYEARLASTYEAR '12' INTO CALMONTH12LASTYEAR.
            READ TABLE LCYEARDATA
               WITH KEY
                /BIC/ZABC_ENTI = DATA_PACKAGE-/BIC/ZABC_ENTI
                /BIC/ZABC_ACC = DATA_PACKAGE-/BIC/ZABC_ACC
                /BIC/ZABC_SUBA = DATA_PACKAGE-/BIC/ZABC_SUBA
                /BIC/ZABC_VERS = DATA_PACKAGE-/BIC/ZABC_VERS
                 CALMONTH = CALMONTH12LASTYEAR.
            IF sy-subrc IS INITIAL.
              YTDLASTYEAR  = LCYEARDATA-AMOUNT.
            ENDIF.
            READ TABLE LCYEARDATA
              WITH KEY
                /BIC/ZABC_ENTI = DATA_PACKAGE-/BIC/ZABC_ENTI
                /BIC/ZABC_ACC = DATA_PACKAGE-/BIC/ZABC_ACC
                /BIC/ZABC_SUBA = DATA_PACKAGE-/BIC/ZABC_SUBA
                /BIC/ZABC_VERS = DATA_PACKAGE-/BIC/ZABC_VERS
                CALMONTH = CURRENTMONTHLASTYEAR.
            IF sy-subrc IS INITIAL.
              YTDMONTHLASTYEAR  = LCYEARDATA-AMOUNT.
            ENDIF.
    2. Specify YTD This month.
        AMOUNT = DATA_PACKAGE-AMOUNT.
    *3: Last 12 Months = (YTD Last Year - YTD Month Last Year) + YTD This
    *Month
           LAST12MONTH = YTDLASTYEAR - YTDMONTHLASTYEAR + YTDTHISMONTH.
           LAST12MONTH = YTDLASTYEAR - YTDMONTHLASTYEAR + AMOUNT.
    Save MONTHLYVALUE and LAST12MONTH to the DATA_PACKAGE.
            DATA_PACKAGE-/BIC/ZAMTMO = MONTHLYVALUE.
            DATA_PACKAGE-/BIC/ZAMTLTM = LAST12MONTH.
            modify DATA_PACKAGE.
            ENDIF.
          ENDLOOP.
        ABORT = 0.

    Hi,
    Just check these blogs to improve performance...
    The SQL Trace (ST05) u2013 Quick and Easy
    The SQL Trace (ST05) – Quick and Easy
    The ABAP Runtime Trace (SE30) - Quick and Easy
    The ABAP Runtime Trace (SE30) -  Quick and Easy
    Regards,
    Sachin

  • PO version management - view history version

    Hi expert,
    I'm using PO version management together with change PO output.
    1. Is there a way to pre-view or re-print a certain history version of the PO output? currently only the last version can be previewed and I got error message when I try to reprint hisotory version (no printed relevant changes).
    2. When I change the PO, a new version is not created until I save the PO. I have to come to the change mode again to mark it "complete". Is there a way to have the new version available before save, so I can make my changes and mark it completed right way.
    3. Is there a standard SAP report shows incompleted PO versions? I need to run it to remind me of the PO's that I still need to work on or to mark completed.
    Thanks a lot for your kind help!
    Regards,
    Jully

    Hi Jully,
    You can try the following link :
    http://www.sap-img.com/mm001.htm
    It is an ABAP program contributed by one of the SAP members, which reports all the changes made in PO and list out the details per document.
    Take the help of your ABAP consultant to run for you.
    See if it helps.
    Best regards
    Amit Bakshi

  • Version Management for SPRO

    Hi,
    How do i check for the version of SPRo. A change has been made in the nodes. I want to check for the history of changes made to spro settings.
    How do i go about it ?

    Hi,
    No this is not my question .
    I goto transaction SIMGH. Select my IMG structure and enter which displays all the nodes attached, Now a user has made changes and a few nodes are missing . Any changes in IMG will be done only to a transport requst.
    I want to check what changes hve been made to the nodes.
    e.g when we want to check changes for a ABAP prog. we goto the version management and check changes made and which transport request is it in.
    can such a check be done for IMG changes . This is my question. Hope i am clearer this time .

  • Sales Order Version Management

    Hello Guys
        Who had any experience or  document or solution about the Sales Order Version Management just in SAP R3 or ECC6.0?
        Thank you so much!
    Best Regards
    Wang yiwei

    Dear Vincent
    May be this is related ABAP Issue please check with them because i found same issue
    "BAPI_SALESORDER_CREATEFROMDAT2" - getting error while executing in se37.
    "Specify either address number or address handle " BAPI_SALESORDER_CREATEFR

  • PO Version management problem!

    Dear Experts!
    After implementing Version Management for PO's , when the user is trying to take the printout of a PO that is modified , he could get the print(me9f) of PO with only the line items that were modified in the PO but not the whole PO , but when we see the PO in me23n we can view the whole PO .
    Where is the problem? is it regards to ABAP or configuration?
    Regards,
    Parwez

    HI!
    Well , the PO is printed thru ME9F transaction but is viewed threu me23n .
    In this case me23n gives whole Po but me9f gives only modiifed line item sin the PO.
    We have custom medruck form for printing the PO
    Regards,
    Parwez

  • Software Configuration and Change Management for ABAP

    Hi all,
    we developed an ABAP application with about 10 developers and shipped it to Customer A.
    Then we do corrections and enhancements for a new Customer B. But then Customer A finds bugs in his shipped version, which is not the current version on our development system.
    Now a lot of time is wasted debugging the current version and finding out why the bug is there in the shipped version A but not in the current version.
    So its difficult and timeconsuming to manage those different versions of the same application for different customers.
    This effort increases with each new customer dramatically.
    The ABAP workbench only knows linear versioning of single ABAP objects like report, function module or class.
    Now the question:
    Is there a standard transaction or external ABAP software that supports such a Software Configuration & Change Managment, i.e. allows tagging, branching, maintaining multiple development branches, allows running transactions and reports of older revisions, etc. like so many non-SAP/ABAP SCCMs like CVS, Bitkeeper, Subversion or Monotone do in the OpenSource world?
    I found one called Conigma from Galileo Group, but am wondering if there are others, or whether there is someone having used such a tool.

    Hi Frank,
    In ABAP world, there is supposed to be one development environment for one production system.
    The transport of changes follow the path
    DEV --> QAS --> Production.
    One golden rule is while making any changes to a program in  Development, ensure that the version is compatible with production and QAS.
    If there is a change request already open for the development object then that earlier change request should be finished first and the changes should get transported to QAS and production.
    It seems you are trying to handle two production systems using one development system. That will surely bring some serious fun
    Though, if you have no other option then keep the record of versions applicable to your different customers.
    Later retrieve the version according to the customer before making any changes.
    Cheers,
    Ram

  • Version Management for BW queries?

    Hi,
    Is version management available for queries in BW?
    Like an ABAP program, different versions can be generated, allowing an older version to be retrieved and overwrites current version, for the case where heavy changes applied but has to be reverted.  And also the function of comparing versions to easily identifying the differences.
    Thanks.

    There is no version management for queries built into BW. Of course, you can generate new versions of queries each time you change them by doing a "Save As...", but we have found that this is counterproductive for several reasons, including:
    1) Extra Query Maintenance - Leads to multiple copies of a query, and eventually confusion over which one(s) are supposed to be used and which one(s) are "obsolete".
    2) User Favorites Maintenance - Any favorites that have been created by users will have to be recreated from scratch using the new query and/or workbook.
    There are probably others...
    Anyway, #2 is the one that finally convinced us to stop creating new versions of queries. Instead, we do considerable testing of any changes on our Dev and QA systems before finally replacing the Prod copy of the query. Of course, "backing out" changes is still a pain this way, but at least you have the original query on Prod to go by. For really major changes, we will also generate "Before" and "After" XLS files with results, both to prove that we are getting the expected results and to serve as a way to go back if the Prod query has been updated before a problem is discovered.
    Hope this helps...
    Bob

Maybe you are looking for

  • Cannot delete file ...bug?

    This appears like a bug to me...see if you agree. A file opened for read-only access and memory mapped using the map method of FileChannel cannot be deleted even when the channel is closed. An example of this is the simple Grep.java example from NIO

  • ITunes Store causing whole program to freeze on Windows 7 (64-bit)

    So I installed iTunes 10.5 for Windows 7 (64-bit) and cannot open it up properly: the iTunes Store makes the entire program freeze up. I've cleared the DNS cache, closed my firewall, changed proxy settings, and iTunes it still unusable. What am I mis

  • 2nd hard drive in Satellite Pro P200

    Hi everyone I have a Satellite Pro P200. Does anyone know where I can get a lead and a caddy to install a 2nd hard drive?

  • Stored function not returning result set unless recompiled

    Hi, I have a strange situation going on with a basic Java (1.6.0.17) application talking to an Oracle 11g (11.2.0.1.0) database. Basically what is happening is that sometimes a stored function's return value (a result set) is not making it as far as

  • A question about reading tomcat source code

    Hi, everyone! I just saw the tomcat source code, there is a method named "await" in StandardServer class. The comment of this method decribe that this method will wait util a proper shutdown command is received. I'm confused about it after read this