As Copy Project function does not enable you to copy runtime artifacts, you need to generate run time artifacts as follows:
Make all changes you require in the project created as a copy.
Save the changes.
Click Generate to generate untime artifacts for the new project.
If template (original) project does not include manual coding, the Generate function generates all the runtime artifacts as they exist in the original project and its service. If templatel project includes manual coding and the service was created using the Standard generation strategy, follow steps below to generate runtime artifacts.
Start ABAP Workbench (transaction SE80) .
Copy all the custom coding from the runtime artifacts of the template project.
Paste all the custom coding to the runtime artifacts of the project created as a copy.
If the project was created according to the Standard generation strategy, then proceed as follows:
Copy the custom coding from the _EXT classes of the template project.
Paste the custom coding to the _EXT classes of the project created as a copy.
Custom coding is located in methods newly defined in the _EXT classes and/or redefined methods from the super classes. Verify corresponding _EXT classes for data provider class (DPC) and model provider class (MPC):
DPC_EXT class: Check the redefined CRUD method for each entity set (GET_ENTITYSET, GET_ENTITY, CREATE_ENTITY, UPDATE_ENTITY and DELETE_ENTITY) and overwrite the same method in the corresponding template class and copy and paste the method’s content.
MPC_EXT class: Check if the DEFINE method is redefined in the template project.
After you have generated the runtime artifacts, register your service using the Service Maintenance function in the relevant systems.