You can copy entire Web Dynpro components, both within a Web Dynpro project and across different Web Dynpro projects. Copying a Web Dynpro component not only copies the component files, but also all entities that were defined for this component – for example, views, methods, windows, custom controllers, and user messages.
To copy a Web Dynpro component, proceed as follows:
1. In the Web Dynpro Explorer, place the cursor on the Web Dynpro component you wish to copy. You do not have to display the individual elements of the source component. You only have to select the topmost node of the component.
2. In the context menu, choose Copy.
3. Now place the cursor on the node Web Dynpro Components. This can be either the main component node of the same Web Dynpro project that contains the component to be copied, or a different Web Dynpro project altogether.
4. In the context menu, choose Paste.
5. Enter a name for the component copy. Within the same project, this cannot be the same name as that of the original component.
6. Choose OK to start the copy process. You will then have to make further specifications and confirmations regarding the names of the individual Web Dynpro component entities. If you do not want to copy an entity, choose Cancel. You then go on to the subsequent entities.
In the Web Dynpro Explorer, the component copy is displayed as new subnode of the main node Web Dynpro Components in the target project. The new node also contains all the Web Dynpro entities that were copied with the component.
You can also copy individual application entities. Information about the procedure is available under Copying a View and Copying a Custom Controller.