<?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: Internal table with header line in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-with-header-line/m-p/3491446#M839663</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mark,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you mean that the record is still in the HEADER LINE, but not in internal table.&lt;/P&gt;&lt;P&gt;In that case YES, you need to append the record first to the internal table and then only you can read the record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Gopi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Mar 2008 07:10:51 GMT</pubDate>
    <dc:creator>gopi_narendra</dc:creator>
    <dc:date>2008-03-11T07:10:51Z</dc:date>
    <item>
      <title>Internal table with header line</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-with-header-line/m-p/3491436#M839653</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;If i use internal table with header line, do i need to append the internal table before I read it? Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Mar 2008 07:03:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-with-header-line/m-p/3491436#M839653</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-11T07:03:48Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table with header line</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-with-header-line/m-p/3491437#M839654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes using append u can fill the internal table to read the records or process the internal table. woitout any data put in the internal table u cannot process it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Mar 2008 07:05:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-with-header-line/m-p/3491437#M839654</guid>
      <dc:creator>prabhu_s2</dc:creator>
      <dc:date>2008-03-11T07:05:19Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table with header line</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-with-header-line/m-p/3491438#M839655</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;No not required.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;rose&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Mar 2008 07:06:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-with-header-line/m-p/3491438#M839655</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-11T07:06:21Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table with header line</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-with-header-line/m-p/3491439#M839656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Can you please re-phrase the question?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Mar 2008 07:06:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-with-header-line/m-p/3491439#M839656</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-11T07:06:26Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table with header line</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-with-header-line/m-p/3491440#M839657</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;yes you can append&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Mar 2008 07:06:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-with-header-line/m-p/3491440#M839657</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-11T07:06:50Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table with header line</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-with-header-line/m-p/3491441#M839658</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;Internal Tables With Header Line&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You access internal tables record by record. You must use a work area as an interface for transferring data to and from the table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you read data from an internal table, the contents of a specified table record or line overwrites the contents of the work area. Then, you can reference the contents of the work area in your program. When you write data to an internal table, you must first enter the data in the work area from with the system can transfer the data to the internal table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To avoid inconsistencies, it is beneficial if the work area has the same data type as the records or lines of the internal table. A safe procedure for creating work areas which are compatible with internal tables is to use the same data type for declaring both the internal table and the work area. &lt;/P&gt;&lt;P&gt;In ABAP/4, you can distinguish between two kinds of internal tables: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To avoid inconsistencies, it is beneficial if the work area has the same data type as the records or lines of the internal table. A safe procedure for creating work areas which are compatible with internal tables is to use the same data type for declaring both the internal table and the work area. &lt;/P&gt;&lt;P&gt;In ABAP/4, you can distinguish between two kinds of internal tables: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Hope this answers, Do reward.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Mar 2008 07:07:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-with-header-line/m-p/3491441#M839658</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-11T07:07:38Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table with header line</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-with-header-line/m-p/3491442#M839659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI&lt;/P&gt;&lt;P&gt;yes, u need to append or fill the internal table before using read.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Mar 2008 07:07:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-with-header-line/m-p/3491442#M839659</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-11T07:07:48Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table with header line</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-with-header-line/m-p/3491443#M839660</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;Yes.&lt;/P&gt;&lt;P&gt;The header line is supposed to be appended to the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : itab like table of spfli with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab-field1 = 'XX'.&lt;/P&gt;&lt;P&gt;itab-field2 = 'XXXX'.&lt;/P&gt;&lt;P&gt;append itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab-field1 = 'XX'.&lt;/P&gt;&lt;P&gt;itab-field2 = 'XXXX'.&lt;/P&gt;&lt;P&gt;append itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab-field1 = 'XX'.&lt;/P&gt;&lt;P&gt;itab-field2 = 'XXXX'.&lt;/P&gt;&lt;P&gt;append itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Priyanka.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Mar 2008 07:07:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-with-header-line/m-p/3491443#M839660</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-11T07:07:57Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table with header line</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-with-header-line/m-p/3491444#M839661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;yes u need to append or fill the internal table before you read it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Mar 2008 07:08:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-with-header-line/m-p/3491444#M839661</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-11T07:08:02Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table with header line</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-with-header-line/m-p/3491445#M839662</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;Yes, your understaing is correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sriram Ponna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Mar 2008 07:09:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-with-header-line/m-p/3491445#M839662</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-11T07:09:14Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table with header line</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-with-header-line/m-p/3491446#M839663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mark,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you mean that the record is still in the HEADER LINE, but not in internal table.&lt;/P&gt;&lt;P&gt;In that case YES, you need to append the record first to the internal table and then only you can read the record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Gopi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Mar 2008 07:10:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-with-header-line/m-p/3491446#M839663</guid>
      <dc:creator>gopi_narendra</dc:creator>
      <dc:date>2008-03-11T07:10:51Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table with header line</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-with-header-line/m-p/3491447#M839664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I use the below codes. When I debug, i_messages from the FM has value but it stays in the header line. when I read table i_messages, the sy-subrc = 4 though it has value. so is it really necessary to append i_messages b4 i read it?Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   CALL FUNCTION 'BAPI_PROCORD_CREATE'&lt;/P&gt;&lt;P&gt;     EXPORTING&lt;/P&gt;&lt;P&gt;       orderdata    = x_orderdata&lt;/P&gt;&lt;P&gt;     IMPORTING&lt;/P&gt;&lt;P&gt;       return       = i_messages&lt;/P&gt;&lt;P&gt;       order_number = v_orderno.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      READ TABLE i_messages INTO i_messages2 WITH KEY type = c_error.&lt;/P&gt;&lt;P&gt;   IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;     READ TABLE i_messages2 INDEX 1.&lt;/P&gt;&lt;P&gt;     IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;       MESSAGE i000 WITH i_messages2-message.&lt;/P&gt;&lt;P&gt;     ENDIF.&lt;/P&gt;&lt;P&gt;     LEAVE TO SCREEN 0.&lt;/P&gt;&lt;P&gt;   ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Mar 2008 07:12:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-with-header-line/m-p/3491447#M839664</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-11T07:12:47Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table with header line</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-with-header-line/m-p/3491448#M839665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In this case , yes you need to append it before reading the table contents.But as far as the FM goes, the parameter return is just a strucuture, so you can declare i_messages as a structure rather than an internal table and access the data directly (without the need of "appending" and using "read table" statement).Hope you got what i am trying to tell&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kiran&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Kiran NN on Mar 11, 2008 8:21 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Mar 2008 07:17:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-with-header-line/m-p/3491448#M839665</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-11T07:17:44Z</dc:date>
    </item>
  </channel>
</rss>

