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 the Service Builder.

Context

Since the Copy Project function does not enable you to copy a project's runtime artifacts, you need to generate the runtime artifacts as follows:

Procedure

  1. Make all changes you require in the new project you created as a copy.
  2. Save all changes.
  3. Choose Generate to generate the new runtime artifacts for the new project. Provided that the template (original) project does not include manual coding, the Generate function will generate all the runtime artifacts as they exist in the original project and its service. If the original project does include manual coding, however, and provided that the service was created using the Standard generation strategy, follow the next steps outlined below. You only need to perform the next steps if your project includes manual coding.
  4. Start ABAP Workbench (transaction SE80).
  5. Copy all the custom coding from the runtime artifacts of the template project.
  6. Paste all the custom coding to the runtime artifacts of the project you created as a copy. Provided that the project was created according to the SAP Standard generation strategy, follow the next steps outlined below. If you have used a custom-specific generation strategy, you would need to follow the custom-specific instructions for this instead.
  7. Copy the custom coding from the _EXT classes of the template project.
  8. Paste the custom coding to the _EXT classes of the project created as a copy.
  9. Verify corresponding _EXT classes for data provider class (DPC) and model provider class (MPC). Custom coding is located in methods newly defined in the _EXT classes and/or redefined methods from the super classes.
    • 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.
    • MPC_EXT class: check if the DEFINE method is redefined in the template project.

Next Steps

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