<?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 delete the a blank row automatically generated using INSERTstatement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-delete-the-a-blank-row-automatically-generated-using-insertstatement/m-p/2615184#M600224</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;The problem seems to be tricky. We need to find out why the blank line is inserted. When the insert command has been executed, the system field SY-DBCNT contains the number of inserted lines (0 or 1). Can you pls check that and let us know ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Irudayaraj Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Jul 2007 12:53:38 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-25T12:53:38Z</dc:date>
    <item>
      <title>How to delete the a blank row automatically generated using INSERTstatement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-delete-the-a-blank-row-automatically-generated-using-insertstatement/m-p/2615181#M600221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;I have a table where I am inserting rows using &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA xx type tablename&lt;/P&gt;&lt;P&gt;xx-attr1= 'xx'.&lt;/P&gt;&lt;P&gt;INSERT into tablename values xx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when i display all the rows of the table, a blank line is automatically added as the first row of the table.&lt;/P&gt;&lt;P&gt;I need to delete that line, how should I do that??&lt;/P&gt;&lt;P&gt;coz the delete command needs some condition with which it can delete.&lt;/P&gt;&lt;P&gt;But since this is a blank row, i dont have any attributes based on whcih i can delete that row.&lt;/P&gt;&lt;P&gt;Could any 1 provide me a solution to this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Meghana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2007 12:45:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-delete-the-a-blank-row-automatically-generated-using-insertstatement/m-p/2615181#M600221</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-25T12:45:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete the a blank row automatically generated using INSERTstatement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-delete-the-a-blank-row-automatically-generated-using-insertstatement/m-p/2615182#M600222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;Delete tablename where &amp;lt;field1&amp;gt; is intitial.&lt;/P&gt;&lt;P&gt;Reward if useful!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2007 12:49:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-delete-the-a-blank-row-automatically-generated-using-insertstatement/m-p/2615182#M600222</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-25T12:49:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete the a blank row automatically generated using INSERTstatement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-delete-the-a-blank-row-automatically-generated-using-insertstatement/m-p/2615183#M600223</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;delete itab where &amp;lt;field&amp;gt; is initial&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;ravish&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if useful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2007 12:51:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-delete-the-a-blank-row-automatically-generated-using-insertstatement/m-p/2615183#M600223</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-25T12:51:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete the a blank row automatically generated using INSERTstatement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-delete-the-a-blank-row-automatically-generated-using-insertstatement/m-p/2615184#M600224</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;The problem seems to be tricky. We need to find out why the blank line is inserted. When the insert command has been executed, the system field SY-DBCNT contains the number of inserted lines (0 or 1). Can you pls check that and let us know ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Irudayaraj Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2007 12:53:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-delete-the-a-blank-row-automatically-generated-using-insertstatement/m-p/2615184#M600224</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-25T12:53:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete the a blank row automatically generated using INSERTstatement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-delete-the-a-blank-row-automatically-generated-using-insertstatement/m-p/2615185#M600225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;delete itab where &amp;lt;field&amp;gt; is space.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2007 12:56:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-delete-the-a-blank-row-automatically-generated-using-insertstatement/m-p/2615185#M600225</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-25T12:56:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete the a blank row automatically generated using INSERTstatement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-delete-the-a-blank-row-automatically-generated-using-insertstatement/m-p/2615186#M600226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1)&lt;/P&gt;&lt;P&gt;DATA xx type tablename&lt;/P&gt;&lt;P&gt;xx-attr1= 'xx'.&lt;/P&gt;&lt;P&gt;if not xx is initial.&lt;/P&gt;&lt;P&gt;INSERT into tablename values xx.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) data : itab like standard table of tablename ,&lt;/P&gt;&lt;P&gt;          xx type tablename.&lt;/P&gt;&lt;P&gt;xx-attr1 = 'x'.&lt;/P&gt;&lt;P&gt;if not xx is initial.&lt;/P&gt;&lt;P&gt;append xx to itab.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;after you are done with all the data inserting into internal table.&lt;/P&gt;&lt;P&gt;insert into tablename from itab&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;3)&lt;/P&gt;&lt;P&gt;if the table already contains a blank entry... then you want to delete it..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data itab like standard table of tablename.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from tablename into itab.&lt;/P&gt;&lt;P&gt;delete tablename from itab.&lt;/P&gt;&lt;P&gt;delete itab where field1 is initial&lt;/P&gt;&lt;P&gt;                          field2 is initial.&lt;/P&gt;&lt;P&gt;modify tablename from itab.&lt;/P&gt;&lt;P&gt;4)&lt;/P&gt;&lt;P&gt;if you manually want to delete this record..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then go to se16 give the table name and execute.. double click on the blank record... then give /h in the command box and press enter two times.. it will take you into debugging mode..&lt;/P&gt;&lt;P&gt;your will enter into the debug mode and your program stops at&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; refresh exclude_tab.&lt;/P&gt;&lt;P&gt; if code = 'SHOW'. &lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;change the value of code variable to 'DELE' and say execute.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This kind of approach need appropriate autoriazations &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;mahesh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        I Can Solve It&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2007 12:58:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-delete-the-a-blank-row-automatically-generated-using-insertstatement/m-p/2615186#M600226</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-25T12:58:06Z</dc:date>
    </item>
  </channel>
</rss>

