Hi all.

I need to sync eDirectory attribute Login Expiration Time to SAP ECC
system to create user and set the validate of function Z_BC_BASIS.

I need to convert Login Expiration Time value to map the converted
value to sapValidTo attribute that maps to GLTGB SAP field.

My logs and values:

ERROR LOG ON DSTRACE:

[12/27/07 21:16:36.912]:MID2SAP_USER ST:UserCreate1: Create key:
LOGONDATA:GLTGB, Value: 14.10.1970[12/27/07 21:16:36.912]:MID2SAP_USER
ST:UserCreate1: setTableData: struct=LOGONDATA, field=GLTGB,
keyVal=14.10.1970
[12/27/07 21:16:36.913]:MID2SAP_USER ST:UserAdd: *Unexpected JCO
runtime exception while processing transaction:
com.sap.mw.jco.JCO$ConversionException: (122) JCO_ERROR_CONVERSION:
Cannot convert a value of '14.10.1970' from type java.lang.String to
DATE at field GLTGB*
[12/27/07 21:16:36.915]:MID2SAP_USER ST:BapiDispatch: DP:
JCO.Exception: 'com.sap.mw.jco.JCO$Exception: (122)
JCO_ERROR_CONVERSION: com.sap.mw.jco.JCO$ConversionException: (122)
JCO_ERROR_CONVERSION: Cannot convert a value of '14.10.1970' from type
java.lang.String to DATE at field GLTGB'

LOGIN EXPIRATION TIME VALUES:

eDirectory: December 27, 2007 8:13:50 PM BRST
LDAP: 20080327225100Z

THE POLICY THAT I CREATED TO TRY TO CONVERT LOGIN EXPIRATION TIME VALUE
TO VALID DATE:

[12/27/07 21:12:43.315]:MID2SAP_USER ST: Action:
do-set-local-variable("expTime",scope="policy",token-convert-time(dest-format="dd.mm.yyyy",src-format="!FULL.DATE",token-op-attr("Login
Expiration Time"))).
[12/27/07 21:12:43.316]:MID2SAP_USER ST:
arg-string(token-convert-time(dest-format="dd.mm.yyyy",src-format="!FULL.DATE",token-op-attr("Login
Expiration Time")))
[12/27/07 21:12:43.317]:MID2SAP_USER ST:
token-convert-time(dest-format="dd.mm.yyyy",src-format="!FULL.DATE",token-op-attr("Login
Expiration Time"))
[12/27/07 21:12:43.318]:MID2SAP_USER ST:
token-convert-time(dest-format="dd.mm.yyyy",src-format="!FULL.DATE",token-op-attr("Login
Expiration Time"))
[12/27/07 21:12:43.319]:MID2SAP_USER ST:
token-op-attr("Login Expiration Time")
[12/27/07 21:12:43.319]:MID2SAP_USER ST: Token Value:
"1206658260".
[12/27/07 21:12:43.320]:MID2SAP_USER ST: Arg Value:
"1206658260".


Tks for the help.

[]s
Alan Cota.


--
AlanCota
------------------------------------------------------------------------
AlanCota's Profile: http://forums.novell.com/member.php?userid=1961
View this thread: http://forums.novell.com/showthread.php?t=305289