Start of Content Area

Procedure documentation Defining Actions  Locate the document in its SAP Library structure

Use

You perform the following steps to create actions and assign the interfaces for message exchange to them.

Defining an Action with an Outbound Interface

First, define the action CancelFlightBookingOrder, which the travel agency uses to send the cancellation to the airline.

...

       1.      Position the cursor on the application component Agency.

       2.      In the context menu, choose Create Action.

       3.      On the Create a New Action screen, under Type of Usage, select the Internal radio button.

       4.      Choose Continue.

       5.      In the Name field, enter CancelFlightBookingOrder.

Note

The software component version and namespace are already entered.

       6.      In the Description field, enter Cancel flight booking order.

       7.      Choose Finish.

       8.      The system opens the Display Action object editor.

       9.      Switch to change mode. To do this, choose Switch Between Display and Edit Modes (This graphic is explained in the accompanying text) in the object editor toolbar.

   10.      In the Outbound Interfaces frame, insert a new line. To do this, choose Insert Line Below Selection (This graphic is explained in the accompanying text).

   11.      In the Object Type column, select Service Interface in the dropdown list box.

   12.      Use the input help () for the Namespace column to select your namespace http://MyTutorial<ID>.

   13.      To create the interface, choose Create New Object (This graphic is explained in the accompanying text) in the toolbar in the Outbound Interfaces frame.

   14.      On the Create Object screen, enter the following in the Name column: BookingOrderCancelationRequest_Out.

   15.      In the Description field, enter Booking order cancelation request.

   16.      Choose Create.

   17.      This opens the Edit Service Interface object editor.

   18.      On the Definition tab page, select the Outbound and Asynchronous checkboxes.

   19.      Save the service interface and close the object editor.

Note

You define the service interface later (see Defining Interface Objects).

   20.      Save the action.

Defining an Action with an Inbound Interface

You perform the following steps to insert the action CancelSingleFlightBooking into the process integration scenario. This action is used to cancel a flight booking with an airline.

The demo examples already contains this action. Therefore, you do not need to create it separately, but can reuse it.

...

       1.      Position the cursor on the application component Airline (diagonally underneath the action CancelFlightBookingOrder that you created earlier), call the context menu, and choose Insert Action.

       2.      On the Choose Action screen, expand the software component version SAP BASIS 7.10 and the namespace http://sap.com/xi/XI/Demo/Airline.

       3.      Select the action CancelSingleFlightBooking.

       4.      Choose Apply.

 

End of Content Area