Ansicht
Dokumentation
BAPI_PR_CREATE - Create Enjoy Purchase Requisition
ABAP Short Reference TXBHW - Original Tax Base Amount in Local CurrencyThis documentation is copyright by SAP AG.
Functionality
You can use function module BAPI_PR_CREATE to create purchase requisitions. The BAPI uses the functionality of the single-screen purchase requisition (transaction ME51N).
ALE message type PREQCR1 is also available.
If you have activated the PSM, US Federal Government - General Functions 2 (PSM_USFED_CI_2) business function, park is available as well as hold, providing a further option for saving documents temporarily.
You can use this function module to control the conditions under which purchase requisitions can be put on hold, parked, or saved. First, the system checks whether the created document contains errors. In documents with errors, the MEMORY_UNCOMPLETE and PARK_UNCOMPLETE parameters are evaluated. You control the system's behavior in documents that contain no errors in the MEMORY_COMPLETE and PARK_COMPLETE parameters.
For more information, see the documentation for the parameter PRHEADER.
Example
Notes
Further information
In the Business Object Repository, you will find method
CreateFromData1under business object BUS2105.
When you create a purchase requisition, the following fields must
be transferred via the BAPI interface:
- PRITEMand PRITEMX
- PREQ_ITEM
- For material items MATERIAL, for text items SHORT_TEXT
- PUR_GROUP
- PLANT
- QUANTITY
The BAPI is implemented in function group 2105.
If no document typeis transferred, the system uses NBas a default.
Parameters
ALLVERSIONSEXTENSIONIN
EXTENSIONOUT
NUMBER
PRACCOUNT
PRACCOUNTPROITSEGMENT
PRACCOUNTX
PRADDRDELIVERY
PRCOMPONENTS
PRCOMPONENTSX
PRHEADER
PRHEADEREXP
PRHEADERTEXT
PRHEADERX
PRITEM
PRITEMEXP
PRITEMSOURCE
PRITEMTEXT
PRITEMX
PRVERSION
PRVERSIONX
RETURN
SERIALNUMBER
SERIALNUMBERX
SERVICEACCOUNT
SERVICEACCOUNTX
SERVICECONTRACTLIMITS
SERVICECONTRACTLIMITSX
SERVICELIMIT
SERVICELIMITX
SERVICELINES
SERVICELINESX
SERVICELONGTEXTS
SERVICEOUTLINE
SERVICEOUTLINEX
TESTRUN
Exceptions
Function Group
2105General Material Data Vendor Master (General Section)
This documentation is copyright by SAP AG.
Length: 6552 Date: 20240523 Time: 174301 sap01-206 ( 61 ms )