You can edit an existing Data Model in the Data Model Generator tool.
You must know the name of the Data Model you want to edit. If you know part of the name of the model, you can search for it by pressing F4 in the Model Name field of the Data Model Generator screen.
Editing the Data Model
To edit an existing Data Model, proceed as follows:
Use transactionSE80 to open the Object Navigator screen.
Select SAP GW Data Model from the drop-down list.
Enter the name of the model you want to edit in the Model Name field , for example, ZJWTEST_0001_PS, and then click the glasses icon.
If you want to search for the name, you can use the wild card character '*' as part of the search term.
The Find Data Model popup opens with the name you entered.
Click the check mark to search for all the forms of the name, for example, ZJWTEST_0001_PS.
You can edit the model and its operations, Data Objects, Properties, and mappings.
You cannot change the name of an existing Data Model as well as its data source.
Double click your Data Model name in the Find Data Model screen to display its content in the Repository Browser.
Under Object Name, double click your Data Model name at the top of the hierarchy of content, and click the Open the generator icon above, alternatively, press Ctrl+Shift+F12 to switch to the Data Model generator screen.
Click Display <-> Change (Ctrl+fF1), to edit your model.
Displaying the Data Model
You can display an existing Data Model in the Data Model Generator. When you choose to display the model, you cannot edit anything in the model.
To display the Data Model, open the Data Model Generator and choose Display. The Display <Data Model — Data Model name> screen displays, showing the Display Mapping button in the Structure tab.
In the menu above the data source, you can switch to the edit mode using Display <->Change or switch to the Object Navigator screen in the ABAP Workbench.
The following section provides an overview for editing the content of the Data Model in the Data Model Generator tool.
You can only edit certain objects of a Data Model created using the Data Model Generator, in transaction SE80.
For that reason, we recommend that you edit Data Models created in the Data Model Generator using the Data Model Generator tool.
Editing the Content of the Data Model
After you have mapped the operations, properties and objects to the Data Model, you can edit and change the content of the Data Model.
You can edit the content of the Data Model in the Data Model Generator tool as follows:
Edit the mappings in the Data Model.
For information, see Editing the Mapping in Your Data Model.
Add and delete the Properties, and the Data Objects in your Data Model.
For information, see Adding and Removing Properties, and Data Objects.
Reassign keys to operations.
For information, see Reassigning the Key of a Property.