Use this detection method to find duplicate invoices that were approved by the same user.
Invoices are considered duplicates if the:
Company code (field BUKRS
in table BKPF
) is the same
Vendor (field LIFNR
in table BSEG
) is the same
Reference number (field XBLNR
in table BKPF
) is the same
Amount (field WRBTR
in table BSEG
) is the same
Document currency (field WAERS
in table BKPF
) is the same
Document numbers (field BELNR
in table BKPF
) are different
If the invoices are duplicates and the approver (field WI_AAGENT
in table SWWWIHEAD
) is identical, then the detection method returns a score of 100.
To determine the approver, only workflow items with task ID TS00407862
, which is the standard payment release task (field WI_RH_TASK
in table SWWWIHEAD
), are considered. This information may need to be adapted for customer-specific workflow implementations.
FRA_VEND
: (Vendor
)
FRA_VEINVH
: (Vendor Invoice Header
)
BKPF
: Accounting Document Header
BSEG
: Accounting Document Segment
LFA1
: Vendor Master (General Section)
LFB1
: Vendor Master (Company Code)
SWOTIP
: Index Parent Object Types
SWWWIHEAD
: Workflow Runtime: Header Table for All Work Item Types
SWW_WI2OBJ
: Workflow Runtime: Relation of Work Item to Object
Procedure Category | Procedure Name | Procedure Type | Package |
---|---|---|---|
Selection |
| SQLScript Procedure |
|
Execution |
| SQLScript Procedure |
|
Additional Information |
| SQLScript Procedure |
|
None
Message ID | Message Number | Message Text |
---|---|---|
|
|
|
|
|
|