Skip to Content
Author's profile photo Helmut Tammen

How to migrate a DC to a new SC

How to migrate a DC to a new SC


Problem


You have developed one (or more) DC(s) for a SC. Now you want
to use the results (sources) of this development in another DC.
Additionally you
want to enhance the functionality of the DC but not to change the
behaviour of the original DC. Both DCs should be executed at the same
server.

Because you want to run both DCs at the same server the DC
names have to be different. At the same server a DC (that has a unique
name) can only be deployed once.


Solution


To solve the problem you have to migrate the DC to another SC.
This means you have to copy the original DC, assign it to your new SC,
give it a new name and rename the used packages. This does not sound
very difficult. But NWDI and NWDS do not support this with wizards or
other tools. So you have to do all the work manually.


Preconditions


    • You defined a new SC in SLD into which you want to
      migrate one or more DCs
    • You defined a new namespace for developing DCs of the new
      SC.
    • You created a new development track in which you develop
      the newly created SC.
    • You imported the development configuration of your new
      track.


Steps to do


cfg/. 

    1. def/*.pp 
    2. .dcdef 

src/*/.* 

Model Folder/*/.*

Conclusion


You may think that this description violates the thoughts that
are behind component based development and I will agree with you. But
in todays practice there are situation that require this solution. The
description was born because customers of mine had this demand.

If one of the readers will have the time to write a tool that
does all this manual stuff with just some mouse-clicks I would highly
appreciate if she uploads this tool to SDN.


Assigned Tags

      8 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Matthias Sohn
      Matthias Sohn
      A command line tool supporting component refactoring
      operations has been developed and will be shipped
      with NWDI in one of the next SPs in Netweaver 2004s.
      Author's profile photo Former Member
      Former Member
      Could you tell me the status of the "New DC tool"? As of 2007/04/01, is this already available? What is the name of this feature?

      Best Regards.
      Sejoon

      Author's profile photo Former Member
      Former Member
      Hi

      Request you ti kindly let me know if you are aware of the tool mentioned here, or you are aware of other procedure where you can use the same DC with diffrent DC name in same SC

      Author's profile photo Former Member
      Former Member
      Hello Matthias,

      do you have an information whether this tool is already available?

      Thanks

      Franz

      Author's profile photo Matthias Sohn
      Matthias Sohn
      Hi,

      you may use the command "movedc" of the command line tool "dctool" to move a DC to a different SC. Find the documentation in SAP library at http://help.sap.com/saphelp_nw2004s/helpdata/en/43/cf6bac44e70a85e10000000a1553f6/frameset.htm

      regards
      Matthias

      Author's profile photo Larry Chaput
      Larry Chaput
      I've read through the documentation on this tool and have not found that its capable of doing a copy.  I'm working with ESS/MSS WebDynpro packages and would like to copy an ESS WebDynpro DC to the MSS package and make modifications to it.
        Is that possible with this tool and if so how would I go about doing this?
      Author's profile photo Former Member
      Former Member
      Hi All,

      please confirm if the tool is available...

      cheers,
      SJ

      Author's profile photo Former Member
      Former Member
      Hi All,

      I am trying to copy multiple DC's from one SC to another. Given that DC2 has dependency on DC1, how would I carry these references when I make a copy of the DC's into a new SC? What I would like to avoid is having the new copied DC's reference on of the original DC's from the first SC.

      I have created the following diagram to assist in describing my question.
      http://img231.imageshack.us/img231/6379/16569361cy3.jpg