Show TOC

Generating Runtime Artifacts for Copied ProjectsLocate this document in the navigation structure

Explains how to generate runtime artifacts for projects that you created by copying an existing project in Service Builder.

Context

As the Copy Project function does not enable you to copy runtime artifacts, you need to generate the runtime artifacts as follows:
  1. Make all changes you require in the project you created as a copy.
  2. Save all changes.
  3. Click Generate to generate the runtime artifacts for the new project.
    Note If template (original) project does not include manual coding, Generate function generates all the runtime artifacts as they exist in the original project and its service. If original project does include manual coding and the service was created using Standard generation strategy, follow below steps.
If the template project includes manual coding and you also want to generate runtime artifacts, proceed as follows:
  1. Start ABAP Workbench (transaction SE80).
  2. Copy all the custom coding from the runtime artifacts of the template project.
  3. Paste all the custom coding to the runtime artifacts of the project you created as a copy.
If the project was created according to the Standard generation strategy, then proceed as follows:
  1. Copy the custom coding from the _EXT classes of the template project.
  2. Paste the custom coding to the _EXT classes of the project created as a copy.
  3. 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):
    1. DPC_EXT class: check the redefined CRUD method for each entity set (GET_ENTITYSET, GET_ENTITY, CREATE_ENTITY, UPDATE_ENTITY, DELETE_ENTITY and overwrite the same method in the corresponding template class and copy and paste the method's content.
    2. MPC_EXT class: check if the DEFINE method is redefined in the template project.

Next Steps

After you have generated the runtime artifacts, use the Service Maintenance function to register your service in the relevant systems.