<?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 Updating standard table USR02 from program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/updating-standard-table-usr02-from-program/m-p/6567395#M1432278</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    I need to update the field GLTGB (User Valid to) in the standard table USR02. It is the validity date of a user in SAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    Generally the the value is stored from the transaction SU01. Now i need to update this table field from a custom program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Is their any BAPI or function module to do so ? if not what is the best way to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         Thanks in advance,&lt;/P&gt;&lt;P&gt;          Shyam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Jan 2010 07:35:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-01-27T07:35:36Z</dc:date>
    <item>
      <title>Updating standard table USR02 from program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/updating-standard-table-usr02-from-program/m-p/6567395#M1432278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    I need to update the field GLTGB (User Valid to) in the standard table USR02. It is the validity date of a user in SAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    Generally the the value is stored from the transaction SU01. Now i need to update this table field from a custom program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Is their any BAPI or function module to do so ? if not what is the best way to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         Thanks in advance,&lt;/P&gt;&lt;P&gt;          Shyam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2010 07:35:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/updating-standard-table-usr02-from-program/m-p/6567395#M1432278</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-27T07:35:36Z</dc:date>
    </item>
    <item>
      <title>Re: Updating standard table USR02 from program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/updating-standard-table-usr02-from-program/m-p/6567396#M1432279</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;This FM may be useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

BAPI_USER_CHANGE


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inside that, you can use the parameter&lt;/P&gt;&lt;P&gt;LOGONDATA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and the field GLTGB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also you need to use the parameter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOGONDATAX and inside this, pass the field GLTGB = 'X' (meaning, this value needs to be changed)&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;amit m.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Amit Mittal on Jan 27, 2010 1:08 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jan 2010 07:37:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/updating-standard-table-usr02-from-program/m-p/6567396#M1432279</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-27T07:37:18Z</dc:date>
    </item>
  </channel>
</rss>

