<?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>Question Re: VA02 from an ABAP program in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/va02-from-an-abap-program/qaa-p/13631906#M4821212</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.sap.com/t5/user/viewprofilepage/user-id/13126"&gt;@Ryan-Crosby&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;in below screenshot, there is update button, whatever this update button does , whether the same functionality is available in BAPI_SALESORDER_CHANGE?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SantoshB_0-1709869448101.png"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/77442i91FF3D652E0DD2DC/image-size/medium?v=v2&amp;amp;px=400" alt="SantoshB_0-1709869448101.png" title="SantoshB_0-1709869448101.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 08 Mar 2024 03:45:50 GMT</pubDate>
    <dc:creator>SantoshB</dc:creator>
    <dc:date>2024-03-08T03:45:50Z</dc:date>
    <item>
      <title>VA02 from an ABAP program</title>
      <link>https://community.sap.com/t5/technology-q-a/va02-from-an-abap-program/qaq-p/13629220</link>
      <description>&lt;P&gt;Hi,I have a requirement to call transaction VA02 from an ABAP program, which will run as a background task. The user will provide input via a selection screen. This input should be populated in VA02, and the sales order should be saved automatically. I'm considering two options for achieving this: BDC (Batch Data Communication) or BAPI_SALESORDER_CHANGE. Which option would be the most suitable for this scenario? Additionally, my VA02 screen has a custom tab with fields populated from a Z table. Is it possible to update this Z table using either BDC or BAPI_SALESORDER_CHANGE? Are there any other alternatives besides BDC or BAPI that I should consider? Your insights and suggestions would be greatly appreciated. Regards,&lt;/P&gt;</description>
      <pubDate>Wed, 06 Mar 2024 06:21:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/va02-from-an-abap-program/qaq-p/13629220</guid>
      <dc:creator>SantoshB</dc:creator>
      <dc:date>2024-03-06T06:21:08Z</dc:date>
    </item>
    <item>
      <title>Re: VA02 from an ABAP program</title>
      <link>https://community.sap.com/t5/technology-q-a/va02-from-an-abap-program/qaa-p/13629931#M4821205</link>
      <description>Both are possible but BAPI would generally be considered the preferred approach. There may be rare occasions where BDC ends up being a more suitable choice but not likely with sales order change.</description>
      <pubDate>Wed, 06 Mar 2024 13:24:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/va02-from-an-abap-program/qaa-p/13629931#M4821205</guid>
      <dc:creator>Ryan-Crosby</dc:creator>
      <dc:date>2024-03-06T13:24:30Z</dc:date>
    </item>
    <item>
      <title>Re: VA02 from an ABAP program</title>
      <link>https://community.sap.com/t5/technology-q-a/va02-from-an-abap-program/qaa-p/13630182#M4821206</link>
      <description>Hi Ryan-Crosby, is it possible to update Z table on custom tab created on VA02 through BAPI_SALESORDER_CHANGE?</description>
      <pubDate>Wed, 06 Mar 2024 16:18:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/va02-from-an-abap-program/qaa-p/13630182#M4821206</guid>
      <dc:creator>SantoshB</dc:creator>
      <dc:date>2024-03-06T16:18:19Z</dc:date>
    </item>
    <item>
      <title>Re: VA02 from an ABAP program</title>
      <link>https://community.sap.com/t5/technology-q-a/va02-from-an-abap-program/qaa-p/13630296#M4821207</link>
      <description>&lt;a href="https://community.sap.com/t5/user/viewprofilepage/user-id/1411670"&gt;@SantoshB&lt;/a&gt; do you mean a custom Z field that is displayed on the additional data tab?</description>
      <pubDate>Wed, 06 Mar 2024 17:32:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/va02-from-an-abap-program/qaa-p/13630296#M4821207</guid>
      <dc:creator>Ryan-Crosby</dc:creator>
      <dc:date>2024-03-06T17:32:26Z</dc:date>
    </item>
    <item>
      <title>Re: VA02 from an ABAP program</title>
      <link>https://community.sap.com/t5/technology-q-a/va02-from-an-abap-program/qaa-p/13630312#M4821208</link>
      <description>Yes custom Z field in Z table. Additional tab is custom tab having fields displayed from Z table</description>
      <pubDate>Wed, 06 Mar 2024 17:40:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/va02-from-an-abap-program/qaa-p/13630312#M4821208</guid>
      <dc:creator>SantoshB</dc:creator>
      <dc:date>2024-03-06T17:40:57Z</dc:date>
    </item>
    <item>
      <title>Re: VA02 from an ABAP program</title>
      <link>https://community.sap.com/t5/technology-q-a/va02-from-an-abap-program/qaa-p/13630408#M4821209</link>
      <description>&lt;a href="https://community.sap.com/t5/user/viewprofilepage/user-id/1411670"&gt;@SantoshB&lt;/a&gt; you cannot directly update the Z field in the BAPI because it's a Z table. You would need to rely on any logic in user exit/BADIs to perform an update of a Z field in a Z table during order processing.</description>
      <pubDate>Wed, 06 Mar 2024 19:24:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/va02-from-an-abap-program/qaa-p/13630408#M4821209</guid>
      <dc:creator>Ryan-Crosby</dc:creator>
      <dc:date>2024-03-06T19:24:21Z</dc:date>
    </item>
    <item>
      <title>Re: VA02 from an ABAP program</title>
      <link>https://community.sap.com/t5/technology-q-a/va02-from-an-abap-program/qaa-p/13631679#M4821210</link>
      <description>Hi Ryan-Crosby , in VA02, when we double click on Item, we get conditions tab. in conditions tab, below there is update button which refreshes conditions screen. whether this functionality possible through BAPI_SALESORDER_CHANGE?.</description>
      <pubDate>Thu, 07 Mar 2024 18:02:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/va02-from-an-abap-program/qaa-p/13631679#M4821210</guid>
      <dc:creator>SantoshB</dc:creator>
      <dc:date>2024-03-07T18:02:39Z</dc:date>
    </item>
    <item>
      <title>Re: VA02 from an ABAP program</title>
      <link>https://community.sap.com/t5/technology-q-a/va02-from-an-abap-program/qaa-p/13631734#M4821211</link>
      <description>&lt;a href="https://community.sap.com/t5/user/viewprofilepage/user-id/1411670"&gt;@SantoshB&lt;/a&gt; are you asking if you can update conditions via the BAPI?</description>
      <pubDate>Thu, 07 Mar 2024 19:03:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/va02-from-an-abap-program/qaa-p/13631734#M4821211</guid>
      <dc:creator>Ryan-Crosby</dc:creator>
      <dc:date>2024-03-07T19:03:59Z</dc:date>
    </item>
    <item>
      <title>Re: VA02 from an ABAP program</title>
      <link>https://community.sap.com/t5/technology-q-a/va02-from-an-abap-program/qaa-p/13631906#M4821212</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.sap.com/t5/user/viewprofilepage/user-id/13126"&gt;@Ryan-Crosby&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;in below screenshot, there is update button, whatever this update button does , whether the same functionality is available in BAPI_SALESORDER_CHANGE?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SantoshB_0-1709869448101.png"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/77442i91FF3D652E0DD2DC/image-size/medium?v=v2&amp;amp;px=400" alt="SantoshB_0-1709869448101.png" title="SantoshB_0-1709869448101.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2024 03:45:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/va02-from-an-abap-program/qaa-p/13631906#M4821212</guid>
      <dc:creator>SantoshB</dc:creator>
      <dc:date>2024-03-08T03:45:50Z</dc:date>
    </item>
    <item>
      <title>Re: VA02 from an ABAP program</title>
      <link>https://community.sap.com/t5/technology-q-a/va02-from-an-abap-program/qaa-p/13632298#M4821231</link>
      <description>&lt;a href="https://community.sap.com/t5/user/viewprofilepage/user-id/1411670"&gt;@SantoshB&lt;/a&gt; you can update conditions using the BAPI if that is what you are asking (although what you are asking is not clear), but that also will depend on how the pricing procedure is configured.</description>
      <pubDate>Fri, 08 Mar 2024 12:31:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/va02-from-an-abap-program/qaa-p/13632298#M4821231</guid>
      <dc:creator>Ryan-Crosby</dc:creator>
      <dc:date>2024-03-08T12:31:29Z</dc:date>
    </item>
    <item>
      <title>Re: VA02 from an ABAP program</title>
      <link>https://community.sap.com/t5/technology-q-a/va02-from-an-abap-program/qaa-p/13632509#M4821252</link>
      <description>&lt;P&gt;&lt;a href="https://community.sap.com/t5/user/viewprofilepage/user-id/13126"&gt;@Ryan-Crosby&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi Ryan-Crosby,&lt;/P&gt;&lt;P&gt;In my current process, I manually update sales orders through the on-screen transaction code VA02. The steps involved include:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Updating the Order Reason field.&lt;/LI&gt;&lt;LI&gt;Navigating to the Conditions tab and clicking the Update button.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;To automate this process, I am considering two options:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;BDC recording: My initial plan was to record a BDC session to replicate the steps performed manually.&lt;/LI&gt;&lt;LI&gt;BAPI_SALESORDER_CHANGE: However, considering the preference for BAPIs over BDC for standard transactions, I am exploring the possibility of achieving the same outcome using the BAPI_SALESORDER_CHANGE function module.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Before proceeding further, I would appreciate your guidance on whether BAPI_SALESORDER_CHANGE can effectively handle the required updates. Additionally, if you have any insights or recommendations on the most efficient approach for this task, please feel free to share them.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SantoshB_0-1709914127802.png"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/77665i369C1E0A862CD2A1/image-size/medium?v=v2&amp;amp;px=400" alt="SantoshB_0-1709914127802.png" title="SantoshB_0-1709914127802.png" /&gt;&lt;/span&gt;]&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SantoshB_1-1709914134315.png"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/77666i32A12CB26AD8B6AD/image-size/medium?v=v2&amp;amp;px=400" alt="SantoshB_1-1709914134315.png" title="SantoshB_1-1709914134315.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2024 16:09:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/va02-from-an-abap-program/qaa-p/13632509#M4821252</guid>
      <dc:creator>SantoshB</dc:creator>
      <dc:date>2024-03-08T16:09:26Z</dc:date>
    </item>
    <item>
      <title>Re: VA02 from an ABAP program</title>
      <link>https://community.sap.com/t5/technology-q-a/va02-from-an-abap-program/qaa-p/13632611#M4821266</link>
      <description>&lt;a href="https://community.sap.com/t5/user/viewprofilepage/user-id/1411670"&gt;@SantoshB&lt;/a&gt; yes, you can most certainly update the order reason code and conditions in the BAPI (assuming it's permitted in the pricing procedure configuration).</description>
      <pubDate>Fri, 08 Mar 2024 17:24:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/va02-from-an-abap-program/qaa-p/13632611#M4821266</guid>
      <dc:creator>Ryan-Crosby</dc:creator>
      <dc:date>2024-03-08T17:24:01Z</dc:date>
    </item>
    <item>
      <title>Re: VA02 from an ABAP program</title>
      <link>https://community.sap.com/t5/technology-q-a/va02-from-an-abap-program/qaa-p/13641240#M4822183</link>
      <description>&lt;P&gt;Hi, about your custom field, you can try to check the TABLE parameter：EXTENSIONIN in this bapi.&lt;/P&gt;&lt;P&gt;please check this parameter's long text to get how to use.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 18 Mar 2024 09:44:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/va02-from-an-abap-program/qaa-p/13641240#M4822183</guid>
      <dc:creator>819</dc:creator>
      <dc:date>2024-03-18T09:44:35Z</dc:date>
    </item>
  </channel>
</rss>

