<?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: BDC message in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-message/m-p/3274038#M782702</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;BDCMSGCOLL&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is a sample &lt;STRONG&gt;error handling while uploading Customers&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Generally when the transaction is Unsuccessful you must get the&lt;/P&gt;&lt;P&gt;Message of type E or A.&lt;/P&gt;&lt;P&gt;In that Case you can Handle Like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using BDCMSGCOLL Structure we have to declare an itab.&lt;/P&gt;&lt;P&gt;DATA : IT_MSG LIKE TABLE OF BDCMSGCOLL .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then We can catch the messages using:&lt;/P&gt;&lt;P&gt;CALL TRANSACTION 'MK01'&lt;/P&gt;&lt;P&gt;USING IT_BDCDATA&lt;/P&gt;&lt;P&gt;MODE 'N'&lt;/P&gt;&lt;P&gt;MESSAGES INTO IT_MSG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;LOOP AT IT_MSG INTO WA_MSG&lt;/P&gt;&lt;P&gt;WHERE MSGTYP = 'E' OR MSGTYP = 'A'..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise if the Transaction FD01 is unsuccessful bcoz the Customer already exists&lt;/P&gt;&lt;P&gt;Then it will give the Message type S.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before calling the Transaction FD01 you have to check whether customer already exists in SAP using SELECT single STATEMENT.&lt;/P&gt;&lt;P&gt;Only if Customer does not exist then Call the Transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REWARD IF HELPFUL.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Jan 2008 10:17:58 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-16T10:17:58Z</dc:date>
    <item>
      <title>BDC message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-message/m-p/3274037#M782701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi gurus! &lt;/P&gt;&lt;P&gt;in BDC , i want to know the transparent table where the message no and its text is stored.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for eg : -&lt;/P&gt;&lt;P&gt;Msgid            Msgno       MSGV1           MSGV2 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  V1                   311        Fert. Direct      200017287 &lt;/P&gt;&lt;P&gt;      &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here , 200017287 is order no created after running BDC. So i want knw whenever different type of order is created , willl same no [311] will be displayed?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jan 2008 09:37:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-message/m-p/3274037#M782701</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-16T09:37:50Z</dc:date>
    </item>
    <item>
      <title>Re: BDC message</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-message/m-p/3274038#M782702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;BDCMSGCOLL&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is a sample &lt;STRONG&gt;error handling while uploading Customers&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Generally when the transaction is Unsuccessful you must get the&lt;/P&gt;&lt;P&gt;Message of type E or A.&lt;/P&gt;&lt;P&gt;In that Case you can Handle Like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using BDCMSGCOLL Structure we have to declare an itab.&lt;/P&gt;&lt;P&gt;DATA : IT_MSG LIKE TABLE OF BDCMSGCOLL .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then We can catch the messages using:&lt;/P&gt;&lt;P&gt;CALL TRANSACTION 'MK01'&lt;/P&gt;&lt;P&gt;USING IT_BDCDATA&lt;/P&gt;&lt;P&gt;MODE 'N'&lt;/P&gt;&lt;P&gt;MESSAGES INTO IT_MSG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;LOOP AT IT_MSG INTO WA_MSG&lt;/P&gt;&lt;P&gt;WHERE MSGTYP = 'E' OR MSGTYP = 'A'..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise if the Transaction FD01 is unsuccessful bcoz the Customer already exists&lt;/P&gt;&lt;P&gt;Then it will give the Message type S.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before calling the Transaction FD01 you have to check whether customer already exists in SAP using SELECT single STATEMENT.&lt;/P&gt;&lt;P&gt;Only if Customer does not exist then Call the Transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REWARD IF HELPFUL.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Jan 2008 10:17:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-message/m-p/3274038#M782702</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-16T10:17:58Z</dc:date>
    </item>
  </channel>
</rss>

