<?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: SAP table for Deleted Users in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-table-for-deleted-users/m-p/6404210#M1406733</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 report: RSUSR100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards, Dieter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Dec 2009 13:11:11 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-12-07T13:11:11Z</dc:date>
    <item>
      <title>SAP table for Deleted Users</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-table-for-deleted-users/m-p/6404206#M1406729</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;Can someone Pl tell us the SAP table name that stores Deleted Users Records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our requirement is we need to display a list of Deleted User in last 3 months. But I am not able to identify deleted users in USR02 table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pl advise&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Hardik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Dec 2009 12:40:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-table-for-deleted-users/m-p/6404206#M1406729</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-07T12:40:33Z</dc:date>
    </item>
    <item>
      <title>Re: SAP table for Deleted Users</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-table-for-deleted-users/m-p/6404207#M1406730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hardik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The tables are &lt;STRONG&gt;USR02&lt;/STRONG&gt;, &lt;STRONG&gt;USR04&lt;/STRONG&gt;, &lt;STRONG&gt;UST10S&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also If you know the actual user-id you will find the persnumber in ADR7 (fields ADR7-UNAME and ADR7-PERSNUMBER): look it up via ADR7-UNAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With that persnumber you should be able to find the real name of that user-id in table ADRP (field ADRP-PERSNUMBER and e.g. ADRP-NAME_TEXT).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Abhii&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Abhii on Dec 7, 2009 1:48 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Dec 2009 12:47:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-table-for-deleted-users/m-p/6404207#M1406730</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-07T12:47:28Z</dc:date>
    </item>
    <item>
      <title>Re: SAP table for Deleted Users</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-table-for-deleted-users/m-p/6404208#M1406731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Abhii,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But how do I identify if the user is deleted or not? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My reqiremet is read all users from USR02 and find out those users deleted in last 3 months.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Hardik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Dec 2009 12:58:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-table-for-deleted-users/m-p/6404208#M1406731</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-07T12:58:49Z</dc:date>
    </item>
    <item>
      <title>Re: SAP table for Deleted Users</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-table-for-deleted-users/m-p/6404209#M1406732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hardik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;USH04 will tell when was the user deleted. Since a user cannot login to the system once deleted, USH04 timestamp will be greater than USH02. i.e. the user was deleted after the last login.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Abhii&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Dec 2009 13:09:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-table-for-deleted-users/m-p/6404209#M1406732</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-07T13:09:44Z</dc:date>
    </item>
    <item>
      <title>Re: SAP table for Deleted Users</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-table-for-deleted-users/m-p/6404210#M1406733</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 report: RSUSR100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards, Dieter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Dec 2009 13:11:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-table-for-deleted-users/m-p/6404210#M1406733</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-07T13:11:11Z</dc:date>
    </item>
    <item>
      <title>Re: SAP table for Deleted Users</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-table-for-deleted-users/m-p/6404211#M1406734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Hardik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I find that a deleted user does not exist in USR02, but it will exist in USH02.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also check the t-code S_BCE_68001439(program RSUSR100), there are change docs created for users which are deleted. Debug the code &amp;amp; find out how the program behaves &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Added:&lt;/P&gt;&lt;P&gt;I just check the code in the program RSUSR100, you can check the field USH04-PROFS. For deleted users you will get the line with USH04-PROFS = 'D'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;DEL&gt;@Abhii: I think USH04 is for Change History for Auth. How does it tell the user is deleted?&lt;/DEL&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Dec 2009 13:12:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-table-for-deleted-users/m-p/6404211#M1406734</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2009-12-07T13:12:14Z</dc:date>
    </item>
    <item>
      <title>Re: SAP table for Deleted Users</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-table-for-deleted-users/m-p/6404212#M1406735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;USH04. If user was deleted - USH04-PROFS = 'D'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Dec 2009 13:20:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-table-for-deleted-users/m-p/6404212#M1406735</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-07T13:20:15Z</dc:date>
    </item>
    <item>
      <title>Re: SAP table for Deleted Users</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-table-for-deleted-users/m-p/6404213#M1406736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi  Hardik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try with USH02 &amp;amp; USH04 as I suggested earlier, you will find an answer. Also if you need to know any user ID locked or not use RSUSR200.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rehards&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Abhii&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Dec 2009 13:30:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-table-for-deleted-users/m-p/6404213#M1406736</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-07T13:30:26Z</dc:date>
    </item>
    <item>
      <title>Re: SAP table for Deleted Users</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-table-for-deleted-users/m-p/6404214#M1406737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hardik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dieter Gröhn has already given you the report which will help you to find out the list of users deleted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the different selection to generate the list as you want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Execute RSUSR100&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. In the selection screen select the start date and end date.&lt;/P&gt;&lt;P&gt;2. Selection cretarion for Changed Authorizations - Select only "Deleted Users"&lt;/P&gt;&lt;P&gt;3. Selection cretarion for Changed Header Data - Deselect all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will give you the list of users those were deleted in the period mentioned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Dieter Gröhn.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anuj Nigam&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jan 2010 13:54:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-table-for-deleted-users/m-p/6404214#M1406737</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-06T13:54:36Z</dc:date>
    </item>
    <item>
      <title>Re: SAP table for Deleted Users</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-table-for-deleted-users/m-p/6404215#M1406738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the table USH04 where PROFS = 'D'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check this copied code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
FORM CHECK_FOR_DELETED_USER. 
* When a user is deleted, a record is written to ush04, with nrpro = 1 
* and the first byte of profs = 'D'.  If the same user is then created, 
* another record is written, with a different nrpro value and with 
* profs = 'C'.  This form captures all these records and positions us 
* at the most recent one so we can check for a 'D'. 
  CLEAR ITAB4. 
  REFRESH ITAB4. 
  SELECT * FROM USH04 
    WHERE BNAME EQ ITAB1-BNAME 
      AND MODDA LE ITAB1-MODDA 
      AND MODDA GE ITAB2-MODDA. 
* Check that record is prior to current change. 
    IF USH04-MODDA EQ ITAB1-MODDA. 
      CHECK USH04-MODTI LT ITAB1-MODTI. 
    ENDIF. 
* Check that record is later than any previous change.  (This is needed 
* because simple changes to a user, such as a password change, do not 
* result in a record written to ush04.) 
    IF USH04-MODDA EQ ITAB2-MODDA. 
      CHECK USH04-MODTI GT ITAB2-MODTI. 
    ENDIF. 
    MOVE: USH04-BNAME    TO ITAB4-BNAME, 
          USH04-MODDA    TO ITAB4-MODDA, 
          USH04-MODTI    TO ITAB4-MODTI, 
          USH04-NRPRO    TO ITAB4-NRPRO, 
          USH04-PROFS(1) TO ITAB4-PROFS. 
    APPEND ITAB4. 
  ENDSELECT. 

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Keshav.T on Jan 6, 2010 7:34 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jan 2010 13:58:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-table-for-deleted-users/m-p/6404215#M1406738</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2010-01-06T13:58:52Z</dc:date>
    </item>
  </channel>
</rss>

