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

Namespaces

 GEN
 

Functions

 callBAPI_PO_GETITEMS args
 Calls SAP function 'BAPI_PO_GETITEMS'. The following lines are extracted from the SAP function module documentation, Copyright SAP AG. More...
 
 getDetail PurchaseOrder args
 Retrieves SAP vendor information. More...
 

Function Documentation

◆ callBAPI_PO_GETITEMS()

TPSAP::PURCHASE::ORDER::callBAPI_PO_GETITEMS   args  

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

_______________________________________________... | | FUNCTIONALITY | _____________ | | This method enables you to list purchase order items. You pass on the | desired selection criteria (e.g. purchasing group, plant, vendor) in | the import parameters. For more information, refer to the relevant | parameter documentation. | | EXAMPLE | _______

| HINTS | _____ | | The following authorization objects are checked with the activity 03 | (Display): | | <DS:UO.M_BEST_BSA>M_BEST_BSA</>,,Document type in purchase order | <DS:UO.M_BEST_EKG>M_BEST_EKG</>,,Purchasing group in purchase order | <DS:UO.M_BEST_EKO>M_BEST_EKO</>,,Purchasing organization in purchase | order | <DS:UO.M_BEST_WRK>M_BEST_WRK</>,,Plant in purchase order | <ZH>Return</> | The items that satisfy the selection criteria are returned in the table | <LS>PoItems</>. | <ZH>Return messages</> | INCLUDE BAPI_RET | | FURTHER_SOURCES_OF_INF | ______________________ | | ..._______________________________________________

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)

◆ getDetail()

TPSAP::PURCHASE::ORDER::getDetail   PurchaseOrder args  

Retrieves SAP vendor information.

Parameters
PurchaseOrder
argsnot used
Returns
OK and global TCL array ::VendorResultDat or ERROR