<?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 and error messages (E) to block a process in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-and-error-messages-e-to-block-a-process/m-p/6511385#M1423560</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  positions for which the user is authorized -&amp;gt; release the strategy step;&lt;/P&gt;&lt;P&gt;- positions for which the user is NOT authorized -&amp;gt; no release, and message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think so both are not possible simultaneously.&lt;/P&gt;&lt;P&gt;Only one at a time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or by using enhancement spots, you can delete the error records from the data ... some thing like that...But its more complicated to get it done,  also there is a possibilty that the error records can be accumulated and can be displayed as a log at last.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Jan 2010 20:08:45 GMT</pubDate>
    <dc:creator>kesavadas_thekkillath</dc:creator>
    <dc:date>2010-01-08T20:08:45Z</dc:date>
    <item>
      <title>User exit and error messages (E) to block a process</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-and-error-messages-e-to-block-a-process/m-p/6511384#M1423559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello gurus,&lt;/P&gt;&lt;P&gt;in my requirement, I simply have to work on the transaction ME54 in this way: every Purchase Requisition position must be checked in order to verify if strategy release process is allowed for the user currently executing the transaction.&lt;/P&gt;&lt;P&gt;The control is quite simple; there's a Z table in which are stored the authorized users, coupled with a society code to which they refer. So, if a PR position "belongs" to the society XYZ and in this Z table the user is present coupled with the society XYZ, then the release of the step is allowed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please consider the following scenario: an unauthorized user try to release strategy for a Purchase Req with 10 positions. He then select all the positions in ME54, and click on the "Release" button. The user exit involved in this process is EXIT_SAPLBBPK_001 (include ZXBBPU04); the process flow should trigger this exit for every selected position of the Purchase Requisition.&lt;/P&gt;&lt;P&gt;The problem is that, if the release is not allowed for a certain position, an error message is returned. In such a scenario, the execution of the process stops without checking the remaining positions. &lt;/P&gt;&lt;P&gt;In our scenario, suppose the second position of the PR could not be released; then all the remaining position (from 3 to 10) are then not checked nor released. We wonder if it's possible to guarantee, for every position in the selection that:&lt;/P&gt;&lt;P&gt;- positions for which the user is authorized -&amp;gt; release the strategy step;&lt;/P&gt;&lt;P&gt;- positions for which the user is NOT authorized -&amp;gt; no release, and message.&lt;/P&gt;&lt;P&gt;This seems actually not possible since the code 'E' for MESSAGE seems to represent a blocking error, and then once it's triggered, the release process itself stops.&lt;/P&gt;&lt;P&gt;Is there any way to obtain such a behaviour? Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jan 2010 13:24:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-and-error-messages-e-to-block-a-process/m-p/6511384#M1423559</guid>
      <dc:creator>matteo_montalto</dc:creator>
      <dc:date>2010-01-08T13:24:14Z</dc:date>
    </item>
    <item>
      <title>Re: User exit and error messages (E) to block a process</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-and-error-messages-e-to-block-a-process/m-p/6511385#M1423560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  positions for which the user is authorized -&amp;gt; release the strategy step;&lt;/P&gt;&lt;P&gt;- positions for which the user is NOT authorized -&amp;gt; no release, and message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think so both are not possible simultaneously.&lt;/P&gt;&lt;P&gt;Only one at a time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or by using enhancement spots, you can delete the error records from the data ... some thing like that...But its more complicated to get it done,  also there is a possibilty that the error records can be accumulated and can be displayed as a log at last.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jan 2010 20:08:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-and-error-messages-e-to-block-a-process/m-p/6511385#M1423560</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2010-01-08T20:08:45Z</dc:date>
    </item>
    <item>
      <title>Re: User exit and error messages (E) to block a process</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-and-error-messages-e-to-block-a-process/m-p/6511386#M1423561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Matteo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the problem is you can not display more than one message in one process step. You could issue a success message with addition DISPLAY LIKE 'E' but the user will then see only the last message issued because after success message the program flow is continued.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should consider to create an application log. Check function group SBAL. I don't remember all the details. We created a class with some methods. So all users just crete an object of the class, that creates the application  log. Then for every message,  we use message ... INTO &amp;lt;string variable&amp;gt;. The INTO clause will put the message text into the string. program flow is not interrupted but SY-MSGID, ~TY, ~NO, ~V1 - ~V4 are filled. Our method prot-&amp;gt;add_sy-msg uses the values to add the message to the protocol. At the end of the process we call method display and get a popup with all messages.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This way you can exclude the unauthorized lnes and inform the user in the application log display. Finally you SAVE the log and can check it anytime using transaction  SLG1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jan 2010 23:28:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-and-error-messages-e-to-block-a-process/m-p/6511386#M1423561</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2010-01-08T23:28:39Z</dc:date>
    </item>
  </channel>
</rss>

