<?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: Modify a field in the standard table using BAPI in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-a-field-in-the-standard-table-using-bapi/m-p/6782092#M1464728</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hope this is update related to sales order.  If yes use BAPI "BAPI_SALESORDER_CHANGE"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Vinod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Apr 2010 11:03:26 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-04-06T11:03:26Z</dc:date>
    <item>
      <title>Modify a field in the standard table using BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-a-field-in-the-standard-table-using-bapi/m-p/6782090#M1464726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have values of VKBD in Intrenal table I_VBKD and have an another internal table  I_FINAL. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to modify a field in the standard table using BAPI. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Conditins are as below : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;if COLA/Economic change date   = u201800000000u2018.  "SPACE 
   
 Change VBKD-PRSDT = =   Date of first adjustment   

Else 
       Change VBKD-PRSDT = =   COLA/Economic change date.
Endif&lt;/CODE&gt;&lt;/PRE&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;My code : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;LOOP AT I_FINAL INTO WG_FINAL.

 
IF WG_FINAL-ZZCOLA_ECO = '00000000'. "sPACE

  READ TABLE I_VBKD INTO WG_VBKD WITH KEY VBELN =
                               WG_FINAL-VBELN BINARY SEARCH.
 IF SY-SUBRC = 0.

     WG_VBKD-PRSDT = WG_FINAL-ZZCOLA_DATE.


* Change VBKD-PRSDT = =   Date of first adjustment

*** Updating the database
       
 MODIFY VBKD FROM WG_VBKD. " Here instead of Modify i want to use BAPI. 
                                                          Can somebody provide me some sample code code how i can achive this?&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions are appreciated! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kittu&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Kittu on Apr 6, 2010 12:53 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Apr 2010 10:53:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-a-field-in-the-standard-table-using-bapi/m-p/6782090#M1464726</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-06T10:53:13Z</dc:date>
    </item>
    <item>
      <title>Re: Modify a field in the standard table using BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-a-field-in-the-standard-table-using-bapi/m-p/6782091#M1464727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You will not have BAPI specific to one table. You will get the BAPI based on the transactions, it will update all the relevant tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to update only one single table, then you can make use of the below function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DB_UPDATE_TABLE.&lt;/P&gt;&lt;P&gt;Here you need to pass the table name and it's contents as well.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Apr 2010 11:02:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-a-field-in-the-standard-table-using-bapi/m-p/6782091#M1464727</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-06T11:02:11Z</dc:date>
    </item>
    <item>
      <title>Re: Modify a field in the standard table using BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-a-field-in-the-standard-table-using-bapi/m-p/6782092#M1464728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hope this is update related to sales order.  If yes use BAPI "BAPI_SALESORDER_CHANGE"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Vinod&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Apr 2010 11:03:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-a-field-in-the-standard-table-using-bapi/m-p/6782092#M1464728</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-06T11:03:26Z</dc:date>
    </item>
    <item>
      <title>Re: Modify a field in the standard table using BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-a-field-in-the-standard-table-using-bapi/m-p/6782093#M1464729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Santosh, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your quick response!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the FM : - DB_UPDATE_TABLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suppose i want to modify the  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; -   Table VBKD then should i ftech all  fields based on key fields from that table?  &lt;/P&gt;&lt;P&gt;-     and after changing the required field then i need to pass it to the Function module so that it will modify the table VBKD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please correct me if i am wrong....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help so far...&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;Kittu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Apr 2010 11:34:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-a-field-in-the-standard-table-using-bapi/m-p/6782093#M1464729</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-06T11:34:41Z</dc:date>
    </item>
    <item>
      <title>Re: Modify a field in the standard table using BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-a-field-in-the-standard-table-using-bapi/m-p/6782094#M1464730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is ONE THING YOU MUST NEVER DO in SAP software, it's updating directly a standard SAP table!!!&lt;/P&gt;&lt;P&gt;Do you want to get fired? &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;You MUST use BAPIs, batch input or IDoc, but NEVER update directly.&lt;/P&gt;&lt;P&gt;DB_UPDATE_TABLE should be considered as direct update, so forget it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These remarks are mostly addressed to santhosh kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Apr 2010 22:37:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-a-field-in-the-standard-table-using-bapi/m-p/6782094#M1464730</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2010-04-06T22:37:02Z</dc:date>
    </item>
    <item>
      <title>Re: Modify a field in the standard table using BAPI</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-a-field-in-the-standard-table-using-bapi/m-p/6782095#M1464731</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;Thank you for your quick response!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kittu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jul 2010 05:14:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-a-field-in-the-standard-table-using-bapi/m-p/6782095#M1464731</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-07-08T05:14:08Z</dc:date>
    </item>
  </channel>
</rss>

