<?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 VBPA table not getting modified in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/vbpa-table-not-getting-modified/m-p/8138396#M1620091</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Experts,&lt;/P&gt;&lt;P&gt;I want to update table vbpa for sold to party and shift to party.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wrote the code as follows,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE vbeln kunnr FROM vbak INTO wa_vbak&lt;/P&gt;&lt;P&gt;  WHERE vbeln EQ s_vbeln.&lt;/P&gt;&lt;P&gt;  IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;    MESSAGE 'Sales Order Does Not Exists' TYPE 'E'.&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;    SELECT SINGLE  * FROM kna1 INTO WA_KNA1&lt;/P&gt;&lt;P&gt;     WHERE kunnr EQ p_kunnr.&lt;/P&gt;&lt;P&gt;    IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;      MESSAGE 'Enter Valid Sold To Party' TYPE 'E'.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;    UPDATE vbak SET kunnr = p_kunnr&lt;/P&gt;&lt;P&gt;    WHERE vbeln = s_vbeln.&lt;/P&gt;&lt;P&gt;    UPDATE vbpa SET kunnr = p_kunnr&lt;/P&gt;&lt;P&gt;                    ADRNR = WA_KNA1-ADRNR&lt;/P&gt;&lt;P&gt;                    WHERE vbeln = s_vbeln&lt;/P&gt;&lt;P&gt;                                      AND parvw = 'SP'.&lt;/P&gt;&lt;P&gt;    UPDATE vbpa SET kunnr = p_kunnr&lt;/P&gt;&lt;P&gt;                    ADRNR = WA_KNA1-ADRNR&lt;/P&gt;&lt;P&gt;                    WHERE vbeln = s_vbeln&lt;/P&gt;&lt;P&gt;                    AND parvw = 'SH'.&lt;/P&gt;&lt;P&gt;    COMMIT WORK.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;BUT it is updating table VBAK only. Please help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Aug 2011 08:50:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-08-12T08:50:20Z</dc:date>
    <item>
      <title>VBPA table not getting modified</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/vbpa-table-not-getting-modified/m-p/8138396#M1620091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Experts,&lt;/P&gt;&lt;P&gt;I want to update table vbpa for sold to party and shift to party.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wrote the code as follows,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE vbeln kunnr FROM vbak INTO wa_vbak&lt;/P&gt;&lt;P&gt;  WHERE vbeln EQ s_vbeln.&lt;/P&gt;&lt;P&gt;  IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;    MESSAGE 'Sales Order Does Not Exists' TYPE 'E'.&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;    SELECT SINGLE  * FROM kna1 INTO WA_KNA1&lt;/P&gt;&lt;P&gt;     WHERE kunnr EQ p_kunnr.&lt;/P&gt;&lt;P&gt;    IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;      MESSAGE 'Enter Valid Sold To Party' TYPE 'E'.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;    UPDATE vbak SET kunnr = p_kunnr&lt;/P&gt;&lt;P&gt;    WHERE vbeln = s_vbeln.&lt;/P&gt;&lt;P&gt;    UPDATE vbpa SET kunnr = p_kunnr&lt;/P&gt;&lt;P&gt;                    ADRNR = WA_KNA1-ADRNR&lt;/P&gt;&lt;P&gt;                    WHERE vbeln = s_vbeln&lt;/P&gt;&lt;P&gt;                                      AND parvw = 'SP'.&lt;/P&gt;&lt;P&gt;    UPDATE vbpa SET kunnr = p_kunnr&lt;/P&gt;&lt;P&gt;                    ADRNR = WA_KNA1-ADRNR&lt;/P&gt;&lt;P&gt;                    WHERE vbeln = s_vbeln&lt;/P&gt;&lt;P&gt;                    AND parvw = 'SH'.&lt;/P&gt;&lt;P&gt;    COMMIT WORK.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;BUT it is updating table VBAK only. Please help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Aug 2011 08:50:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/vbpa-table-not-getting-modified/m-p/8138396#M1620091</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-12T08:50:20Z</dc:date>
    </item>
    <item>
      <title>Re: VBPA table not getting modified</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/vbpa-table-not-getting-modified/m-p/8138397#M1620092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;to be honest i cant see the problem in this code snippet why it doesnt work.&lt;/P&gt;&lt;P&gt;BUT the hair on my neck is stiffening when seeing this. Hard updates on VBKA and VBPA?&lt;/P&gt;&lt;P&gt;And finally a commit work which doesnt even check sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thats not something i would recommend. Try to make use of e.G. BAPI_SALESORDER_CHANGE or SD_SALESDOCUMENT_MAINTAIN if you want to change change a sales order.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Aug 2011 08:58:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/vbpa-table-not-getting-modified/m-p/8138397#M1620092</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-12T08:58:37Z</dc:date>
    </item>
    <item>
      <title>Re: VBPA table not getting modified</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/vbpa-table-not-getting-modified/m-p/8138398#M1620093</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;Why are you doing that? &lt;/P&gt;&lt;P&gt;Why are you changing that data directly by sql statament? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't think it's good thing to change these partners by this way: there are several tables where these data are the main keys: you risk to have many misalignments.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway the function partner has a convertion routine to convert the code from/to input/output value:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SP and SH are the code for the output values, the input codes are AG and WE: you need to use these.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So VBPA doesn't changed because your query fails&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Aug 2011 09:00:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/vbpa-table-not-getting-modified/m-p/8138398#M1620093</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-12T09:00:41Z</dc:date>
    </item>
    <item>
      <title>Re: VBPA table not getting modified</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/vbpa-table-not-getting-modified/m-p/8138399#M1620094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes i want to change the sales order, shift to party and sold to party.&lt;/P&gt;&lt;P&gt;Thax for the reply. I will try your suggestion.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Aug 2011 09:02:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/vbpa-table-not-getting-modified/m-p/8138399#M1620094</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-12T09:02:00Z</dc:date>
    </item>
    <item>
      <title>Re: VBPA table not getting modified</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/vbpa-table-not-getting-modified/m-p/8138400#M1620095</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;&lt;/P&gt;&lt;P&gt;Dont update SAP table directly  ... It is not a correct way  ..&lt;/P&gt;&lt;P&gt;You might be disturbing data related Directly or indirectly  with vbpa table for other table  .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAP never recommend  to do update table directly  ... You use either  bapi or bapi if any  ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do find on SDn  for the same  .&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;Deepak.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Aug 2011 10:06:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/vbpa-table-not-getting-modified/m-p/8138400#M1620095</guid>
      <dc:creator>deepak_dhamat</dc:creator>
      <dc:date>2011-08-12T10:06:41Z</dc:date>
    </item>
    <item>
      <title>Re: VBPA table not getting modified</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/vbpa-table-not-getting-modified/m-p/8138401#M1620096</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;Do check this BAPI  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BAPI_SALESORDER_CHANGE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Deepak.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Aug 2011 10:12:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/vbpa-table-not-getting-modified/m-p/8138401#M1620096</guid>
      <dc:creator>deepak_dhamat</dc:creator>
      <dc:date>2011-08-12T10:12:44Z</dc:date>
    </item>
    <item>
      <title>Re: VBPA table not getting modified</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/vbpa-table-not-getting-modified/m-p/8138402#M1620097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Makarand,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;congratulations!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You work in a private environment not relevant for any legal requirement at all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because if an auditor or tax authority knows what you are doing in your system, it depends only on the value of the orders manipulated if the action is subject to prison sentence or monetary penalty. If your auditors know and let you do, they arte in a similar situation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: If you use SAP transactions it can be always  detected who changed what and when.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Aug 2011 19:41:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/vbpa-table-not-getting-modified/m-p/8138402#M1620097</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2011-08-12T19:41:44Z</dc:date>
    </item>
    <item>
      <title>Re: VBPA table not getting modified</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/vbpa-table-not-getting-modified/m-p/8138403#M1620098</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 dont know why you are updating VBPA like this, But I can tell you why your update query is not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its actually very simple, you are trying to update using parvw equal to "SH and SP". Those values are dispalyed due to conversion exits. so need to use "WE for SH" and "RG for SP" values. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UPDATE vbpa SET kunnr = p_kunnr&lt;/P&gt;&lt;P&gt;ADRNR = WA_KNA1-ADRNR&lt;/P&gt;&lt;P&gt;WHERE vbeln = s_vbeln&lt;/P&gt;&lt;P&gt;AND parvw = 'RG'.     " Double check this value at domain level&lt;/P&gt;&lt;P&gt;UPDATE vbpa SET kunnr = p_kunnr&lt;/P&gt;&lt;P&gt;ADRNR = WA_KNA1-ADRNR&lt;/P&gt;&lt;P&gt;WHERE vbeln = s_vbeln&lt;/P&gt;&lt;P&gt;AND parvw = 'WE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nitesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Aug 2011 15:37:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/vbpa-table-not-getting-modified/m-p/8138403#M1620098</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-13T15:37:46Z</dc:date>
    </item>
    <item>
      <title>Re: VBPA table not getting modified</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/vbpa-table-not-getting-modified/m-p/8138404#M1620099</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;Nitesh is right. We should always need to use the conversion exit for Partner Functions while doing modifications. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shiva.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Aug 2011 17:04:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/vbpa-table-not-getting-modified/m-p/8138404#M1620099</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-13T17:04:37Z</dc:date>
    </item>
    <item>
      <title>Re: VBPA table not getting modified</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/vbpa-table-not-getting-modified/m-p/8138405#M1620100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;BAPI_SALESORDER_CHANGE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use BAPI or any other func. mod for this jobs but never try direct approach its wrong and it may land u in gr8 troubles&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Aug 2011 20:07:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/vbpa-table-not-getting-modified/m-p/8138405#M1620100</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-13T20:07:20Z</dc:date>
    </item>
  </channel>
</rss>

