Start of Content Area

Procedure documentation Defining Interface Objects  Locate the document in its SAP Library structure

Use

In the following steps you define the interface objects (message types and data types) used.

Procedure

...

       1.      In the Enterprise Services Builder, choose the Objects tab page. In the navigation area, navigate to the object MyTutorial<ID> MyTutorial<ID>, 1 of <YourName> http://MyTutorial<ID> Service Interfaces BookingOrderCancelationRequest_Out.

       2.      In the context menu, choose Open (This graphic is explained in the accompanying text ).

       3.      Switch to change mode.

       4.      Under Message Types, enter the following in the Output Message field: BookingOrderCancelationRequest.

       5.      Use the input help to select your namespace.

       6.      Position the cursor on the name of the message type (BookingOrderCancelationRequest) and choose New (This graphic is explained in the accompanying text) in the context menu. This opens the Edit Message Typeobject editor.

       7.      Under Data Type Used, position the cursor on the Name field.

       8.      In the context menu, choose New (This graphic is explained in the accompanying text).

       9.      On the Create Object screen, enter the name BookingOrderCancelationRequest and select your namespace (using the input help).

   10.      In the Description field, enter Booking order cancellation request.

   11.      Choose Create.

This opens the Edit Data Type object editor.

   12.      Save the data type.

You perform the following steps to copy a data type from another software component version to your namespace. This data type helps you to describe the structure of your outbound interface.

...

       1.      In the Enterprise Services Builder navigation area, on the Objects tab page, navigate to the object SAP BASIS SAP BASIS 7.10 http//sap.com/xi/XI/Demo/Agency Data Types BookingID.

       2.      In the context menu, choose Copy Object (This graphic is explained in the accompanying text).

       3.      On the Copy Data Type screen, leave the name (of the data type) unchanged and use the input help to select your software component version and your namespace.

       4.      Do not select the With All Dependent Objectscheckbox.

       5.      Choose Copy.

       6.      Close the Display Data Type window.

       7.      In the Edit Data Type editor, on the Type Definition tab page, insert the element AgencyID for the data type BookingOrderCancelationRequest. To do this, choose This graphic is explained in the accompanying text  Insert Subelement.

       8.      Assign the type xsd:string to the element AgencyID. To do this, in the Type column, double-click the table line for the element AgencyID. On the Type Choose screen, select the type xsd:string from the dropdown list. Apply the selected value (This graphic is explained in the accompanying text).

       9.      Assign the “pattern” \d+ to the element AgencyID. To do this, in the Details column, double-click the table line for the element AgencyID. On the Details Choose screen, select the entry \d+ from the dropdown list for the pattern field. Apply the selected value (This graphic is explained in the accompanying text).

Note

The “pattern” \d+ means that the string can only consist of digits. In an ABAP proxy, a field with the data type xsd:string is mapped to a field with the data type NUMC.

   10.      Next, insert the element OrderNumber in the same way. Assign the type xsd:string and the pattern \d+ to this element as well.

   11.      Add the element BookingID in an additional line and use the data type that you created in steps 1-6 in your namespace. To do this, insert an additional element (This graphic is explained in the accompanying text Insert Subelement). Call the input help. On the Choose Data Type screen, select the BookingID entry.

   12.      To do this, select the Search Help type (dropdown list box in the Type column). On the next screen, position the cursor on BookingID and choose OK. 

   13.      Save all the objects that you have created and then close all the object editors.

 

End of Content Area