cancel
Showing results for 
Search instead for 
Did you mean: 

Difference Between Data type and message type

Former Member
0 Kudos

Hi,

i have doubt on data type and message type.why we are mapping the message type why not data type?wht is the difference between data type and message type?

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

hi

Data types are most basic elements in XI, which defines the structure of XML message, it is just a schema object, doesn't hold any data.

Message types are defined based on data types, contains the actual payload of XML message. message type can be assigned to one or more message interfaces.

while defining message mapping u can directly define message types to map messages of source and target interfaces.

For more info:

http://help.sap.com/saphelp_nw04/helpdata/en/12/f9bb2fe604a94cbcb4c50dc510b799/frameset.htm

http://help.sap.com/saphelp_nw04/helpdata/en/12/f9bb2fe604a94cbcb4c50dc510b799/frameset.htm

http://help.sap.com/saphelp_nw04/helpdata/en/12/f9bb2fe604a94cbcb4c50dc510b799/frameset.htm

http://help.sap.com/saphelp_nw04/helpdata/en/12/f9bb2fe604a94cbcb4c50dc510b799/frameset.htm

Regards

rajesh

Former Member
0 Kudos

Hi Narayanana,

Data type defines the structure of your xml message.Message type is the wrapper of data type.You will be using your message type while mapping and not the data type.Its the abstraction concept used in oops

kanan thiyam

Posts: 28

Questions: 7

Registered: 1/8/07

Forum points: 24

Re: What is deffernce b/w Data type and message type

Posted: Jun 13, 2007 8:05 AM in response to: suresh k Reply E-mail this post

Hi Suresh,

Data Type defines the structure of the message and it will be wrapped under Message Type.

Hope the details below will clearify your doubts.

A data type in a programming language is a set of data with values having predefined characteristics. Examples of data types are: integer, floating point unit number, character, string, and pointer.

The characteristic of columns and variables that defines what types of data values they can store.

Check out the details:

http://en.wikipedia.org/wiki/Data_type

A message type comprises a data type that describes the structure of a message. At the following points in SAP Exchange Infrastructure you can refer to the message to be exchanged at runtime by using the message type:

Details:

http://help.sap.com/saphelp_nw04/helpdata/en/2d/c0633c3a892251e10000000a114084/content.htm

kanan

Former Member
0 Kudos

Hi,

data types just define the abstract XSD structure . but since In XI we are using XML langauge. so We need a Root element in our message. that root element is added by Messagr type.

means data type is just an abstarct structure and message type add root element to data type.

thats why in Mapping we use message type only.........

and one message type corresponds to one data type only............

regards,

Ruchika

reward if useful.........................

Former Member
0 Kudos

Hi

The message type will be the root of ur XML message .Thats why you need to map the MT and not the DT which give the structure to the MT

regards

Krishna