2015 Nov 30 2:37 PM
Hi
Is there a functional module that I can use to set a user's 'Valid From' and 'Vaild Through' dates?
I'm using BAPI_USER_UNLOCK to unlock a user, but at the same time I would like to set the valid dates.
Edit: I noticed the FM BAPI_USER_CHANGE might help, but not sure which params to use there.
Tx
2015 Nov 30 3:00 PM
Use FM BAPI_USER_CHANGE. Try like this:
username = 'TEDDYTESTER'.
logondata-gltgv = valid-from.
logondatax-gltgv = 'X'.
logondata-gltgb = valid-to.
logondatax-gltgb = 'X'.
call function 'BAPI_USER_CHANGE'
exporting
username = username
LOGONDATA = logondata
LOGONDATAX = logondatax
tables
return = return .
Hi
Is there a functional module that I can use to set a user's 'Valid From' and 'Vaild Through' dates?
I'm using BAPI_USER_UNLOCK to unlock a user, but at the same time I would like to set the valid dates.
Edit: I noticed the FM BAPI_USER_CHANGE might help, but not sure which params to use there.
Tx
2015 Nov 30 2:45 PM
Hi Patricio,
I have never used it; however, I believe that you can use BAPI_USER_CHANGE. See the LOGONDATA parameter.
Respectfully,
Brian
2015 Nov 30 3:00 PM
Use FM BAPI_USER_CHANGE. Try like this:
username = 'TEDDYTESTER'.
logondata-gltgv = valid-from.
logondatax-gltgv = 'X'.
logondata-gltgb = valid-to.
logondatax-gltgb = 'X'.
call function 'BAPI_USER_CHANGE'
exporting
username = username
LOGONDATA = logondata
LOGONDATAX = logondatax
tables
return = return .