Technology Blogs by SAP
Learn how to extend and personalize SAP applications. Follow the SAP technology blog for insights into SAP BTP, ABAP, SAP Analytics Cloud, SAP HANA, and more.
cancel
Showing results for 
Search instead for 
Did you mean: 
radhika_javvaji
Associate
Associate
6,531

Introduction

SAP Cloud Integration version 6.54.xx comes with new feature, where in one can create Datatype and Messagetype as reusable design time artifacts in Cloud Integration capability of SAP Integration Suite

This feature is available only in SAP Integration Suite standard and above service plans.

SAP Cloud Integration version 6.54.xx software update is planned on mid of July 2024  (date and time subjected to change).

Create DataType :

1. Open the Integration Suite Tenant and navigate to Design -->Integrations and API's

2. Create an Integration Package or open an existing one.

3. Navigate to the Artifacts tab and click on Edit in the top right corner

radhika_javvaji_1-1718115364468.png

4. Click on Add drop down and select Data Type from the list

radhika_javvaji_1-1718117936129.png

5. Add Data Type dialog is displayed with Create (radio button) selected by default.

radhika_javvaji_2-1717595353958.png

6. Enter the values for the fields Name, ID,Target Namespace, Description ,select the category - Simple Type(selected by default) or Complex Type for the Datatype you want to create and click on Add or Add and Open in Editor

7. On Click of Add, the Data Type artifact with the provided name gets created and is listed in the Artifacts list page

8. On Click of Add and Open in Editor, the Data Type artifact gets created with the provided name and the artifact gets opened in the Editor in display mode. 

9. The Editor contains three tabs : Overview,Structure and XSD.The Structure is shown by default when the artifact is opened. It displays the structure of the datatype in a tree table with the following columns :

  • Name : Contains the Name of the node(element or attribute).For Root node the name is same as the name of the Datatype and it cannot be edited.
  • Category : This column shows whether the root element has subnodes or not . For root node it is either Simple type or Complex Type and for submodes it can be either Element or Attribute. You cannot change values in this column.
  • Type: This column displays the type with which the node is defined.Here you select a built-in data type or reference to an existing data type for an element or attribute. You must specify a type for attributes.
  • Occurrence: Determines how often elements occur.For attributes, you can determine whether the attribute is optional or required.
  • Restrictions : This column displays the facets (if any) defined incase the node is defined by a built-in primitive type or a user defined Simple type Datatype 

radhika_javvaji_2-1718117008118.png

9. Switch to edit mode and to define/build the Structure of the Datatype. On selecting the first row(rootnode),the Add drop down in the table header gets enabled (for category complex type) and also the details of the row are displayed in the right side section of the editor.

radhika_javvaji_0-1718118534729.png

10. Simple Type Data Type :

  • No child nodes can be added 
  • Root node is defined by string built-in primitive datatype.
  • Click on the root node and the Properties sheet  which contains the details of the node selected is displayed on the right side of the editor. In Edit mode ,user can edit the Type ,define the restrictions applicable for the Type selected.

radhika_javvaji_1-1718118704320.png

11.Complex Type Data Type :

To add child nodes:

  • Click on the root node and the Add drop down in the table header gets enabled.

              Add -->Element to add child element node

             Add -->Attribute to add attribute node

            Add -->Rows to add multiple Elements/Attributes

radhika_javvaji_2-1718118783167.png

  • Click on the newly added node and define the details in the Properties sheetradhika_javvaji_4-1718119150167.png

     

12. Once the Structure is defined,Click on Save to save the artifact as Draft, Save as Version to save the artifact as versioned artifact.

13. XSD tab displays the read only view of the xsd schema of the Datatype artifact

radhika_javvaji_5-1718119368848.png

Create MessageType:

1. Open the Integration Suite Tenant and navigate to Design -->Integrations and API's

2. Create an Integration Package or open an existing one.

3. Navigate to the Artifacts tab and click on Edit in the top right corner 

4. Click on Add drop down and select Message Type from the list    

radhika_javvaji_0-1720598748201.png

5. Add Message Type dialog is opened

radhika_javvaji_1-1720596724096.png

6.Enter the values for the fields Name, ID, XMLNamespace, Datatype to be Used, Description, and click on Add or Add and Open in Editor

7. On Click of Add, Message Type artifact gets created and is listed in the Artifacts list page

8.On Click of Add and Open in Editor, MessageType artifact gets created and the artifact gets opened in the DataType Editor with Structure tab loaded by default in non-edit mode . The rootnode Name would be same as the Message Type name ,Category as Element and Type as Data Type Used (if selected in the Add Message Type dialog)

radhika_javvaji_2-1720597738287.png

9. Overview tab in Edit mode is as shown below :

radhika_javvaji_3-1720597940239.png

10 XSD tab :

radhika_javvaji_4-1720598053624.png

11. Datatype Used to create a Message type can be changed in Overview tab or in Structure tab. Switch to edit mode and select the root node in the Structure tab.The properties sheet gets displayed on the right side of the page with Datatype Used field as editable.

12. No other nodes(child nodes) are editable in the Message Type artifact.

Next Steps: Deletion of element/Attribute nodes, Cut,Copy and Paste, Move up and Move Down,Drag and Drop actions to edit the structure of the Datatype

 

15 Comments