T4S4  18.2 C7549 A21431
Teamcenter Gateway for SAP S/4HANA API Reference
PL4X::CORE Namespace Reference

Functions

 getLogLineMessageType4rc rc_func ?strDefaultMessageType? args
 Calculates the correspondig message type (for tpwrite log lines) based on the input return code. More...
 
 getSessionLogChannel args
 Returns the Session log-file name of the current transfer session. If no session log-file name is available, the default LogChannel is used. More...
 
 hex2String strString2DeHex ?blnUseBinaryFormat? args
 Converts a given HEX string into a normal string. More...
 
 setSessionLogChannel args
 Defines the session log file name channel based on the Teamcenter session information. More...
 
 sortIndexedInterfaceTable tab
 This function sort the result of an array names for an index array (e.g: BOM lines). More...
 
 string2Hex strString2Hex ?blnUseBinaryScan? args
 Converts a given string into HEX format. More...
 

Variables

 SessionLogChannel
 

Function Documentation

◆ getLogLineMessageType4rc()

PL4X::CORE::getLogLineMessageType4rc   rc_func ?strDefaultMessageType? args  

Calculates the correspondig message type (for tpwrite log lines) based on the input return code.

Parameters
rc_func- return code for which the message type should be calculated
strDefaultMessageType- OPTIONAL - default: INTERN; Can be used to set DEBUG or any other message type as default
Returns
INTERN or ERROR based on the given rc_func

Referenced by TPSAP::callDDIF_FIELDINFO_GET(), TPSAP::callRFC_FUNCTION_SEARCH(), and T4X::CORE::getLogLineMessageType4rc().

◆ getSessionLogChannel()

PL4X::CORE::getSessionLogChannel   args  

Returns the Session log-file name of the current transfer session. If no session log-file name is available, the default LogChannel is used.

Parameters
none
Returns
Relative filename of the sessionlogfile

References tpco_getdefaultlogchannel().

Referenced by TPSAP::callDDIF_FIELDINFO_GET(), TPSAP::callRFC_FUNCTION_SEARCH(), PL4X::LOG::ENTER(), T4X::CORE::getSessionLogChannel(), PL4X::LOG::LEAVE(), and PL4X::LOG::LOG().

◆ hex2String()

PL4X::CORE::hex2String   strString2DeHex ?blnUseBinaryFormat? args  

Converts a given HEX string into a normal string.

Parameters
strString2DeHex- HEX string to be converted
blnUseBinaryFormat- Optional (default FALSE) - If TRUE, TCL binary format will be used instead of tpco_scanHEX16
Returns
Normal string

References tpco_formatHEX16().

◆ setSessionLogChannel()

PL4X::CORE::setSessionLogChannel   args  

Defines the session log file name channel based on the Teamcenter session information.

Parameters
args,none
Returns
none

References tpco_getdefaultlogchannel().

◆ sortIndexedInterfaceTable()

PL4X::CORE::sortIndexedInterfaceTable   tab  

This function sort the result of an array names for an index array (e.g: BOM lines).

Parameters
tablist of array name strings to sort with the following syntax: Name:XXX:YYY:1 Name:XXX:YYY:2 ...
Returns
sorted list

References tpco_fixstring().

◆ string2Hex()

PL4X::CORE::string2Hex   strString2Hex ?blnUseBinaryScan? args  

Converts a given string into HEX format.

Parameters
strString2Hex- String to be converted
blnUseBinaryScan- Optional (default FALSE) - If TRUE, TCL binary scan will be used instead of tpco_scanHEX16
Returns
HEX string

References tpco_scanHEX16().

Variable Documentation

◆ SessionLogChannel

SessionLogChannel
static