<?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: VA01 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/va01/m-p/1154521#M118473</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried but still it's not working B'cos The SAP standard message for Enter Quantity(warning message VU 001) is Overlapping my message. So it's not coming to display when i give value to Material number &amp;amp; press enter. Also it's still displaying once cursor moved to next item level ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-subha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Feb 2006 20:06:52 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-02-02T20:06:52Z</dc:date>
    <item>
      <title>VA01</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/va01/m-p/1154513#M118465</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 put the below code in USEREXIT_MOVE_FIELD_TO_KOMKD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;TABLES : KOTD011, KOTD001.&lt;/P&gt;&lt;P&gt;DATA V_KNUMH like KOTD001-KNUMH.&lt;/P&gt;&lt;P&gt;select single KNUMH from KOTD011 into V_KNUMH where matnr = VBAP-MATNR&lt;/P&gt;&lt;P&gt;IF SY-SUBRC = 0 .&lt;/P&gt;&lt;P&gt;  MESSAGE s901(VU)."Material substitution Exist&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;  MESSAGE s902(VU)." Material substituion Not exist&lt;/P&gt;&lt;P&gt;endif.&amp;lt;/b&amp;gt; It's working fine. But this message is still displaying after cursor moved to another input field (that's to get another Material number in Va01).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to display this message only " &amp;lt;i&amp;gt;When i give value to material number in VA01 &amp;amp; press enter message should come, after that cursor goes to Quanity field give value &amp;amp; press enter cursor should move to next line to get another material number, this time message should not display."&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;P&gt;In which userExit i need to put this code? Am i putting code in wrong place??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Feb 2006 17:02:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/va01/m-p/1154513#M118465</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-02T17:02:42Z</dc:date>
    </item>
    <item>
      <title>Re: VA01</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/va01/m-p/1154514#M118466</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;you code is fine the USEREXIT also correct just put one more condiation as &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : v_matnr like VBAP-MATNR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if v_matnr ne VBAP-MATNR.&lt;/P&gt;&lt;P&gt;v_matnr = VBAP-MATNR&lt;/P&gt;&lt;P&gt;write your code.&lt;/P&gt;&lt;P&gt;enfif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this will work fine just check it let me know .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Feb 2006 17:46:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/va01/m-p/1154514#M118466</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-02T17:46:07Z</dc:date>
    </item>
    <item>
      <title>Re: VA01</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/va01/m-p/1154515#M118467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The correct place to put you code would be at USEREXIT_MOVE_FIELD_TO_VBAP&lt;/P&gt;&lt;P&gt;In there the field SVBAP-TABIX is 0 when the line item is created and greater than 0 (normally 1) when the line item is changed.&lt;/P&gt;&lt;P&gt;Just put your code between &lt;/P&gt;&lt;P&gt;   &amp;lt;b&amp;gt;&amp;lt;b&amp;gt;IF SVBAP-TABIX EQ 0.&amp;lt;/b&amp;gt;&amp;lt;/b&amp;gt; and&lt;/P&gt;&lt;P&gt;   &amp;lt;b&amp;gt;ENDIF.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Feb 2006 18:01:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/va01/m-p/1154515#M118467</guid>
      <dc:creator>vyende</dc:creator>
      <dc:date>2006-02-02T18:01:00Z</dc:date>
    </item>
    <item>
      <title>Re: VA01</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/va01/m-p/1154516#M118468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No. I tried it's not working.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Feb 2006 18:12:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/va01/m-p/1154516#M118468</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-02T18:12:22Z</dc:date>
    </item>
    <item>
      <title>Re: VA01</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/va01/m-p/1154517#M118469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No it's also not working. Exactly i need when i put value in Material line item then press enter warning message will come as "Enter quanity". before that message i should display my message. Also once after i put value for Quantity &amp;amp; press enter cursor will go to next item level to get input next material, that time my message should not display. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i tried both code but no effect. It's working same as my first code.......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please guide.........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-subha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Feb 2006 18:22:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/va01/m-p/1154517#M118469</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-02T18:22:49Z</dc:date>
    </item>
    <item>
      <title>Re: VA01</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/va01/m-p/1154518#M118470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;help me please................&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-subha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Feb 2006 19:00:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/va01/m-p/1154518#M118470</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-02T19:00:01Z</dc:date>
    </item>
    <item>
      <title>Re: VA01</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/va01/m-p/1154519#M118471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unless you are in a version higher than 4.6C (my current version, haven't work in higher versions) this should work. Might help if your code is the first thing on the VBAP userexit since other check might interfere.  &lt;/P&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;IF SVBAP-TABIX EQ 0.&lt;/P&gt;&lt;P&gt;      &amp;lt;your message&amp;gt;&lt;/P&gt;&lt;P&gt;ENDIF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That is: without the database read, and we can take it from there.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Feb 2006 19:06:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/va01/m-p/1154519#M118471</guid>
      <dc:creator>vyende</dc:creator>
      <dc:date>2006-02-02T19:06:10Z</dc:date>
    </item>
    <item>
      <title>Re: VA01</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/va01/m-p/1154520#M118472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try USEREXIT_CHECK_VBAP in MV45AFZB.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Feb 2006 19:14:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/va01/m-p/1154520#M118472</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-02T19:14:25Z</dc:date>
    </item>
    <item>
      <title>Re: VA01</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/va01/m-p/1154521#M118473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried but still it's not working B'cos The SAP standard message for Enter Quantity(warning message VU 001) is Overlapping my message. So it's not coming to display when i give value to Material number &amp;amp; press enter. Also it's still displaying once cursor moved to next item level ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-subha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Feb 2006 20:06:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/va01/m-p/1154521#M118473</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-02T20:06:52Z</dc:date>
    </item>
    <item>
      <title>Re: VA01</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/va01/m-p/1154522#M118474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Subha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the USEREXIT_CHECK_VBAP routine in program MV45AFZB which Sharad had suggested and the code would be like this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TABLES : KOTD011, KOTD001.
DATA V_KNUMH like KOTD001-KNUMH.
select single KNUMH from KOTD011 into V_KNUMH where matnr = &amp;lt;b&amp;gt;XVBAP-MATNR&amp;lt;/b&amp;gt;
IF SY-SUBRC = 0 .
MESSAGE s901(VU)."Material substitution Exist
else.
MESSAGE s902(VU)." Material substituion Not exist
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls see if this helps...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Renjith&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Feb 2006 20:32:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/va01/m-p/1154522#M118474</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-02T20:32:22Z</dc:date>
    </item>
    <item>
      <title>Re: VA01</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/va01/m-p/1154523#M118475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I haven't tried this out, but perhaps changing your message type from 'S' to 'I' will resolve the problem with warning message VU001.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the warning message is being sent after the success message (but prior to the next screen being displayed) then the success message (which is intended for the next screen) will not be displayed.  This is because only one of the messages can be shown on the next screen, and if the 'W' message was sent after the 'S' message then warning message VU001 will win out over the 'S' message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Again, this is just an off-the-cuff hunch.  Good luck!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;James Gaddis&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Feb 2006 20:44:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/va01/m-p/1154523#M118475</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-02T20:44:24Z</dc:date>
    </item>
    <item>
      <title>Re: VA01</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/va01/m-p/1154524#M118476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to display message like S type b'cos if i give message type as I then Popup will come. this should not come....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-subha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Feb 2006 21:20:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/va01/m-p/1154524#M118476</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-02T21:20:22Z</dc:date>
    </item>
    <item>
      <title>Re: VA01</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/va01/m-p/1154525#M118477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I wonder if a warning 'W' type message might work for you, or would your message simply be overtaken by the SAP warning as it is with the 'S'?  A warning would not give a popup unless the user configures their SAPGUI to do so.  Since I cannot get the registration key for changing the user-exit code on my test system, I'm left with only guessing (sorry)...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jamie&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Feb 2006 21:46:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/va01/m-p/1154525#M118477</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-02T21:46:29Z</dc:date>
    </item>
    <item>
      <title>Re: VA01</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/va01/m-p/1154526#M118478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That too not wanted. b'cos if i give warning message then It will ask for User additional enter key press to proceed further. This too my user don't want......??????&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's why i don't know how can i achieve this without touching standard card. B'cos if i give S message then it's overlapping by Sap standard warning message (Enter Quantity).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any ideas??????&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Feb 2006 22:03:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/va01/m-p/1154526#M118478</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-02T22:03:42Z</dc:date>
    </item>
    <item>
      <title>Re: VA01</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/va01/m-p/1154527#M118479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sounds like you have to keep track of each line item and only display the message once (unless the material number has changed).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How about creating an internal table in MV45ATZZ&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: begin of zz_itab occurs 0,
        posnr      type posnr,
        matnr      type matnr,
      end of zz_itab.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Refresh the table for each order in MV45AFZA in&lt;/P&gt;&lt;P&gt;USEREXIT_REFRESH_DOCUMENT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;refresh zz_itab.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In whichever user exit you do your code in, only check once unless the material number has changed&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;read table zz_itab with key posnr = vbap-posnr.
* record found
if sy-subrc = 0.
* check if material has changed
  if zz_itab-matnr &amp;lt;&amp;gt; vbap-matnr.
*.... do your message code 
*   save new material number
      zz_itab-matnr = vbap-matnr.
      modify zz_itab index sy-tabix.
* else - already done- no message.
  endif.
else.
* record not found
* add material
  zz_itab-posnr = vbap-posnr.
  zz_itab-matnr = vbap-matnr.      
  append zz_itab.
*.... do your message code 
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is a hack...  did not check syntax.  Should use a TYPE instead of BEGIN OCCURS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The user exit should be restricted as well..&lt;/P&gt;&lt;P&gt;transaction code (VA01, VA02), orders only (VBAK-VBTYP), sales organization (VBAK-VKORG), etc....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Feb 2006 22:24:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/va01/m-p/1154527#M118479</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-02T22:24:29Z</dc:date>
    </item>
    <item>
      <title>Re: VA01</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/va01/m-p/1154528#M118480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Subha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have opened numerous threads around this project.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure that you are prepared for a project of this complexity...  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you speak to your manager about getting help?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Feb 2006 23:45:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/va01/m-p/1154528#M118480</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-02-02T23:45:38Z</dc:date>
    </item>
  </channel>
</rss>

