Show TOC

Copying a Service Builder ProjectLocate this document in the navigation structure

This feature allows you copying an existing Service Builder project to another project to address similar requirements thus saving time and effort.

Context

To reduce development effort and save time, you can create a new Service Builder project by copying an existing project (data model and service implementation of the project). You can copy the mapping information contained in a project's service implementation, but cannot copy the generated ABAP classes as these have to be generated explicitly for the project created as a copy. It is preferred to copy the project if a project has already been created for a similar use case and you can reuse its artifacts with minimal changes. To copy an existing Service Builder project, proceed as follows:
  1. Open the project you want to copy in tree view. To open a project, click Open Project (Open Project) and enter the project name or use the input help available.
  2. In the tree view, right-click on the name of the project and select Copy Project. Alternatively, click Start of the navigation path Project Next navigation step Copy Project End of the navigation path.
  3. In Create Project dialog box, overwrite name of the existing project with a new name in Project field.
    Example If you want to create a new version of an existing project, you can simply append a version number, for example, 0001, to the original project name. In this way, it is apparent, that the new project is based on an earlier version of the project of the same root name. In some cases, it might be helpful to have several versions of the same project indicated by a numeric counter of this kind.
  4. Overwrite the description for your new project in Description field.
  5. In Copy from Template Project section, ensure name of the project you want to copy is displayed in the Project field.
  6. If you want to copy the project together with its data model and service implementation, select Data Model and/or Service Implementation.
    Note
    • Copying Service Implementation refers to copying of the mapping information not runtime artifacts
    • To copy Service Implementation, you must also copy Data Model. However, you can copy Data Model without copying Service Implementation.
    • In projects of type Annotation Model for Referenced Service, you can copy only the data model, copying Service Implementation option is disabled.
  7. Under Attributes, type of the project you are creating as a copy is displayed in Project Type field. The type displayed here depends on the base project. Copied project inherits the base project type.
  8. Specify the generation strategy you want to use in Generation Strategy. Standard generation strategy is used as default. It is recomended to use same generation strategy that is specified for the base project.
  9. In Object Directory Entry section, enter name of the package in which you want to create the copied project and click Enter.
    Note If you do not want the copied project to be created in a package that is transported from one system to another in system landscape, enter $TMP or click Local Object.

Results

The Service Builder creates a copy project you selected. The copied project is displayed in the tree view. Newly created project contains the same artifacts as that of the base project. Consequently, if you selected Data Model and Service Implementation, these are included in your new project. That is, the new project contains the same entity types, properties, navigation properties, associations, and entity sets as in the base project data model.

To save the new project in Service Builder, click Save. Your project is saved and you can subsequently return to the Service Builder at any time, open this project, and continue the service development and modeling process. After you have made all the relevant changes to the new project, click Generate to create the runtime artifacts for this new project. After generating runtime artifacts, register the new service in the relevant system using Service Maintenance function.