<?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 Cannot update a field in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/cannot-update-a-field/m-p/2969705#M700857</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 have a question about updating fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am only doing an update:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Update Standard_SAP_Table&lt;/P&gt;&lt;P&gt;    Set Field1&lt;/P&gt;&lt;P&gt;Where Primary_Key = Some_Value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the problem. There are fields in this table where I can set to whatever I want but some fields I cannot change the value. It seems like there is some kind of "make field uneditable" function in ABAP?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there such functions? How can I find such functions, and disable them? It may not be such a good idea to disable such functionality (since this is a table created by SAP and they may not want custom functionality to update it) but I want to learn how fields may be prevented from being updated/made updatable again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe I am suppose to use Badis to update it? Either way, how do you find such "make this field uneditable" settings?&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;&lt;/P&gt;&lt;P&gt;//Baran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Nov 2007 10:38:25 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-11-06T10:38:25Z</dc:date>
    <item>
      <title>Cannot update a field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cannot-update-a-field/m-p/2969705#M700857</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 have a question about updating fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am only doing an update:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Update Standard_SAP_Table&lt;/P&gt;&lt;P&gt;    Set Field1&lt;/P&gt;&lt;P&gt;Where Primary_Key = Some_Value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the problem. There are fields in this table where I can set to whatever I want but some fields I cannot change the value. It seems like there is some kind of "make field uneditable" function in ABAP?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there such functions? How can I find such functions, and disable them? It may not be such a good idea to disable such functionality (since this is a table created by SAP and they may not want custom functionality to update it) but I want to learn how fields may be prevented from being updated/made updatable again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe I am suppose to use Badis to update it? Either way, how do you find such "make this field uneditable" settings?&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;&lt;/P&gt;&lt;P&gt;//Baran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Nov 2007 10:38:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cannot-update-a-field/m-p/2969705#M700857</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-06T10:38:25Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot update a field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cannot-update-a-field/m-p/2969706#M700858</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;yes you can update specific records by first selecting that record to work area and modifying the specific field in work area and then modifying DB entry from work area.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E.g. VBAK .&lt;/P&gt;&lt;P&gt;DATA: wa_vbak TYPE vbak.&lt;/P&gt;&lt;P&gt;say you have to modify KUNNR for sales order number 001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * from vbak INTO wa_vbak WHERE vbeln = 001.&lt;/P&gt;&lt;P&gt;IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;wa_vbak-kunnr = 1000.&lt;/P&gt;&lt;P&gt;MODIFY vbak FROM wa_vbak.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY statement modifies the value of database record with the values in the work area.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hence you have to ensure you select all the fields into work area and modify the only field needed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Nov 2007 10:44:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cannot-update-a-field/m-p/2969706#M700858</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-06T10:44:47Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot update a field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cannot-update-a-field/m-p/2969707#M700859</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;Updates values in a database table. If a WHERE condition is specified, only those records which satisfy the WHERE condition are updated. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;UPDATE sflight SET   seatsocc = seatsocc + 3 &lt;/P&gt;&lt;P&gt;               WHERE carrid   = 'LH'   AND &lt;/P&gt;&lt;P&gt;                     connid   = '0400' AND &lt;/P&gt;&lt;P&gt;                     fldate   = '20010228'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Return Code is set as follows: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SY-SUBRC = 0: &lt;/P&gt;&lt;P&gt;The specified line has been updated. &lt;/P&gt;&lt;P&gt;SY-SUBRC = 4: &lt;/P&gt;&lt;P&gt;The system could not update any line in the table, since there is no line with the specified primary key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: Update is used to change the non-key-fields of a database table with reference to the WHERE condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Trythis,&lt;/P&gt;&lt;P&gt;KC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Nov 2007 11:07:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cannot-update-a-field/m-p/2969707#M700859</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-06T11:07:46Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot update a field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cannot-update-a-field/m-p/2969708#M700860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please check if the fields are set to primary key.fields set to primary key are uneditable and cannot be updated with modify or update statement&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Nov 2007 11:13:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cannot-update-a-field/m-p/2969708#M700860</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-06T11:13:54Z</dc:date>
    </item>
  </channel>
</rss>

