Entering content frame

This graphic is explained in the accompanying text Creating a Service Call Locate the document in its SAP Library structure

To create a service call, you have an easy-to-use wizard at your disposal within the Web Dynpro tools in the ABAP Workbench.

Starting the Wizard

To start the wizard, position the cursor on the Web Dynpro component to be edited in the object list at the left margin of the workbench window. Open its context menu by clicking with the right mouse key. From the context menu, choose the entry Create->Service Call. The wizard is started and leads you to the creation process.

Choice of Controller

On the second dialog window of the wizard, you can choose whether the service call is to be embedded in an existing controller or whether a new controller is to be created for this purpose.

This graphic is explained in the accompanying text Service calls can only always be embedded in global controllers – that is, in the component controller or in additionally created custom controllers.  It is not possible, on the other hand, to embed service calls in view controllers.

If, at this point, you decide on creating a new controller, you enter it in the object node Custom Controllers after you have saved the data. Then the new controller can be used by other controllers of the component later on, just like the component controller.

The Required Methods and Context Elements

On the two subsequent dialog windows, default values are listed for giving names to the context nodes and attributes required by the service call as well as to the required methods. The proposed names are based on the names of the embedded service, but you can change them as required. However, heed the respective notes in the corresponding dialog box.

Completing the Choice

When you have confirmed the last dialog box, the generation is triggered. Afterwards you now have the required methods and contexts at your disposal for using them within your Web Dynpro component.

 

For more information, refer to the chapter Using Service Calls.

 

 

Leaving content frame