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:
- Make all changes you require in the project you created as a copy.
- Save all changes.
- Click Generate to generate the runtime artifacts for the
new project.
Note 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 and the
service was created using the Standard generation
strategy, follow the next steps outlined below.
If the template project includes manual coding and you also want to generate
runtime artifacts, proceed as follows:
- 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 you 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, 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.