<?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: update table vbkd in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-table-vbkd/m-p/1655876#M291141</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;well, when im creating a retrun order for a document, a line is being created in the table vbfa with posnr '000000', i dnt know why, thats why I wanted to delete that line from the table&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Oct 2006 09:37:46 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-10-26T09:37:46Z</dc:date>
    <item>
      <title>update table vbkd</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-table-vbkd/m-p/1655869#M291134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi everybody&lt;/P&gt;&lt;P&gt;i wanted to know if i can delete a row in a standard table (im using table vbkd) in a program?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;anjali&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Oct 2006 06:26:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-table-vbkd/m-p/1655869#M291134</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-26T06:26:08Z</dc:date>
    </item>
    <item>
      <title>Re: update table vbkd</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-table-vbkd/m-p/1655870#M291135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No u can not delete it in a program directly by using Delete statement.&lt;/P&gt;&lt;P&gt;using a BAPI is better.&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>Thu, 26 Oct 2006 06:27:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-table-vbkd/m-p/1655870#M291135</guid>
      <dc:creator>gopi_narendra</dc:creator>
      <dc:date>2006-10-26T06:27:39Z</dc:date>
    </item>
    <item>
      <title>Re: update table vbkd</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-table-vbkd/m-p/1655871#M291136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can do it via program(delete statement). The client should be open !. also using se16n transaction, you can do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it is against the sap code of conduct. I wouldnt recommend things.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Sandeep Josyula&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Oct 2006 06:28:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-table-vbkd/m-p/1655871#M291136</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-26T06:28:01Z</dc:date>
    </item>
    <item>
      <title>Re: update table vbkd</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-table-vbkd/m-p/1655872#M291137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes u can do that in program but u should not do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Selecting Lines Using Conditions&lt;/P&gt;&lt;P&gt;To select the lines that you want to delete using a condition, use the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE FROM target WHERE cond.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All of the lines in the database table that satisfy the conditions in the WHERE clause are deleted. The FROM expression must occur between the keyword and the database table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should take particular care when programming the WHERE clause to ensure that you do not delete the wrong lines. For example, if you specify an empty internal table in a dynamic WHERE clause, all of the lines in the table are deleted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If at least one line has been deleted, sy-subrc is set to 0 &amp;#150; otherwise to 4. sy-dbcnt is set to the number of deleted lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Selecting Single Lines Using Work Areas&lt;/P&gt;&lt;P&gt;Instead of using a WHERE clause, you can select lines for deletion using the contents of a work area. In this case, you would write:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE target FROM wa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This deletes the line with the same primary key as the work area wa. The FROMexpression must not occur between the keyword and the database table. The work area wa must be a data object with at least the same length and alignment as the line structure of the database table. The key is read according to the structure of the table line, and not that of the work area. It is a good idea to define the work area with reference to the structure of the database table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the database table contains a line with the same primary key as specified in the work area, the operation is completed successfully and sy-subrc is set to 0. Otherwise, the line is not deleted, and sy-subrc is set to 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A shortened form of the above statement is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE dbtab. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case, the contents of the table work area dbtab are used to delete from the database table with the same name. You must declare this table work area using the TABLESstatement. In this case, it is not possible to specify the name of the database table dynamically. Table work areas with the same name as the database table (necessary before Release 4.0) should no longer be used for the sake of clarity.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Selecting Several Lines Using an Internal Table&lt;/P&gt;&lt;P&gt;You can also use an internal table to delete several lines:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE target FROM TABLE itab wa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This deletes all lines from the database that have the same primary key as a line in the internal table itab. The same rules apply to the line type of itab as to the work area wa described above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the system cannot delete a line because no line with the specified key exists, it does not terminate the entire operation, but continues processing the next line of the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If all lines from the internal table are used, sy-subrc is set to 0. Otherwise, it is set to 4. If not all lines are used, you can calculate the number of unused lines by subtracting the number of deleted lines in sy-dbcnt from the total number of lines in the internal table. If the internal table is empty, sy-subrc and sy-dbcnt are set to 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whenever you want to delete more than one line from a database table, it is more efficient to work with an internal table than to insert the lines one by one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a look at below link.&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb3aef358411d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb3aef358411d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Vibha &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Please mark all the helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Oct 2006 06:30:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-table-vbkd/m-p/1655872#M291137</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-26T06:30:15Z</dc:date>
    </item>
    <item>
      <title>Re: update table vbkd</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-table-vbkd/m-p/1655873#M291138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for the replies&lt;/P&gt;&lt;P&gt;do you know any BAPI or fm which would delete a row in the table VBFA(sorry, it was not table vbkd)&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;anjali&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Oct 2006 06:34:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-table-vbkd/m-p/1655873#M291138</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-26T06:34:39Z</dc:date>
    </item>
    <item>
      <title>Re: update table vbkd</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-table-vbkd/m-p/1655874#M291139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Am not sure of a BAPI, but this shud be related something to functional, or might there be a tcode for such thing. you just can not delete alone the entry in table VBFA, because it is related to many more table, ask ur functional consultant. he shud be helping u in this regard.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.erpgenie.com/sap/abap/tables_sd.htm" target="test_blank"&gt;http://www.erpgenie.com/sap/abap/tables_sd.htm&lt;/A&gt;&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>Thu, 26 Oct 2006 07:09:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-table-vbkd/m-p/1655874#M291139</guid>
      <dc:creator>gopi_narendra</dc:creator>
      <dc:date>2006-10-26T07:09:55Z</dc:date>
    </item>
    <item>
      <title>Re: update table vbkd</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-table-vbkd/m-p/1655875#M291140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sia,&lt;/P&gt;&lt;P&gt;yes you can do, but be careful. a lot of sap-function&lt;/P&gt;&lt;P&gt;use this table.!!&lt;/P&gt;&lt;P&gt;Can you tell us why do you whant to delete, perhaphs&lt;/P&gt;&lt;P&gt;there are other possibitities.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards, Dieter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Oct 2006 07:18:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-table-vbkd/m-p/1655875#M291140</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-26T07:18:08Z</dc:date>
    </item>
    <item>
      <title>Re: update table vbkd</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-table-vbkd/m-p/1655876#M291141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;well, when im creating a retrun order for a document, a line is being created in the table vbfa with posnr '000000', i dnt know why, thats why I wanted to delete that line from the table&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Oct 2006 09:37:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-table-vbkd/m-p/1655876#M291141</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-26T09:37:46Z</dc:date>
    </item>
    <item>
      <title>Re: update table vbkd</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/update-table-vbkd/m-p/1655877#M291142</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sia,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;VBFA is the document flow table so to delete the record in the table you can simply delete the corresponding document. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example...if you have sales order and create the subsequent doc ie delivery note you would find an entry in the table with sales order as prev doc and delivery note as the next doc.&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;Anurag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Oct 2006 10:10:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/update-table-vbkd/m-p/1655877#M291142</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-26T10:10:34Z</dc:date>
    </item>
  </channel>
</rss>

