<?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: create field with error messege in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-field-with-error-messege/m-p/1781665#M336852</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hallow thankes for your time my qustion is what i put in lv_msg becouse it bring me an error and if in v1 v2 v3 i put the field tthat in itab regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Dec 2006 14:05:40 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-12-04T14:05:40Z</dc:date>
    <item>
      <title>create field with error messege</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-field-with-error-messege/m-p/1781658#M336845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hallow I doing a batch input and I wont to have all the error messege(messege and messegeid) in field like error_messege how can I do it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: sucsses_messege TYPE syst-subrc.&lt;/P&gt;&lt;P&gt;  DATA:  returen_messege LIKE TABLE OF bdcmsgcoll.&lt;/P&gt;&lt;P&gt;  DATA:   messtab LIKE bdcmsgcoll OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;  DATA:   wa_messtab LIKE LINE OF messtab .&lt;/P&gt;&lt;P&gt;  DATA:   error_messege(100) TYPE c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT itab1.&lt;/P&gt;&lt;P&gt;    SPLIT itab1 AT ',' INTO:&lt;/P&gt;&lt;P&gt;       itab-osek_morsh&lt;/P&gt;&lt;P&gt;       itab-company_name&lt;/P&gt;&lt;P&gt;       itab-company_code.&lt;/P&gt;&lt;P&gt;    APPEND itab.&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;&lt;/P&gt;&lt;P&gt;  LOOP AT itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    REFRESH messtab.&lt;/P&gt;&lt;P&gt;    CLEAR messtab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'YHR_VENDOR_BI'&lt;/P&gt;&lt;P&gt;     EXPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    CTU             = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    MODE            = 'N'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    UPDATE          = 'S'&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    GROUP           =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    USER            =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    KEEP            =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    HOLDDATE        =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     NODATA          = '/'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;         lifnr_001       = 'osek_morsh'&lt;/P&gt;&lt;P&gt;        ktokk_002       = 'Z001'&lt;/P&gt;&lt;P&gt;        anred_003       = 'Company'&lt;/P&gt;&lt;P&gt;        name1_004       = 'company_name'&lt;/P&gt;&lt;P&gt;        sortl_005       = 'company_name'&lt;/P&gt;&lt;P&gt;        land1_006       = 'IL'&lt;/P&gt;&lt;P&gt;        spras_007       = 'HE'&lt;/P&gt;&lt;P&gt;        stceg_008       = 'company_code'&lt;/P&gt;&lt;P&gt;       IMPORTING&lt;/P&gt;&lt;P&gt;       subrc           = sucsses_messege&lt;/P&gt;&lt;P&gt;     TABLES&lt;/P&gt;&lt;P&gt;        messtab         = returen_messege.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    PERFORM write_message.&lt;/P&gt;&lt;P&gt;&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;ENDFORM.                    " get_data&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  write_message&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; --&amp;gt;  p1        text&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; &amp;lt;--  p2        text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM write_message .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;b&amp;gt;MOVE wa_messtab TO error_messege.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;it will help if u give me example&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;thankes&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Dec 2006 13:30:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-field-with-error-messege/m-p/1781658#M336845</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-04T13:30:49Z</dc:date>
    </item>
    <item>
      <title>Re: create field with error messege</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-field-with-error-messege/m-p/1781659#M336846</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 &amp;lt;b&amp;gt;FORMAT_MESSAGE&amp;lt;/b&amp;gt; FM ..&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; 
  CALL FUNCTION 'FORMAT_MESSAGE'
    EXPORTING
      ID        = SY-MSGID
      LANG      = SY-LANGU
      NO        = SY-MSGNO
      V1        = SY-MSGV1
      V2        = SY-MSGV2
      V3        = SY-MSGV3
      V4        = SY-MSGV4
    IMPORTING
      MSG       = LV_MSG
    EXCEPTIONS
      NOT_FOUND = 1
      OTHERS    = 2.
  IF SY-SUBRC = 0.

    WRITE :/ LV_MSG.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Dec 2006 13:33:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-field-with-error-messege/m-p/1781659#M336846</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-04T13:33:16Z</dc:date>
    </item>
    <item>
      <title>Re: create field with error messege</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-field-with-error-messege/m-p/1781660#M336847</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 use &amp;lt;b&amp;gt;write_message&amp;lt;/b&amp;gt; or &amp;lt;b&amp;gt;Format_message&amp;lt;/b&amp;gt; fucntion module to get error_messages will filled with error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Bhupal Reddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Dec 2006 13:36:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-field-with-error-messege/m-p/1781660#M336847</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-04T13:36:08Z</dc:date>
    </item>
    <item>
      <title>Re: create field with error messege</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-field-with-error-messege/m-p/1781661#M336848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use FORMAT_MESSAGE FM ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ur code here.......&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 = SY-MSGID&lt;/P&gt;&lt;P&gt;LANG = SY-LANGU&lt;/P&gt;&lt;P&gt;NO = SY-MSGNO&lt;/P&gt;&lt;P&gt;V1 = SY-MSGV1&lt;/P&gt;&lt;P&gt;V2 = SY-MSGV2&lt;/P&gt;&lt;P&gt;V3 = SY-MSGV3&lt;/P&gt;&lt;P&gt;V4 = SY-MSGV4&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;MSG = LV_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;IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; LV_MSG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ur additional code here&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Dec 2006 13:37:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-field-with-error-messege/m-p/1781661#M336848</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-04T13:37:53Z</dc:date>
    </item>
    <item>
      <title>Re: create field with error messege</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-field-with-error-messege/m-p/1781662#M336849</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;You can use the FM MESSAGE_PREPARE or FORMAT_MESSAGE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;  LOOP AT MESSTAB.
    CALL FUNCTION 'FORMAT_MESSAGE'
      EXPORTING
        ID        = MESSTAB-MSGID
        V1        = MESSTAB-MSGV1
        V2        = MESSTAB-MSGV2
        V3        = MESSTAB-MSGV3
        V4        = MESSTAB-MSGV4
      IMPORTING
        MSG       = MSG
      EXCEPTIONS
        NOT_FOUND = 1
        OTHERS    = 2.
    IF SY-SUBRC &amp;lt;&amp;gt; 0.
    ENDIF.

    WRITE:/ MSG.
    CLEAR: MSG.
  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;Vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Dec 2006 13:38:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-field-with-error-messege/m-p/1781662#M336849</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-04T13:38:28Z</dc:date>
    </item>
    <item>
      <title>Re: create field with error messege</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-field-with-error-messege/m-p/1781663#M336850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi antonio,&lt;/P&gt;&lt;P&gt;here ur passing an internal table to FM and there u will have all the error messages returned by it.so, u have to read the error message tabel and further u can do any operations like display r some thing else .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: returen_messege LIKE TABLE OF bdcmsgcoll,&lt;/P&gt;&lt;P&gt;           wa_message  like line of  returen_messege.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at returen_messege into wa_message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write:/ wa_message-MSGID,wa_message-MSGTYP,wa_message-MSGNR,...../&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;like u have more no of fields find in the bdcmsgcoll structure&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Dec 2006 13:40:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-field-with-error-messege/m-p/1781663#M336850</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-04T13:40:17Z</dc:date>
    </item>
    <item>
      <title>Re: create field with error messege</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-field-with-error-messege/m-p/1781664#M336851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DATA: returen_messege LIKE TABLE OF bdcmsgcoll,&lt;/P&gt;&lt;P&gt;wa_message like line of returen_messege.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at returen_messege into wa_message.&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_message-MSGID&lt;/P&gt;&lt;P&gt;      LANG      = SY-LANGU&lt;/P&gt;&lt;P&gt;      NO        = wa_message-MSGNO&lt;/P&gt;&lt;P&gt;      V1        =wa_message-MSGV1&lt;/P&gt;&lt;P&gt;      V2        = wa_message-MSGV2&lt;/P&gt;&lt;P&gt;      V3        = wa_message-MSGV3&lt;/P&gt;&lt;P&gt;      V4        = wa_message-MSGV4&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      MSG       = LV_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;  IF SY-SUBRC = 0.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;    WRITE &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; LV_MSG.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;this way also u can make it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Dec 2006 13:43:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-field-with-error-messege/m-p/1781664#M336851</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-04T13:43:01Z</dc:date>
    </item>
    <item>
      <title>Re: create field with error messege</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-field-with-error-messege/m-p/1781665#M336852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hallow thankes for your time my qustion is what i put in lv_msg becouse it bring me an error and if in v1 v2 v3 i put the field tthat in itab regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Dec 2006 14:05:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-field-with-error-messege/m-p/1781665#M336852</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-04T14:05:40Z</dc:date>
    </item>
    <item>
      <title>Re: create field with error messege</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-field-with-error-messege/m-p/1781666#M336853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data : lv_msg like t100-text  " err desc available in table t100&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Dec 2006 14:13:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-field-with-error-messege/m-p/1781666#M336853</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-04T14:13:07Z</dc:date>
    </item>
    <item>
      <title>Re: create field with error messege</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-field-with-error-messege/m-p/1781667#M336854</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 it in this way..no need to create an internal table ...&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*--Var to store the formatted msg.
  DATA : LV_MSG(255).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Dec 2006 14:14:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-field-with-error-messege/m-p/1781667#M336854</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-04T14:14:33Z</dc:date>
    </item>
  </channel>
</rss>

