<?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: User Exit for VA02 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-for-va02/m-p/4672051#M1098840</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Instead of Modifying XVBAP in the User exit EXIT_SAPMV45A_003, write your code in the Include MV45AFZZ subroutine USEREXIT_SAVE_DOCUMENT_PREPARE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Oct 2008 13:37:53 GMT</pubDate>
    <dc:creator>naimesh_patel</dc:creator>
    <dc:date>2008-10-13T13:37:53Z</dc:date>
    <item>
      <title>User Exit for VA02</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-for-va02/m-p/4672042#M1098831</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 have written code in user exit EXIT_SAPMV45A_003 for TCode VA02 (Sales Order Change). The code is as given below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP at XVBAP.&lt;/P&gt;&lt;P&gt;If XVBAP-kwmeng = 100.&lt;/P&gt;&lt;P&gt;  XVBAP-kwmeng = 99.&lt;/P&gt;&lt;P&gt;  Modify XVBAP.&lt;/P&gt;&lt;P&gt;Endif.&lt;/P&gt;&lt;P&gt;If XVBAP-ARKTX = 'Pumpe Stahlguss Etanorm 170-230'.&lt;/P&gt;&lt;P&gt;  XVBAP-ARKTX = 'Changed'.&lt;/P&gt;&lt;P&gt;  Modify XVBAP.&lt;/P&gt;&lt;P&gt;Endif.&lt;/P&gt;&lt;P&gt;Endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In debug mode I can see the changed values for Order Quantity (KWMENG) and description (ARKTX). However after the entire code is executed and when I enter the sales order, first I get a pop up "Express Document Update Was Terminated received from author XXXXX". And then when I hit enter, the values are not changed&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The project in CMOD and the enhancement in SMOD are activated. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Oct 2008 12:34:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-for-va02/m-p/4672042#M1098831</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-13T12:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: User Exit for VA02</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-for-va02/m-p/4672043#M1098832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY xvbap&lt;/P&gt;&lt;P&gt;               TRANSPORTING ARKTX  WHERE ref_field = xvbap-ref_field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;ref_field is the entry for which you want to modify .. it may be vbeln or posnr.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Oct 2008 12:46:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-for-va02/m-p/4672043#M1098832</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-13T12:46:16Z</dc:date>
    </item>
    <item>
      <title>Re: User Exit for VA02</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-for-va02/m-p/4672044#M1098833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mick&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It means a dump occurs while the data was beeing saved in a background process.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U should use the trx ST22 and SM13 in order to check the dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway remember you have to set the update flag after changing a value of item of sales order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;LOOP at XVBAP.
  If XVBAP-kwmeng = 100.
   XVBAP-kwmeng = 99.
   XVBAP-UPDKZ  = 'U'  &amp;lt;-----------------------------
   Modify XVBAP.
 Endif.
 If XVBAP-ARKTX = 'Pumpe Stahlguss Etanorm 170-230'.
   XVBAP-ARKTX = 'Changed'.
   XVBAP-UPDKZ  = 'U'  &amp;lt;-----------------------------
  Modify XVBAP.
 Endif.
Endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Oct 2008 12:47:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-for-va02/m-p/4672044#M1098833</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-13T12:47:11Z</dc:date>
    </item>
    <item>
      <title>Re: User Exit for VA02</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-for-va02/m-p/4672045#M1098834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;LOOP at XVBAP.
If XVBAP-kwmeng = 100.
XVBAP-kwmeng = 99.  "this quanity i am not sure 
"i think you have to change schedule lines also
"which is XVBEP table.
XVBAP-UPDKZ = 'U'.
Modify XVBAP.
Endif.
If XVBAP-ARKTX = 'Pumpe Stahlguss Etanorm 170-230'.
XVBAP-ARKTX = 'Changed'.
XVBAP-UPDKZ = 'U'.  "Try this...
Modify XVBAP.
Endif.
Endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Keep a break point in the above loop, and check in SM13 transaction for the Update termination cause. find the source code wher the error is from SM13 transaction.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Oct 2008 12:52:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-for-va02/m-p/4672045#M1098834</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-13T12:52:08Z</dc:date>
    </item>
    <item>
      <title>Re: User Exit for VA02</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-for-va02/m-p/4672046#M1098835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your prompt response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what I could see in SM 13.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;10	MCV_STATISTICS_UPD_V2_ORDER	V2	Error&lt;/P&gt;&lt;P&gt;Internal TSKH error, session terminated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help. How can I solve this error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Oct 2008 13:09:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-for-va02/m-p/4672046#M1098835</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-13T13:09:14Z</dc:date>
    </item>
    <item>
      <title>Re: User Exit for VA02</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-for-va02/m-p/4672047#M1098836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;double click on MCV_STATISTICS_UPD_V2_ORDER  function, there you see the information where the error caused inside the Function. In one of the perform include it will be. and why i am asking is , it gives more clear picture about the error, from there we can start analyzing the error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Oct 2008 13:13:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-for-va02/m-p/4672047#M1098836</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-13T13:13:58Z</dc:date>
    </item>
    <item>
      <title>Re: User Exit for VA02</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-for-va02/m-p/4672048#M1098837</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;Also check the dump in trx ST22&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Oct 2008 13:17:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-for-va02/m-p/4672048#M1098837</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-13T13:17:35Z</dc:date>
    </item>
    <item>
      <title>Re: User Exit for VA02</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-for-va02/m-p/4672049#M1098838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I double click on MCV_STATISTICS_UPD_V2_ORDER in SM13, the details that I can see are given below. It does not mention any perform or subroutine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function Module        MCV_STATISTICS_UPD_V2_ORDER&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Status                 Update was terminated&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Report&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Row&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error details   Class:     14         Number:    005&lt;/P&gt;&lt;P&gt;14 005: Internal TSKH error, session terminated&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Oct 2008 13:18:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-for-va02/m-p/4672049#M1098838</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-13T13:18:04Z</dc:date>
    </item>
    <item>
      <title>Re: User Exit for VA02</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-for-va02/m-p/4672050#M1098839</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;The logic is the following: the old values are stored in an YVBAP table and the new values have to be in the XVBAP table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you have to code it somehow like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP at XVBAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;store the old values, before anything has been changed, and if neccessary&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;READ TABLE yvbap WITH KEY posnr = xvbap-posnr.&lt;/P&gt;&lt;P&gt;IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;MOVE-CORRESPONDING xvbap TO yvbap.&lt;/P&gt;&lt;P&gt;APPEND yvbap.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If XVBAP-kwmeng = 100.&lt;/P&gt;&lt;P&gt;XVBAP-kwmeng = 99.  "this quanity i am not sure &lt;/P&gt;&lt;P&gt;"i think you have to change schedule lines also&lt;/P&gt;&lt;P&gt;"which is XVBEP table.&lt;/P&gt;&lt;P&gt;IF XVBAP-UPDKZ IS INITIAL.   "to keep the original state, if it is in insert or in delete mode&lt;/P&gt;&lt;P&gt;XVBAP-UPDKZ = 'U'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;Modify XVBAP.&lt;/P&gt;&lt;P&gt;Endif.&lt;/P&gt;&lt;P&gt;If XVBAP-ARKTX = 'Pumpe Stahlguss Etanorm 170-230'.&lt;/P&gt;&lt;P&gt;XVBAP-ARKTX = 'Changed'.&lt;/P&gt;&lt;P&gt;IF XVBAP-UPDKZ IS INITIAL.   "to keep the original state, if it is in insert or in delete mode&lt;/P&gt;&lt;P&gt;XVBAP-UPDKZ = 'U'.  "Try this...&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;Modify XVBAP.&lt;/P&gt;&lt;P&gt;Endif.&lt;/P&gt;&lt;P&gt;Endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Tamás&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Tamás Nyisztor on Oct 13, 2008 3:34 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Oct 2008 13:32:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-for-va02/m-p/4672050#M1098839</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-13T13:32:43Z</dc:date>
    </item>
    <item>
      <title>Re: User Exit for VA02</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-for-va02/m-p/4672051#M1098840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Instead of Modifying XVBAP in the User exit EXIT_SAPMV45A_003, write your code in the Include MV45AFZZ subroutine USEREXIT_SAVE_DOCUMENT_PREPARE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Oct 2008 13:37:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-for-va02/m-p/4672051#M1098840</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2008-10-13T13:37:53Z</dc:date>
    </item>
    <item>
      <title>Re: User Exit for VA02</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-for-va02/m-p/4672052#M1098841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Vijay.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am able to get the changed description in the sales order based on the code written in the user exit. &lt;/P&gt;&lt;P&gt;I guess for changing the order quantity at line item level, we will have to change the schedule lines also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Points awarded.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2008 06:03:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-for-va02/m-p/4672052#M1098841</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-14T06:03:01Z</dc:date>
    </item>
  </channel>
</rss>

