<?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: Regarding BAPI_SALESORDER_CHANGE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bapi-salesorder-change/m-p/5837597#M1317440</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also any modifications should be done to xvbak and  xvbap-vbeln as this will be the one updating the sales order tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Shivika&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Jul 2009 03:10:57 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-07-06T03:10:57Z</dc:date>
    <item>
      <title>Regarding BAPI_SALESORDER_CHANGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bapi-salesorder-change/m-p/5837594#M1317437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Iam trying to change the Rejection code for SO by using BAPI_SALESORDER_CHANGE.&lt;/P&gt;&lt;P&gt;In my normal report it is working fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i use the same bapi in user exit USEREXIT_SAVE_DOCUMENT_PREPARE then the bapi showing the message&lt;/P&gt;&lt;P&gt;like Please enter the Document number?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to solve this problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jul 2009 02:53:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bapi-salesorder-change/m-p/5837594#M1317437</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-06T02:53:08Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding BAPI_SALESORDER_CHANGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bapi-salesorder-change/m-p/5837595#M1317438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;As we know, The functionality of BAPI BAPI_SALESORDER_CHANGE is almost same as t-code VA02 actually.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know how this message 'Please enter the Document number' coming. However logically we don't call this bapi in user-exit USEREXIT_SAVE_DOCUMENT_PREPARE or USEREXIT_SAVE_DOCUMENT because this two user-exits will be triggered by this BAPI or we can say those two user-exits are part of this BAPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you really want to change rejection code in user-exit, just change internal table XVBAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope above is helpful for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jul 2009 03:05:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bapi-salesorder-change/m-p/5837595#M1317438</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-06T03:05:45Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding BAPI_SALESORDER_CHANGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bapi-salesorder-change/m-p/5837596#M1317439</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;Since  SALESDOCUMENT is mandatory for this BAPI , &lt;/P&gt;&lt;P&gt;xvbap-vbeln should have value inside this user exit.&lt;/P&gt;&lt;P&gt;Can  u check in debug mode if this has the sales doc number ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Shivika&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jul 2009 03:09:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bapi-salesorder-change/m-p/5837596#M1317439</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-06T03:09:07Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding BAPI_SALESORDER_CHANGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bapi-salesorder-change/m-p/5837597#M1317440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also any modifications should be done to xvbak and  xvbap-vbeln as this will be the one updating the sales order tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Shivika&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jul 2009 03:10:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bapi-salesorder-change/m-p/5837597#M1317440</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-06T03:10:57Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding BAPI_SALESORDER_CHANGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bapi-salesorder-change/m-p/5837598#M1317441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;This is because the Sales order which you try to change will already be locked/enqued by the system and when tried to export the SO number in &lt;/P&gt;&lt;P&gt;BAPI_SALESORDER_CHANGE -&amp;gt;&lt;/P&gt;&lt;P&gt;                    SD_SALESDOCUMENT_CHANGE-&amp;gt;&lt;/P&gt;&lt;P&gt;                                                       SD_SALES_DOCUMENT_READ-&amp;gt;&lt;/P&gt;&lt;P&gt;                                                                                PERFORM BELEG_LESEN(SAPMV45A) include subroutine, it will not find.&lt;/P&gt;&lt;P&gt;Try keeping a break point in the function module SD_SALES_DOCUMENT_READ at statement &lt;/P&gt;&lt;P&gt;VBAK-VBELN = DOCUMENT_NUMBER.&lt;/P&gt;&lt;P&gt;PERFORM BELEG_LESEN(SAPMV45A)&lt;/P&gt;&lt;P&gt;and see if the SO doc value that is assigned to VBAK-VBELN in the function module is passed into the perform without clearing its value. &lt;/P&gt;&lt;P&gt;If it is clearing out, then there is enqueue on the SO number already set by the standard VA02 program.&lt;/P&gt;&lt;P&gt;So cannot be changed without unlocking it.&lt;/P&gt;&lt;P&gt;But in the form USEREXIT_SAVE_DOCUMENT_PREPARE if you try to unlock this might lead to incosistencies, so be careful.&lt;/P&gt;&lt;P&gt;Try if u can unlock the SO and then change using the BAPI and then enqueue again, but take care it should not lead to any inconsistency.&lt;/P&gt;&lt;P&gt;Sai&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jul 2009 21:40:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bapi-salesorder-change/m-p/5837598#M1317441</guid>
      <dc:creator>former_member313591</dc:creator>
      <dc:date>2009-07-31T21:40:02Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding BAPI_SALESORDER_CHANGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bapi-salesorder-change/m-p/5837599#M1317442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="http://abap.wikiprog.com/wiki/BAPI_SALESORDER_CHANGE" target="test_blank"&gt;http://abap.wikiprog.com/wiki/BAPI_SALESORDER_CHANGE&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Aug 2009 07:02:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bapi-salesorder-change/m-p/5837599#M1317442</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-01T07:02:14Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding BAPI_SALESORDER_CHANGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bapi-salesorder-change/m-p/5837600#M1317443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;User exit Save document Prepare is triggered before the sales number is created &lt;/P&gt;&lt;P&gt;But Once a sales order has been created then only through this bapi u can change this .&lt;/P&gt;&lt;P&gt;since this Bapi is fired before a sales document is created that is why the error is coming.&lt;/P&gt;&lt;P&gt;try to find out some other exit point .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Aug 2009 07:13:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-bapi-salesorder-change/m-p/5837600#M1317443</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-01T07:13:53Z</dc:date>
    </item>
  </channel>
</rss>

