<?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: Using BAPI_USER_DELETE in receiving system to delete user in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-bapi-user-delete-in-receiving-system-to-delete-user/m-p/1763646#M330351</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shyam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;I don't get any error msg in my receiving system. User is getting deleted by the program in receiving system.&lt;/P&gt;&lt;P&gt;But my problem is it is not reflecting in CUA (reverse way). Because of this, if I check in receiving system for user I don't get but if I check in CUA system for the same receiving system I can see the user. And if I distribute the user for the same receiving system from CUA that user is appearing again in receiving system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to know, is there any way to push the deletion IDOC from receiving system to CUA. So that user will be deleted from both systems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Deepak&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Dec 2006 18:50:26 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-12-21T18:50:26Z</dc:date>
    <item>
      <title>Using BAPI_USER_DELETE in receiving system to delete user</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-bapi-user-delete-in-receiving-system-to-delete-user/m-p/1763644#M330349</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;We have CUA in place with 32 receiving systems connected.&lt;/P&gt;&lt;P&gt;I have one program which I want to run in each receiving systems. This program will do following actions for Inactive users (those who didn't logon to system for #of days):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Notify User&lt;/P&gt;&lt;P&gt;- Lock / change validity date for a user&lt;/P&gt;&lt;P&gt;- Delete user&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since we have CUA in place, though the deletion is happening successfully, it is deleting user in the individual receiving system and not in the CUA system.&lt;/P&gt;&lt;P&gt;Hence in CUA system that user is still visible and if I save that user in CUA it is creating the same again in the receiving system where it was deleted.&lt;/P&gt;&lt;P&gt;That program is using FU BAPI_USER_DELETE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help me to understand usage of BAPI_USER_DELETE? Am I using it correctly?&lt;/P&gt;&lt;P&gt;Is there any way in CUA environment?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;DAA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Dec 2006 18:07:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-bapi-user-delete-in-receiving-system-to-delete-user/m-p/1763644#M330349</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-21T18:07:09Z</dc:date>
    </item>
    <item>
      <title>Re: Using BAPI_USER_DELETE in receiving system to delete user</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-bapi-user-delete-in-receiving-system-to-delete-user/m-p/1763645#M330350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Deepak,&lt;/P&gt;&lt;P&gt;You want to delete a user in transactions SU01 or SU10, but you have no authorization to delete the infotype 0105 assigned to the user in HR.&lt;/P&gt;&lt;P&gt;The same error occurs in systems in which HR is active if you do one of the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You remove the authorization for a child system from the user in the central system of a Central User Administration (CUA).&lt;/P&gt;&lt;P&gt;You  delete the user in the child system using an IDoc.&lt;/P&gt;&lt;P&gt;However, these USERCLONE IDocs (method 'Delete') hang in status 51 with the following error message: &lt;/P&gt;&lt;P&gt; 026(01) Internal error: FM &amp;lt;user name&amp;gt;,&lt;/P&gt;&lt;P&gt;exception: internal error &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You delete the user with programs that use the BAPI_USER_DELETE function module (SAP-internal, customer-specific or partner products).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please refer Note 704088 - SU01: Missing HR authorization when you delete a user for clarification.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Shyam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Dec 2006 18:41:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-bapi-user-delete-in-receiving-system-to-delete-user/m-p/1763645#M330350</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-21T18:41:54Z</dc:date>
    </item>
    <item>
      <title>Re: Using BAPI_USER_DELETE in receiving system to delete user</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-bapi-user-delete-in-receiving-system-to-delete-user/m-p/1763646#M330351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shyam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;I don't get any error msg in my receiving system. User is getting deleted by the program in receiving system.&lt;/P&gt;&lt;P&gt;But my problem is it is not reflecting in CUA (reverse way). Because of this, if I check in receiving system for user I don't get but if I check in CUA system for the same receiving system I can see the user. And if I distribute the user for the same receiving system from CUA that user is appearing again in receiving system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to know, is there any way to push the deletion IDOC from receiving system to CUA. So that user will be deleted from both systems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Deepak&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Dec 2006 18:50:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-bapi-user-delete-in-receiving-system-to-delete-user/m-p/1763646#M330351</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-21T18:50:26Z</dc:date>
    </item>
    <item>
      <title>Re: Using BAPI_USER_DELETE in receiving system to delete user</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-bapi-user-delete-in-receiving-system-to-delete-user/m-p/1763647#M330352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, first of all: it is not a good idea to delete user accounts - since the userID is part of the database key in many change records (resulting from the various actions that have been performed by a user - before he became "inactive"). The better solution is: restrict the account validity (by setting the "not after" date to a date in the past, e.g. yesterday).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When using a Central User Administration (CUA) the user account will be created once centrally and then again once per CUA client system (if system-specific roles / authorizations are assigned). Deleting an account only takes effect in the CUA client systems (similiar to removing role / authorization assignments). But frankly speaking, I'm not that familiar with CUA and user management; maybe there is a way to delete a user account globally (maybe it's also a matter of CUA customizing). But anyway: it's better to restrict the account validity than to delete the account (see above).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Wolfgang&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Dec 2006 10:01:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-bapi-user-delete-in-receiving-system-to-delete-user/m-p/1763647#M330352</guid>
      <dc:creator>Wolfgang_Janzen</dc:creator>
      <dc:date>2006-12-27T10:01:18Z</dc:date>
    </item>
    <item>
      <title>Re: Using BAPI_USER_DELETE in receiving system to delete user</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-bapi-user-delete-in-receiving-system-to-delete-user/m-p/1763648#M330353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;BAPI_USER_DELETE only works locally. (That's the actual design....). so the CUA-mastersystem never gets knowledge about the local deletion of that user. At next distribution from the CUA-master, the user gets created again, as the systemassignement to that particular childsystem still exists in the CUA-master.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a current developementproject going on to provide a functionmodule, which also cleans up the systemassignement in the CUA-mastersystem, if a user gets deleted locally on a childsystem.(even if this local maintenance is controversal to the idea of a 'CENTRAL User Administration' )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As this developement is not trivial (for all releases &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt; ) it will take some time, until this new FM will be availble. Pls check from time to time for new notes referring to BAPI_USER* -FMs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds,&lt;/P&gt;&lt;P&gt;Bernhard&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Dec 2006 08:31:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-bapi-user-delete-in-receiving-system-to-delete-user/m-p/1763648#M330353</guid>
      <dc:creator>Bernhard_SAP</dc:creator>
      <dc:date>2006-12-29T08:31:38Z</dc:date>
    </item>
    <item>
      <title>Re: Using BAPI_USER_DELETE in receiving system to delete user</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-bapi-user-delete-in-receiving-system-to-delete-user/m-p/1763649#M330354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The behaviour of CUA is adapted with note #992375.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Feb 2007 07:48:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-bapi-user-delete-in-receiving-system-to-delete-user/m-p/1763649#M330354</guid>
      <dc:creator>Bernhard_SAP</dc:creator>
      <dc:date>2007-02-01T07:48:40Z</dc:date>
    </item>
    <item>
      <title>Re: Using BAPI_USER_DELETE in receiving system to delete user</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-bapi-user-delete-in-receiving-system-to-delete-user/m-p/1763650#M330355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Deepak,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even though your program deletes the users in the child systems, since they were either created thru CUA or migrated onto CUA they still exist in CUA. &lt;/P&gt;&lt;P&gt;These user  master records get created in the child systems when ever you make changes to these users in CUA or if you run the report SUSR_CUA_CONSISTENCY_CHECK , the IDOCS get transferred into the child systems and hence they get recreated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The solution for this behaviour can be , when ever you run the user deletion program on your child system, logon to your CUA and use the tcode SCUG and select your child system , select &amp;lt;i&amp;gt;already central user&amp;lt;/i&amp;gt; tab, click on the role assignments button. This action will sync the CUA with the child system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if it works for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Laxman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Feb 2007 06:41:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-bapi-user-delete-in-receiving-system-to-delete-user/m-p/1763650#M330355</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-05T06:41:50Z</dc:date>
    </item>
  </channel>
</rss>

