<?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: How do i get data when displaying error message in BDC in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-i-get-data-when-displaying-error-message-in-bdc/m-p/2214261#M474659</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;while displaying error message write your internal table filed also.&lt;/P&gt;&lt;P&gt;i.e. loop at itab.&lt;/P&gt;&lt;P&gt;performs...&lt;/P&gt;&lt;P&gt;call transaction ...&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;write : itab-materialname.&lt;/P&gt;&lt;P&gt;LOOP AT bdcmsg.&lt;/P&gt;&lt;P&gt;WRITE: bdcmsg-DYNAME,&lt;/P&gt;&lt;P&gt;       bdcmsg-DYNUMB,&lt;/P&gt;&lt;P&gt;       bdcmsg-MSGTYP,&lt;/P&gt;&lt;P&gt;       bdcmsg-MSGSPRA,&lt;/P&gt;&lt;P&gt;       bdcmsg-MSGID,&lt;/P&gt;&lt;P&gt;       bdcmsg-MSGNR,&lt;/P&gt;&lt;P&gt;       bdcmsg-MSGV1,&lt;/P&gt;&lt;P&gt;       bdcmsg-MSGV2,&lt;/P&gt;&lt;P&gt;       bdcmsg-MSGV3,&lt;/P&gt;&lt;P&gt;       bdcmsg-MSGV4.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;if helpful reward points&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 May 2007 07:16:31 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-03T07:16:31Z</dc:date>
    <item>
      <title>How do i get data when displaying error message in BDC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-i-get-data-when-displaying-error-message-in-bdc/m-p/2214258#M474656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;I have generated one internal table for displaying error message using BDCMSGCOLL, i want the the error to display according to the field name,&lt;/P&gt;&lt;P&gt;Hw can i get it...&lt;/P&gt;&lt;P&gt;ex: &amp;lt;Material name&amp;gt; Error message as name already created or unit doesnt exit...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls reply,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Divi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 May 2007 07:12:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-i-get-data-when-displaying-error-message-in-bdc/m-p/2214258#M474656</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-03T07:12:01Z</dc:date>
    </item>
    <item>
      <title>Re: How do i get data when displaying error message in BDC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-i-get-data-when-displaying-error-message-in-bdc/m-p/2214259#M474657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in some times , SAP will through the errors without field names.In this case u have to educate ur Users.&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;Prabhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 May 2007 07:14:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-i-get-data-when-displaying-error-message-in-bdc/m-p/2214259#M474657</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-03T07:14:12Z</dc:date>
    </item>
    <item>
      <title>Re: How do i get data when displaying error message in BDC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-i-get-data-when-displaying-error-message-in-bdc/m-p/2214260#M474658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you must be doing a call transaction within a loop of (for examples) materials internal table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;once you get the messages, after the call transaction statements, concatenate the material name (or whatever you want to concatenate) in the msgv1 field of the message structure...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;should work through such a workaround. try it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Priyank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 May 2007 07:15:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-i-get-data-when-displaying-error-message-in-bdc/m-p/2214260#M474658</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-03T07:15:42Z</dc:date>
    </item>
    <item>
      <title>Re: How do i get data when displaying error message in BDC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-i-get-data-when-displaying-error-message-in-bdc/m-p/2214261#M474659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;while displaying error message write your internal table filed also.&lt;/P&gt;&lt;P&gt;i.e. loop at itab.&lt;/P&gt;&lt;P&gt;performs...&lt;/P&gt;&lt;P&gt;call transaction ...&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;write : itab-materialname.&lt;/P&gt;&lt;P&gt;LOOP AT bdcmsg.&lt;/P&gt;&lt;P&gt;WRITE: bdcmsg-DYNAME,&lt;/P&gt;&lt;P&gt;       bdcmsg-DYNUMB,&lt;/P&gt;&lt;P&gt;       bdcmsg-MSGTYP,&lt;/P&gt;&lt;P&gt;       bdcmsg-MSGSPRA,&lt;/P&gt;&lt;P&gt;       bdcmsg-MSGID,&lt;/P&gt;&lt;P&gt;       bdcmsg-MSGNR,&lt;/P&gt;&lt;P&gt;       bdcmsg-MSGV1,&lt;/P&gt;&lt;P&gt;       bdcmsg-MSGV2,&lt;/P&gt;&lt;P&gt;       bdcmsg-MSGV3,&lt;/P&gt;&lt;P&gt;       bdcmsg-MSGV4.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;if helpful reward points&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 May 2007 07:16:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-i-get-data-when-displaying-error-message-in-bdc/m-p/2214261#M474659</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-03T07:16:31Z</dc:date>
    </item>
    <item>
      <title>Re: How do i get data when displaying error message in BDC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-i-get-data-when-displaying-error-message-in-bdc/m-p/2214262#M474660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Divya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go to the program BDCRECX1 and check for the code :&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;Hope this will solve your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Hemant.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 May 2007 07:19:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-i-get-data-when-displaying-error-message-in-bdc/m-p/2214262#M474660</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-03T07:19:16Z</dc:date>
    </item>
    <item>
      <title>Re: How do i get data when displaying error message in BDC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-i-get-data-when-displaying-error-message-in-bdc/m-p/2214263#M474661</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;just have a look at the table BDCMSGCOLL in SE11.&lt;/P&gt;&lt;P&gt;check the fields in that&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data itab like BDCMSGCOLL occurs 0 with header line.&lt;/P&gt;&lt;P&gt;call transaction 'mk01' messages into itab.&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;write : /  itab-fldname.&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;reward if useful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prajith&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 May 2007 07:19:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-i-get-data-when-displaying-error-message-in-bdc/m-p/2214263#M474661</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-03T07:19:53Z</dc:date>
    </item>
    <item>
      <title>Re: How do i get data when displaying error message in BDC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-i-get-data-when-displaying-error-message-in-bdc/m-p/2214264#M474662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;call transaction 'MI01' using itab_bdcdata mode 'A' MESSAGES INTO&lt;/P&gt;&lt;P&gt;ITAB_msg.&lt;/P&gt;&lt;P&gt;CLEAR itab_bdcdata[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab_msg where msgtyp = 'S'. (u can give yiur msg type here)&lt;/P&gt;&lt;P&gt;break-point.&lt;/P&gt;&lt;P&gt;message i010(zmgs) with itab_msg-MSGV1.&lt;/P&gt;&lt;P&gt;docno = itab_msg-msgv1.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 May 2007 07:20:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-i-get-data-when-displaying-error-message-in-bdc/m-p/2214264#M474662</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-03T07:20:44Z</dc:date>
    </item>
    <item>
      <title>Re: How do i get data when displaying error message in BDC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-i-get-data-when-displaying-error-message-in-bdc/m-p/2214265#M474663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Divya,&lt;/P&gt;&lt;P&gt;Try the below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL TRANSACTION 'MM01'&lt;/P&gt;&lt;P&gt;                    USING bdcdata &lt;/P&gt;&lt;P&gt;                    MODE   'N' &lt;/P&gt;&lt;P&gt;                    MESSAGES INTO MSGTAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SY-SUBRC NE 0.&lt;/P&gt;&lt;P&gt;move itab-matnr to jtab-matnr.&lt;/P&gt;&lt;P&gt;append jtab.&lt;/P&gt;&lt;P&gt;PERFORM CHECK.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM CHECK.&lt;/P&gt;&lt;P&gt;LOOP AT MSGTAB where msgtyp = 'E'.&lt;/P&gt;&lt;P&gt;read table jtab index sy-index.&lt;/P&gt;&lt;P&gt;write:/ jtab-matnr.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'MESSAGE_PREPARE'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    LANGUAGE                     = sy-langu&lt;/P&gt;&lt;P&gt;    MSG_ID                       = MSGTAB-MSGID&lt;/P&gt;&lt;P&gt;    MSG_NO                       = MSGTAB-MSGNR&lt;/P&gt;&lt;P&gt;   MSG_VAR1                     = MSGTAB-MSGV1(50)&lt;/P&gt;&lt;P&gt;   MSG_VAR2                     = MSGTAB-MSGV2(50)&lt;/P&gt;&lt;P&gt;   MSG_VAR3                     = MSGTAB-MSGV3(50)&lt;/P&gt;&lt;P&gt;   MSG_VAR4                     = MSGTAB-MSGV4(50)&lt;/P&gt;&lt;P&gt;   IMPORTING&lt;/P&gt;&lt;P&gt;   MSG_TEXT                     = L_MSG&lt;/P&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;P&gt;   FUNCTION_NOT_COMPLETED       = 1&lt;/P&gt;&lt;P&gt;   MESSAGE_NOT_FOUND            = 2&lt;/P&gt;&lt;P&gt;   OTHERS                       = 3&lt;/P&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE:   L_MSG.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Satish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 May 2007 07:24:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-i-get-data-when-displaying-error-message-in-bdc/m-p/2214265#M474663</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-03T07:24:58Z</dc:date>
    </item>
    <item>
      <title>Re: How do i get data when displaying error message in BDC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-i-get-data-when-displaying-error-message-in-bdc/m-p/2214266#M474664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thnk u i got it, but&lt;/P&gt;&lt;P&gt;I want along with the error message,&lt;/P&gt;&lt;P&gt;Now i am getting it field name seperate and error message seperate.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 May 2007 07:35:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-i-get-data-when-displaying-error-message-in-bdc/m-p/2214266#M474664</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-03T07:35:19Z</dc:date>
    </item>
    <item>
      <title>Re: How do i get data when displaying error message in BDC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-i-get-data-when-displaying-error-message-in-bdc/m-p/2214267#M474665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Divya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      Take another field of lenght error message plus material name together. do the concatenation of those two fields into one field and displayt that field it will have all together in one field itself&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Siva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 May 2007 17:34:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-i-get-data-when-displaying-error-message-in-bdc/m-p/2214267#M474665</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-03T17:34:57Z</dc:date>
    </item>
    <item>
      <title>Re: How do i get data when displaying error message in BDC</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-i-get-data-when-displaying-error-message-in-bdc/m-p/2214268#M474666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use FM 'MESSAGE_PREPARE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u will get it as error message itself...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 May 2007 17:39:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-i-get-data-when-displaying-error-message-in-bdc/m-p/2214268#M474666</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-03T17:39:44Z</dc:date>
    </item>
  </channel>
</rss>

