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

Functions

 deleteCustomerMaterialInfoRecord CustomerNumber SalesOrganization DistributionChannel MaterialNumber args
 Deletes an existing customer material info record. Important: This procedure has a dependency to the SAP transport package "TESISPLM_T4S_CALL_TRANSACTION" and does not work without it. More...
 
 getCustomerMaterialInfoRecords CustomerNumber ?MaterialNumber? args
 Calls SAP function '/TESISPLM/T4S_GET_CUST_MM_INFO' in order to read one or more SAP customer material info records. To use this functionality, the SAP transport package 'TESISPLM_T4S_CUSTOMER' must be imported into the SAP system. More...
 
 getExternalNumber InternalNumber
 Retrieves the SAP external customer id for a given SAP internal customer id. More...
 
 getInternalNumber ExternalNumber
 Retrieves the SAP internal customer id for a given SAP external customer id. More...
 
 maintainCustomerMaterialInfoRecord args
 Creates or updates a customer material info record. All input parameters are transported using the global TCL array called ::SAPDat and the array pattern CustomerMaterialInfoRecord. All possible field names can be find out using the SAPGUI transaction VD51 and the "F1 - technical help" section from SAP.
Example to create a simple customer material info record:
set ::SAPDat(CustomerMaterialInfoRecord:PARAMETER:MV10A-KUNNR) "490951"
set ::SAPDat(CustomerMaterialInfoRecord:PARAMETER:MV10A-VKORG) "0001"
set ::SAPDat(CustomerMaterialInfoRecord:PARAMETER:MV10A-VTWEG) "01"
set ::SAPDat(CustomerMaterialInfoRecord:PARAMETER:MV10A-MATNR) "50078539"
set ::SAPDat(CustomerMaterialInfoRecord:PARAMETER:MV10A-KDMAT) "0815"
set ::SAPDat(CustomerMaterialInfoRecord:PARAMETER:MV10A-POSTX) "description"
set ::SAPDat(CustomerMaterialInfoRecord:PARAMETER:MV10A-SORTL) "search"
Important: This procedure has a dependency to the SAP transport package "TESISPLM_T4S_CALL_TRANSACTION" and does not work without it. More...
 

Function Documentation

◆ deleteCustomerMaterialInfoRecord()

TPSAP::CUSTOMER::deleteCustomerMaterialInfoRecord   CustomerNumber SalesOrganization DistributionChannel MaterialNumber args  

Deletes an existing customer material info record. Important: This procedure has a dependency to the SAP transport package "TESISPLM_T4S_CALL_TRANSACTION" and does not work without it.

Parameters
CustomerNumber
SalesOrganization
DistributionChannel
MaterialNumberMaterial Number Info Record to be deleted
Returns
OK or ERROR with hex message

◆ getCustomerMaterialInfoRecords()

TPSAP::CUSTOMER::getCustomerMaterialInfoRecords   CustomerNumber ?MaterialNumber? args  

Calls SAP function '/TESISPLM/T4S_GET_CUST_MM_INFO' in order to read one or more SAP customer material info records. To use this functionality, the SAP transport package 'TESISPLM_T4S_CUSTOMER' must be imported into the SAP system.

Parameters
CustomerNumber
MaterialNumberOptional (Default Empty) If empty, all material info records will be read for the given customer.
Returns
OK and global TCL array ::CustomerResultDat, NOT_FOUND or ERROR with message and StatusDict as TCL list

◆ getExternalNumber()

TPSAP::CUSTOMER::getExternalNumber   InternalNumber  

Retrieves the SAP external customer id for a given SAP internal customer id.

Parameters
InternalNumberSAP internal customer id
Returns
External number

◆ getInternalNumber()

TPSAP::CUSTOMER::getInternalNumber   ExternalNumber  

Retrieves the SAP internal customer id for a given SAP external customer id.

Parameters
ExternalNumberSAP external customer id
Returns
Internal number

◆ maintainCustomerMaterialInfoRecord()

TPSAP::CUSTOMER::maintainCustomerMaterialInfoRecord   args  

Creates or updates a customer material info record. All input parameters are transported using the global TCL array called ::SAPDat and the array pattern CustomerMaterialInfoRecord. All possible field names can be find out using the SAPGUI transaction VD51 and the "F1 - technical help" section from SAP.
Example to create a simple customer material info record:
set ::SAPDat(CustomerMaterialInfoRecord:PARAMETER:MV10A-KUNNR) "490951"
set ::SAPDat(CustomerMaterialInfoRecord:PARAMETER:MV10A-VKORG) "0001"
set ::SAPDat(CustomerMaterialInfoRecord:PARAMETER:MV10A-VTWEG) "01"
set ::SAPDat(CustomerMaterialInfoRecord:PARAMETER:MV10A-MATNR) "50078539"
set ::SAPDat(CustomerMaterialInfoRecord:PARAMETER:MV10A-KDMAT) "0815"
set ::SAPDat(CustomerMaterialInfoRecord:PARAMETER:MV10A-POSTX) "description"
set ::SAPDat(CustomerMaterialInfoRecord:PARAMETER:MV10A-SORTL) "search"
Important: This procedure has a dependency to the SAP transport package "TESISPLM_T4S_CALL_TRANSACTION" and does not work without it.

Returns
OK or ERROR with hex message