<?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: hi all,     append in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/hi-all-append/m-p/1752739#M326351</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;Append  statements are used for adding RECORDS with existing records,only at the BOTTOM.(at the end of all the existing entries)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : it_tab type table of &amp;lt;table name&amp;gt;,&lt;/P&gt;&lt;P&gt;         wa_tab type &amp;lt;table name&amp;gt;.&lt;/P&gt;&lt;P&gt;select &amp;lt;field names&amp;gt; from &amp;lt;table name&amp;gt; into it_tab where&amp;lt;condition&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;append wa_tab into it_tab.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;clear wa_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;syntax for  read statement:&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;read table&amp;lt;it_tab&amp;gt; into wa_tab from &amp;lt;condition&amp;gt;&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;syntax for move statement:&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;move 'xxx' to wa_tab.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;the above code moves 'XXX' to the work area.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Dec 2006 11:29:52 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-12-08T11:29:52Z</dc:date>
    <item>
      <title>hi all,     append</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hi-all-append/m-p/1752734#M326346</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;i would like to know about   append syntax&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. could any one tell me in which situation append is used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2.  could any one tell me with different synxtax i.e.  with move, loop,  select, read.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanx&lt;/P&gt;&lt;P&gt;rocky robo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Dec 2006 11:01:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hi-all-append/m-p/1752734#M326346</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-08T11:01:56Z</dc:date>
    </item>
    <item>
      <title>Re: hi all,     append</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hi-all-append/m-p/1752735#M326347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi , &lt;/P&gt;&lt;P&gt; Append statement is used when you want to insert records into an internal table at the end.&lt;/P&gt;&lt;P&gt;The most common syntex is&lt;/P&gt;&lt;P&gt;append wa to itab. (wa : work area , itab:internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;another option is append lines of itab to itab1 (append lines of one internal table to another).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in select append can be used this way&lt;/P&gt;&lt;P&gt;select fields &lt;/P&gt;&lt;P&gt;appending table it&lt;/P&gt;&lt;P&gt;from table name&lt;/P&gt;&lt;P&gt;where condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A sample code is given below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------" /&gt;&lt;PRE&gt;&lt;CODE&gt;data : begin of it_1 occurs 0 ,
        matnr type matnr ,
       end of it_1.

start-of-selection.

       select matnr
       into table it_1
       up to 10 rows
       from mara.

select matnr
appending table it_1
up to 10 rows
from mara.

       loop at it_1.
        write:/ it_1-matnr.
       endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----------------------------------------------" /&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Dec 2006 11:12:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hi-all-append/m-p/1752735#M326347</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-08T11:12:19Z</dc:date>
    </item>
    <item>
      <title>Re: hi all,     append</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hi-all-append/m-p/1752736#M326348</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;1) append is used to add a new value at the end of exsisting records in an internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2)To move values between the components of structures, use the statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE-CORRESPONDING &amp;lt;struct1&amp;gt; TO &amp;lt;struct2&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This statement moves the contents of the components of structure &amp;lt;struct1&amp;gt; to the components of &amp;lt;struct2&amp;gt; that have identical names.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When it is executed, it is broken down into a set of MOVE statements, one for each pair of fields with identical names, as follows: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE STRUCT1-&amp;lt;ci&amp;gt; TO STRUCT2-&amp;lt;c i&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any necessary type conversions occur at this level. This process is different to that used when you assign a whole structure using the MOVE statement, where the conversion rules for structures apply. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF ADDRESS,&lt;/P&gt;&lt;P&gt;         FIRSTNAME(20) VALUE 'Fred',&lt;/P&gt;&lt;P&gt;         SURNAME(20) VALUE 'Flintstone',&lt;/P&gt;&lt;P&gt;         INITIALS(4) VALUE 'FF',&lt;/P&gt;&lt;P&gt;         STREET(20) VALUE 'Cave Avenue,&lt;/P&gt;&lt;P&gt;         NUMBER TYPE I VALUE '11'.&lt;/P&gt;&lt;P&gt;        POSTCODE TYPE N VALUE '98765'.&lt;/P&gt;&lt;P&gt;        CITY(20) VALUE 'Bedrock',&lt;/P&gt;&lt;P&gt;      END OF ADDRESS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF NAME,&lt;/P&gt;&lt;P&gt;         SURNAME(20),&lt;/P&gt;&lt;P&gt;         FIRSTNAME(20),&lt;/P&gt;&lt;P&gt;         INITIALS(4),&lt;/P&gt;&lt;P&gt;         TITLE(10) VALUE 'Mister',&lt;/P&gt;&lt;P&gt;      END OF NAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE-CORRESPONDING ADDRESS TO NAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) loop:&lt;/P&gt;&lt;P&gt;There are four kinds of loops in ABAP: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unconditional loops using the DO statement. &lt;/P&gt;&lt;P&gt;Conditional loops using the WHILE statement. &lt;/P&gt;&lt;P&gt;Loops through internal tables and extract datasets using the LOOP statement. &lt;/P&gt;&lt;P&gt;Loops through datasets from database tables using the SELECT statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;a href="http://help.sap.com/saphelp_erp2005vp/helpdata/en/66/f9545ed3654bd4b55bf7a5b9953a53/frameset.htm"&amp;gt;http://help.sap.com/saphelp_erp2005vp/helpdata/en/66/f9545ed3654bd4b55bf7a5b9953a53/frameset.htm&amp;lt;/a&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ&lt;/P&gt;&lt;P&gt;READ TABLE &amp;lt;itab&amp;gt; &amp;lt;key&amp;gt; INTO &amp;lt;wa&amp;gt; [COMPARING &amp;lt;f1&amp;gt; &amp;lt;f 2&amp;gt; ... &lt;/P&gt;&lt;P&gt;                                             |ALL FIELDS] &lt;/P&gt;&lt;P&gt;                                  [TRANSPORTING &amp;lt;f1&amp;gt; &amp;lt;f 2&amp;gt; ... &lt;/P&gt;&lt;P&gt;                                                 |ALL FIELDS &lt;/P&gt;&lt;P&gt;                                                |NO FIELDS].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points if this helps you,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;siva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Dec 2006 11:15:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hi-all-append/m-p/1752736#M326348</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-08T11:15:52Z</dc:date>
    </item>
    <item>
      <title>Re: hi all,     append</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hi-all-append/m-p/1752737#M326349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you type statement append and hit F1 key, the entire Append help will guide you through various types of append.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Dec 2006 11:16:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hi-all-append/m-p/1752737#M326349</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-08T11:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: hi all,     append</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hi-all-append/m-p/1752738#M326350</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;APPEND statement is used to append a line to an internal table  eg itab  , either from its header or from an explicit workarea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plz check the following syntax associated with it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data : itab type &amp;lt;Ztable/standard SAP table &amp;gt; occurs 0 [ with heater line ].&lt;/P&gt;&lt;P&gt;wa_itab like line of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;populate fields of wa-itab .&lt;/P&gt;&lt;P&gt;Append wa_itab to itab.         " it inserts a row in itab body &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;" in case the WITH HEADER LINE addition is chosen&lt;/P&gt;&lt;P&gt;APPEND itab.       " it is same as APPEND itab TO itab. ie header to table body .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. while selecting values from a Ztable / std SAP table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg .&lt;/P&gt;&lt;P&gt;   Select f1 f2 .....fn APPENDING itab FROM &amp;lt;ztable / std SAP table&amp;gt; &lt;/P&gt;&lt;P&gt;                        [where Condition] .&lt;/P&gt;&lt;P&gt;  " now u can loop at itab to display the records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. consider itab2 (with header line ) that has some fields common to itab  .&lt;/P&gt;&lt;P&gt;  the following code helps to move data from itab to itab2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Loop at itab into wa_itab . " into wa_itab if WITH HEADER LINE addition is not&lt;/P&gt;&lt;P&gt;                                        " is not given when declaring the table itab&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Move corresponding wa_itab to itab2.&lt;/P&gt;&lt;P&gt;Append itab2.&lt;/P&gt;&lt;P&gt;Endloop.             " this moves matching fields for all records in itab to itab2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i hope this helps u a bit.&lt;/P&gt;&lt;P&gt;In case u need further info, plz revert.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pankaj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Dec 2006 11:25:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hi-all-append/m-p/1752738#M326350</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-08T11:25:41Z</dc:date>
    </item>
    <item>
      <title>Re: hi all,     append</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hi-all-append/m-p/1752739#M326351</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;Append  statements are used for adding RECORDS with existing records,only at the BOTTOM.(at the end of all the existing entries)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : it_tab type table of &amp;lt;table name&amp;gt;,&lt;/P&gt;&lt;P&gt;         wa_tab type &amp;lt;table name&amp;gt;.&lt;/P&gt;&lt;P&gt;select &amp;lt;field names&amp;gt; from &amp;lt;table name&amp;gt; into it_tab where&amp;lt;condition&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;append wa_tab into it_tab.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;clear wa_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;syntax for  read statement:&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;read table&amp;lt;it_tab&amp;gt; into wa_tab from &amp;lt;condition&amp;gt;&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;syntax for move statement:&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;move 'xxx' to wa_tab.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;the above code moves 'XXX' to the work area.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Dec 2006 11:29:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hi-all-append/m-p/1752739#M326351</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-08T11:29:52Z</dc:date>
    </item>
    <item>
      <title>Re: hi all,     append</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hi-all-append/m-p/1752740#M326352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;append is to send the data from field string to body.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Append syn: append [wa to] [initial line to] itab.&lt;/P&gt;&lt;P&gt;wa = work area&lt;/P&gt;&lt;P&gt;ex:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of itab occurs 0,&lt;/P&gt;&lt;P&gt;        name(20) type c,&lt;/P&gt;&lt;P&gt;        age type i,&lt;/P&gt;&lt;P&gt;        end of itab.&lt;/P&gt;&lt;P&gt;        itab-name = 'kishore'.&lt;/P&gt;&lt;P&gt;        itab-age = 31.&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;regards &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kishore.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Dec 2006 11:55:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hi-all-append/m-p/1752740#M326352</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-08T11:55:02Z</dc:date>
    </item>
  </channel>
</rss>

