cancel
Showing results for 
Search instead for 
Did you mean: 

Data Type

Former Member
0 Kudos

Hi all,

Want to know when do we create Data type and message type as there a few scenarios where we just use the Exxternal Definitions... Can someone Please guide... how do we find when to create data type and message type.??

Thanx

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

When we have the wsdl or xsd files means there is no need to create the DT & MT.

We can Directly Import these files under External Def , This Files contains the Structure for the DT & MT.

Regards

Seshagiri

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi all,

But in a few examples that i have gone through..inspite of the external definition (for a structure) given ... data type and message types have been declared (for the same structure).

When do we do this.

Regards.

former_member189441
Active Participant
0 Kudos

Hi,

There is a series of standard schema for describing the message structure at runtime. WSDL (Web Service Description Language), XSD (XML Schema Definition Language), or DTDs (Document Type Definitions) are often used to describe message schema.

If a description of the message structure already exists in one of the above formats, you can use it in the Integration Repository by importing it as an external definition rather than re-entering it manually using the data type editor.

former_member200962
Active Contributor
0 Kudos

Hi,

Suppose we have a WebService defined in WebMethods (for eg)....then this Webservice (.wsdl file) will be having its own structure...this file format and structure are compatible with that of SAP XI....hence it can be imported in XI......also after importing them you can see its structure same as u can see the structure of your DataType....Same is the case with BAPIs,IDOCs.....so if the format of your External message is .xsd/.wsdl then you can very well import it into XI and use it....if not compatible then you need to create a structure in XI which is called DataType.

In this way you can save effort of again creating huge structures (IDOC etc).....inshort you are following the concept of reusability...

Regards,

Abhishek.

Edited by: abhishek salvi on Sep 25, 2008 2:10 PM

Former Member
0 Kudos

Hi,

Some times the clients gives the structure at this time we have to create the data types and message types, Some times the clients sends the XSD/WSDL files at this time no need to create, just import that files.

XSD/WSDL is nothing but a structure and it is in the XSD/WSDL format.

Suppose the client have already declared structure then he sends the XSD/WSDL file at that time, no need to create the Data types and message types, we can directly import that in external definitions and use.

dharamveer_gaur2
Active Contributor
0 Kudos

when we have already structure in XSD,DTD,WSDL format then no need to create data type.just import under External def tab.

if no such structure avail then we have to create data type and message type.

former_member200962
Active Contributor
0 Kudos

Hi,

We use external definition when a structure has already been defined in some other system/scenario.....however the structure should be compatible with XI/PI standards i.e. it should be of the format .xsd/.wsdl.....we normally create external definition for structures defined in SAP system like IDOC/BAPI or for a WebService.......however when we try to communicate with systems like DB we need to create a specific DataType so that data can be fetched to/from the system........a Message Type carries the actual payload....so if you create a DataType and intend to use it then you also have to create a corresponding Message Type so that you can send data to/from XI....

When using an External Definition we need not create a Datatype or Message Type.....the External definition can be directly used to create Message Interface.

Regards,

Abhishek.

Edited by: abhishek salvi on Sep 23, 2008 11:12 AM

Former Member
0 Kudos

hi

In most cases we will be using XSDs , to create own data type we need to write the XSD and as usual import it form external definition.

regards

kummari