T4S4  19.1 C8540 A23673
Teamcenter Gateway for SAP S/4HANA API Reference
TPSAP::S4 Namespace Reference

Functions

 activateUconBlacklistCallWrappers4System ?strSapSystem? ?intSapS4Version? ?lstActivateWrapper4Functions? args
 Activates the UCON blacklist TESISPLM Wrapper functions for a given SAP System. With this, the S4HANA UCON blacklist does not need to be deactivated. In order to use this functionality, the /TESISPLM/UCON_* transport packages needs to be imported into the corresponding SAP system. If no SAP system is given, the wrapper functions will be activated for all SAP systems. More...
 
 checkIfCallIsUconBlacklisted strSapFunctionName
 Checks if the given call is black listed using the S4 UCON Blacklist feature. This check is only relevant and executed if the connected SAP system is a SAP S4HANA system. More...
 
 checkIfTargetSystemIsS4HANA args
 Checks if the active SAP system is an ERP ECC6 or S4HANA system. This check is done using the call SCSI_GET_SYSTEM_INFO and can be overwritten using this mapping config switch: ::T4S_Defaults(SystemIsS4:<SAP system ID>) TRUE/FALSE. More...
 
 get_BAPI_TE_MARA_Name4TargetSystem args
 Based on the SAP target system (R3 or S4), this functions returns the name of the structure BAPI_TE_MARA which is BAPI_TE_MARA (R3) or BAPI_TE_MARA2 (S4). More...
 
 get_BAPI_TE_MARAX_Name4TargetSystem args
 Based on the SAP target system (R3 or S4), this functions returns the name of the structure BAPI_TE_MARAX which is BAPI_TE_MARAX (R3) or BAPI_TE_MARA2X (S4). More...
 
 getMatNrLength4TargetSystem args
 Based on the SAP target system (R3 or S4), this functions returns the length of the Material Master which is either 18 characters (R3) or 40 characters (S4). The returned value can be overwritten using the mapping switch ::T4S_Defaults(MatNrLengthS4:<SAP SYSTEM ID>) More...
 
 runUconBlacklistCheck ?blnPrint2Console? ?lstBAPIsToSkip? args
 Checks all BAPIs used by T4S Checks if they are black listed using the S4 UCON Blacklist feature. This check is only relevant and executed if the connected SAP system is a SAP S4HANA system. More...
 

Function Documentation

◆ activateUconBlacklistCallWrappers4System()

TPSAP::S4::activateUconBlacklistCallWrappers4System   ?strSapSystem? ?intSapS4Version? ?lstActivateWrapper4Functions? args  

Activates the UCON blacklist TESISPLM Wrapper functions for a given SAP System. With this, the S4HANA UCON blacklist does not need to be deactivated. In order to use this functionality, the /TESISPLM/UCON_* transport packages needs to be imported into the corresponding SAP system. If no SAP system is given, the wrapper functions will be activated for all SAP systems.

Parameters
strSapSystem- optional (default: empty) - the SAP system for which the UCON wrappers should be activated. If empty, the wrapper functions will be activated for all SAP systems.
intSapS4Version- Not used anymore
lstActivateWrapper4Functions- optional (default: empty) - if provided (as TCL list), only the wrappers for these function modules (BAPIs) will be activated

◆ checkIfCallIsUconBlacklisted()

TPSAP::S4::checkIfCallIsUconBlacklisted   strSapFunctionName  

Checks if the given call is black listed using the S4 UCON Blacklist feature. This check is only relevant and executed if the connected SAP system is a SAP S4HANA system.

Parameters
strSapFunctionName- the SAP function module you want to call
Returns
true or false

◆ checkIfTargetSystemIsS4HANA()

TPSAP::S4::checkIfTargetSystemIsS4HANA   args  

Checks if the active SAP system is an ERP ECC6 or S4HANA system. This check is done using the call SCSI_GET_SYSTEM_INFO and can be overwritten using this mapping config switch: ::T4S_Defaults(SystemIsS4:<SAP system ID>) TRUE/FALSE.

Returns
TRUE or FALSE

◆ get_BAPI_TE_MARA_Name4TargetSystem()

TPSAP::S4::get_BAPI_TE_MARA_Name4TargetSystem   args  

Based on the SAP target system (R3 or S4), this functions returns the name of the structure BAPI_TE_MARA which is BAPI_TE_MARA (R3) or BAPI_TE_MARA2 (S4).

Returns
BAPI_TE_MARA (R3) or BAPI_TE_MARA2 (S4)

◆ get_BAPI_TE_MARAX_Name4TargetSystem()

TPSAP::S4::get_BAPI_TE_MARAX_Name4TargetSystem   args  

Based on the SAP target system (R3 or S4), this functions returns the name of the structure BAPI_TE_MARAX which is BAPI_TE_MARAX (R3) or BAPI_TE_MARA2X (S4).

Returns
BAPI_TE_MARAX (R3) or BAPI_TE_MARA2X (S4)

◆ getMatNrLength4TargetSystem()

TPSAP::S4::getMatNrLength4TargetSystem   args  

Based on the SAP target system (R3 or S4), this functions returns the length of the Material Master which is either 18 characters (R3) or 40 characters (S4). The returned value can be overwritten using the mapping switch ::T4S_Defaults(MatNrLengthS4:<SAP SYSTEM ID>)

Returns
18 (R3) or 40 (S4) or custom value controlled by mapping.

◆ runUconBlacklistCheck()

TPSAP::S4::runUconBlacklistCheck   ?blnPrint2Console? ?lstBAPIsToSkip? args  

Checks all BAPIs used by T4S Checks if they are black listed using the S4 UCON Blacklist feature. This check is only relevant and executed if the connected SAP system is a SAP S4HANA system.

Parameters
blnPrint2Console- optional (default: true) - if true, the result will be printed onto the console.
lstBAPIsToSkip- optional (default: empty) - TCL list. This list can contain BAPI names which will then be skipped during this test.