<?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 to append error message in internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-append-error-message-in-internal-table/m-p/7258404#M1528526</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Im not sure if I understood your question correctly.&lt;/P&gt;&lt;P&gt;But let me try.&lt;/P&gt;&lt;P&gt;Either you add another column (for messages) to your internal table or increase the length of the last field to hold the new text (message) to be appended.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Doing a looping at that internal table:&lt;/P&gt;&lt;P&gt;(Let's say you add one more column to your itab - field 'message')&lt;/P&gt;&lt;P&gt;LOOP AT i_tab.&lt;/P&gt;&lt;P&gt; IF error is encountered&lt;/P&gt;&lt;P&gt;   i_tab-message = 'This is the error message'.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;  MODIFY i_tab INDEX sy-index.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Or you just want to append the message at the last column of your itab, let's say your last column is field 'comment')&lt;/P&gt;&lt;P&gt;LOOP AT i_tab.&lt;/P&gt;&lt;P&gt; IF error is encountered&lt;/P&gt;&lt;P&gt;  CONCATENATE i_tab-comment   'This is the error message' INTO i_tab-comment SEPARATED BY SPACE.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;  MODIFY i_tab INDEX sy-index.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Sep 2010 07:52:25 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-09-13T07:52:25Z</dc:date>
    <item>
      <title>How to append error message in internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-append-error-message-in-internal-table/m-p/7258403#M1528525</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 am reading one text file into an internal table using GUI_UPLOAD. Now in few lines there are some errors.&lt;/P&gt;&lt;P&gt;I want to concatenate those errors in front of respected lines and download the file again using GUI_DOWNLOAD.&lt;/P&gt;&lt;P&gt;Can anyone tell me how to concatenate infront of that line only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After reading in internal table my data in internal table is like this-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;1DEFFERAL  20080215 121212                                                      
2            601191111A00000000110Hunter, Donald                AY           
2            601201111A00000000000Hunter, Donald                AY        "Suppose m getting any error in this line it shd append here
2            601211111A00000000120Ammons, Bernadette            AY              
2            601221111A00000000130Karels, Michael               AY              
2            601231111A00000000240Lawrence, Helen               AY               
2            601241111A00000000280Brady, Jennifer               AY                
2            601281111A00000000145Kagel, Camille                AY               
2            601291111A00000001567Roedel, Kathryn               AY               
2            601301111A00000000123Stepanyan, Henrick            AY               
2            601311111A00000001456Sanders, Harlan               AY               
2            700077024A00000001156Sanders, Harlan               AY               
9DEFFERAL  20080215 121212000000014&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Sep 2010 04:59:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-append-error-message-in-internal-table/m-p/7258403#M1528525</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-13T04:59:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to append error message in internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-append-error-message-in-internal-table/m-p/7258404#M1528526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Im not sure if I understood your question correctly.&lt;/P&gt;&lt;P&gt;But let me try.&lt;/P&gt;&lt;P&gt;Either you add another column (for messages) to your internal table or increase the length of the last field to hold the new text (message) to be appended.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Doing a looping at that internal table:&lt;/P&gt;&lt;P&gt;(Let's say you add one more column to your itab - field 'message')&lt;/P&gt;&lt;P&gt;LOOP AT i_tab.&lt;/P&gt;&lt;P&gt; IF error is encountered&lt;/P&gt;&lt;P&gt;   i_tab-message = 'This is the error message'.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;  MODIFY i_tab INDEX sy-index.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Or you just want to append the message at the last column of your itab, let's say your last column is field 'comment')&lt;/P&gt;&lt;P&gt;LOOP AT i_tab.&lt;/P&gt;&lt;P&gt; IF error is encountered&lt;/P&gt;&lt;P&gt;  CONCATENATE i_tab-comment   'This is the error message' INTO i_tab-comment SEPARATED BY SPACE.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;  MODIFY i_tab INDEX sy-index.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Sep 2010 07:52:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-append-error-message-in-internal-table/m-p/7258404#M1528526</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-13T07:52:25Z</dc:date>
    </item>
  </channel>
</rss>

