Show TOC Start of Content Area

Procedure documentation Attaching Callable Objects  Locate the document in its SAP Library structure

Use

By defining the basic parameters of an action, you create an inactive object that does not yet implement any specific logic. To make the action functional, you must attach at least one callable object to it. The system calls and executes the callable object when the action starts at process runtime.

Note

Callable object design requires certain knowledge of the services and applications that are exposed. Typically, it is a task for users with technical background; therefore, it is covered in Exposing Applications as Callable Objects.

Procedure

...

       1.      In the gallery, select the action and choose Open….

The action’s design time opens.

       2.      To switch to edit mode, choose This graphic is explained in the accompanying text (Edit).

       3.      Make sure that you have selected the action, and choose one of the following entries from the Item dropdown box:

                            a.      Callable Object for Execution

You must attach a callable object for execution. It can be either a callable object with a visible part, such as a Web Dynpro or BSP callable object, or one for background execution.

Caution

Attaching an object for execution is mandatory.

                            b.      Alternative Callable Object for Execution

If the first callable object is for background execution or for a composite form, you can add an alternative callable object for execution. The requirements for this object are as follows:

§         It must have a visible part – you can use a Web Dynpro callable object, for example.

§         It must define exactly the same result states as the first callable object for execution – that is, their technical names must match.

§         The output parameters of the two execution callable objects must be the same. In addition, you must consolidate them manually at the action level.

At runtime, the action processor can access and complete the action in GP runtime using this callable object if the action is not completed in the background due to an error, for example. This prevents a deadlock in the process flow, as the execution continues even if the first callable object cannot be executed.

                            c.      Callable Object for Display

Optionally, you can attach a callable object for display. It is required to have a visible part – for example, you cannot select a callable object for background execution.

At runtime, this object is displayed if the processor wants to open the process step after it has been completed, or if a process contributor has view permissions on the action. For more information, see Granting View Permissions.

       4.      To insert an existing callable object, choose This graphic is explained in the accompanying text (Insert), and browse the gallery to select one.

       5.      To create a new callable object, choose This graphic is explained in the accompanying text (Create New), and follow the relevant procedure described in Creating Callable Objects.

       6.      Choose This graphic is explained in the accompanying text (Save).

Result

You have implemented a functional action.

Before you can activate it, you can also consolidate its parameters.

More information: Consolidating Parameters

 

End of Content Area