T4S4  18.2 C7549 A21431
Teamcenter Gateway for SAP S/4HANA API Reference
TPSAP::PRODORDER Namespace Reference

Functions

 callBAPI_PRODORD_GET_LIST args
 Calls SAP function 'BAPI_PRODORD_GET_LIST'. The following lines are extracted from the SAP function module documentation, Copyright SAP AG. More...
 
 getExternalNumber InternalNumber
 Retrieves the SAP external production order id for a given SAP internal production order id. More...
 
 getInternalNumber ExternalNumber
 Retrieves the SAP internal production order id for a given SAP external production order id. More...
 
 readProductionOrder ProdId args
 Retrieves SAP production order information using the BAPI BAPI_PRODORD_GET_DETAIL. More...
 
 readProductionOrder2 ?ProductionOrderNumber? ?blnSupportSubOperations? args
 Retrieves SAP production order information using the BAPI BAPI_PRODORD_GET_DETAIL. More...
 
 setProdOrderUserStatus args
 Sets user status for a prod order on the header. More...
 

Function Documentation

◆ callBAPI_PRODORD_GET_LIST()

TPSAP::PRODORDER::callBAPI_PRODORD_GET_LIST   args  

Calls SAP function 'BAPI_PRODORD_GET_LIST'. The following lines are extracted from the SAP function module documentation, Copyright SAP AG.

_______________________________________________... | INCLUDE COBAPI_GET_LIST OBJECT DOKU ID TX ..._______________________________________________

Returns
dict structure with the following elements:
  • Status OK|ERROR|JCO_ERROR
  • JCoStatus OK|ERROR
  • ErrorMessage last error message
  • NoOfMessages number of messages
  • LogMessageMessage(1 .. n)
  • LogMessageSeverity(1 .. n)

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

◆ getExternalNumber()

TPSAP::PRODORDER::getExternalNumber   InternalNumber  

Retrieves the SAP external production order id for a given SAP internal production order id.

Parameters
InternalNumberSAP internal production order id
Returns
External number

References TPSAP::getSessionLogChannel().

◆ getInternalNumber()

TPSAP::PRODORDER::getInternalNumber   ExternalNumber  

Retrieves the SAP internal production order id for a given SAP external production order id.

Parameters
ExternalNumberSAP external production order id
Returns
Internal number

References TPSAP::getSessionLogChannel().

Referenced by readProductionOrder2().

◆ readProductionOrder()

TPSAP::PRODORDER::readProductionOrder   ProdId args  

Retrieves SAP production order information using the BAPI BAPI_PRODORD_GET_DETAIL.

Parameters
ProdIdProduction order number
argsnot used
Returns
OK and global TCL array ::sap_result_array or ERROR

References TPSAP::getSessionLogChannel(), and tpwrite().

◆ readProductionOrder2()

TPSAP::PRODORDER::readProductionOrder2   ?ProductionOrderNumber? ?blnSupportSubOperations? args  

Retrieves SAP production order information using the BAPI BAPI_PRODORD_GET_DETAIL.

Parameters
ProductionOrderNumber- (optional) -> if the value is empty the content of the ::SAPDat(ProdOrder:PARAMETER:NUMBER) variable is used to retrieve the production order information
blnSupportSubOperations- (optional - false) (true|false) -> Retrieve SUBOPERATIONS information; Not supported from older SAP systems
argsnot used
Returns
OK and global TCL array ::sap_result_array or ERROR

References getInternalNumber(), and TPSAP::getSessionLogChannel().

◆ setProdOrderUserStatus()

TPSAP::PRODORDER::setProdOrderUserStatus   args  

Sets user status for a prod order on the header.

Parameters
argsnone
Returns
List of Status (OK| ERROR and list of erroe message )

References TPSAP::getSessionLogChannel(), TPSAP::performSapCall(), and tpco_scanHEX16().