<?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: issue with upload in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-upload/m-p/1892465#M373416</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;&amp;lt;b&amp;gt;Loop at i_bdcmsgcoll where mestype = 'E'.&amp;lt;/b&amp;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 = '-D'&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 = zmsg1&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 &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;&amp;lt;b&amp;gt;endloop.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Keep the above code outside the present loop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Jan 2007 17:39:28 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-01-17T17:39:28Z</dc:date>
    <item>
      <title>issue with upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-upload/m-p/1892462#M373413</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 modulepool program custom made and an upload program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am calling the modulepool program from my upload program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have several info mesages in my module for any user errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;say if i have an error in the excel sheet that iam uploading to the same transaction, i want to get the same info mess in to&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;    perform bdc_dynpro      using 'SAPMZTEST' '9002'.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                                  '=ZNEW'.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                                  '%#AUTOTEXT001'.&lt;/P&gt;&lt;P&gt;    perform bdc_dynpro      using 'SAPMZTEST' '9003'.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                                  '=ENT1'.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                                  'ZTEST-KOSTL(01)'.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'ZTEST-ERDAT(01)'&lt;/P&gt;&lt;P&gt;                                  itab-erdat.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'ZTEST-MATNR(01)'&lt;/P&gt;&lt;P&gt;                                  itab-matnr.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'ZTEST-MENGE(01)'&lt;/P&gt;&lt;P&gt;                                  itab-menge.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'ZTEST-KOSTL(01)'&lt;/P&gt;&lt;P&gt;                                  itab-kostl.&lt;/P&gt;&lt;P&gt;    perform bdc_dynpro      using 'SAPMZTEST' '9003'.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'BDC_OKCODE'&lt;/P&gt;&lt;P&gt;                                  '=SAVE'.&lt;/P&gt;&lt;P&gt;    perform bdc_field       using 'BDC_CURSOR'&lt;/P&gt;&lt;P&gt;                                  '%#AUTOTEXT001'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    call transaction 'ZTCODE' using i_bdcdata&lt;/P&gt;&lt;P&gt;                      mode 'A'&lt;/P&gt;&lt;P&gt;                      messages into i_bdcmsgcoll.&lt;/P&gt;&lt;P&gt;    refresh i_bdcdata.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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      = '-D'&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       = zmsg1&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 &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;    i_error1-matnr = itab-matnr.&lt;/P&gt;&lt;P&gt;    i_error1-text = zmsg1.&lt;/P&gt;&lt;P&gt;    if i_error1-text is initial.&lt;/P&gt;&lt;P&gt;      i_error1-text = 'Order Placed'.&lt;/P&gt;&lt;P&gt;              else.&lt;/P&gt;&lt;P&gt;      text1 = 'Order Not Placed'.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;    write : / i_error1-matnr , 20 i_error1-text , 80 text1.&lt;/P&gt;&lt;P&gt;    clear text1.&lt;/P&gt;&lt;P&gt;    clear zmsg1.&lt;/P&gt;&lt;P&gt;    append i_error1.&lt;/P&gt;&lt;P&gt;    clear i_error1.&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;I WANT THE INFO MESS IN ZMSG1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CAN ANYONE TELL ME HOW TO ACHIEVE THIS&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, 17 Jan 2007 17:32:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-upload/m-p/1892462#M373413</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-17T17:32:08Z</dc:date>
    </item>
    <item>
      <title>Re: issue with upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-upload/m-p/1892463#M373414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The messages from your module pool program will be return in the i_bdcmsgcoll internal table.  Simply loop this table and use the fields from this table to pass to the FORMAT_MESSAGE function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jan 2007 17:36:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-upload/m-p/1892463#M373414</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-01-17T17:36:47Z</dc:date>
    </item>
    <item>
      <title>Re: issue with upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-upload/m-p/1892464#M373415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;After this code&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;call transaction 'ZTCODE' using i_bdcdata
mode 'A'
messages into i_bdcmsgcoll.
refresh i_bdcdata.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need loop through the internal table or read the internal table &amp;lt;b&amp;gt;i_bdcmsgcoll&amp;lt;/b&amp;gt; and write the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call transaction 'ZTCODE' using i_bdcdata&lt;/P&gt;&lt;P&gt;mode 'A'&lt;/P&gt;&lt;P&gt;messages into i_bdcmsgcoll.&lt;/P&gt;&lt;P&gt;refresh i_bdcdata.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;loop at/read table i_bdcmsgcoll&amp;lt;/b&amp;gt;&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 = '-D'&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 = zmsg1&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 &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;i_error1-matnr = itab-matnr.&lt;/P&gt;&lt;P&gt;i_error1-text = zmsg1.&lt;/P&gt;&lt;P&gt;if i_error1-text is initial.&lt;/P&gt;&lt;P&gt;i_error1-text = 'Order Placed'.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;text1 = 'Order Not Placed'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;write : / i_error1-matnr , 20 i_error1-text , 80 text1.&lt;/P&gt;&lt;P&gt;clear text1.&lt;/P&gt;&lt;P&gt;clear zmsg1.&lt;/P&gt;&lt;P&gt;append i_error1.&lt;/P&gt;&lt;P&gt;clear i_error1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jan 2007 17:38:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-upload/m-p/1892464#M373415</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-17T17:38:10Z</dc:date>
    </item>
    <item>
      <title>Re: issue with upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-upload/m-p/1892465#M373416</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;&amp;lt;b&amp;gt;Loop at i_bdcmsgcoll where mestype = 'E'.&amp;lt;/b&amp;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 = '-D'&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 = zmsg1&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 &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;&amp;lt;b&amp;gt;endloop.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Keep the above code outside the present loop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jan 2007 17:39:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-upload/m-p/1892465#M373416</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-17T17:39:28Z</dc:date>
    </item>
    <item>
      <title>Re: issue with upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-upload/m-p/1892466#M373417</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 changed my code as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT I_BDCMSGCOLL.&lt;/P&gt;&lt;P&gt;&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      = '-D'&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       = zmsg1&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 &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;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;The mess type is 'S'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IN THE  module pool the message is &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MATERIAL DOESN'T BELONG TO PLANT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHERE AS IN MY&lt;/P&gt;&lt;P&gt;zmsg1&lt;/P&gt;&lt;P&gt;I AM GETTING THE  No batch input data for screen SAPMSSY3 0131&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THIS IS WHAT I HAVE IN i_bdcmsgcoll[1]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TCODE	C	20 	ZTEST&lt;/P&gt;&lt;P&gt;DYNAME	C	40 	SAPMSSY3&lt;/P&gt;&lt;P&gt;DYNUMB	C	4 	0131&lt;/P&gt;&lt;P&gt;MSGTYP	C	1 	S&lt;/P&gt;&lt;P&gt;MSGSPRA	C	1 	E&lt;/P&gt;&lt;P&gt;MSGID	C	20 	00&lt;/P&gt;&lt;P&gt;MSGNR	C	3 	344&lt;/P&gt;&lt;P&gt;MSGV1	C	100 	SAPMSSY3&lt;/P&gt;&lt;P&gt;MSGV2	C	100 	0131&lt;/P&gt;&lt;P&gt;MSGV3	C	100                                                                                &lt;/P&gt;&lt;P&gt;MSGV4	C	100                                                                                &lt;/P&gt;&lt;P&gt;ENV	C	4 	CTU&lt;/P&gt;&lt;P&gt;FLDNAME	C	132 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;canyone tell mw to where i'm missing the trick&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, 17 Jan 2007 18:13:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-upload/m-p/1892466#M373417</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-17T18:13:35Z</dc:date>
    </item>
  </channel>
</rss>

