<?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 problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-problem/m-p/7577024#M1565984</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for reply, but I don't know how to get infotype number in a variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Waqas Rashid&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Jan 2011 11:09:19 GMT</pubDate>
    <dc:creator>waqas_rashid</dc:creator>
    <dc:date>2011-01-26T11:09:19Z</dc:date>
    <item>
      <title>User exit problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-problem/m-p/7577022#M1565982</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;My requirement is to stop deletion of infotype 2001 record for some specific users. I am not able to achieve this through authorization, as through authorization if a user is given create access automatically he gets modify and delete access.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, I have tried &lt;STRONG&gt;EXIT_SAPFP50M_002&lt;/STRONG&gt; user exit from &lt;STRONG&gt;PBAS0001&lt;/STRONG&gt; enhancement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem with this user exit is that it is triggered for all infotypes. Since I want this to execute for only infotype 2001 and not for all infotypes in PA30. Anyone have an idea how to achieve this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Following is my code in exit:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
Case sy-ucomm.
  When 'UPDL'.
    Message 'Record cannot be deleted.' Type 'E'.
EndCase.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Waqas Rashid&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Moderator message: please use more descriptive subject lines for your posts.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Thomas Zloch on Jan 26, 2011 3:48 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jan 2011 09:24:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-problem/m-p/7577022#M1565982</guid>
      <dc:creator>waqas_rashid</dc:creator>
      <dc:date>2011-01-26T09:24:50Z</dc:date>
    </item>
    <item>
      <title>Re: User exit problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-problem/m-p/7577023#M1565983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are able to identify the infotype (in a variable) inside the userexit by using the existing parameters of the userexit then you can achieve this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jan 2011 10:23:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-problem/m-p/7577023#M1565983</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-26T10:23:07Z</dc:date>
    </item>
    <item>
      <title>Re: User exit problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-problem/m-p/7577024#M1565984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for reply, but I don't know how to get infotype number in a variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Waqas Rashid&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jan 2011 11:09:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-problem/m-p/7577024#M1565984</guid>
      <dc:creator>waqas_rashid</dc:creator>
      <dc:date>2011-01-26T11:09:19Z</dc:date>
    </item>
    <item>
      <title>Re: User exit problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-problem/m-p/7577025#M1565985</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 this.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CASE INNNN-INFTY.

 WHEN '2001'.
   "Your code comes here.
ENDCASE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jovito&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jan 2011 14:27:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/user-exit-problem/m-p/7577025#M1565985</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-26T14:27:41Z</dc:date>
    </item>
  </channel>
</rss>

