T4S4  18.2 C7416 A21152
Teamcenter Gateway for SAP S/4HANA API Reference
T4S::CONNECTION2EA Namespace Reference

Functions

 createLogonParamList System Client User Passwd Language
 Create standard logon parameter data structure as used for storing connection data. More...
 
 getCurrentEAInfo Key
 get connection info of given type for the current connection More...
 
 getValueFromLogonInfo LogonInfo Key
 get connection info of given type from a logon info list More...
 

Function Documentation

◆ createLogonParamList()

T4S::CONNECTION2EA::createLogonParamList   System Client User Passwd Language  

Create standard logon parameter data structure as used for storing connection data.

Using this function, calls like
T4S::CONNECTION2SAP::setConnectionInfo2 $System $Client $CryptUser $CryptPasswd $Language $Mode $TargetType $TransAction] can be replaced by
set LogonInfo [T4S::CONNECTION2EA::createLogonParamList $System $Client $CryptUser $CryptPasswd $Language]
T4X::CONNECTION2EA::setConnectionInfo T4S $System $LogonInfo $Mode $TargetType $TransAction]

Parameters
SystemIdentifier (name for a SAP system)
ClientSAP client ID
UserSAP user
PasswdSAP user password
LanguageSAP session language
Returns
logon parameter list as needed for calls like T4X::CONNECTION2EA::setConnectionInfo

Referenced by T4S::CONNECTION2SAP::setConnectionInfo2(), and T4S::CONNECTION2SAP::setConnectionInfoPlain2().

◆ getCurrentEAInfo()

T4S::CONNECTION2EA::getCurrentEAInfo   Key  

get connection info of given type for the current connection

Parameters
KeyPossible values: SapUser SapPassword SapSystem SapClient SapLanguage LogOnIniMode.
Returns
decrypted value of the given key or empty if no connection is active.

◆ getValueFromLogonInfo()

T4S::CONNECTION2EA::getValueFromLogonInfo   LogonInfo Key  

get connection info of given type from a logon info list

Parameters
LogonInfostandard logon info data structure as used for storing connection data
Keypossible values: EASystem EAClient EAUser EAPassword EALanguage.
Returns
value of the given key or empty if Key is invalid or the respective value in LogonInfo is empty.