<?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: ABAP - update table vbap in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-update-table-vbap/m-p/12073749#M1970279</link>
    <description>&lt;P&gt;Thank you all for your explanations. I understood the consequences. I will go and talk to the functional people about it.&lt;/P&gt;</description>
    <pubDate>Thu, 17 Oct 2019 14:53:38 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2019-10-17T14:53:38Z</dc:date>
    <item>
      <title>ABAP - update table vbap</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-update-table-vbap/m-p/12073742#M1970272</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
  &lt;P&gt;I have the following code to update the table VBAP based on gt_record1 entries, which I got from file upload. Gt_record1 has ordnum, item, plant, item category data. I have to update table VBAP with plant and item cat for provided ordnum and item.&lt;/P&gt;
  &lt;P&gt;I am doing something wrong with my loops. Can you please help.&lt;/P&gt;
  &lt;P&gt;Form get_data. &lt;/P&gt;
  &lt;P&gt;If gt_record1 is not initial. &lt;/P&gt;
  &lt;P&gt;sort gt_record1. &lt;/P&gt;
  &lt;P&gt;select * from vbap into table @data(lt_vbap) &lt;/P&gt;
  &lt;P&gt;for all entries in @gt_record1 &lt;/P&gt;
  &lt;P&gt;where vbeln = @gt_record1-ordnum &lt;/P&gt;
  &lt;P&gt; and posnr = @gt_record1-item. &lt;/P&gt;
  &lt;P&gt;Loop at gt_record1 assigning field-symbol(&amp;lt;fs_record1&amp;gt;). &lt;/P&gt;
  &lt;P&gt;If sy-subrc = 0.&lt;/P&gt;
  &lt;P&gt; Loop at lt_vbap assigning field-symbol(&amp;lt;fs_vbap&amp;gt;). &lt;/P&gt;
  &lt;P&gt;&amp;lt;fs_vbap&amp;gt;-werks = &amp;lt;fs_record1&amp;gt;-plant. &lt;/P&gt;
  &lt;P&gt;&amp;lt;fs_vbap&amp;gt;-pstyv = &amp;lt;fs_record1&amp;gt;-itemcat. &lt;/P&gt;
  &lt;P&gt;ENDLOOP. &lt;/P&gt;
  &lt;P&gt;MODIFY vbap FROM TABLE lt_vbap. &lt;/P&gt;
  &lt;P&gt;If sy-subrc = 0. &lt;/P&gt;
  &lt;P&gt;COMMIT WORK. &lt;/P&gt;
  &lt;P&gt;ENDIF. &lt;/P&gt;
  &lt;P&gt;ENDIF. &lt;/P&gt;
  &lt;P&gt;ENDLOOP. &lt;/P&gt;
  &lt;P&gt;ENDIF.&lt;/P&gt;
  &lt;P&gt; ENDFORM.&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2019 06:03:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-update-table-vbap/m-p/12073742#M1970272</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-10-17T06:03:40Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP - update table vbap</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-update-table-vbap/m-p/12073743#M1970273</link>
      <description>&lt;P&gt;The solution is very simple &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;YOU MUST NEVER MODIFY THE STANDARD TABLE CONTENT&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;or you will loose SAP support&lt;/P&gt;&lt;P&gt;so please, do not ask forbidden solution in an official SAP forum &lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2019 06:10:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-update-table-vbap/m-p/12073743#M1970273</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2019-10-17T06:10:43Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP - update table vbap</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-update-table-vbap/m-p/12073744#M1970274</link>
      <description>&lt;P&gt;Thank you for your reply but that is my requirement.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2019 06:26:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-update-table-vbap/m-p/12073744#M1970274</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-10-17T06:26:02Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP - update table vbap</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-update-table-vbap/m-p/12073745#M1970275</link>
      <description>&lt;P&gt;I agree completely with  &lt;SPAN class="mention-scrubbed"&gt;frdric.girod&lt;/SPAN&gt;  you should not do this, the person who requested this probably has no idea what can be the consequences of such approach. I am a SD consultant and please, believe me when I say that this can easily mess up your whole order-to-cash process.&lt;/P&gt;&lt;P&gt;As a developer you also have a say in the solution development.&lt;/P&gt;&lt;P&gt;What is more - there is no need for a custom program to update the [plant and the item category of sales order items; this can be done via transaction MASS and even with LSMW. If you really need to update sales orders via a custom program then at least you can use safer ways - like BAPI_SALESORDER_CHANGE.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2019 06:46:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-update-table-vbap/m-p/12073745#M1970275</guid>
      <dc:creator>VeselinaPeykova</dc:creator>
      <dc:date>2019-10-17T06:46:27Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP - update table vbap</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-update-table-vbap/m-p/12073746#M1970276</link>
      <description>&lt;P&gt;&lt;A href="https://answers.sap.com/users/805252/rneelaveni.html"&gt;Neela Veni&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;No, this cant be your requirement. We should never perform such modification to standard table.&lt;/P&gt;&lt;P&gt;Liaise with your functional consultant and ask him what is the standard procedure to update these entries through transactions.&lt;/P&gt;&lt;P&gt;Then probably you can write a LSMW or BDC recording for the same or the most efficient process of using a BAPI.&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2019 07:38:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-update-table-vbap/m-p/12073746#M1970276</guid>
      <dc:creator>former_member1716</dc:creator>
      <dc:date>2019-10-17T07:38:48Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP - update table vbap</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-update-table-vbap/m-p/12073747#M1970277</link>
      <description>&lt;P&gt;This is NOT your requirement.&lt;/P&gt;&lt;P&gt;Your requirement is to update sales orders. If you don't use Bapi's or even bdc to fulfill that requirement then SAP has no commitment to support your client in case something goes wrong with direct table updates. &lt;/P&gt;&lt;P&gt;Think of corrupt data, incorrect information which leads to failing audits, etc&lt;/P&gt;&lt;P&gt;If the functional/business requirement details the specific direct manipulation of SAP tables then it is your responsibility to reject that requirement.&lt;/P&gt;&lt;P&gt;Kind regards, Rob Dielemans&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2019 07:50:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-update-table-vbap/m-p/12073747#M1970277</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-10-17T07:50:07Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP - update table vbap</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-update-table-vbap/m-p/12073748#M1970278</link>
      <description>&lt;P&gt;You can choose: be a crappy developer doing things without thinking about the consequences nor offering an alternative OR be a valuable resource, documenting your choices and explaining why something is wrong and should be done that way.&lt;/P&gt;&lt;P&gt;I bet your request is "update those 2 fields": now you have to ask yourself "what does SAP say on updating standard tables?".&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2019 10:17:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-update-table-vbap/m-p/12073748#M1970278</guid>
      <dc:creator>SimoneMilesi</dc:creator>
      <dc:date>2019-10-17T10:17:41Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP - update table vbap</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-update-table-vbap/m-p/12073749#M1970279</link>
      <description>&lt;P&gt;Thank you all for your explanations. I understood the consequences. I will go and talk to the functional people about it.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Oct 2019 14:53:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-update-table-vbap/m-p/12073749#M1970279</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-10-17T14:53:38Z</dc:date>
    </item>
  </channel>
</rss>

