Ansicht
Dokumentation
MMPUR_PROCESS_PO_CL - BAdI: Final Check Before Saving Purchase Order
TXBHW - Original Tax Base Amount in Local Currency RFUMSV00 - Advance Return for Tax on Sales/PurchasesThis documentation is copyright by SAP AG.
This Business Add-In (BAdI) is used in Purchasing (MM-PUR-PO) component and is intended to be used in a Cloud edition only.
You can use this BAdI to implement your own checks before a purchase order is saved. As a modification parameter, you can create messages and display them to the business users. The messages have the following effects:
- Information messages inform the user but do not prevent the purchase order from being saved.
- Warning messages alert the user but do not prevent the purchase order from being saved.
- Error and abort messages alert the user and prevent the purchase order from being saved.
The BAdI interface method is CHECK.
To create translatable texts, go to the tile Custom Business Objects, and choose the tab Custom Code Lists. You can find details about how to implement custom code lists in the comments of the example implementation.
Inbound parameters:
- PURCHASEORDER
- This input parameter provides the purchase order header information that is about to be saved. The key field is PURCHASEORDER.
- PURCHASEORDER_DB
- This input parameter provides purchase order header information that exists on the database. The key field is PURCHASEORDER.
- PURCHASEORDERITEMS
- This input parameter provides the purchase order item information that is about to be saved. The key fields are PURCHASEORDER and PURCHASEORDERITEM.
- PURCHASEORDERITEMS_DB
- This input parameter provides purchase order item information that exists on the database. The key fields are PURCHASEORDER and PURCHASEORDERITEM.
- PURCHASEORDERSCHEDULELINES
- This input parameter provides schedule lines for items in purchase orders that are about to be saved. The key fields are PURCHASEORDER, PURCHASEORDERITEM, and SCHEDULELINE.
- PURCHASEORDERACCOUNTING
- This input parameter provides account assignment information for items in purchase orders that are about to be saved. The key fields are PURCHASEORDER, PURCHASEORDERITEM, and ACCOUNTASSIGNMENTNUMBER.
The abovementioned key fields are used for the foreign key relationships.
Outbound parameter:
MESSAGES
This BAdI currently does not support the full scope of message handling. Therefore, you can only use the attributes MESSAGETYPE and MESSAGEVARIABLE1 of the parameter.
The messages contain the following information:
- MESSAGETYPE
- This key field contains one of the following values:
- A: Abort
- E: Error
- W: Warning
- I: Information
- MESSAGEVARIABLE1
- This parameter contains the message text.
A simple sample implementation is available that illustrates the intended use of the BAdI. This implementation ensures that the purchasing group assigned to a purchase order cannot be changed as soon as the purchase order has been saved on the database. If a user tries to change the purchasing group, an error message prevents the purchase order from being saved. A corresponding message text is displayed to the user.
For more information, see the documentation available in Custom Code Lists.
rdisp/max_wprun_time - Maximum work process run time TXBHW - Original Tax Base Amount in Local Currency
This documentation is copyright by SAP AG.
Length: 4158 Date: 20240523 Time: 193816 sap01-206 ( 59 ms )