<?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: BAPI_USER_LOCK usage in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-user-lock-usage/m-p/3446684#M827827</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;PRE&gt;&lt;CODE&gt;
 Short text

     Lock User

 Functionality

     Method Lock locks user USERNAME from logging onto the system.

 Notes

     You can unlock user USERNAME with the method Unlock.

     The method is fully integrated in the central user administration
     system.

     If the method is called in a sytem that belongs to a group for central
     user maintenance, the method behaves accordingly.
     If the method is called in the central system of this type of system
     group, this triggers user distribution.
     The user is also locked in the dependent systems.
     The prerequisite for this is that the field maintenance attributes
     (Transaction SCUM) are set.

 Parameter

     USERNAME
     RETURN

 Exceptions

 Function group

     SU_USER


EG:
  DATA RETURN_DUMMY LIKE RETURN OCCURS 0.
      CALL FUNCTION 'BAPI_USER_LOCK'
           EXPORTING
                USERNAME = USERID
           TABLES
                RETURN   = RETURN_DUMMY.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Vasanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Feb 2008 14:21:06 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-20T14:21:06Z</dc:date>
    <item>
      <title>BAPI_USER_LOCK usage</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-user-lock-usage/m-p/3446683#M827826</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 I use BAPI_USER_LOCK to lock users in a particular client for a particular system say client 200 for ECC system.OR Would it lock that user in all clients for that system, say clients,200,400 and 600 For ECC.?OR Would it also lock the user globally and locally(in all clients) simultaneously? I do not want the user to be locked globally as he/she may not be able to access other systems such as CRM,BW etc.if locked globally?Please provide inputs.Is there any other to achieve this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Savitha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2008 14:18:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-user-lock-usage/m-p/3446683#M827826</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-20T14:18:27Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_USER_LOCK usage</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-user-lock-usage/m-p/3446684#M827827</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;PRE&gt;&lt;CODE&gt;
 Short text

     Lock User

 Functionality

     Method Lock locks user USERNAME from logging onto the system.

 Notes

     You can unlock user USERNAME with the method Unlock.

     The method is fully integrated in the central user administration
     system.

     If the method is called in a sytem that belongs to a group for central
     user maintenance, the method behaves accordingly.
     If the method is called in the central system of this type of system
     group, this triggers user distribution.
     The user is also locked in the dependent systems.
     The prerequisite for this is that the field maintenance attributes
     (Transaction SCUM) are set.

 Parameter

     USERNAME
     RETURN

 Exceptions

 Function group

     SU_USER


EG:
  DATA RETURN_DUMMY LIKE RETURN OCCURS 0.
      CALL FUNCTION 'BAPI_USER_LOCK'
           EXPORTING
                USERNAME = USERID
           TABLES
                RETURN   = RETURN_DUMMY.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Vasanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2008 14:21:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-user-lock-usage/m-p/3446684#M827827</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-20T14:21:06Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_USER_LOCK usage</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-user-lock-usage/m-p/3446685#M827828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;If you use BAPI_USER_LOCK then the User will be locked Globally in the Server,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you use SUSR_BAPI_USER_LOCK, then you have an option to lock it Globally or Locally&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Enjoyee the coading&lt;/P&gt;&lt;P&gt; Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2008 14:24:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-user-lock-usage/m-p/3446685#M827828</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-20T14:24:50Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_USER_LOCK usage</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-user-lock-usage/m-p/3446686#M827829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;U need to use BAPI_LOCK_USER. The condition is if a user is a centralized user then the FM locks all the systems.&lt;/P&gt;&lt;P&gt;If the user is not a centralized user then the FM locks only the current system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or u can even use&lt;/P&gt;&lt;P&gt;SUSR_BAPI_USER_LOCK&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Ramesh Babu Chirumamilla on Feb 20, 2008 7:59 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2008 14:27:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-user-lock-usage/m-p/3446686#M827829</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-20T14:27:45Z</dc:date>
    </item>
  </channel>
</rss>

