<?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: Edit primary fields of database table through debugging in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/edit-primary-fields-of-database-table-through-debugging/m-p/11984826#M1967411</link>
    <description>&lt;P&gt;I repeat myself: &lt;STRONG&gt;study the concept of Database Key!&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Your question is no sense.&lt;/P&gt;</description>
    <pubDate>Fri, 26 Jul 2019 12:17:50 GMT</pubDate>
    <dc:creator>SimoneMilesi</dc:creator>
    <dc:date>2019-07-26T12:17:50Z</dc:date>
    <item>
      <title>Edit primary fields of database table through debugging</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/edit-primary-fields-of-database-table-through-debugging/m-p/11984818#M1967403</link>
      <description>&lt;P&gt;How to edit primary fields of database table through debugging?&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2019 16:34:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/edit-primary-fields-of-database-table-through-debugging/m-p/11984818#M1967403</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-07-24T16:34:13Z</dc:date>
    </item>
    <item>
      <title>Re: Edit primary fields of database table through debugging</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/edit-primary-fields-of-database-table-through-debugging/m-p/11984819#M1967404</link>
      <description>&lt;P&gt;In transaction SE16, SM30, something else?&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2019 17:58:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/edit-primary-fields-of-database-table-through-debugging/m-p/11984819#M1967404</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2019-07-24T17:58:55Z</dc:date>
    </item>
    <item>
      <title>Re: Edit primary fields of database table through debugging</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/edit-primary-fields-of-database-table-through-debugging/m-p/11984820#M1967405</link>
      <description>&lt;P&gt;It is impossible to answer definitively without knowing what program you are debugging.  Add that information the next time you ask a question.&lt;/P&gt;&lt;P&gt;I suspect that what you are seeing in the debugger is the table work area related to a TABLES statement in an old standard SAP program.  This table work area location is a structure that is formatted exactly as the database table is and crucially &lt;STRONG&gt;&lt;EM&gt;HAS THE SAME NAME&lt;/EM&gt;&lt;/STRONG&gt;.  The code looks something like this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT......
TABLES: MARA.
...
START-OF-SELECTION.
...

SELECT * FROM MARA WHERE.....&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;My guess is that while you were debugging something like this, you double clicked on the name MARA in the line of code containing the SELECT * , and then changed the the contents of MARA in the debugger.  &lt;/P&gt;&lt;P&gt;When you change the values of MARA in the debugger, you are modifying the fields in the structure MARA, declared by the TABLES statement, &lt;EM&gt;&lt;STRONG&gt;NOT&lt;/STRONG&gt;&lt;/EM&gt; the database table MARA.  Updating the database table would require writing a procedure that physically updates the database.&lt;/P&gt;&lt;P&gt;Of course, changing the primary key of any database table directly is strictly &lt;EM&gt;verbotten&lt;/EM&gt;, so you wouldn't want to do this even if you could.&lt;/P&gt;&lt;P&gt;BTW, the Tables statement has been obsolete in ABAP OO programming since version 4.0 - today it used as the conduit to pass data from between a program and a Dynpro field and when working with logical databases.  However, you will still see this construct in older SAP code (prior to version 4.0) and in custom code written consultants who haven't stayed up to date on syntax rules.&lt;/P&gt;&lt;P&gt;For reference, read up in transaction ABAPDOCU using the menu path: ABAP Programming Guidelines -&amp;gt; Robust ABAP -&amp;gt; Data Types and Data Objects -&amp;gt; Table Work Areas&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2019 18:10:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/edit-primary-fields-of-database-table-through-debugging/m-p/11984820#M1967405</guid>
      <dc:creator>loyd_enochs3</dc:creator>
      <dc:date>2019-07-24T18:10:37Z</dc:date>
    </item>
    <item>
      <title>Re: Edit primary fields of database table through debugging</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/edit-primary-fields-of-database-table-through-debugging/m-p/11984821#M1967406</link>
      <description>&lt;P&gt;Through se16 we will not be able to edit the primary entries..&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2019 08:01:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/edit-primary-fields-of-database-table-through-debugging/m-p/11984821#M1967406</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-07-25T08:01:54Z</dc:date>
    </item>
    <item>
      <title>Re: Edit primary fields of database table through debugging</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/edit-primary-fields-of-database-table-through-debugging/m-p/11984822#M1967407</link>
      <description>&lt;P&gt;Can you elaborate in what context you want to "edit the primary fields of &lt;STRONG&gt;database &lt;/STRONG&gt;table through debugging"? Do you mean the key components of an &lt;STRONG&gt;internal&lt;/STRONG&gt; table?&lt;/P&gt;&lt;P&gt;PS: database table &amp;lt;&amp;gt; internal table !!&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2019 08:23:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/edit-primary-fields-of-database-table-through-debugging/m-p/11984822#M1967407</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2019-07-25T08:23:11Z</dc:date>
    </item>
    <item>
      <title>Re: Edit primary fields of database table through debugging</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/edit-primary-fields-of-database-table-through-debugging/m-p/11984823#M1967408</link>
      <description>&lt;P&gt;Can you guess why? If they are the keys, they identify the record.&lt;/P&gt;&lt;P&gt;Can I suggest a&lt;A href="https://www.studytonight.com/dbms/database-key.php" target="_blank"&gt; quick read about keys in DB&lt;/A&gt;?&lt;BR /&gt;If you give a read, you'll understand why you cannot change them...&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2019 08:23:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/edit-primary-fields-of-database-table-through-debugging/m-p/11984823#M1967408</guid>
      <dc:creator>SimoneMilesi</dc:creator>
      <dc:date>2019-07-25T08:23:28Z</dc:date>
    </item>
    <item>
      <title>Re: Edit primary fields of database table through debugging</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/edit-primary-fields-of-database-table-through-debugging/m-p/11984824#M1967409</link>
      <description>&lt;P&gt;No, you cannot change the structure of db tables while debugging. Though, changing the table structure can be done through T-code - &lt;STRONG&gt;SE11&lt;/STRONG&gt;. So, you can change the structure of table and then start debugging.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2019 11:34:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/edit-primary-fields-of-database-table-through-debugging/m-p/11984824#M1967409</guid>
      <dc:creator>SachinArtani</dc:creator>
      <dc:date>2019-07-25T11:34:38Z</dc:date>
    </item>
    <item>
      <title>Re: Edit primary fields of database table through debugging</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/edit-primary-fields-of-database-table-through-debugging/m-p/11984825#M1967410</link>
      <description>&lt;P&gt;Would like to elaborate more on the same..&lt;/P&gt;&lt;P&gt;If we r hvng a  database table  mara and in that matnr is a key field..so if we will execute the table then we will not be able to edit the entries for matnr as that is the key field .So is there any way to edit these entries?&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2019 09:18:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/edit-primary-fields-of-database-table-through-debugging/m-p/11984825#M1967410</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-07-26T09:18:00Z</dc:date>
    </item>
    <item>
      <title>Re: Edit primary fields of database table through debugging</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/edit-primary-fields-of-database-table-through-debugging/m-p/11984826#M1967411</link>
      <description>&lt;P&gt;I repeat myself: &lt;STRONG&gt;study the concept of Database Key!&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Your question is no sense.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2019 12:17:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/edit-primary-fields-of-database-table-through-debugging/m-p/11984826#M1967411</guid>
      <dc:creator>SimoneMilesi</dc:creator>
      <dc:date>2019-07-26T12:17:50Z</dc:date>
    </item>
    <item>
      <title>Re: Edit primary fields of database table through debugging</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/edit-primary-fields-of-database-table-through-debugging/m-p/11984827#M1967412</link>
      <description>&lt;P&gt;&lt;A href="https://answers.sap.com/users/828349/aa11_12.html"&gt;Aashna Sikka&lt;/A&gt; It's technically possible but why do you want to do that??? Like how to crash a computer, it's possible but nobody wants to answer because it's beyond the limit of acceptable.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2019 13:56:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/edit-primary-fields-of-database-table-through-debugging/m-p/11984827#M1967412</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2019-07-26T13:56:32Z</dc:date>
    </item>
    <item>
      <title>Re: Edit primary fields of database table through debugging</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/edit-primary-fields-of-database-table-through-debugging/m-p/11984828#M1967413</link>
      <description>&lt;P&gt;Aashna,&lt;/P&gt;&lt;P&gt;If someone messed up while creating a material, just put a deletion indicator on the material and create a new one. &lt;/P&gt;&lt;P&gt;Dev.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2019 15:23:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/edit-primary-fields-of-database-table-through-debugging/m-p/11984828#M1967413</guid>
      <dc:creator>dev_parbutteea</dc:creator>
      <dc:date>2019-07-26T15:23:48Z</dc:date>
    </item>
    <item>
      <title>Re: Edit primary fields of database table through debugging</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/edit-primary-fields-of-database-table-through-debugging/m-p/11984829#M1967414</link>
      <description>&lt;P&gt;Just to give more explanation on the same..for example if we are having a database table MARA and a  primary key field MATNR,when we will execute the table after that is it possible to change the table entries for the field MATNR in database table as this is primary key field.?&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jul 2019 22:09:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/edit-primary-fields-of-database-table-through-debugging/m-p/11984829#M1967414</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-07-26T22:09:01Z</dc:date>
    </item>
    <item>
      <title>Re: Edit primary fields of database table through debugging</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/edit-primary-fields-of-database-table-through-debugging/m-p/11984830#M1967415</link>
      <description>&lt;P&gt;Yes but nobody wants to answer as I said. Except if you give a good reason to do that...&lt;/P&gt;</description>
      <pubDate>Sat, 27 Jul 2019 06:06:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/edit-primary-fields-of-database-table-through-debugging/m-p/11984830#M1967415</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2019-07-27T06:06:55Z</dc:date>
    </item>
  </channel>
</rss>

