![]() |
T4S4
19.1 C8540 A23673
Teamcenter Gateway for SAP S/4HANA API Reference
|
Functions | |
rcwd | |
This function returns the T4x installation path. More... | |
source | |
This function overloads the tcl function source. More... | |
tpco_appendfile | |
This function appends a string on a file. More... | |
tpco_buildfilechecksum | |
This function calculates a checksum for a file. More... | |
tpco_clearbinstring | |
This function replaces all characters that are smaller than 32 and larger than 128 by a fill-char. More... | |
tpco_clearbinstring2 | |
This function replaces all characters that are larger than 128 and 0xA,0xD,0x9 by a fill-char. More... | |
tpco_copyfile | |
This function copies a file. More... | |
tpco_createSNDID | |
This function generates a ~unique~ ID 32Bit string. More... | |
tpco_filedelete | |
This function deletes a file. More... | |
tpco_filediff | |
This function compares the content of two files. More... | |
tpco_fileexists | |
This function checks if a file exists. More... | |
tpco_fixstring | |
This function fills a string with chars. More... | |
tpco_ftimeinfo | |
This function gets the time-info for a file. More... | |
tpco_getHostName | |
This function resolves the hostname via DNS. More... | |
tpco_getHostName2 | |
This function resolves the hostname via DNS without the domainname. More... | |
tpco_getpidname | |
This function gets the process/image name from a PID. More... | |
tpco_getprocessinfo | |
This function gets the process list from the OS. Similar to "ps" (UNIX) or the "taskmanager" (Windows). More... | |
tpco_getTPFSFile | |
This function gets a file from a T4x server filessytem. More... | |
tpco_H16Bin2File | |
This function decodes a HEX16 string and writes the result into a file. More... | |
tpco_httpClient | |
This function is an http(s) client. More... | |
tpco_isdirectory | |
This function checks if a file is a directory. More... | |
tpco_killpid | |
This function kills a process. More... | |
tpco_loadRFDT | |
This function loads a RFDT file in the TCL cache. More... | |
tpco_mkdir | |
This function creates a directory. More... | |
tpco_putTPFSFile | |
This function puts a file from a local filesystem to the T4x server filessytem. More... | |
tpco_readfile | |
This function reads the content of a file. More... | |
tpco_readfileb64 | |
This function reads the content of a file. More... | |
tpco_readfileH16 | |
This function reads the content of a file. More... | |
tpco_readflag | |
This function reads a flag-file. More... | |
tpco_renamefile | |
This function renames a file. More... | |
tpco_scandirectory | |
This function scans a directory. More... | |
tpco_str2entxml | |
This function replaces all 'special' characters within a unicode string, i. e. all but decimals 0-9 and basic alphabet characters a-z and A-Z, with HTML hexadecimal characters of the form '�' and returns the resulting string. More... | |
tpco_testipv6 | |
This function tests whether an IPv6 connection is possible. More... | |
tpco_touchfile | |
This function touches a file. More... | |
tpco_urldecode | |
URL-decodes a given string. More... | |
tpco_urlencode | |
URL-encodes a given string. More... | |
tpco_usectime | |
This function determines the time in microsecond resolution. More... | |
tpco_usectime2int | |
This function converts a 64BitHEX16 time (tpco_usectime) to integer. More... | |
tpco_webfileinfo | |
This function gets the size and time-info for a file. More... | |
tpco_writeflag | |
This function writes a flag-file. More... | |
rcwd |
This function returns the T4x installation path.
source |
This function overloads the tcl function source.
filename | name of the tcl file |
-relax | (optional) evaluate the file from the tcl-cache (default= file system) |
-debug | (optional) include runtime debug information in the tcl-code |
-nocerr | (optional) suppress error messages |
tpco_appendfile |
This function appends a string on a file.
file | the path+filename |
value | the append string |
tpco_buildfilechecksum |
This function calculates a checksum for a file.
file |
tpco_clearbinstring |
This function replaces all characters that are smaller than 32 and larger than 128 by a fill-char.
string | the input string |
fillchar | (optional) fill char (default=.) |
tpco_clearbinstring2 |
This function replaces all characters that are larger than 128 and 0xA,0xD,0x9 by a fill-char.
string | the input string |
fillchar | (optional) fill char (default=.) |
tpco_copyfile |
This function copies a file.
file | the path+filename |
new-file | the new path+filename |
tpco_createSNDID |
This function generates a ~unique~ ID 32Bit string.
Unique within one BGS/GS instance and amongst other things depending on time.
tpco_filedelete |
This function deletes a file.
file | filename |
tpco_filediff |
This function compares the content of two files.
file_a | the first file |
file_b | the second file |
tpco_fileexists |
This function checks if a file exists.
file |
tpco_fixstring |
This function fills a string with chars.
string | the input string |
fill | fill char |
length | output string length |
tpco_ftimeinfo |
This function gets the time-info for a file.
file |
tpco_getHostName |
This function resolves the hostname via DNS.
tpco_getHostName2 |
This function resolves the hostname via DNS without the domainname.
tpco_getpidname |
This function gets the process/image name from a PID.
pid | the process pid |
tpco_getprocessinfo |
This function gets the process list from the OS. Similar to "ps" (UNIX) or the "taskmanager" (Windows).
tpco_getTPFSFile |
This function gets a file from a T4x server filessytem.
handle | the session handle (see tpco_openSrvSession2) |
source-file | file+path in the filesystem of the T4x server (~ is the root dir of the T4x server) |
target-file | file+path in the local filesystem. |
Copy the ~/tmp/hello.script from the T4x server filesystem to the local filesystem ./tmp/hello.script.local
tpco_H16Bin2File |
This function decodes a HEX16 string and writes the result into a file.
filename | the output filename |
hex16string | the input HEX16 string |
tpco_httpClient |
This function is an http(s) client.
-user | (optional) username |
-pass | (optional) password |
-debug | (optional) log channel for debug messages |
-proxy | (optional) proxy host/ip:port |
-agent | (optional) change the client agent name |
-cert | (optional) full path to the server root certificate. This certificate is used to validate, the certificate sent by the server. The function expects a certificate in PEM format. |
-clientcert | (optional) full path to the client certificate. This certificate will be sent to the server and the server validates this certificate. The function expects a certificate in PEM format. |
-exheader | (optional) extended header list {name value name value ...} |
-ctout | (optional) connect time out (sec) |
-tout | (optional) set maximum time the request is allowed to take (sec) |
-callback | (optional) use a tcl callback function for download (GET) and handle the download data stream |
-ctout | (optional) client connection timeout (sec) |
-tout | (optional) set maximum time (sec) the request is allowed to take |
-post/-put/-patch/-connect | -get/-delete/-head/-options/ (optional(default get)) HTTP method -post value | -put value | -patch value | -connect server -get (optional / default) -delete / -head / -trace / -option |
-H16 | (optional) return result HEX16 encoded |
-HINFO | (optional) return result and the HTTP response header [list <payload> <http-header>] |
-keepalive | (optinal) send keep alive probes every time specified in seconds (sec) 0=disabled |
url | service URL |
tpco_isdirectory |
This function checks if a file is a directory.
file | filename |
tpco_killpid |
This function kills a process.
pid | the process pid |
pname | the process/image name |
tpco_loadRFDT |
This function loads a RFDT file in the TCL cache.
filename | name of the RFDT file |
-eval | (optional) evaluate the tcl source at loadtime. |
tpco_mkdir |
tpco_putTPFSFile |
This function puts a file from a local filesystem to the T4x server filessytem.
handle | the session handle (see tpco_openSrvSession2) |
source-file | file+path in the local filesystem. |
target-file | file+path in the filesystem of the T4x server (~ is the root dir of the T4x server) |
Copy the ./tmp/hello.script from the local filesystem to the T4x server filesystem ~/tmp/hello.script.remote
tpco_readfile |
This function reads the content of a file.
file | the path+filename |
tpco_readfileb64 |
This function reads the content of a file.
file | the path+filename |
tpco_readfileH16 |
This function reads the content of a file.
file | the path+filename |
tpco_readflag |
This function reads a flag-file.
file | the path+name of the flag-file |
tpco_renamefile |
This function renames a file.
file | the path+filename |
new-name | the new filename |
tpco_scandirectory |
This function scans a directory.
dirname | the path to the directory |
pattern | tcl string pattern for all results |
type | f= files only d= directorys only x= all files |
tpco_str2entxml |
This function replaces all 'special' characters within a unicode string, i. e. all but decimals 0-9 and basic alphabet characters a-z and A-Z, with HTML hexadecimal characters of the form '�' and returns the resulting string.
string | unicode string |
tpco_testipv6 |
This function tests whether an IPv6 connection is possible.
tpco_touchfile |
tpco_urldecode |
tpco_urlencode |
tpco_usectime |
This function determines the time in microsecond resolution.
tpco_usectime2int |
This function converts a 64BitHEX16 time (tpco_usectime) to integer.
usechex | a 64BitHEX16 time string |
tpco_webfileinfo |
This function gets the size and time-info for a file.
file |
tpco_writeflag |
This function writes a flag-file.
file | the path+name of the flag-file |
value | the content of the flag-file |