<?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 Facing Problem when try to restrict multiple condition type using MV45AFZZ in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/facing-problem-when-try-to-restrict-multiple-condition-type-using-mv45afzz/m-p/11578878#M1938647</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to restrict multiple condition type using Include &lt;SPAN lang="EN-IN" style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;MV45AFZZ.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-IN" style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-IN" style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;It is working and we are also getting error message on click of SAVE button also.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-IN" style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-IN" style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;But then when we press enter it is cumming out of tcode instead of going to edit mode.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-IN" style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-IN" style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;Kindly help me to solve this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-IN" style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-IN" style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;"""""" Codding we have done for reference """""&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-IN" style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Include MV45AFZZ&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM USEREXIT_SAVE_DOCUMENT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data: lv_cnt1 type i, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lv_cnt2 type i, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; it_temp type table of komv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CHECK&amp;nbsp; sy-tcode = 'VA01'&amp;nbsp; AND&amp;nbsp;&amp;nbsp;&amp;nbsp; VBAK-AUART = 'ZPS'&amp;nbsp; AND NOT xkomv[] IS INITIAL.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;it_temp[] = xkomv[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sort it_temp by kschl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;delete adjacent duplicates from it_temp comparing kschl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lv_cnt1 = lines( it_temp ). &lt;/P&gt;&lt;P&gt;lv_cnt2 = lines( xkomv ).&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if lv_cnt1 NE lv_cnt2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; message 'Duplicate entries exit' type ‘E’.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-IN" style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-IN" style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-IN" style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;Thanks &amp;amp; Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-IN" style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;Dhaval Raval&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-IN" style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-IN" style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 05 Mar 2016 05:50:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2016-03-05T05:50:53Z</dc:date>
    <item>
      <title>Facing Problem when try to restrict multiple condition type using MV45AFZZ</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/facing-problem-when-try-to-restrict-multiple-condition-type-using-mv45afzz/m-p/11578878#M1938647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to restrict multiple condition type using Include &lt;SPAN lang="EN-IN" style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;MV45AFZZ.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-IN" style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-IN" style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;It is working and we are also getting error message on click of SAVE button also.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-IN" style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-IN" style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;But then when we press enter it is cumming out of tcode instead of going to edit mode.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-IN" style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-IN" style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;Kindly help me to solve this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-IN" style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-IN" style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;"""""" Codding we have done for reference """""&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-IN" style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Include MV45AFZZ&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM USEREXIT_SAVE_DOCUMENT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data: lv_cnt1 type i, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lv_cnt2 type i, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; it_temp type table of komv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CHECK&amp;nbsp; sy-tcode = 'VA01'&amp;nbsp; AND&amp;nbsp;&amp;nbsp;&amp;nbsp; VBAK-AUART = 'ZPS'&amp;nbsp; AND NOT xkomv[] IS INITIAL.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;it_temp[] = xkomv[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sort it_temp by kschl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;delete adjacent duplicates from it_temp comparing kschl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lv_cnt1 = lines( it_temp ). &lt;/P&gt;&lt;P&gt;lv_cnt2 = lines( xkomv ).&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if lv_cnt1 NE lv_cnt2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; message 'Duplicate entries exit' type ‘E’.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-IN" style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-IN" style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-IN" style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;Thanks &amp;amp; Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-IN" style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;Dhaval Raval&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-IN" style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN-IN" style="font-size: 11.0pt; font-family: 'Calibri','sans-serif';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Mar 2016 05:50:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/facing-problem-when-try-to-restrict-multiple-condition-type-using-mv45afzz/m-p/11578878#M1938647</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-03-05T05:50:53Z</dc:date>
    </item>
    <item>
      <title>Re: Facing Problem when try to restrict multiple condition type using MV45AFZZ</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/facing-problem-when-try-to-restrict-multiple-condition-type-using-mv45afzz/m-p/11578879#M1938648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Read documentation in include source and online documentation and some (of many) threads in scn, you aren't allowed to update or even check data in this form, use &lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;USEREXIT_SAVE_DOCUMENT_PREPARE&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;USEREXIT_SAVE_DOCUMENT_PREPARE&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;SPAN style="font-family: Arial; font-size: 10pt;"&gt;Use this user exit to make certain changes or checks immediately before saving a document. &lt;SPAN style="text-decoration: underline;"&gt;It is the last possibility for changing&lt;/SPAN&gt; or checking a document before posting.&lt;/SPAN&gt;&lt;/P&gt;

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;Reference: &lt;A class="toc_item_label" href="http://help.sap.com/saphelp_46c/helpdata/en/1b/f62c7dd435d1118b3f0060b03ca329/content.htm?frameset=/en/1c/f62c7dd435d1118b3f0060b03ca329/frameset.htm&amp;amp;current_toc=/en/64/72369adc56d11195100060b03c6b76/plain.htm&amp;amp;node_id=29&amp;amp;show_children=false"&gt;User Exits in Sales&lt;/A&gt; /&amp;nbsp; &lt;A href="http://help.sap.com/saphelp_46c/helpdata/en/1c/f62c7dd435d1118b3f0060b03ca329/content.htm?frameset=/en/1c/f62c7dd435d1118b3f0060b03ca329/frameset.htm&amp;amp;current_toc=/en/64/72369adc56d11195100060b03c6b76/plain.htm&amp;amp;node_id=30"&gt;User Exits In Sales Document Processing&lt;/A&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Mar 2016 09:51:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/facing-problem-when-try-to-restrict-multiple-condition-type-using-mv45afzz/m-p/11578879#M1938648</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2016-03-08T09:51:01Z</dc:date>
    </item>
  </channel>
</rss>

