Home > SAP software/management Tips > SAP Basis administration tips > Safeguarding the version database during a refresh of the development system
SAP Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

SAP BASIS ADMINISTRATION TIPS

Safeguarding the version database during a refresh of the development system


Bert Vanstechelman
04.01.2006
Rating: -3.83- (out of 5)


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


Introduction
Developers and customizing consultants often need representative transaction data -- both in terms of quantity and quality -- in their development system. This is especially true in two-system SAP landscapes (SAP landscape with only a development and production system, no quality assurance). In almost every SAP environment, after several months or years, the discrepancy between the data in the development and production system becomes problematic, as it makes ongoing development and customising difficult or nearly impossible.

Two procedures exist to refresh transaction data in the development system: client copy or client transport and a database copy. Both of them have serious drawbacks:

-- Client copy using remote function calls or client transport. Although this might be feasible in small environments, it has many disadvantages:

* It can cause inconsistencies between client-dependent and client-independent data (or overwrites the client-independent data of the development system if client-independent customising was included).
* Both the source and target clients are unavailable during the client copy. The source client is unavailable during the client export if client transport is used.
* The process is too slow for copying large production clients.

-- A database refresh in which the development system is completely overwritten with a backup of the productive system:

* SAP strongly recommends always retaining the development system, as it contains the version history of all repository objects. The version history of changed SAP objects in particular, and customer objects is important for future SAP upgrades. This document describes a workaround in which the complete version database of the development system can be exported and imported again after the system copy.

Prerequisites and restrictions

  • Prior to the refresh, all change requests that exist in the development system must be import...

    Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



    RELATED CONTENT
    SAP Basis administration tips
    Converting from MDMP to Unicode
    Can SAP developer include authority check for S_TCODE in a called transaction?
    How to fix Smart Forms printing double purchase orders
    Deriving the name of a Smart Style from a Smart Form
    SAP FI/CO consultant's role during upgrade from R/3 to ECC 6.0
    Alternatives to downloading a trial version of SAP IDES ERP software
    Verifying data consistency in production SAP FI/CO system when restoring a backup
    How to upgrade DB2 on SAP R/3 4.7
    How to create a snapshot from NAS and SAN of Oracle database
    How to clone an SAP ECC 6.0 instance

    RELATED RESOURCES
    2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
    Search Bitpipe.com for the latest white papers and business webcasts
    Whatis.com, the online computer dictionary


    ed into the production system, or they must be deleted. The reason is that the version management refers to a change request number. If you restore version tables containing references to change requests that no longer exist, problems may occur.


  • The version data of the source system is completely lost. If there were differences between the two systems (e.g. repairs to SAP objects) then all record of these will disappear. Furthermore the source (e.g. production) system should not contain any repairs that were not also applied in the development system.

  • To avoid conflicts the source and target system should be at the same support package level.

  • As an extra precaution, it might be wise to export the version tables of the source system before the import of the version data from the old development system.

  • After the refresh, check, and if necessary, change the transport number range in E070L.

  • You can only transport ALL versions. All versions existing in the import system are deleted!
  • Procedure
    The export and import of the Version Database can be carried out using R3trans or database tools.

    Safeguarding the Version Database using R3trans
    1. Create a control file for R3trans with the following contents:

    export file = '<FILENAME>'

    <FILENAME> is the name of the file into which the export should be carried out

    NOTE: The delete statements have no effect on the system. These commands are specific to R3trans.

    2. Use R3trans to export the version database : R3trans -w
    3. After the system copy, use R3trans to import the version database:
    Modify the control file created earlier. Change the export statement into import. The remaining contents of the control file remains the same.

    import
    file = '...'

    Start the import
    R3trans -w <log file> <name of the control file Import>

    Safeguarding the Version Database using native database tools (ex: for Oracle)
    Safeguarding and restore the Version Database is probably much easier and faster with native database tools. This is an example with the standard Oracle export and import tools (exp and imp)
    1. Create a parameter file with the following contents : (for example VERSION.PAR)


    2. Use Oracle Export for to export the version database:
    # exp sapr3/sap PARFILE=VERSION.PAR

    3. Use Oracle Import for to import the version database after the system refresh:
    # imp sapr3/sap PARFILE=VERSION.PAR

    Rate this Tip
    To rate tips, you must be a member of SearchSAP.com.
    Register now to start rating these tips. Log in if you are already a member.


    Submit a Tip




    DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



    NetWeaver SAP White Papers
    About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
    SEARCH 
    TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

    TechTarget Corporate Web Site  |  Media Kits  |  Site Map




    All Rights Reserved, Copyright 2000 - 2009, TechTarget | Read our Privacy Policy
    SearchSAP.com is a search service provided by TechTarget and is completely
    independent of and not affiliated with SAP AG.
      TechTarget - The IT Media ROI Experts