Ansicht
Dokumentation
BS01_PURCHASE_DOCUMENT_CREATE - Purchase Document Creation
CL_GUI_FRONTEND_SERVICES - Frontend Services Fill RESBD Structure from EBP Component StructureThis documentation is copyright by SAP AG.
Functionality
You can create purchase orders (PO) with this method.
Example
Notes
The following authorization objects with activity 01 (create) are checked:
- M_BEST_BSA,,Document type in PO
- M_BEST_EKG,,Purchasing group in PO
- M_BEST_EKO,,Purchasing organization in PO
- M_BEST_WRK,,Plant in PO
Transfer
The PO header data is transferred in table PoHeader and the item data in table PoItems. If the account assignemnt category is set in an item, account assignemnt data can be transferred per PO item in the transfer table PoItemAccountAssignm. The account assignment category determines which objects that are relevant to cost accounting have to be transferred in the account assignment data. For example, K = a cost center has to be transferred.
If the item is to be ordered from a one-time vendor, this ordering address must transferred in table PoAddress.
Table PoItemSchedules has to be transferred per item with the delivery date etc.
Limits
You can transfer limit data for the PO item in tables PoLimits and PoContractLimits.
Services
You can transfer service data for the PO item in tables POServices and POSrvAccAssValues.
Please read the documentation for the parameters, especially for PoHeaderAddData, HeaderAddDataRelevant, PoItemAddData and ItemAddDataRelevant.
Return
The PO number is returned in parameter Number.
Return messages
Messages are returned in the Return parameter. The parameter documentation shows the return codes and their meanings.
Further information
Parameters
DOCUMENT_CATEGORYDOC_ADDRESS
DOC_CONTRACT_LIMITS
DOC_HEADER
DOC_ITEMS
DOC_ITEM_ACCOUNT_ASSIGNMENT
DOC_ITEM_SCHEDULES
DOC_ITEM_TEXT
DOC_LIMITS
DOC_SERVICES
DOC_SERVICES_TEXT
DOC_SRV_ACCASS_VALUES
EXTENSIONIN
PURCHASEORDER
RETURN
SKIP_ITEMS_WITH_ERROR
Exceptions
Function Group
BOS04General Data in Customer Master BAL_S_LOG - Application Log: Log header data
This documentation is copyright by SAP AG.
Length: 4419 Date: 20240523 Time: 164312 sap01-206 ( 50 ms )