Ansicht
Dokumentation

FIN_UI_DECO_DOCVERIF - BAdI: Document Verification

FIN_UI_DECO_DOCVERIF - BAdI: Document Verification

SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up   rdisp/max_wprun_time - Maximum work process run time  
This documentation is copyright by SAP AG.
SAP E-Book

This Business Add-In (BAdI) is used in the Financial Accounting (FI) component.

You can use this BAdI to implement or adapt the following functions for the document verification process:

  • Disable the verification process in specific instances
  • Call the verification rule for calculating the verification level
  • Send a notifiction when the document status changes

You must use this BAdI to use the document verification process.

Before you can use this BAdI, you must enable the settings for document verification process in the Customizing activity Define Document Verification Settings.

For more information about the standard settings (filters, single or multiple uses), see the Enhancement Spot Elements tab in the BAdI Builder (transaction SE18).

  • EA_FIN_UI_DECO_DOCVER_BADI_IMP
This BAdI implementation is used for the document verification process, is designed for single use, and is not filter-dependent. This BAdI contains the following methods:
  • CALL_VERIFICATION_PROCESS_RULE

In the default implementation, this method is used to call the BRF plus rule to calculate the verification level. The importing parameters contain the following data which you can use as conditions:
  • Company Code (IV_BUKRS)

  • Verification Document Number (IV_VERIDOC_NO)

  • Fiscal Year (IV_GJAHR)

  • Current Verification Level (IV_CURRENT_LEVEL)

  • Verification Action (Accept or Reject) (IV_STATUS)

  • Document Header Table (IS_HEADER)

  • Document Item Table (IT_ITEM)

The exporting parameter EV_LEVEL determines the next verification level that the document will be verified before posting as a FI accounting document.
SAP delivers two BRF plus functions CALCULATE_VERIFICATION_LEVEL and CALCULATE_VERIFICATION_LEVEL2 as samples which you can use them as a reference to build your own.
The function CALCULATE_VERIFICATION_LEVEL is built as a decision table in BRF plus that contains the following columns as conditions:
  • Company Code

  • Current Level

  • Local Currency Amount

The Next Level column is the returned result that determines the next verification level.
The function CALCULATE_VERIFICATION_LEVEL2 is built as decision tree in BRF plus that organizes the conditions company code, local currency amount and current level in a tree structure. The returned value is also the Next Level like the above decision table.
If you want to user your own rule to calculate the verification level (instead of the BRF plus rule delivered by SAP), then you need to create your own BAdI implementations.
Regardless of whether you use the default implementation or your own implementation, you need to activate at least one (and only one) implementation. If there is no implementation, system errors.
  • IS_ENABLE_VERIFICATION_PROCESS

In the default implementation, this method always return a TRUE value. This means that the verification process is enabled for all the company codes in this client. You can adapt this logic to suit your needs, for example you can disable the verification process for a specific company code.
In this method, the importing parameters contains all document data including the header and items. You can use these as the conditions. The exporting parameter is EB_ENABLE_VERIFICATION, which determines whether the verification process is enabled or disabled.

For information about the implementation of BAdIs in the context of the Enhancement Concept, see SAP Library for SAP NetWeaver under BAdIs - Embedding in the Enhancement Framework.

BAdI method documentation:






SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up   ABAP Short Reference  
This documentation is copyright by SAP AG.

Length: 6468 Date: 20240523 Time: 215406     sap01-206 ( 136 ms )