Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Updating standard table USR02 from program

Former Member
0 Likes
3,538

Hi folks,

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.

Generally the the value is stored from the transaction SU01. Now i need to update this table field from a custom program.

Is their any BAPI or function module to do so ? if not what is the best way to do.

Thanks in advance,

Shyam.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,784

Hi shyam

This FM may be useful.



BAPI_USER_CHANGE


Inside that, you can use the parameter

LOGONDATA

and the field GLTGB.

Also you need to use the parameter

LOGONDATAX and inside this, pass the field GLTGB = 'X' (meaning, this value needs to be changed)

regards,

amit m.

Edited by: Amit Mittal on Jan 27, 2010 1:08 PM

1 REPLY 1
Read only

Former Member
0 Likes
1,785

Hi shyam

This FM may be useful.



BAPI_USER_CHANGE


Inside that, you can use the parameter

LOGONDATA

and the field GLTGB.

Also you need to use the parameter

LOGONDATAX and inside this, pass the field GLTGB = 'X' (meaning, this value needs to be changed)

regards,

amit m.

Edited by: Amit Mittal on Jan 27, 2010 1:08 PM