T4S4  18.1 C7177 A20283
Teamcenter Gateway for SAP S/4HANA API Reference
TPSAP::WORKCENTER Namespace Reference

Functions

 call2002_WORKCENTER_GETINFO args
 Calls the 2002_WORKCENTER_GETINFO ABAP via JCo. More...
 
 getWorkcenterHierarchyInfo ?ObjTyp_HY? ?ObjId_HY? ?ObjTyp_HO? ?ObjId_HO? ?ObjTyp_UP? ?ObjId_UP? ?ObjTyp_LE? ?ObjId_LE? ?MaxRows? args
 Reads the hierarchy information for a given work center ID. More...
 
 getWorkcenterInfoByID ObjectId ?MaxRows?
 Reads detailed information about a given workcenter identified by the internal SAP object ID. More...
 
 init_2002_WORKCENTER_GETINFO_PARAMETER args
 Resets part the corresponding global TCL ::SAPDat array entries for the single parameters within the section WORKCENTER_GETINFO:PARAMETER used for the 2002_WORKCENTER_GETINFO call. More...
 
 init_I_PLANT_WORK_CENTRE Index args
 Resets part the corresponding global TCL ::SAPDat array entries for the section WORKCENTER_GETINFO:I_PLANT_WORK_CENTRE used for the 2002_WORKCENTER_GETINFO call. More...
 
 TesisPlmWorkcenterGetInfo WorkCenter Plant ?MaxRows? ?ObjectId?
 Reads detailed information about a given workcenter. If only the plant is given, all workcenters (up to maxrows) for that plant will be returned. If only the workcenter is given and not plant, all workcenters will be returned (not matter which plant they are assigned to). More...
 

Function Documentation

◆ call2002_WORKCENTER_GETINFO()

TPSAP::WORKCENTER::call2002_WORKCENTER_GETINFO   args  

Calls the 2002_WORKCENTER_GETINFO ABAP via JCo.

Returns
dict structure with the following element:
  • Status OK|ERROR|JCO_ERROR
  • JCoStatus OK or JCO exception error
  • ErrorMessage last error message
  • NoOfMessages 0 or n
  • LogMessageMessage(1 .. n)
  • LogMessageSeverity(1 .. n)

References rcwd().

◆ getWorkcenterHierarchyInfo()

TPSAP::WORKCENTER::getWorkcenterHierarchyInfo   ?ObjTyp_HY? ?ObjId_HY? ?ObjTyp_HO? ?ObjId_HO? ?ObjTyp_UP? ?ObjId_UP? ?ObjTyp_LE? ?ObjId_LE? ?MaxRows? args  

Reads the hierarchy information for a given work center ID.

Important: This function required SAP ABAP function /TESISPLM/GET_ARBPL_HIERARCHY.

Parameters
ObjTyp_HY- optional -> epmty - CIM Resource Object Type
ObjId_HY- optional -> epmty - Object ID of the resource
ObjTyp_HO- optional -> epmty - CIM Resource Object Type
ObjId_HO- optional -> epmty - Object ID of the resource
ObjTyp_UP- optional -> epmty - Type of resource which is superior in the hierarchy
ObjId_UP- optional -> epmty - ID of superior object in the hierarchy
ObjTyp_LE- optional -> epmty - Type of resource located on the left of the hierarchy
ObjId_LE- optional -> epmty - ID of resource located on the left of the hierarchy
MaxRows- optional -> default 1000 - max no of result records
Returns
OK and global TCL array ::WorkCtrResultDat, NOT_FOUND or ERROR with hex error message

References T4X::CORE::getSessionLogChannel(), and TPSAP::performSapCall().

◆ getWorkcenterInfoByID()

TPSAP::WORKCENTER::getWorkcenterInfoByID   ObjectId ?MaxRows?  

Reads detailed information about a given workcenter identified by the internal SAP object ID.

Important: This function required SAP ABAP function /TESISPLM/T4S_ARBPL_HEADER_GET and JCO.

Parameters
ObjectId- Interal SAP Workcenter object ID.
MaxRows- optional -> default 1000 - max no of result records
Returns
OK, NOT_FOUND or ERROR with message

References T4X::CORE::getLogLineMessageType4rc(), T4X::CORE::getSessionLogChannel(), TesisPlmWorkcenterGetInfo(), and tpwrite().

◆ init_2002_WORKCENTER_GETINFO_PARAMETER()

TPSAP::WORKCENTER::init_2002_WORKCENTER_GETINFO_PARAMETER   args  

Resets part the corresponding global TCL ::SAPDat array entries for the single parameters within the section WORKCENTER_GETINFO:PARAMETER used for the 2002_WORKCENTER_GETINFO call.

Parameters
argsnone
Returns
None

◆ init_I_PLANT_WORK_CENTRE()

TPSAP::WORKCENTER::init_I_PLANT_WORK_CENTRE   Index args  

Resets part the corresponding global TCL ::SAPDat array entries for the section WORKCENTER_GETINFO:I_PLANT_WORK_CENTRE used for the 2002_WORKCENTER_GETINFO call.

Parameters
Indexinternal array index
argsnone
Returns
None

◆ TesisPlmWorkcenterGetInfo()

TPSAP::WORKCENTER::TesisPlmWorkcenterGetInfo   WorkCenter Plant ?MaxRows? ?ObjectId?  

Reads detailed information about a given workcenter. If only the plant is given, all workcenters (up to maxrows) for that plant will be returned. If only the workcenter is given and not plant, all workcenters will be returned (not matter which plant they are assigned to).

Important: This function required SAP ABAP function /TESISPLM/T4S_ARBPL_HEADER_GET and JCO.

Parameters
WorkCenter- can be empty
Plant- can be empty
MaxRows- optional -> default 1000 - max no of result records
ObjectId- optional -> default empty -> if provided, all workcenters with this object id will be returned. WorkCenter and Plant will be ignored in this case.
Returns
OK, NOT_FOUND or ERROR with message

Referenced by getWorkcenterInfoByID().