Let us suppose that you need to migrate a local Web Dynpro project to the Java infrastructure. You also need to use the DTR to manage the project resources. The instructions below will show you how to perform this migration, and what to look out for while doing so.
To migrate a local Web Dynpro project to a Web Dynpro DC project, proceed as follows:
..
1. Create a new Web Dynpro DC Project.
This creates an empty container for a Web Dynpro DC that does not have yet have any functions. The new DC should include all relevant development objects in the local project.
Do not check the newly created DC into the DTR yet.
2. In the Web Dynpro perspective, switch to the Navigator view.
3. Select the local Web Dynpro project that you want to migrate and expand the project structure.
4. Select the source folder src and the Model Folder, then choose Copy in the context menu (right mouse click).
5. Now choose the DC project that you have just created and expand the project structure in the Navigator view down to the source folder.
6. Select the Packages node and choose Paste.
The Add Files to DTR dialog box appears.
7. Choose OK to confirm your selection.
8. Assign a DTR activity either by creating a new activity or choosing an existing one.
9. Switch to Web Dynpro Explorer.
10. Choose the project node for the DC project and choose the Reload function.
11. A dialog box appears. Choose Reload again.
This function now also reloads Web Dynpro metadata into the new project.
12. Execute a local rebuild for the entire DC project. Choose the Rebuild project function.
13. If there are no errors in the task view, execute a DC-based build by choosing Development Component → Build.
This build is identical to the central build tool; it is needed to cater for mutual dependencies of DCs during the build.
You have migrated your local Web Dynpro project into a DC project. You can now use the new DC in your local environment and test it before checking the assigned activity into the DTR.