Ansicht
Dokumentation
BAPI_PR_CHANGE - Change Enjoy Purchase Requisition
General Data in Customer Master BAL_S_LOG - Application Log: Log header dataThis documentation is copyright by SAP AG.
Functionality
You can use function module BAPI_PR_CHANGE to change purchase requisitions. The BAPI uses the functionality of the single-screen purchase requisition (transaction ME52N).
ALE message type PREQCHANGE 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 changed 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.
The following points apply to the saving of changed purchase requisitions:
- If you change documents that are on hold, you can put them on hold again, park them, or save them.
- If you change parked documents, you can park them again or save them. Changes to parked documents cannot be put on hold:
- If you change documents that have already been saved, you cannot put them on hold or park them.
For more information, see the documentation for the parameter PRHEADER.
Example
Notes
Further information
In the Business Object Repository, you will find method CreateFromData1 within business object BUS2105. When you change a purchase requisition, at least the NUMBER field must be filled with the number of the purchase requisition to be changed. This field is checked against a corresponding entry in table EBAN.
The BAPI is implemented in function group 2105.
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 Data in Customer Master BAL Application Log Documentation
This documentation is copyright by SAP AG.
Length: 6317 Date: 20240523 Time: 180229 sap01-206 ( 67 ms )