<?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 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/1954640#M392854</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gaurav ,&lt;/P&gt;&lt;P&gt;               I am not getting any error messages in my messtab then hoe to loop it up....&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;Ashok....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Feb 2007 06:06:38 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-21T06:06:38Z</dc:date>
    <item>
      <title>BDC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/1954635#M392849</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;I am running transaction QP01 using call transaction method like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CALL TRANSACTION 'QP01' USING bdcdata MODE 'N'                             UPDATE 'S' MESSAGES INTO messtab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i use wrong data and in the A mode my messtab is getting error messages ,&lt;/P&gt;&lt;P&gt;but if i use n mode am not getting any error messages in my messtab internal table and the data is not stored in the Transaction..&lt;/P&gt;&lt;P&gt;I need that error messages.&lt;/P&gt;&lt;P&gt;Help me ...&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;Ashok...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Feb 2007 05:54:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/1954635#M392849</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-21T05:54:01Z</dc:date>
    </item>
    <item>
      <title>Re: BDC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/1954636#M392850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Write the below code, you will get the errors. you need to write the Loop at MEsstab after the Call transaction step&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL TRANSACTION 'QP01' USING bdcdata MODE 'N' UPDATE 'S' MESSAGES INTO messtab.
Loop at MESSTAB.
write: MESSTAB-MSGV1,MESSTAB-MSGV2,MESSTAB-MSGV3,MESSTAB-MSGV4
Endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt; Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Feb 2007 05:59:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/1954636#M392850</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-21T05:59:31Z</dc:date>
    </item>
    <item>
      <title>Re: BDC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/1954637#M392851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sudheer ,&lt;/P&gt;&lt;P&gt;           No Error data is getting populated in my messtab,then hoe i coud loop it up and display that.&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;Ashok...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Feb 2007 06:02:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/1954637#M392851</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-21T06:02:34Z</dc:date>
    </item>
    <item>
      <title>Re: BDC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/1954638#M392852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Declare strucutre like bdcmsgcoll&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Call function module Format_message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Feb 2007 06:03:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/1954638#M392852</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-21T06:03:54Z</dc:date>
    </item>
    <item>
      <title>Re: BDC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/1954639#M392853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Use this example for help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT MESSTAB. &lt;/P&gt;&lt;P&gt;        SELECT SINGLE * FROM T100 WHERE SPRSL = MESSTAB-MSGSPRA &lt;/P&gt;&lt;P&gt;                                  AND   ARBGB = MESSTAB-MSGID &lt;/P&gt;&lt;P&gt;                                  AND   MSGNR = MESSTAB-MSGNR. &lt;/P&gt;&lt;P&gt;        IF SY-SUBRC = 0. &lt;/P&gt;&lt;P&gt;          L_MSTRING = T100-TEXT. &lt;/P&gt;&lt;P&gt;          IF L_MSTRING CS '&amp;amp;1'. &lt;/P&gt;&lt;P&gt;            REPLACE '&amp;amp;1' WITH MESSTAB-MSGV1 INTO L_MSTRING. &lt;/P&gt;&lt;P&gt;            REPLACE '&amp;amp;2' WITH MESSTAB-MSGV2 INTO L_MSTRING. &lt;/P&gt;&lt;P&gt;            REPLACE '&amp;amp;3' WITH MESSTAB-MSGV3 INTO L_MSTRING. &lt;/P&gt;&lt;P&gt;            REPLACE '&amp;amp;4' WITH MESSTAB-MSGV4 INTO L_MSTRING. &lt;/P&gt;&lt;P&gt;          ELSE. &lt;/P&gt;&lt;P&gt;            REPLACE '&amp;amp;' WITH MESSTAB-MSGV1 INTO L_MSTRING. &lt;/P&gt;&lt;P&gt;            REPLACE '&amp;amp;' WITH MESSTAB-MSGV2 INTO L_MSTRING. &lt;/P&gt;&lt;P&gt;            REPLACE '&amp;amp;' WITH MESSTAB-MSGV3 INTO L_MSTRING. &lt;/P&gt;&lt;P&gt;            REPLACE '&amp;amp;' WITH MESSTAB-MSGV4 INTO L_MSTRING. &lt;/P&gt;&lt;P&gt;          ENDIF. &lt;/P&gt;&lt;P&gt;          CONDENSE L_MSTRING. &lt;/P&gt;&lt;P&gt;          WRITE: / MESSTAB-MSGTYP, L_MSTRING(250). &lt;/P&gt;&lt;P&gt;        ELSE. &lt;/P&gt;&lt;P&gt;          WRITE: / MESSTAB. &lt;/P&gt;&lt;P&gt;        ENDIF. &lt;/P&gt;&lt;P&gt;      ENDLOOP. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Gaurav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Feb 2007 06:04:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/1954639#M392853</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-21T06:04:32Z</dc:date>
    </item>
    <item>
      <title>Re: BDC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/1954640#M392854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gaurav ,&lt;/P&gt;&lt;P&gt;               I am not getting any error messages in my messtab then hoe to loop it up....&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;Ashok....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Feb 2007 06:06:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/1954640#M392854</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-21T06:06:38Z</dc:date>
    </item>
    <item>
      <title>Re: BDC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/1954641#M392855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ashok,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Try this this will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: i_messages LIKE bdcmsgcoll OCCURS 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL TRANSACTION tcode USING i_bdcdata&lt;/P&gt;&lt;P&gt;MODE lws_mode&lt;/P&gt;&lt;P&gt;UPDATE lws_update&lt;/P&gt;&lt;P&gt;MESSAGES INTO i_messages.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here the error and success messages have come into the table i_messages&lt;/P&gt;&lt;P&gt;Now this is not complete if you look at the table i_messages at runtime...&lt;/P&gt;&lt;P&gt;Now to get the complete message you use the FORMAT_MESSAGE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT i_messages INTO wa_messages&lt;/P&gt;&lt;P&gt;WHERE msgtyp EQ 'E' OR&lt;/P&gt;&lt;P&gt;msgtyp EQ 'A'. (This is to get only Error Messages)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'FORMAT_MESSAGE'&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;id = wa_messages-msgid&lt;/P&gt;&lt;P&gt;lang = sy-langu&lt;/P&gt;&lt;P&gt;no = wa_messages-msgnr&lt;/P&gt;&lt;P&gt;v1 = wa_messages-msgv1&lt;/P&gt;&lt;P&gt;v2 = wa_messages-msgv2&lt;/P&gt;&lt;P&gt;v3 = wa_messages-msgv3&lt;/P&gt;&lt;P&gt;v4 = wa_messages-msgv4&lt;/P&gt;&lt;P&gt;importing&lt;/P&gt;&lt;P&gt;msg = v_msg&lt;/P&gt;&lt;P&gt;exceptions&lt;/P&gt;&lt;P&gt;not_found = 1&lt;/P&gt;&lt;P&gt;others = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here v_msg contains the full error message such that you would see on the screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_error-message = v_msg.&lt;/P&gt;&lt;P&gt;append wa_error to i_error.&lt;/P&gt;&lt;P&gt;Here your table i_error will contain all the error messages which have come&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;&lt;/P&gt;&lt;P&gt;Pls. Mark if useful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Feb 2007 06:11:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc/m-p/1954641#M392855</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-21T06:11:38Z</dc:date>
    </item>
  </channel>
</rss>

