<?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 Insert statement inside loop in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-statement-inside-loop/m-p/9489601#M1745910</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;LOOP &lt;SPAN class="L0S52"&gt;AT &lt;/SPAN&gt;lr_strucdescr&lt;SPAN class="L0S70"&gt;-&amp;gt;&lt;/SPAN&gt;components &lt;SPAN class="L0S52"&gt;ASSIGNING &lt;/SPAN&gt;&amp;lt;ls_fieldname&amp;gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="L0S31"&gt;*&amp;nbsp;&amp;nbsp; INSERTs&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;ASSIGN &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;COMPONENT&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&amp;lt;ls_fieldname&amp;gt;&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;name&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;OF &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;STRUCTURE&amp;nbsp; &lt;/SPAN&gt;is_insert&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;TO&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&amp;lt;lt_data&amp;gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class="L0S52"&gt;...&lt;BR /&gt;&lt;/SPAN&gt;&lt;DIV&gt;&lt;SPAN class="L0S52"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;INSERT &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;(&lt;/SPAN&gt;&amp;lt;ls_fieldname&amp;gt;&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;name&lt;SPAN class="L0S55"&gt;) &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;FROM &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TABLE &lt;/SPAN&gt;&amp;lt;lt_data&amp;gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;endloop.&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;What does this INSERT statement do?&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #ff0000;"&gt;Moderator message: Please read F1 help of insert statement&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Kesavadas Thekkillath&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 May 2013 05:31:08 GMT</pubDate>
    <dc:creator>former_member186648</dc:creator>
    <dc:date>2013-05-17T05:31:08Z</dc:date>
    <item>
      <title>Insert statement inside loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-statement-inside-loop/m-p/9489601#M1745910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;LOOP &lt;SPAN class="L0S52"&gt;AT &lt;/SPAN&gt;lr_strucdescr&lt;SPAN class="L0S70"&gt;-&amp;gt;&lt;/SPAN&gt;components &lt;SPAN class="L0S52"&gt;ASSIGNING &lt;/SPAN&gt;&amp;lt;ls_fieldname&amp;gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="L0S31"&gt;*&amp;nbsp;&amp;nbsp; INSERTs&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;ASSIGN &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;COMPONENT&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&amp;lt;ls_fieldname&amp;gt;&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;name&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;OF &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;STRUCTURE&amp;nbsp; &lt;/SPAN&gt;is_insert&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;TO&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&amp;lt;lt_data&amp;gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class="L0S52"&gt;...&lt;BR /&gt;&lt;/SPAN&gt;&lt;DIV&gt;&lt;SPAN class="L0S52"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;INSERT &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;(&lt;/SPAN&gt;&amp;lt;ls_fieldname&amp;gt;&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;name&lt;SPAN class="L0S55"&gt;) &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;FROM &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TABLE &lt;/SPAN&gt;&amp;lt;lt_data&amp;gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;endloop.&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;What does this INSERT statement do?&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #ff0000;"&gt;Moderator message: Please read F1 help of insert statement&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Kesavadas Thekkillath&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 May 2013 05:31:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-statement-inside-loop/m-p/9489601#M1745910</guid>
      <dc:creator>former_member186648</dc:creator>
      <dc:date>2013-05-17T05:31:08Z</dc:date>
    </item>
    <item>
      <title>Re: Insert statement inside loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-statement-inside-loop/m-p/9489602#M1745911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pradeep,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Search in &lt;A href="http://help.sap.com/abapdocu_731/en/index.htm" title="http://help.sap.com/abapdocu_731/en/index.htm"&gt;ABAP Keyword Documentation&lt;/A&gt; .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regard's&lt;/P&gt;&lt;P&gt;Smruti&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 May 2013 05:48:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-statement-inside-loop/m-p/9489602#M1745911</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-05-17T05:48:06Z</dc:date>
    </item>
    <item>
      <title>Re: Insert statement inside loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-statement-inside-loop/m-p/9489603#M1745912</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;Take cursor on the word do F1 you will know &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1434/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Arindam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 May 2013 06:03:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-statement-inside-loop/m-p/9489603#M1745912</guid>
      <dc:creator>arindam_m</dc:creator>
      <dc:date>2013-05-17T06:03:00Z</dc:date>
    </item>
    <item>
      <title>Re: Insert statement inside loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-statement-inside-loop/m-p/9489604#M1745913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pradeep,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That insert statement is used to insert multiple lines/records from internal table to database table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52" style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;INSERT &lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;&amp;lt;ls_fieldname&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="L0S70" style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;name&lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;) &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;FROM &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;TABLE &lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;&amp;lt;lt_data&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Here &lt;STRONG&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;&amp;lt;ls_fieldname&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="L0S70" style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;-&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;&lt;STRONG&gt;name&lt;/STRONG&gt; contains the name of the DB Table. &lt;STRONG&gt;( )&lt;/STRONG&gt; Represents token. So that&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;ls_fieldname&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="L0S70" style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;name&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt; is replaced with its containing &lt;SPAN class="GINGER_SOFATWARE_correct"&gt;value&lt;/SPAN&gt;. And &lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;&amp;lt;lt_data&amp;gt; is the field symbol pointing to a table.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In short,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #999999; font-size: 1.3em;"&gt;Inserting Several Lines&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 0.8em !important;"&gt;To insert several lines into a database table, use the following:&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 0.8em !important;"&gt;&lt;SPAN style="font-family: inherit !important; font-size: 1.1em !important;"&gt;INSERT &amp;lt;target&amp;gt; &lt;/SPAN&gt;&lt;SPAN style="font-family: inherit !important; font-size: 1.1em !important; color: #0000ff;"&gt;FROM TABLE &amp;lt;itab&amp;gt; [ACCEPTING DUPLICATE KEYS]&lt;/SPAN&gt; &lt;SPAN style="font-family: inherit !important; font-size: 1.1em !important;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 0.8em !important;"&gt;&lt;SPAN style="font-family: inherit !important; font-size: 1.1em !important;"&gt;This writes &lt;SPAN style="background-color: inherit !important;"&gt;&lt;STRONG&gt;all&lt;/STRONG&gt;&lt;/SPAN&gt; lines of the internal table &amp;lt;itab&amp;gt; to the database table in one single operation. The same rules apply to the line type of &amp;lt;&lt;SPAN class="GINGER_SOFATWARE_correct"&gt;itab&lt;/SPAN&gt;&amp;gt; as to the work area &amp;lt;&lt;SPAN class="GINGER_SOFATWARE_correct"&gt;wa&lt;/SPAN&gt;&amp;gt; described above.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 0.8em !important;"&gt;Refer following link.....&lt;BR /&gt; &lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3a6d358411d1829f0000e829fbfe/content.htm"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3a6d358411d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 0.8em !important;"&gt;- Regards&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #333333; font-family: Arial, Helvetica, sans-serif; font-size: 0.8em !important;"&gt;&lt;SPAN class="GINGER_SOFATWARE_correct"&gt;ShashanK&lt;/SPAN&gt; MarathE&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 May 2013 06:12:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-statement-inside-loop/m-p/9489604#M1745913</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-05-17T06:12:03Z</dc:date>
    </item>
    <item>
      <title>Re: Insert statement inside loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-statement-inside-loop/m-p/9489605#M1745914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pradeep,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The following&amp;nbsp; insert statement will throw you dump.....&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;INSERT &lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;&amp;lt;ls_fieldname&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="L0S70" style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;name&lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;) &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;FROM &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;TABLE &lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;&amp;lt;lt_data&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;...........since that table name is not existing.....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55" style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55" style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;narayan&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55" style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 May 2013 06:15:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-statement-inside-loop/m-p/9489605#M1745914</guid>
      <dc:creator>uppu_narayan</dc:creator>
      <dc:date>2013-05-17T06:15:32Z</dc:date>
    </item>
    <item>
      <title>Re: Insert statement inside loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-statement-inside-loop/m-p/9489606#M1745915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pradeep,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;According to my knowledge it gives dump, because the attribute &lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;&amp;lt;ls_fieldname&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="L0S70" style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;name holds the field name no the database table name. So it is not possible to insert the work area into field name&lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;INSERT &amp;lt;dbname&amp;gt; FROM TABLE itab.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;The syntax is use should use the database table name.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;So it gives dump.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;Or you can store your database table name into some variable and it can be used as:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #ffffff;"&gt;INSERT (lv_database) FROM TABLE itab.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 May 2013 06:15:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-statement-inside-loop/m-p/9489606#M1745915</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-05-17T06:15:57Z</dc:date>
    </item>
    <item>
      <title>Re: Insert statement inside loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-statement-inside-loop/m-p/9489607#M1745916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pradeep,&lt;/P&gt;&lt;P&gt;This will give you a Dump.&lt;/P&gt;&lt;P&gt;I guess you are using type descriptor, If that is the case the proper way to insert is using a Table Name. This can be done using a method in type descriptor get_ddic_structure. Use this and you will get the table name, now store it in a variable (lv_name) now use INSERT ( lv_name )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pratheek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 May 2013 06:20:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-statement-inside-loop/m-p/9489607#M1745916</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-05-17T06:20:58Z</dc:date>
    </item>
    <item>
      <title>Re: Insert statement inside loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-statement-inside-loop/m-p/9489608#M1745917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pradeep,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; your code should be somewhat like this.......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;field-symbol: &amp;lt;f1&amp;gt; type any.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52" style="font-style: inherit; font-family: inherit;"&gt;LOOP &lt;SPAN class="L0S52" style="font-style: inherit; font-family: inherit;"&gt;AT &lt;/SPAN&gt;lr_strucdescr&lt;SPAN class="L0S70" style="font-style: inherit; font-family: inherit;"&gt;-&amp;gt;&lt;/SPAN&gt;components &lt;SPAN class="L0S52" style="font-style: inherit; font-family: inherit;"&gt;ASSIGNING &lt;/SPAN&gt;&amp;lt;ls_fieldname&amp;gt;&lt;SPAN class="L0S55" style="font-style: inherit; font-family: inherit;"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52" style="font-style: inherit; font-family: inherit;"&gt;ASSIGN &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-style: inherit; font-family: inherit;"&gt;COMPONENT&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&amp;lt;ls_fieldname&amp;gt;&lt;SPAN class="L0S70" style="font-style: inherit; font-family: inherit;"&gt;-&lt;/SPAN&gt;name&amp;nbsp; &lt;SPAN class="L0S52" style="font-style: inherit; font-family: inherit;"&gt;OF &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-style: inherit; font-family: inherit;"&gt;STRUCTURE&amp;nbsp; l&lt;/SPAN&gt;s_insert&amp;nbsp;&amp;nbsp; to &amp;lt;f1&amp;gt;&lt;SPAN class="L0S55" style="font-style: inherit; font-family: inherit;"&gt;.&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;STRONG&gt;&lt;SPAN class="L0S52" style="font-style: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52" style="font-style: inherit; font-family: inherit;"&gt;INSERT &lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-style: inherit; font-family: inherit;"&gt;(lv_tablename&lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-style: inherit; font-family: inherit;"&gt;) &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-style: inherit; font-family: inherit;"&gt;FROM &amp;lt;f1&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-style: inherit; font-family: inherit;"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;STRONG&gt;&lt;SPAN class="L0S52" style="font-style: inherit; font-family: inherit;"&gt;&lt;SPAN class="L0S55" style="font-style: inherit; font-family: inherit;"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;&lt;STRONG&gt;endloop.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;since your assign statement will be returning a name from structure &lt;STRONG&gt;ls_insert&lt;/STRONG&gt; and not an internal table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;regards,&lt;/P&gt;&lt;P style="font-size: 12px; background-color: #ffffff; color: #333333;"&gt;narayan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 May 2013 06:23:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-statement-inside-loop/m-p/9489608#M1745917</guid>
      <dc:creator>uppu_narayan</dc:creator>
      <dc:date>2013-05-17T06:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: Insert statement inside loop</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-statement-inside-loop/m-p/9489609#M1745918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you use variable name inside the ( ), then the value inside that variable name will be considered.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 May 2013 06:28:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-statement-inside-loop/m-p/9489609#M1745918</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-05-17T06:28:48Z</dc:date>
    </item>
  </channel>
</rss>

