<?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: Sales order Validations before save in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sales-order-validations-before-save/m-p/9622635#M1761003</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rohini,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try in MV45AFZZ,USEREXIT_SAVE_DOCUMENT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the loop of xvbap read with key posex. Append those lines to final. Display messages depending on your criteria.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Madhu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Aug 2013 10:18:10 GMT</pubDate>
    <dc:creator>madhu_vadlamani</dc:creator>
    <dc:date>2013-08-06T10:18:10Z</dc:date>
    <item>
      <title>Sales order Validations before save</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sales-order-validations-before-save/m-p/9622631#M1760999</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;&lt;/P&gt;&lt;P&gt;I need to check the customer of the sales order and for the particular customer,only certain materials are allowed.If other materials are entered,then I need to give an error message.I have written the code in USEREXIT_SAVE_DOCUMENT_PREPARE and it is working fine.But now i need to do the same validation after entering the items and before clicking save.Is there a way to do the validations before clicking save (any user exit that will be triggered at item level).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Rohini&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Aug 2013 04:58:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sales-order-validations-before-save/m-p/9622631#M1760999</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-08-06T04:58:45Z</dc:date>
    </item>
    <item>
      <title>Re: Sales order Validations before save</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sales-order-validations-before-save/m-p/9622632#M1761000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What will you be clicking on instead of the save button? I don't understand what difference does it make when the check is already working correctly on save?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Aug 2013 07:35:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sales-order-validations-before-save/m-p/9622632#M1761000</guid>
      <dc:creator>Sougata</dc:creator>
      <dc:date>2013-08-06T07:35:25Z</dc:date>
    </item>
    <item>
      <title>Re: Sales order Validations before save</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sales-order-validations-before-save/m-p/9622633#M1761001</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;use the same userexit form.&lt;/P&gt;&lt;P&gt;You have access to vbap, eg:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L1S52"&gt;loop &lt;SPAN class="L1S52"&gt;at&lt;/SPAN&gt; xvbap.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L1S52"&gt;.....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L1S52"&gt;&amp;nbsp; endloop.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L1S52"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L1S52"&gt;or &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; USEREXIT_MOVE_FIELD_TO_VBAP&amp;nbsp;&amp;nbsp;&amp;nbsp; .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Aug 2013 08:07:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sales-order-validations-before-save/m-p/9622633#M1761001</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-08-06T08:07:09Z</dc:date>
    </item>
    <item>
      <title>Re: Sales order Validations before save</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sales-order-validations-before-save/m-p/9622634#M1761002</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;If the user clicks "Enter" after typing the material number,then my logic should be executed.This is required otherwise the user will enter everything(for example after entering 10 materials)&amp;nbsp; and then find that the order cannot be saved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rohini&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Aug 2013 08:52:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sales-order-validations-before-save/m-p/9622634#M1761002</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-08-06T08:52:20Z</dc:date>
    </item>
    <item>
      <title>Re: Sales order Validations before save</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sales-order-validations-before-save/m-p/9622635#M1761003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rohini,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try in MV45AFZZ,USEREXIT_SAVE_DOCUMENT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the loop of xvbap read with key posex. Append those lines to final. Display messages depending on your criteria.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Madhu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Aug 2013 10:18:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sales-order-validations-before-save/m-p/9622635#M1761003</guid>
      <dc:creator>madhu_vadlamani</dc:creator>
      <dc:date>2013-08-06T10:18:10Z</dc:date>
    </item>
    <item>
      <title>Re: Sales order Validations before save</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sales-order-validations-before-save/m-p/9622636#M1761004</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;Try the User Exit '&lt;SPAN style="font-size: 10pt;"&gt;&lt;STRONG&gt;USEREXIT_CHECK_VBAP&lt;/STRONG&gt;' in the Include &lt;STRONG&gt;MV45AFZB. &lt;/STRONG&gt;You will have Item detail in VBAP and all items in XVBAP[].&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thanks &amp;amp; Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Bala Krishna&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Aug 2013 16:15:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sales-order-validations-before-save/m-p/9622636#M1761004</guid>
      <dc:creator>former_member585060</dc:creator>
      <dc:date>2013-08-06T16:15:34Z</dc:date>
    </item>
    <item>
      <title>Re: Sales order Validations before save</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sales-order-validations-before-save/m-p/9622637#M1761005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rohini,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dont think you need to use any User Exits for Blocking the Materials based on the Customer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All you can do is to use the Material Inclusion/Exclusion rule based on the Customer in &lt;STRONG&gt;VB01/VB02/VB03&lt;/STRONG&gt; transaction for Create/Change and Display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Steps&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;1) Enter the List/Excl Type as Listing in VB01 and Enter&lt;/P&gt;&lt;P&gt;2) Enter the Customer Code and the validity period and enter all the list of materials that the customer is allowed and save the entries&lt;/P&gt;&lt;P&gt;3) On creation of the SO, only these materials will be allowed for the Customer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note : System checks for the Exclusion List first and then checks for the Listing (Inclusion List)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rewards points if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;AyyamPerumal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Aug 2013 03:35:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sales-order-validations-before-save/m-p/9622637#M1761005</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-08-07T03:35:28Z</dc:date>
    </item>
  </channel>
</rss>

