!--a11y-->
Copying a Custom Controller 
The refactoring function Copy is available for custom controllers. You can make the functions of an existing custom controller available as a copy under a different name within a Web Dynpro component. The copy function for custom controllers can also be used across Web Dynpro components.
To copy a custom controller, proceed as follows:
1.
In the Web Dynpro
Explorer, place the cursor on the custom controller you want to copy and
choose
Copy in the context
menu.
2.
Place the cursor on
the
Custom Controllers node of
the Web Dynpro component that is to be the target component.
3.
Choose
Paste in the context menu.
4. Enter a name for the custom controller copy and choose OK.
The copy of the source file <myCustomController>.wdcontroller is inserted in the target project directory under the new name. The new custom controller is also displayed in the Web Dynpro Explorer. The controller copy is assigned the same model use as the original controller. The same applies to existing mapping definitions for the source controller, provided the mapping source can be reached in the mapping target.
The model usage FlightModel was assigned to a controller FlightController. The same use relationship for this model now also exists for the controller copy Copy_of_FlightController.
