<?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  VA21 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-va21/m-p/1058191#M91055</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          No. The routine which i have written will check is there is any quatations already created for the customer is so it will pop-up a message and for user to decide to save it or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If he do not want to save it , the user should able to change the details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope its clear...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Dec 2005 05:58:36 GMT</pubDate>
    <dc:creator>VijayasekarK</dc:creator>
    <dc:date>2005-12-15T05:58:36Z</dc:date>
    <item>
      <title>User Exit  VA21</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-va21/m-p/1058187#M91051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Friends ,&lt;/P&gt;&lt;P&gt;               While creating a Quatation thru transaction VA21  ,  system has to check for the same customer already is there are any open quatations aganist the same material and the user will decide whether to save the quatation or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have used exit MV45AFZZ(USEREXIT_SAVE_DOCUMENT_PREPARE)&lt;/P&gt;&lt;P&gt;were if the above condition met i wil pop up a screen for the user to decide save it or not.  If user clicks&lt;/P&gt;&lt;P&gt;NO , iam showing error message and the user has to go our of VA21 transaction and create a new one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there is any way where i can stop the SAVE operation and allow user to change the details ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2005 05:41:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-va21/m-p/1058187#M91051</guid>
      <dc:creator>VijayasekarK</dc:creator>
      <dc:date>2005-12-15T05:41:52Z</dc:date>
    </item>
    <item>
      <title>Re: User Exit  VA21</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-va21/m-p/1058188#M91052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if he says 'NO' then give error message, then it may stop. or try to exit form the trxn.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2005 05:43:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-va21/m-p/1058188#M91052</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-15T05:43:54Z</dc:date>
    </item>
    <item>
      <title>Re: User Exit  VA21</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-va21/m-p/1058189#M91053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Vijay,&lt;/P&gt;&lt;P&gt;          Thanks for your quick response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         I have given error message. But its not enabling the user to change the details. What i need is , after error message user need to change the details and save it once again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2005 05:46:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-va21/m-p/1058189#M91053</guid>
      <dc:creator>VijayasekarK</dc:creator>
      <dc:date>2005-12-15T05:46:30Z</dc:date>
    </item>
    <item>
      <title>Re: User Exit  VA21</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-va21/m-p/1058190#M91054</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;is it a custom field on screen, i mean did you added that field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2005 05:48:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-va21/m-p/1058190#M91054</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-15T05:48:26Z</dc:date>
    </item>
    <item>
      <title>Re: User Exit  VA21</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-va21/m-p/1058191#M91055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          No. The routine which i have written will check is there is any quatations already created for the customer is so it will pop-up a message and for user to decide to save it or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If he do not want to save it , the user should able to change the details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope its clear...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2005 05:58:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-va21/m-p/1058191#M91055</guid>
      <dc:creator>VijayasekarK</dc:creator>
      <dc:date>2005-12-15T05:58:36Z</dc:date>
    </item>
    <item>
      <title>Re: User Exit  VA21</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-va21/m-p/1058192#M91056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;after he says No , then try to use &amp;lt;b&amp;gt;leave to screen 0&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it will work..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2005 06:03:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-va21/m-p/1058192#M91056</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-15T06:03:21Z</dc:date>
    </item>
    <item>
      <title>Re: User Exit  VA21</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-va21/m-p/1058193#M91057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i think if he says NO, then a PAI module should run which wud call the screen again with the earlier details he had entered. Then he can change the details again.&lt;/P&gt;&lt;P&gt;Please acknowledge if it works. m also new in user-exits.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bikash&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2005 06:17:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-va21/m-p/1058193#M91057</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-15T06:17:22Z</dc:date>
    </item>
    <item>
      <title>Re: User Exit  VA21</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-va21/m-p/1058194#M91058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         It is not working. It's is coming out from the transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2005 06:35:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-va21/m-p/1058194#M91058</guid>
      <dc:creator>VijayasekarK</dc:creator>
      <dc:date>2005-12-15T06:35:14Z</dc:date>
    </item>
    <item>
      <title>Re: User Exit  VA21</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-va21/m-p/1058195#M91059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;or do you know the screen number then you can try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set screen 500 (number).&lt;/P&gt;&lt;P&gt;leave screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2005 06:38:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-va21/m-p/1058195#M91059</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-15T06:38:48Z</dc:date>
    </item>
    <item>
      <title>Re: User Exit  VA21</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-va21/m-p/1058196#M91060</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;There is a variable called &amp;lt;b&amp;gt;DA_SUBRC&amp;lt;/b&amp;gt; which is normally used during Save to stop save at certain stages..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I suggest when user clicks NO, set DA_SUBRC = 4 inside USEREXIT_SAVE_DOCUMENT_PREPARE and give an info message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this out and get back if you have doubts..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Did this help or not?&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Srikanth&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Srikanth Pinnamaneni&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2005 06:48:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-va21/m-p/1058196#M91060</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-15T06:48:46Z</dc:date>
    </item>
    <item>
      <title>Re: User Exit  VA21</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-va21/m-p/1058197#M91061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Srikanth ,&lt;/P&gt;&lt;P&gt;              I tried to assign DA_SUBRC = 4  inside my User Exit  but  it gives..me a compilation error that object not declared.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you help..me to overcome this problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2005 07:37:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-va21/m-p/1058197#M91061</guid>
      <dc:creator>VijayasekarK</dc:creator>
      <dc:date>2005-12-15T07:37:17Z</dc:date>
    </item>
    <item>
      <title>Re: User Exit  VA21</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-va21/m-p/1058198#M91062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry it's my fault, it was local variable which I mistook for a global variable. Then I can think of another option when user clicks on NO which is following,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  FCODE = 'ENT1'.&lt;/P&gt;&lt;P&gt;  PERFORM fcode_bearbeiten.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Hope this helps..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2005 07:57:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-va21/m-p/1058198#M91062</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-15T07:57:47Z</dc:date>
    </item>
    <item>
      <title>Re: User Exit  VA21</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-va21/m-p/1058199#M91063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Srikanth ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                Thanks for your reply.&lt;/P&gt;&lt;P&gt;                 I have tried this option also. Its not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2005 08:04:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-va21/m-p/1058199#M91063</guid>
      <dc:creator>VijayasekarK</dc:creator>
      <dc:date>2005-12-15T08:04:37Z</dc:date>
    </item>
    <item>
      <title>Re: User Exit  VA21</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-va21/m-p/1058200#M91064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am assuming that you are not giving an error message any more (try giving a warning or info message) and then try some thing like the following, (I know this is getting redundant but I found it one of our customer's systems)..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;fcode = 'ENT1'.&lt;/P&gt;&lt;P&gt;LEAVE TO SCREEN sy-dynnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2005 08:13:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-va21/m-p/1058200#M91064</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-15T08:13:07Z</dc:date>
    </item>
    <item>
      <title>Re: User Exit  VA21</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-va21/m-p/1058201#M91065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try one of these &lt;/P&gt;&lt;P&gt;set screen 'number'.&lt;/P&gt;&lt;P&gt;leave screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or leave to screen 'number'..&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;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Dec 2005 08:15:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-va21/m-p/1058201#M91065</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-15T08:15:15Z</dc:date>
    </item>
  </channel>
</rss>

