Show TOC Start of Content Area

Background documentation Service Operations  Locate the document in its SAP Library structure

Use

You can use the following operations to query and store data from the persistency in services created with the modeling tool in SAP NetWeaver Developer Studio:

     Create

     Read

     Update

     Delete

     Find by

     Index search

     Custom

These operations are either provided as standard query methods for entity and application services or can be added to application services. The predefined CRUD operations create, read, update, and delete can neither be edited nor deleted.

Structure

The Operations window is displayed when the Operations tab page is selected from an application, entity, or external service. In the window, query methods are listed by name and include several other parameters depending on whether an application, entity, or external service is used. The operations table is explained in detail in the section:

     Operations Tab Page

Note

The Add, Edit, and Delete buttons appear in the Operations window of the Operations tab page for application and entity services only.

For more information see:

      Adding Application Service Operations

      Modeling Entity Service Operations

Find By

You can define a set of FindBy methods for each application or entity service by selecting one or more attributes. There are two possible types. By accessing the metadata, it can clarify:

     FindBy methods that are available for a service

     Input parameters for a special FindBy method

Caution

CAF types (including ones created by the application developer) that are based on character or binary large objects (CLOB or BLOB) are not searchable. They cannot be used as parameters of findBy operations.

The following CAF types have either CLOB or BLOB Java Database Connectivity (JDBC) type:

      com.sap.caf.base.base64Binary

      com.sap.caf.base.hexBinary

      com.sap.caf.core.bytearray

      com.sap.caf.core.rawData

      com.sap.caf.base.string

      com.sap.caf.core.xLongText

Index Search

The IndexSearch method provides the possibility to perform search queries using the TREX indexing and search function available in SAP Knowledge Management (SAP KM).

Additional lifecycle methods are generated to search for:

     Similar services

     The same type of service in an index of attached documents

Note

The SAP KM system has to be installed together with the search engine. The methods required to publish the service to KM are added automatically.

All following available KM functionality can be performed on any service:

      Create indexes of repositories

      Index entity services

      Answer full-text requests

      Answer property requests

Custom

You can only use the custom operation in creating application services. With the custom type, you can create your own coding, which in turn permits checks, calls, and transformations.

You should consider that you must maintain your coding and debug it if problems arise.

End of Content Area