Ansicht
Dokumentation
/AFS/BAPI_PO_CREATE - Create AFS Purchase Order
Vendor Master (General Section) BAL_S_LOG - Application Log: Log header dataThis documentation is copyright by SAP AG.
Functionality
Enables you to create AFS purchase orders.
Example
Notes
The following authorization objects are checked with the activity 01 (Create):
Transfer
The PO header data is passed on in the table POHeader and the item data (both standard and AFS data) in the table POItems. If the account assignment category is set in an item, account assignment data can be passed on for each PO item in the transfer table PoItemAccountAssignment. The account assignment category determines which objects that have relevance to costing must be passed on in the account assignment data. If the account assignment category is K, for example, a cost center must be passed on.
If the item is to be ordered from a one-time vendor, the latter's ordering address must be passed on in the table POAddress.
The table POItemSchedules must be passed on with the delivery date (among other data) for each item.
Limits
Limit data relating to the PO item can be passed on in the tables POLimits und POContractLimits.
Services
Service data relating to the PO item can be passed on in the tables POServices and POSrvAccAssValues
See also the documentation on the parameters, in particular the documentation on the parameters POHeaderAddData, HeaderAddDataRelevant, POItemAddData, and ItemAddDataRelevant.
Texts
Texts data relating to the PO item can be passed on in the tables POItemText and PO header texts in POHeaderText
Return
The purchase order number is returned in the parameter Number.
Messages returned
Messages are returned in the Return parameter. The parameter documentation shows the return codes and their meanings.
Further information
Parameters
EXTENSIONINHEADER_ADD_DATA_RELEVANT
ITEM_ADD_DATA_RELEVANT
PO_ADDRESS
PO_BUSINESS_PARTNER
PO_CONTRACT_LIMITS
PO_HEADER
PO_HEADER_ADD_DATA
PO_HEADER_TEXT
PO_ITEMS
PO_ITEM_ACCOUNT_ASSIGNMENT
PO_ITEM_ADD_DATA
PO_ITEM_SCHEDULES
PO_ITEM_TEXT
PO_LIMITS
PO_SERVICES
PO_SERVICES_TEXT
PO_SRV_ACCASS_VALUES
PURCHASEORDER
RETURN
RETURN1
SKIP_ITEMS_WITH_ERROR
Exceptions
Function Group
/SAPLPO_BAPISTXBHW - Original Tax Base Amount in Local Currency TXBHW - Original Tax Base Amount in Local Currency
This documentation is copyright by SAP AG.
Length: 5403 Date: 20240425 Time: 165959 sap01-206 ( 61 ms )