Show TOC Start of Content Area

Procedure documentation Creating Application Service Operations  Locate the document in its SAP Library structure

Use

You can create custom operations to make the logic of your application more flexible.

Procedure

       1.      Open the Operations tab page and choose Add.

       2.      For the type of your application choose Custom Operation.

       3.      Configure the following data:

○       In the Name field, enter findById.

○       In the Description field, enter Find a travel location by id.

○       From the Transaction type dropdown box, select REQUIRED.

○       From the Permission check dropdown box, select Disable.

This graphic is explained in the accompanying text

       4.      Choose Next and then Finish.

       5.      In the Operations Parameters list:

...

                                                  i.       Select the fault type CAFServiceException and choose Add to Fault.

                                                ii.       Select the simple data type LONG and choose Add to Input. Name the parameter id.

                                               iii.       Select the complex type Employee and choose Add to Output. Name the parameter Employee.

       6.      Repeat steps 1-5 to create a similar operation for retrieving all available travel locations - getAll.

Result

You have created two operations that do the following:

●      Search for a travel location by id

●      Retrieve all travel locations

 

Step 4:

Implementing Application Service Operations

End of Content Area