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

Functions

 readPlants ?Plant? args
 Get detailed information for a one specific or all SAP plants Prerequisite: SAP ABAP /TESISPLM/T4S_READ_PLANTS (package /TESISPLM/T4S_MISC) More...
 
 readPlants2 inputDict
 Get detailed information for a one specific or all SAP plants Prerequisite: SAP ABAP /TESISPLM/T4S_READ_PLANTS (package /TESISPLM/T4S_MISC) More...
 

Function Documentation

◆ readPlants()

TPSAP::TESISPLM::MISC::readPlants   ?Plant? args  

Get detailed information for a one specific or all SAP plants Prerequisite: SAP ABAP /TESISPLM/T4S_READ_PLANTS (package /TESISPLM/T4S_MISC)

Deprecated:
Please use the new readPlants2 function
Parameters
Plant- Optional (default: Empty)
Returns
OK and global TCL array ::sap_result_array or NOT_FOUND

◆ readPlants2()

TPSAP::TESISPLM::MISC::readPlants2   inputDict  

Get detailed information for a one specific or all SAP plants Prerequisite: SAP ABAP /TESISPLM/T4S_READ_PLANTS (package /TESISPLM/T4S_MISC)

Parameters
inputDicta dictionary with required keys what is (none), the possible keys are:
  • I_WERKS Search String for Plant
Returns
dict structure with the following elements:
  • Status OK|ERROR
  • NWPStatus OK|ERROR
  • ErrorMessage last error message
  • MessageList message list and the global TCL array ::ReadPlantsResultDat

Sample code sequence

1 set resultDict [::TPSAP::TESISPLM::MISC::readPlants2 [dict create I_WERKS 1000]]
2 if { [dict get $resultDict Status] eq "OK"} {
3  foreach e [array names ::ReadPlantsResultDat] {
4  puts "$e => $::ReadPlantsResultDat($e)"
5  }
6 }