<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Message type in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/message-type/m-p/2787762#M650084</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi go to WE05, and execute , there you will get the message types for idoc types&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Sep 2007 17:22:17 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-05T17:22:17Z</dc:date>
    <item>
      <title>Message type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/message-type/m-p/2787758#M650080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      I have a very basis question regarding IDOC . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       How to get the message type for a give IDOC ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       How to get the process code for a given message type??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2007 16:27:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/message-type/m-p/2787758#M650080</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-05T16:27:51Z</dc:date>
    </item>
    <item>
      <title>Re: Message type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/message-type/m-p/2787759#M650081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi user&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go through this hope u can find solution not only for ur questions but also overview on the topic..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ALE/IDOC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IDOC Programming&lt;/P&gt;&lt;P&gt;There are two processes in IDOC processing one is INBOUND PROCESS( IDOC coming to the system and its handling at various stages) and the other is OUTBOUND PROCESS( IDOC is send to other system . Separate ABAP programs are written for these 2 processes and different configuration settings are required for each one .Depending upon the trigeering mechanism different programming approaches are used.OUTBOUND PROGRAMS handle the IDOC creation and INBOUND PROGRAMS handle the inbound IDOC and the data trasfer from the IDOC to the database tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NEED FOR ABAP PROGRAMMING arises if&lt;/P&gt;&lt;P&gt;1)New IDOC was created&lt;/P&gt;&lt;P&gt;Depending upon the triggering mechanism i.e change pointer,message control&lt;/P&gt;&lt;P&gt;etc the programming technique changes and the type of process.&lt;/P&gt;&lt;P&gt;2)Existing IDOC was extended&lt;/P&gt;&lt;P&gt;User Exits are used to populate data in new segments added and to read them &lt;/P&gt;&lt;P&gt;back.&lt;/P&gt;&lt;P&gt;3)To enhance an exsiting process.&lt;/P&gt;&lt;P&gt;User Exits are used .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basic structure of an OUTBOUND PROGRAM&lt;/P&gt;&lt;P&gt;The basic structure of all outbound programs is same. The CONTROL&lt;/P&gt;&lt;P&gt;record which is of TYPE EDIDC has to be filled. It contains important fields like&lt;/P&gt;&lt;P&gt;IDOCTP IDOC type&lt;/P&gt;&lt;P&gt;MESTYP Message Type&lt;/P&gt;&lt;P&gt;RCVPRN Recieving Partner (Destination) &lt;/P&gt;&lt;P&gt;RCVPRT Partner Type (it is LS i.e Logical System) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The DATA RECORD internal table which is of TYPE EDIDD has to be filled&lt;/P&gt;&lt;P&gt;in the same order as there are segments in the IDOC definition.&lt;/P&gt;&lt;P&gt;It has 2 important fields which are to be filled ,these are&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SEGNAM Name of the segment&lt;/P&gt;&lt;P&gt;SEGDATA Data in the segment and can be upto 1000 bytes.This field &lt;/P&gt;&lt;P&gt;is corresponds to each data segment in the IDOC.&lt;/P&gt;&lt;P&gt;e.g. &lt;/P&gt;&lt;P&gt;DATA INT_EDIDD LIKE EDIDD OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;DATA W_SEGDATA LIKE zsegment "custom segment zsegment&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INT_EDIDD-SEGNAM = 'ZSEGMENT' &lt;/P&gt;&lt;P&gt;W_SEGDATA-field1 = value "taken from some table&lt;/P&gt;&lt;P&gt;W_SEGDATA-field2 = value "taken from some table&lt;/P&gt;&lt;P&gt;INT_EDIDD-SEGDATA = W_SEGDATA&lt;/P&gt;&lt;P&gt;APPEND INT_EDIDD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will fill the data record corresponding to the segment ZSEGMENT . For all&lt;/P&gt;&lt;P&gt;segments the sam steps will be repeated until all the data corresponding to all the&lt;/P&gt;&lt;P&gt;segments in the idoc is filled in the internal table of type EDIDD.&lt;/P&gt;&lt;P&gt;There is only one control record and can be multile data records in the idoc&lt;/P&gt;&lt;P&gt;structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which data is to be extracted from the tables to be filled in EDIDD type internal table is determined in standalone programs from the objects which are specified in the selection screen and from the object key passed to the function module in case of message control and is taken from BDCP table in case of change pointers using function modules "CHANGE_POINTERS_READ"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case of stand alone programs and function modules based on change pointers method the function module "MASTER_IDOC_DISTRIBUTE" is used to send the IDOC to ALE layer for distribution ,in case of message control it is handled automatically by the RSNASTED program invoked by the message control. &lt;/P&gt;&lt;P&gt;OUTBOUND PROCESS AND OUTBOUND PROGRAM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Outbound programs are used in outbound process to genearte IDOCs . There&lt;/P&gt;&lt;P&gt;purpose is to extract the data from the tables and to fill the IDOC data records&lt;/P&gt;&lt;P&gt;and the control record in the IDOC and pass ito the ALE layer for distribution to the recieving system .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Depending upon the triggering mechanism (how and when the outbound program will be started different techniques and interface is used for outbound program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1)Message control &lt;/P&gt;&lt;P&gt;Application like PO(purchase order) creation use this technique , where the output type is linked to the application(Message control is a configurable cross application component which can be set in IMG .Such programs are created in the form of function modules and linked to the output type which is linked to the apllication.These have predefined interfaces. &lt;/P&gt;&lt;P&gt;In outbound programs(function module) that use message control the key of the&lt;/P&gt;&lt;P&gt;application document is passed to the function module whcig will read the data from the table depending upon the key passed(NAST structure) and fill the IDOC segemnts with the application data.The control record is also passed to the function module but is not fully filled, the rmaining fields are filled and the control is passed back to the calling program which is RSNASTED and is invoked by the &lt;/P&gt;&lt;P&gt;message control to process ALE and EDI output types and this program on recieving the IDOC data will create the physical IDOC in the system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The parameteers passed to the function module are&lt;/P&gt;&lt;P&gt;IMPORTING PARAMETERS&lt;/P&gt;&lt;P&gt;OBJECT LIKE NAST &lt;/P&gt;&lt;P&gt;It contains documents key.&lt;/P&gt;&lt;P&gt;CONTROL_RECORD_IN LIKE EDIDC &lt;/P&gt;&lt;P&gt;It contains the partailly filled control record&lt;/P&gt;&lt;P&gt;EXPORETING PARAMETER&lt;/P&gt;&lt;P&gt;OBJECT_TYPE &lt;/P&gt;&lt;P&gt;CONTROL_RECORD_OUT LIKE EDIDC&lt;/P&gt;&lt;P&gt;TABLES &lt;/P&gt;&lt;P&gt;INT_EDID LIKE EDIDD&lt;/P&gt;&lt;P&gt;The internal table used to fill the data records in the same order as they exists in the IDOC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The important parameters that should be filled in the custom function module are&lt;/P&gt;&lt;P&gt;CONTROL_RECORD_OUT and INT_EDIDD .The OBJK field of the structue NAST contains the key of the apllication document. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2)Stand alone programs&lt;/P&gt;&lt;P&gt;Generally used for Master Data transfer and as such depending upon the requirement can have different interfaces.The programs have a selection screen which has select options to select the objects, and parameters for specifying the recipient Logical System and the Message Type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data is selected based on the specified objects from the tables . and control record of type EDIDC is created and filled with important values like DIRECTION ,IDOCTP,RCVPRT,RCVPRN and MESTYP .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data is filled in an internal table of TYPE EDIDD according to segment definitions&lt;/P&gt;&lt;P&gt;and in same order and the function module MASTER_IDOC_DISTRIBUTE is called passing the control record and the internal table containg IDOC data and importing an internal table consisting of control records for each communication IDOCS created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3)Change pointer &lt;/P&gt;&lt;P&gt;Change Pointer table is read and checked if changes were made to important fields , if so the outbound program will be triggered automatically , these have predefined interfaces &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ALE/IDOC Transaction&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SALE Area Menu for ALE configurations.It includes transactions for &lt;/P&gt;&lt;P&gt;Logical System definition and linking it to a client, Transactions for&lt;/P&gt;&lt;P&gt;RFC Destination and Port Definition Etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SM59 RFC Destination&lt;/P&gt;&lt;P&gt;Here we specify the login settings for the destination including &lt;/P&gt;&lt;P&gt;the I.P address or Application Server name and the User name and &lt;/P&gt;&lt;P&gt;password.The information entered here is used to run Remote Function &lt;/P&gt;&lt;P&gt;Calls(RFC ) on the destination server .We can create number of types&lt;/P&gt;&lt;P&gt;of RFC Destinations but 3 types are important .&lt;/P&gt;&lt;P&gt;R/3 (R/3 to R/3), LS(logical system) and TCP/IP.&lt;/P&gt;&lt;P&gt;The name of the RFC destination should be same as that of Logical &lt;/P&gt;&lt;P&gt;System as it helps in creation of automatic partner profiles.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WE21 Port Definition.&lt;/P&gt;&lt;P&gt;There are 6 types of ports but only 2 types File and Transactional RFC &lt;/P&gt;&lt;P&gt;types of ports are important.&lt;/P&gt;&lt;P&gt;We have to specify the RFC Destination before a port can be created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WE57 This is used to assign the Inbound function module to the Message Type &lt;/P&gt;&lt;P&gt;and to the IDOC Type.&lt;/P&gt;&lt;P&gt;WE42 This is used to define the process Code for Inbound Processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BD95 Define Filter object type .We can specify the field and the table it belongs &lt;/P&gt;&lt;P&gt;to as a filter object .&lt;/P&gt;&lt;P&gt;BD59 Assignment of Filter object type to the Message Type .Here we create the &lt;/P&gt;&lt;P&gt;link between Filter object and the segment and the message type and the &lt;/P&gt;&lt;P&gt;segment Field. &lt;/P&gt;&lt;P&gt;BD50 Set message Type to reducible.&lt;/P&gt;&lt;P&gt;BD65 Define Mandatory Fields. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BD64 Distribution Model . Also known as Customer Distribution Model Used to &lt;/P&gt;&lt;P&gt;define all the messages that will be exchanged between remote systems &lt;/P&gt;&lt;P&gt;and the name of thes logical systems. Any filters can also be specified.&lt;/P&gt;&lt;P&gt;The model once created has to be distributed on every system which will &lt;/P&gt;&lt;P&gt;be communicating ,It can be maintained on only One system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BD21 Creating IDOcs from change pointers.&lt;/P&gt;&lt;P&gt;This can be used to create IDOCs from change pointers for a particular &lt;/P&gt;&lt;P&gt;message LIKE MATMAS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BD22 This can be used to delete change pointers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BD87 Status Monitor. Idocs can be selected base on number of criteria and there&lt;/P&gt;&lt;P&gt;processing status can be seen in detail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BD10 Material Master Data Distribution .&lt;/P&gt;&lt;P&gt;Based on Message MATMAS.&lt;/P&gt;&lt;P&gt;BD12 Customer Master Data Distribution .&lt;/P&gt;&lt;P&gt;Based on Message CREMAS.&lt;/P&gt;&lt;P&gt;BD14 Vendor Master Data Distribution&lt;/P&gt;&lt;P&gt;Based on Message DEBMAS .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BDFG Generate ALE Interface for BAPI.&lt;/P&gt;&lt;P&gt;Here we specify the Business Object and the BAPI Function module for &lt;/P&gt;&lt;P&gt;which the interface has to be created. &lt;/P&gt;&lt;P&gt;WE31 Segment Editor.&lt;/P&gt;&lt;P&gt;This is used to create segments. We create the segment type and &lt;/P&gt;&lt;P&gt;segment definition is automatically created by editor e.g. Z1DUMMY is &lt;/P&gt;&lt;P&gt;segment type and Z2DUMMY is the segment definition .We specify the &lt;/P&gt;&lt;P&gt;fields and the data elements these cp\orresponds to create segments.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WE30 IDOC Editor&lt;/P&gt;&lt;P&gt;It is used to create a new IDOC Type or IDOC Extension .We specify the&lt;/P&gt;&lt;P&gt;segments that will be addd to the IDOC type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WE02/05 IDOC List.&lt;/P&gt;&lt;P&gt;Various selct options and parameters are provided to select IDOCs &lt;/P&gt;&lt;P&gt;depending on the date, direction , mesage type etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WE20 Partner Profile&lt;/P&gt;&lt;P&gt;Here we create partner profile for each and every partner from / to which&lt;/P&gt;&lt;P&gt;the messages will be exchanged.There are 6 types of PF generally only &lt;/P&gt;&lt;P&gt;profiles of type LS(Logical System) ,KU(Customer) ,LI(Vendor) is used.&lt;/P&gt;&lt;P&gt;We specify the partner number and partner type and the agent and &lt;/P&gt;&lt;P&gt;the agent type responsible for handling of errors .&lt;/P&gt;&lt;P&gt;For every message send to the partner we have a outbound record and for &lt;/P&gt;&lt;P&gt;evry message coming from the partner we have the inbound record .&lt;/P&gt;&lt;P&gt;We specify the message in the otbound/inbound records ,double &lt;/P&gt;&lt;P&gt;clicking will take us to the detailed screen where the IDOC Type ,Port &lt;/P&gt;&lt;P&gt;and whether the IDCO will be immediatelt processed or collected are &lt;/P&gt;&lt;P&gt;mentioned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Naveen khan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2007 16:30:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/message-type/m-p/2787759#M650081</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-05T16:30:58Z</dc:date>
    </item>
    <item>
      <title>Re: Message type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/message-type/m-p/2787760#M650082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;WE81 &amp;gt;&amp;gt; Gives the message type&lt;/P&gt;&lt;P&gt;WE41 and WE42 &amp;gt;&amp;gt; for outbound and inbound process code&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2007 16:36:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/message-type/m-p/2787760#M650082</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-05T16:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: Message type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/message-type/m-p/2787761#M650083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Das ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    Thanks for your reply . i have gone through the Transaction codes that you have provided .. but i am not able to get what is the message type for the IDOC , in WE81 it is showing list of all message types .. but how to know what is the message type for my IDOC and the same way how to find the Process code for the message type&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2007 16:53:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/message-type/m-p/2787761#M650083</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-05T16:53:09Z</dc:date>
    </item>
    <item>
      <title>Re: Message type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/message-type/m-p/2787762#M650084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi go to WE05, and execute , there you will get the message types for idoc types&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2007 17:22:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/message-type/m-p/2787762#M650084</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-05T17:22:17Z</dc:date>
    </item>
    <item>
      <title>Re: Message type</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/message-type/m-p/2787763#M650085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please try these transaction codes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WE82 - Message Type and IDoc Type&lt;/P&gt;&lt;P&gt;WE64 - Process Codes (Inbound and Outbound) for Message Type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2007 17:49:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/message-type/m-p/2787763#M650085</guid>
      <dc:creator>ferry_lianto</dc:creator>
      <dc:date>2007-09-05T17:49:51Z</dc:date>
    </item>
  </channel>
</rss>

