This section guides you to generate the Model Provider Classes in the Service Builder:
On successful generation, the generated objects are stored under the Generated Objects folder in the tree view. Also the message displaying the results of the generation are displayed in the mass edit view.
On successful generation, the Service Builder generates two classes:
It is strongly recommended that the base class should not be edited. Rather, the Implementation class is inherited from the base class and you can manually edit this class as required.
The method get_last_modified() has to be changed to return the last modified timestamp of this class or its super class (whichever has been changed recently). A sample code is provided here for you reference to achieve this. This change is required only when the class in redefined manually.
To redefine the Implementation class proceed as follows:
Expand the Project folder in the tree view of the Service Builder.
Click to switch to edit mode.
Right click and select Workbench.
The selected implementation class opens in the Class Builder.
Click the Define Method and choose the redefine button to redefine it: Here is a sample code:
super->define( ). <<Code for modifying the model - can use code patterns available>> Endmethod.
See Overview: Generated Classes for Model Provider Class for more information.
See Overview: Generated Classes for the Data Provider Classes for information on generated DPC.
To proceed with the next step in this cookbook, see Activate the Service in SAP Gateway.