Ansicht
Dokumentation

BBP_ITEM_CHECK_BADI - Purchasing Document Check for Item

BBP_ITEM_CHECK_BADI - Purchasing Document Check for Item

RFUMSV00 - Advance Return for Tax on Sales/Purchases   CPI1466 during Backup  
This documentation is copyright by SAP AG.
SAP E-Book

Document checks can be split into three categories:

  1. Checks that relate to the document header,
  2. Checks that relate to individual items and
  3. Checks that relate to the entire document.

For performance reasons, checks of the second category (item checks) should only be carried out when,

  • a new item is created,
  • an item is changed or
  • the entire document is to be checked for consistency (for example, when you choose the pushbutton "Check").

BAdI (s. Business Add-In) BBP_DOC_CHECK_BADIis suitable for checks of categories 1 and 3. All items exist in BAdI BBP_DOC_CHECK_BADI but it is not obvious which items have been changed or newly created. For this reason, all items in this BAdI must always be checked. For performance reasons we recommend, therefore, that you use BAdI BBP_ITEM_CHECK_BADI for category 2 checks (individual item checks).

Using BAdI BBP_ITEM_CHECK_BADI you can carry out separate checks for the item data of a document. You cannot change any data with this BAdI.

The BBP_ITEM_CHECK_BADI is called when,

  • a new item has been created,
  • an item has been changed or
  • the document is to be checked (pushbutton Check has been used).

In method BBP_ITEM_CHECK the following parameters are available:

  • FLT_VAL serves as a filter value to enable you to assign the implementation to a specific document type.
  • IV_DOC_GUID, the document GUID with which you can access the document data
  • IV_ITEM_GUID, the item GUID with which you can access the item data
  • IV_MODE, you can control the checks depending on this mode. Value area: C (CREATE), U (UPDATE), T (CHECK).
  • ET_MESSAGES; in this table you output the results of your checks.
    Note: Before each method call-up the system deletes the table of error messages.

See also Implementation






rdisp/max_wprun_time - Maximum work process run time   Vendor Master (General Section)  
This documentation is copyright by SAP AG.

Length: 2548 Date: 20240607 Time: 164338     sap01-206 ( 36 ms )