<?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 BAPI_USER_CREATE1 - Deactivate Password in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-user-create1-deactivate-password/m-p/2171346#M460548</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Has anyone had success in using this BAPI to create a user of Type Dialog AND have the password Deactivated?  This can be done via BDC, but runs too lenghty.  Searches for other 'Deactivate PSWD' results in Delete PSWD only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The end result should be 'Logon Data' tab in SU01 displays 'Password Deactivated' after user is created as type 'Dialog.'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Apr 2007 18:22:46 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-23T18:22:46Z</dc:date>
    <item>
      <title>BAPI_USER_CREATE1 - Deactivate Password</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-user-create1-deactivate-password/m-p/2171346#M460548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Has anyone had success in using this BAPI to create a user of Type Dialog AND have the password Deactivated?  This can be done via BDC, but runs too lenghty.  Searches for other 'Deactivate PSWD' results in Delete PSWD only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The end result should be 'Logon Data' tab in SU01 displays 'Password Deactivated' after user is created as type 'Dialog.'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Apr 2007 18:22:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-user-create1-deactivate-password/m-p/2171346#M460548</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-23T18:22:46Z</dc:date>
    </item>
    <item>
      <title>Re: BAPI_USER_CREATE1 - Deactivate Password</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-user-create1-deactivate-password/m-p/2171347#M460549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Bhaskar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I actually resolved this by following the BAPI_USER_CREATE1 with BAPI_USER_CHANGE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The FM's are as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'BAPI_USER_CREATE1'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      username  = username&lt;/P&gt;&lt;P&gt;      logondata = logondata&lt;/P&gt;&lt;P&gt;      password  = password&lt;/P&gt;&lt;P&gt;      defaults  = defaults&lt;/P&gt;&lt;P&gt;      address   = address&lt;/P&gt;&lt;P&gt;      ref_user  = roles_ref_usr&lt;/P&gt;&lt;P&gt;      alias     = alias&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      parameter = parameters&lt;/P&gt;&lt;P&gt;      return    = t_return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then call...&lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'BAPI_USER_CHANGE'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          username   = username&lt;/P&gt;&lt;P&gt;          logondata  = logondata&lt;/P&gt;&lt;P&gt;          logondatax = logondatax&lt;/P&gt;&lt;P&gt;        TABLES&lt;/P&gt;&lt;P&gt;          return     = t_return.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note the following fields that need to be set in both LOGONDATA and LOGONDATAX:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE: 'X'          TO logondata-codvn.&lt;/P&gt;&lt;P&gt;MOVE: 'X'          TO logondatax-codvn.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The BAPI_USER_CREATE1 has the codvn in LOGONDATA but no structure (importing) for LOGONDATAX which was the problem.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FYI: LOGONDATA and RETURN are the same structure in both FM's so adding the BAPI_USER_CHANGE is simple.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your quick reply and suggestion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Apr 2007 20:18:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bapi-user-create1-deactivate-password/m-p/2171347#M460549</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-23T20:18:43Z</dc:date>
    </item>
  </channel>
</rss>

