<?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: Updating SAP Database Table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/updating-sap-database-table/m-p/7139342#M1513312</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DEar Risad,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Update statement for STANDARD SAP TABLE is not recommended,&lt;/P&gt;&lt;P&gt;Try to update that filed by using BAPI...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Aug 2010 05:41:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-08-25T05:41:53Z</dc:date>
    <item>
      <title>Updating SAP Database Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/updating-sap-database-table/m-p/7139337#M1513307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using the following code I'm trying to update a field in the sap database table LIKP. The field I'm trying to update is called vlabdata. Please note I'm using this code in a user exit within the IDOC_INPUT_DELVRY. But its not updating the value in LIKP when I try to see the table in SE16 for that delivery #. What could be the problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES likp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UPDATE likp SET vlabdata = delivery_head-vlabdata where vbeln = delivery_head-vbeln_VL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please note:&lt;/P&gt;&lt;P&gt;In debug mode I can see that the values in &lt;STRONG&gt;delivery_head-vlabdata&lt;/STRONG&gt; &amp;amp; &lt;STRONG&gt;delivery_head-vbeln_VL&lt;/STRONG&gt; are correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Risad&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: mrisad on Aug 25, 2010 3:34 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: mrisad on Aug 25, 2010 3:35 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Aug 2010 01:33:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/updating-sap-database-table/m-p/7139337#M1513307</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-25T01:33:48Z</dc:date>
    </item>
    <item>
      <title>Re: Updating SAP Database Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/updating-sap-database-table/m-p/7139338#M1513308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you use a 'commit work' statement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that it is not advisable to make direct updates on standard tables.&lt;/P&gt;&lt;P&gt;The better option is to search for a BAPI or other function module.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Aug 2010 02:44:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/updating-sap-database-table/m-p/7139338#M1513308</guid>
      <dc:creator>former_member189059</dc:creator>
      <dc:date>2010-08-25T02:44:52Z</dc:date>
    </item>
    <item>
      <title>Re: Updating SAP Database Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/updating-sap-database-table/m-p/7139339#M1513309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've never used a BAPI before but I'm going to look into it right now. But will BAPI's work from user exits?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Aug 2010 03:08:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/updating-sap-database-table/m-p/7139339#M1513309</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-25T03:08:41Z</dc:date>
    </item>
    <item>
      <title>Re: Updating SAP Database Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/updating-sap-database-table/m-p/7139340#M1513310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just wanted to double check: can BAPI function modules be called and performed within a user exit? I am programming within a user exit in the function module IDOC_INPUT_DELVRY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Within a call customer function '002' within IDOC_INPUT_DELVRY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am I going to be successfully able to use the BAPI from that user exit?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Aug 2010 03:32:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/updating-sap-database-table/m-p/7139340#M1513310</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-25T03:32:56Z</dc:date>
    </item>
    <item>
      <title>Re: Updating SAP Database Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/updating-sap-database-table/m-p/7139341#M1513311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes Standard BAPI will work in user exit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try :BAPI_OUTB_DELIVERY_CHANGE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: pr@t on Aug 25, 2010 10:03 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Aug 2010 04:32:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/updating-sap-database-table/m-p/7139341#M1513311</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-25T04:32:39Z</dc:date>
    </item>
    <item>
      <title>Re: Updating SAP Database Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/updating-sap-database-table/m-p/7139342#M1513312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DEar Risad,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Update statement for STANDARD SAP TABLE is not recommended,&lt;/P&gt;&lt;P&gt;Try to update that filed by using BAPI...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Aug 2010 05:41:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/updating-sap-database-table/m-p/7139342#M1513312</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-25T05:41:53Z</dc:date>
    </item>
    <item>
      <title>Re: Updating SAP Database Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/updating-sap-database-table/m-p/7139343#M1513313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you realise that IDOC_INPUT_DELVRY updates LIKP? I don't understand why the OP needs to use BAPI to update LIKP?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@OP: Post your exact business requirement for further inputs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Aug 2010 06:20:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/updating-sap-database-table/m-p/7139343#M1513313</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2010-08-25T06:20:25Z</dc:date>
    </item>
    <item>
      <title>Re: Updating SAP Database Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/updating-sap-database-table/m-p/7139344#M1513314</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@Suhas,&lt;/P&gt;&lt;P&gt;I checked the IDOC_INPUT_DELVRY and I couldn't find a location where likp-vlabdata was being updated. Basically what I need to do is once a DELVRY03 idoc comes in to the system, it needs to grab one value from a specific location from the idoc (which is done) and update likp-vlabdata with that value. When I was going through the function module I personally couldn't find a place where vlabdata was being updated. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@Sachin,&lt;/P&gt;&lt;P&gt;I'm new to abap and sap so I didn't realize that it was a rule of thumb not to try and update the standard tables directly, so I'm looking into BAPI's now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Risad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Aug 2010 11:56:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/updating-sap-database-table/m-p/7139344#M1513314</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-25T11:56:59Z</dc:date>
    </item>
    <item>
      <title>Re: Updating SAP Database Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/updating-sap-database-table/m-p/7139345#M1513315</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Risad,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't find the field VLABDATA in LIKP &amp;amp; LIPS. Is it a custom field added to the table ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you debug deep into the IB processing FM you'll find the location where the table LIKP is updated &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What i want to say is that you don't have to use BAPI to update this field. In the relevant Exit / BAdI, you can write code to populate the custom fields. SAP will automatically update the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Aug 2010 12:03:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/updating-sap-database-table/m-p/7139345#M1513315</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2010-08-25T12:03:07Z</dc:date>
    </item>
    <item>
      <title>Re: Updating SAP Database Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/updating-sap-database-table/m-p/7139346#M1513316</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;suhas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is a custom field I believe. I'm basically working on a client system where there is code (within the IDOC_INPUT_DELVRY) to update not likp-vlabdata but a control record (someone else wrote that code not SAP). I tried to manipulate my user exit so it would be able to use that existing code but it just didn't work. My last option is to just use a BAPI and hope it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my question is, if it is a custom field, will bapi work?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Risad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Aug 2010 12:11:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/updating-sap-database-table/m-p/7139346#M1513316</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-25T12:11:42Z</dc:date>
    </item>
    <item>
      <title>Re: Updating SAP Database Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/updating-sap-database-table/m-p/7139347#M1513317</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;well the dudes that modified/enhanced the table with the custom field have hopefully updated the BAPI structures as well. &lt;/P&gt;&lt;P&gt;then yes you can use your custom field within the BADI as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If not you cant, unless you update the BAPI-structures.&lt;/P&gt;&lt;P&gt;Note, that in some cases this works automatically since sometimes the bapi structures are including the real tables.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Aug 2010 12:17:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/updating-sap-database-table/m-p/7139347#M1513317</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-25T12:17:05Z</dc:date>
    </item>
  </channel>
</rss>

