You can edit a data model in the ABAP Workbench design time in transaction SE80. You might need to edit an existing data model, if you want to modify, add, or delete properties, data objects, relations, and operations, add or modify annotations, or reassign the data model to another package, for example.
You can only add or modify annotations for User Centric (UC) data models. For information about how to create a UC data model, see Deriving a Data Model from an Existing Data Model .
You can also delete data models in the ABAP Workbench. For more information, see Deleting a Data Model below.
Start transaction SE80.
Select SAP GW Data Model from the dropdown list on the left-hand side of the screen
Use the arrow to open the Find Data Model dialog box, where you can search by data model identifier or by data model data:
When you have found the required data model, it displays in a collapsed tree structure, so that only the top (data model) level is showing.
Select the expand icon to the left to display the data model's elements.
Double-click the data model name or an element to open the relevant editor on the right-hand side of the screen, where you can modify its properties (see Properties Editor). For more information about creating and modifying annotations in a UC data model, see Annotation Editor.
If you are editing a data model that was automatically generated, you can only edit certain elements in ABAP Workbench. However, you can navigate directly to the content generator screen and edit the data model there by pressing the Open generator button in the toolbar. The data model opens in display (read-only) mode, with only the Display Mapping button visible.
Select the Display<->Change button to switch to edit mode, when the Create Mapping, Change Mapping, and Remove Mapping buttons become visible.
Edit as required.
If you switch from edit mode to display mode after making changes, a dialog box warns you that the changes you have made will be lost. To save the changes you have made, you must generate the data model again.
If, before generating the data model again, you use the Object Navigator to navigate back to the data model in ABAP Workbench, your changes will be lost. A dialog box is displayed to warn you of any potential data loss.
Press the Generate button to generate the PS and DS data models. For more information, see Generating the PS and DS Data Models.
You cannot edit a data model while it is being generated.
When you open a data model in editing mode, it is locked so that other users cannot access it.
Save your changes.
You can reassign the data model to another package by right-clicking its name in the tree view and selecting Reassign package. Enter the new package name in the reassignment dialog box.
If you are editing a data model that has been created from scratch on the Generic Channel, you must select the Generate STC Class button in the toolbar after making and saving changes. This regenerates the STC class to ensure you have an updated version that includes the changes you have made.
To delete a data model, right-click the data model name in the tree view and select Delete. A message asks you to confirm the deletion.
If you try to delete a data model from which other data models have been derived, a dialog box warns you of the possible consequences and you must confirm that you do want to delete the data model.