The Service Builder enables
you to redefine the methods generated for the extension class of the DPC. For each entity
set under the Service Implementation folder, you can find the methods for the operations.
There is one method for each of the following operations; create, read, update, delete
(CRUD), and query. You can select the method related to the operation of an entity set to
view its implementation or to redefine it. You can redefine a method using one of the following:
- Add your code to the existing code, remove asterisks from the existing code, save
and activate the class.
- Remove existing code, add your own code, then save and activate your class.
To redefine the method for an operation:
- Expand the Service Implementation folder to display its entity
sets.
- Expand an entity set to display the methods for the operations. Change to edit mode
to able to edit the code you want. Right click a method and choose Go to
Implementation.
- If the selected method has already been redefined, it is presented in the
display mode in the transaction
SE24.
- If the method has not been redefined a message displays and a list of methods
is presented in the display mode in the transaction
SE24.
- Save the project.
Note Changes you make in the data model, such as, renaming, removing of entity sets
and attributes of entity types, which have been referenced in your code, can result in
syntax errors in your implementation. End of the caution.
If no implementation
exists for the selected method in the extension class for the Data Provider Class, the
Service Builder opens the standard Class Builder screen (transaction
SE24). If the selected method has already been
defined, the Service Builder opens the specific method in the extension class of the Data
Provider Class.