T4S4  19.1 C8540 A23673
Teamcenter Gateway for SAP S/4HANA API Reference
VMS ITK functions

All ITK functions of group VMS supported by T4x. More...

Functions

 VMS_add_mfg_part_to_comm_part HexCPTag HexCPRevTag HexMPTag HexVendorTag
 This function calls the ITK pipe server function VMS_add_mfg_part_to_comm_part to Manufacturer Part to an existing Commercial Part. More...
 
 VMS_add_vendor_roles HexVendorRevTag VendorRoleTag1 ... VendorRoletagX
 This function calls the ITK pipe server function VMS_create_vendor_role to add a list of Vendor Roles to a given Vendor Revision. More...
 
 VMS_copy_vendor HexVendorTag args
 This function calls the ITK pipe server function VMS_copy_vendor to create a new Vendor based on a given Vendor. More...
 
 VMS_copy_vendor_rev HexVendorRevTag args
 This function calls the ITK pipe server function VMS_copy_vendor_rev to create a new Vendor Revision based on a given Vendor Revision tag. More...
 
 VMS_create_commercial_part2 CP_Id CP_Desc UoMTag CP_Name CP_PartTypeName CP_RevID DesReq MakeBuy VendorTag
 This function calls the ITK pipe server function VMS_create_commercial_part to create a new Commercial Part. More...
 
 VMS_create_manufacturer_part2 MP_Id MP_Desc UoMTag MP_Name MP_PartTypeName MP_RevID DesReq MakeBuy VendorTag CommPartTag CommPartRevTag
 This function calls the ITK pipe server function VMS_create_manufacturer_part to create a new Manufacturer Part. More...
 
 VMS_create_vendor V_Id V_Name V_RevId
 This function calls the ITK pipe server function VMS_create_vendor to create a new Teamcenter Vendor. More...
 
 VMS_create_vendor_role R_Name R_Description
 This function calls the ITK pipe server function VMS_create_vendor_role to create a new Teamcenter Vendor role. More...
 
 VMS_create_vendor_with_type V_Id V_Name V_RevId V_Type
 This function calls the ITK pipe server function VMS_create_vendor_with_type to create a new Teamcenter Vendor. More...
 
 VMS_delete_vendor HexVendorTag
 This function calls the ITK pipe server function VMS_delete_vendor to delete a given Vendor. More...
 
 VMS_delete_vendor_rev HexVendorRevTag
 This function calls the ITK pipe server function VMS_delete_vendor_rev to delete a given Vendor Revision. More...
 
 VMS_find_vendor V_Id
 This function calls the ITK pipe server function VMS_find_vendor to searches for an vendor id. More...
 
 VMS_get_vendor_roles HexVendorRevTag
 This function calls the ITK pipe server function VMS_get_vendor_roles to the list of VendorRole tags attached to a given Vendor Revision. More...
 
 VMS_remove_vendor_roles HexVendorRevTag
 This function calls the ITK pipe server function VMS_remove_vendor_roles to removes a list of Vendor Roles from a given Vendor Revision. More...
 

Detailed Description

All ITK functions of group VMS supported by T4x.

This group specifies all ITK functions of group VMS for which wrappers have been defined in T4x

Function Documentation

◆ VMS_add_mfg_part_to_comm_part()

ITK::VMS_add_mfg_part_to_comm_part   HexCPTag HexCPRevTag HexMPTag HexVendorTag  

This function calls the ITK pipe server function VMS_add_mfg_part_to_comm_part to Manufacturer Part to an existing Commercial Part.

Parameters
HexCPTagCommercial Part tag
HexCPRevTagCommercial Part Revision
HexMPTagManufacturer Part tag
HexVendorTagTeamcenter Vendor tag in the Tcl string format
Returns
ITK_ok (=0) or list of ITK status and error message

◆ VMS_add_vendor_roles()

ITK::VMS_add_vendor_roles   HexVendorRevTag VendorRoleTag1 ... VendorRoletagX  

This function calls the ITK pipe server function VMS_create_vendor_role to add a list of Vendor Roles to a given Vendor Revision.

Parameters
HexVendorRevTag
VendorRoleTag1... VendorRoletagX - list of VendorRole tags
Returns
ITK_ok (=0) or list of ITK status and error message

◆ VMS_copy_vendor()

ITK::VMS_copy_vendor   HexVendorTag args  

This function calls the ITK pipe server function VMS_copy_vendor to create a new Vendor based on a given Vendor.

Parameters
HexVendorTagTeamcenter Vendor tag in the Tcl string format
args(optional) list of the Id string and revision Id string of the new Vendor. if not specified, the the system will automatically generate an Item ID and Revision ID.
Returns
List of ITK_ok (=0) and Vendor tag, VendorRevision tag or list of ITK status and error message

◆ VMS_copy_vendor_rev()

ITK::VMS_copy_vendor_rev   HexVendorRevTag args  

This function calls the ITK pipe server function VMS_copy_vendor_rev to create a new Vendor Revision based on a given Vendor Revision tag.

Parameters
HexVendorRevTagTeamcenter Vendor tag in the Tcl string format
args(optional) defines the new Teamcenter Vendor Revision id string
Returns
List of ITK_ok (=0) and tag of the created VendorRevision or list of ITK status and error message

◆ VMS_create_commercial_part2()

ITK::VMS_create_commercial_part2   CP_Id CP_Desc UoMTag CP_Name CP_PartTypeName CP_RevID DesReq MakeBuy VendorTag  

This function calls the ITK pipe server function VMS_create_commercial_part to create a new Commercial Part.

Parameters
CP_IdCommercial Part Id
CP_DescCommercial Part description
UoMTagTeamcenter Unit Of Measure tag in the Tcl string format
CP_NameCommercial Part name
CP_PartTypeNameCommercial Part type name
CP_RevIDCommercial Part Revision Id
DesReqisDesignReq flag
MakeBuyMake or Buy flag
VendorTagTeamcenter Vendor tag in the Tcl string format
Returns
List of ITK_ok (=0) and Commercial Part tag, Commercial Part Revision tag or list of ITK status and error message

Sample code sequence

1 set VendorStatus [::ITK::VMS_find_vendor $VendorID]
2 if {[::ITK::isITK_ok $VendorStatus]} {
3  set VendorTag [lindex $VendorStatus 1]
4  set UoMStatus [::ITK::UOM_find_by_symbol $UoM]
5  if {[lindex $UoMStatus 0] == 0} {
6  set UoMTag [lindex $UoMStatus 1]
7  } else {
8  set UoMTag {}
9  }
10  set StatusInfo [::ITK::VMS_create_commercial_part2 $ObjectId $ObjectDesc $UoMTag $Name "CommercialPart" $ObjectRev "0" "1" ""]
11  if {[::ITK::isITK_ok $StatusInfo]} {
12  puts "SUCCESS: commercial part created"
13  set CommPartTag [lindex [lindex $StatusInfo 1] 0]
14  set CommPartRevTag [lindex [lindex $StatusInfo 1] 1]
15  } else {
16  puts "FAILURE: commercial part creation failed"
17  }
18 }

◆ VMS_create_manufacturer_part2()

ITK::VMS_create_manufacturer_part2   MP_Id MP_Desc UoMTag MP_Name MP_PartTypeName MP_RevID DesReq MakeBuy VendorTag CommPartTag CommPartRevTag  

This function calls the ITK pipe server function VMS_create_manufacturer_part to create a new Manufacturer Part.

Parameters
MP_IdManufacturer Part Id
MP_DescManufacturer Part description
UoMTagTeamcenter Unit Of Measure tag in the Tcl string format
MP_NameManufacturer Part name
MP_PartTypeNameManufacturer Part type name
MP_RevIDManufacturer Part Revision Id
DesReqisDesignReq flag
MakeBuyMake or Buy flag
VendorTagTeamcenter Vendor tag in the Tcl string format
CommPartTagTeamcenter Commercial Part tag in the Tcl string format
CommPartRevTagTeamcenter Commercial Part Revision tag in the Tcl string format
Returns
List of ITK_ok (=0) and Manufacturer Part tag, Manufacturer Part Revision tag or list of ITK status and error message

Sample code sequence

1 set VendorStatus [::ITK::VMS_find_vendor $VendorID]
2 if {[::ITK::isITK_ok $VendorStatus]} {
3  set VendorTag [lindex $VendorStatus 1]
4  set UoMStatus [::ITK::UOM_find_by_symbol $UoM]
5  if {[lindex $UoMStatus 0] == 0} {
6  set UoMTag [lindex $UoMStatus 1]
7  } else {
8  set UoMTag {}
9  }
10  set StatusInfo [::ITK::VMS_create_manufacturer_part2 ${MPObjectId} "" $UoMTag $MpName "ManufacturerPart" $ObjectRev "1" "1" $VendorTag $CommPartTag $CommPartRevTag]
11  if {[::ITK::isITK_ok $StatusInfo]} {
12  puts "SUCCESS: manufacturer part created"
13  set ManuPartTag [lindex [lindex $StatusInfo 1] 0]
14  set ManuPartRevTag [lindex [lindex $StatusInfo 1] 1]
15  } else {
16  puts "FAILURE: manufacturer part creation failed"
17  }
18 }

◆ VMS_create_vendor()

ITK::VMS_create_vendor   V_Id V_Name V_RevId  

This function calls the ITK pipe server function VMS_create_vendor to create a new Teamcenter Vendor.

Parameters
V_IdVendor Id
V_NameVendor Name
V_RevIdVendor Revision Id
Returns
List of ITK_ok (=0) and Vendor tag, VendorRevision tag or list of ITK status and error message

◆ VMS_create_vendor_role()

ITK::VMS_create_vendor_role   R_Name R_Description  

This function calls the ITK pipe server function VMS_create_vendor_role to create a new Teamcenter Vendor role.

Parameters
R_NameVendor Role Name
R_DescriptionVendor Role Description
Returns
List of ITK_ok (=0) and VendorRole tag or list of ITK status and error message

◆ VMS_create_vendor_with_type()

ITK::VMS_create_vendor_with_type   V_Id V_Name V_RevId V_Type  

This function calls the ITK pipe server function VMS_create_vendor_with_type to create a new Teamcenter Vendor.

Parameters
V_IdVendor Id
V_NameVendor Name
V_RevIdVendor Revision Id
V_TypeVendor Type name
Returns
List of ITK_ok (=0) and Vendor tag, VendorRevision tag or list of ITK status and error message

◆ VMS_delete_vendor()

ITK::VMS_delete_vendor   HexVendorTag  

This function calls the ITK pipe server function VMS_delete_vendor to delete a given Vendor.

Parameters
HexVendorTagTeamcenter Vendor tag in the Tcl string format
Returns
ITK_ok (=0) or list of ITK status and error message

◆ VMS_delete_vendor_rev()

ITK::VMS_delete_vendor_rev   HexVendorRevTag  

This function calls the ITK pipe server function VMS_delete_vendor_rev to delete a given Vendor Revision.

Parameters
HexVendorRevTagTeamcenter Vendor Revision tag in the Tcl string format
Returns
ITK_ok (=0) or list of ITK status and error message

◆ VMS_find_vendor()

ITK::VMS_find_vendor   V_Id  

This function calls the ITK pipe server function VMS_find_vendor to searches for an vendor id.

Parameters
V_Id,VendorItem Id
Returns
List of ITK_ok (=0) and found Vendor tag or list of ITK status and error message

◆ VMS_get_vendor_roles()

ITK::VMS_get_vendor_roles   HexVendorRevTag  

This function calls the ITK pipe server function VMS_get_vendor_roles to the list of VendorRole tags attached to a given Vendor Revision.

Parameters
HexVendorRevTag
Returns
List of ITK_ok (=0) and list of VendorRole tags or list of ITK status and error message

◆ VMS_remove_vendor_roles()

ITK::VMS_remove_vendor_roles   HexVendorRevTag  

This function calls the ITK pipe server function VMS_remove_vendor_roles to removes a list of Vendor Roles from a given Vendor Revision.

Parameters
HexVendorRevTag
VendorRoleTag1... VendorRoletagX - list of VendorRole tags
Returns
ITK_ok (=0) or list of ITK status and error message