Why Message Type in XI

Hi Friends,
I am new to Xi . anybody pls help me
I want to know the Purpose of Message type in XI..cann't we directly use the data type in message Interface ? w/o message type what will happen ?
Thanks & Regards,
Laxmi.

Hi,
In XI, we always create Data Type first and using Data type we create message type.
We can reuse this data type to create integrate into another data type also.
Using data type we cannot create any other object in XI except message type.
Whenever we need to create message interface, message mapping, interface mapping, we always use message type.
So Message type is need to be created from Data type. To transfer data XI uses message type.
Regards,
Manisha

Similar Messages

  • Why message type if  idoc type or idoc is already there.

    Experts.
    this has been posted several times and i gone through so many threads but stil some confusion . So anyone can tell in simple terms what is the difference and why sap has given this two instead of one.
    Diff. with IDOC type
    An IDoc type specifies the structure of the data.
    A message type specifies the meaning of the data
    *****from the above statements , by seeing the name of the idoc type ex matmas01 also we ca n say that it is used for material data, then why message type matmas needed?

    Hi,
    Idoc type means combination of segements
    Message type means Combination of idoc type
                              or
    Message type mean combination of Idoc type + Extension idoc type( Custom segments added to idoc type)..
    Example:-
    If you want to fill the data to custom segment which is available at exension idoc ...
    then first check the message type then check basic idoc type then check it contains exetension idoc type ..then fill the segment
    Generally the communication occurs between system through message type...
    Prabhudas

  • Why are not  pop up  message window when message type I and W

    Hi All,
    I am working in BADI ( me_purchdoc_posted~posted) for t-code ME21N. Actually i want show material number, material description  and ABC indicator of material at saving point of PO if material is significant.
    code is properly working  but does not showing  error message window when I am using message type I  (information) or W (worming message) .
    if i am using message type E ( error message )then showing message window just link  Information message.
    So i can no understand why are not message window pop up  when i take message type I and W.
    my code is that
    method IF_EX_ME_PURCHDOC_POSTED~POSTED
    IF SY-TCODE EQ 'ME21N' OR SY-TCODE EQ'ME21'.
      DATA : wa LIKE LINE OF IM_EKPO.
      DATA : VAR_MAKTX TYPE MAKT-MAKTX.
      DATA : VAR_MAABC TYPE MARC-MAABC.
      DATA : P TYPE STRING.
      DATA : P1 TYPE STRING.
      LOOP AT IM_EKPO INTO wa.
        SELECT SINGLE MAABC FROM MARC INTO VAR_MAABC WHERE matnr EQ wa-matnr AND werks EQ wa-werks.
        SELECT SINGLE MAKTX FROM MAKT INTO VAR_MAKTX WHERE matnr EQ wa-matnr. " AND werks EQ wa-werks.
          IF VAR_MAABC EQ 'A'.
            P = 'is significant material'.
            CONCATENATE  WA-MATNR '(' VAR_MAKTX ')'  P INTO P1.
            MESSAGE P1 TYPE 'E'.
            EXIT.
            ENDIF.
      ENDLOOP.
    ENDIF.
    endmethod.
    guide me...............

    Hi vinod,
    thanks for reply......
    yes,  my  requirement is to show the popup window with  material number, material description and ABC indicator of material at saving point of PO if material is significant.
    I find Badi to transaction me21n at saving PO.  Badi ME_PROCESS_PO_CUST does not exist.
    so i am using Badi me_purchdoc_posted~posted.
    This Badi  ( me_purchdoc_posted~posted ) is properly working But showing message  "system error ( error in method po_post ) "
    when I am click on OK then automatic leave from transaction.
    guide me..........

  • Fault message types: Why do we need them?

    Hi guys,
    I have a bpm scenario created, tested and working.
    This bpm starts with a async receive, a Sync Send to a R3 system by an ABAP proxy and a final async send to the original system.
    I'm contemplating exception handling and other type of errors. Meaning, if the abap proxy dumps I can raise an exception and map it on the XI environment. The thing is, on  sxmb_moni I get the exception handler, with the exception texts, id's, etc... from the R3 being mapped to the XI fault message type.
    But the problem is I can't get to map the text from the fault message type into any field from the response of the original system.
    I've searched the forum and I've seen that this area is surrounded by doubts and questions...
    But in the end I'm forced to place the question, why do I need the fault message types? What use can I give them, besides of the cute little thunder on the sxmb_moni?
    Thanks for your attention guys

    Hi Krishna,
    I've read the SAP description about Fault Message Types but I'm still struggling on how to use them correctly.
    Why do we need them if I can't do nothing with it on the BPM side? After the mapping of the FMT, I'd like to acess it so that I can send a description back to the original system...The thing is, in BPM you can't acess the FMT, you can only create a new BRANCH (on a block step) for it...
    I've tried to acess the description text on trace which comes with the message, but it seems that the trace only serves for posting info, and not for getting any...
    The Mapping Runtime Constants have some information where you can read some descriptions, but nothing related to the errors....You can read the Receiver service, sender, interface_namespace, but nothing from the ERROR tag...
    Is there a way to get the description? Or anything related to the error tag?
    Thanks in advance

  • Why need message type when u create data type...

    why need message type when u create data type...

    Hi,
    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:
    ·        More than one message interface can use the same message type. For example, an asynchronous outbound message interface and an asynchronous inbound message interface can reference the same message type because the request message does not need to be mapped.
    ·        When defining a message mapping you can directly reference message types to map messages from an outbound interface to messages from a receiver interface.
    For technical reasons, a data type is not sufficient to describe the instance of a message. In XML schema, data types are defined as abstract types that are not yet fixed to an element. You can only describe an instance of a message when you have specified a data type as an element type. Therefore, a message type defines the root element of a message.
    A message type does not define the direction of the message exchange, in other words, whether it is a request or a response. In exceptional cases you can use the same message type for both the request and the response message.
    A message type has the following characteristics:
    ·        It comprises exactly one data type, which determines the content of the message to be transferred.
    ·        It is identified by a name and an XML namespace. The name (together with the namespace) of a message type is located in the uppermost tag of the message to be exchanged. This is an element tag.
    You have defined a message type GreetingRes that references a simple data type of type xsd:string. The XML namespace of the message type is http://sap.com/xi/myExample. The corresponding payload might look like this:
    <?xml version="1.0" encoding="utf-8" ?>
    <ns1:GreetingRes xmlns:ns1="http://sap.com/xi/myExample"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
       Hello Mrs. Miller
    </ns1:GreetingRes>
    You can specify how a message type is used in more detail in the description
    hope this will help you.
    regards
    Aashish Sinha
    PS : reward points if helpful

  • Why my iphone produces a bug after it renew for OS5.1.1. The bug is when I use message, type a Chinese word, and then using a releveant word, then the program automately closes. Every time I try the same procedure, it definitely closes.

    Why my iphone produces a bug after it renew for OS5.1.1. The bug is when I use message, type a Chinese word, and then using a releveant word, then the program automately closes. Every time I try the same procedure, it definitely closes.

    Nobody knows? Not even administrators?
    Please it would be really nice to have help on that to take all the benefit of the remote app.
    Thank you very much in advance.

  • HT4061 I can't send a message why I type in the address but I can't send ?

    I can't send a message why I type in the address but I can't send . This is new to me what am I doing wrong

    Are you perhaps trying to type the message in the Subject field? Go to Settings>Messages>Show Subject Field and set it to "Off".

  • Why do we create message types (we81)?

    Hi Guys,
    Could u plz explain me for wht purpose message types r created?
    thanking u...
    regards..

    hi
    good
    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:
    ·        More than one message interface can use the same message type. For example, an asynchronous outbound message interface and an asynchronous inbound message interface can reference the same message type because the request message does not need to be mapped.
    ·        When defining a message mapping you can directly reference message types to map messages from an outbound interface to messages from a receiver interface.
    http://help.sap.com/saphelp_nw04/helpdata/en/2d/c0633c3a892251e10000000a114084/content.htm
    hope this will help you.
    Thanks
    mrutyun^

  • Message type BOMMAT (change BOM)

    Hello Guru,
    I have some question and need help, when i try a standard transaction CS02, try to change a BOM material existing for example, the base quantity of the BOM was 650, i enter new data as 655, but suddenly retain the original Qty as 650 and save the changes as SAP will accept the changes i've done (BOM for material 2456 changed) but eventual i have not change any value to the original BOM. SO it mean this is standard SAP funtionality for CS02.
    But when we use an interface using message type BOMMAT a standard SAP message tpye, we have created an IDOC using this message type and same data as the original was maintain to it, to be more exact we plan to change a BOM thru this IDOC but all the data we have is the same value of the original BOM, so we expect no error could be encounter of this IDOC since in standard CS02, changing of BOM even same value was inidicated did not had error message encountered when saving.
    But thru our process, when we try to process the IDOC with message type BOMMAT in program RBDAPP01 (BD20) the idoc did not pass it when into status 51(Error when saving BOM. Please see the application log.) and when we check the BOM it has duplicate value upon executing the program we able to fix it when we delete the duplicate line segment in the IDOC and reprocess it once again.
    my question is why in standard message type BOMMAT had encountered error when processing when we try to make change of BOM even the same value is carried out by the IDOC, and why in standard CS02 saving a change of BOm with same value as it is SAP accept the process? Please help and clear the process.
    Any inputs R.Brahamankar and Vivek
    Thanks
    Edited by: Ryan on Feb 9, 2009 9:23 AM

    BOMMAT  and process code BOMM

  • Error while trying to post inbound idoc of message type COND_A

    Hi,
    I am getting error while trying to post inbound idoc of message type COND_A.
    If I left Usage & Condition field of segment E1KOMG then 'Table not available' idoc message is coming
    and if providing value in above fields then dump is coming.
    How to solve ?
    Plz do reply
    Thanks
    Mohit

    I do not see any reason why you would need to use COND_A04  if COND_A01 is working.
    What if you could get COND_A04 to post and you would face the same result as in COND_A01?
    If SAP does not check wrong values, then you have to do it yourself, or you report an incident at SAP (after you have searched for OSS notes that may have fixed this error already)
    For example OSS Note 1169998 - IDoc: KONP-LIFNR values not checked
    fixed a situation where the vendor number was not validated.

  • Source structure of XML file as different from Message type?

    Hi,
    We are picking an xml file from the FTP server of the client.
    We have source message type 'MT_Invoice' with data type as 'DT_Invoice'.
    When we open the message mapping test tab, the source structure is as shown below.
    <ns0:MT_Invoice xmlns:ns0="urn:maxxium:nordic:invoice:inbound">
       <Invoices>
          <Invoice>
          </Invoice>
       </Invoices>
    </MT_Invoice>
    My question is "What should be the structure of the XML file that the client is depositing on to the FTP server?".
    Should it start with the tag 'MT_Invoice' with the namespace or should it simply start from    <Invoices> tag.
    I have tried various combinations for the source xml structure. But all are failing.
    (This is evident from the fact that the mapping is failing. That's why I have given the structure from the source structure of the message mapping tab.)
    Kindly help.
    Thanks,
    John

    >
    john j wrote:
    > Hi,
    >
    > We are picking an xml file from the FTP server of the client.
    >
    > We have source message type 'MT_Invoice' with data type as 'DT_Invoice'.
    >
    > When we open the message mapping test tab, the source structure is as shown below.
    >
    > <ns0:MT_Invoice xmlns:ns0="urn:maxxium:nordic:invoice:inbound">
    >    <Invoices>
    >       <Invoice>
    > .
    > .
    > .
    > .
    >       </Invoice>
    >    </Invoices>
    > </MT_Invoice>
    >
    > My question is "What should be the structure of the XML file that the client is depositing on to the FTP server?".
    >
    > Should it start with the tag 'MT_Invoice' with the namespace or should it simply start from    <Invoices> tag.
    >
    > I have tried various combinations for the source xml structure. But all are failing.
    >
    > (This is evident from the fact that the mapping is failing. That's why I have given the structure from the source structure of the message mapping tab.)
    >
    > Kindly help.
    >
    > Thanks,
    > John
    you are picking an XML file. So you should create the MT which would represent exactly the XML format of the source file.
    So ideally if your file starts with <invoice>, then name your MT as invoice

  • Need of message type in ALE-IDOC

    Hi,
    Please tell me need of message type  in ALE_IDOC and its functioning.Also why it is required.Let me know its exact role.
    Thanks.

    Hi,
    Message types (required for sending the data across participating systems)relate to the structure of the data called an IDOC (Intermediate Document).Message types provide the format of the data, which can be exchanged betweenSAP and non-SAP systems. ALE supports over 200 message types in R/3.
    Also check the below links
    http://www.thespot4sap.com/Articles/SAP_ALE_Introduction.asp
    http://www.sap-img.com/basis/types-of-idocs-use-in-ale-configuration.htm
    Thank U,
    Jay....

  • Same message type in different partner profiles in ALE

    Hi,
    I have a situation where we need to send an IDoc of message type ORDERS to two partners of type 'LS'. Configured partner profiles in WE20 and added message type for both the partners. Also configured the condition records.Now the question is how the system will know for particular vendors a particular partner 'LS' should be chosen? In condition records we don't have option to configure a vendor for a particular logical system.
    Please advice.
    Regards,
    Krishna

    For Vendors, why are you using LS, u need to use LI.

  • URGENT!  Idoc Message Type FIDCC2 Not Posting CO Documents

    Hi Everyone,
    Our company is just about to begin using message type FIDCC2 to post entries through FB60/FB65 and FB50.  When you manually enter an entry through any of these transactions, an FI, CCA and PCA document are all created simultaneously.  However, when posting an identical entry through message type FIDCC2, only an FI document is created.  Why are the other documents not being created and is there something that I am missing from configuration or some sort of trigger that is supposed to create the other entries?  Please assist as this is extremely urgent.
    Thanks to all that can assist,
    Pete

    Hi Peter,
    Is your company uses any of the profitability segment fields as well? If so how are you updating this information on to the FIDCC2 idoc and how are you generating any COPA document simultaneously. I am in the same situation and my FIDCC2 idoc updates the FI, CO, PCA components but not the COPA. I am not sure where to populae the Profitability segments on the FIDCC2 type. Please share if you have same issues in your company.
    Regards
    Elphick

  • Want to add multiple idoc type with single message type.

    Hi Gurus,
    I have a problem. I want to add multiple idoc type with single message type in WE20.
    How we can do this in WE20 or is there any other way to do that?
    Please help me.
    Thanks in advance.
    Srimanta.

    hi,
    basically in partner profile i.e. in we20 , we add details to the receiver / sender port that we have created using we21.
    so what exactly we do in that is that we first use the message type for those idocs that we have created.
    now based on those message type we create a process code. now this is the reason why you cannot apply several message types with the same name in we20... as process code is unque for each message type.
    so thats why you can only assign the same message name to several idocs in we82 and then in we20 define the process code for that message type.
    it will solve your problem.
    hope this will help you!!!
    Thanks & regards,
    punit raval.

Maybe you are looking for