SAP ABAP Data Element FLQ_EXITFUNCTION (Liquidity Calculation: Exit Function for Substitution)
Hierarchy
SAP_FIN (Software Component) SAP_FIN
   TR (Application Component) Treasury
     FFLQ (Package) Liquidity Calculation
Basic Data
Data Element FLQ_EXITFUNCTION
Short Description Liquidity Calculation: Exit Function for Substitution  
Data Type
Category of Dictionary Type D   Domain
Type of Object Referenced     No Information
Domain / Name of Reference Type FUNCNAME    
Data Type CHAR   Character String 
Length 30    
Decimal Places 0    
Output Length 30    
Value Table TFDIR    
Further Characteristics
Search Help: Name    
Search Help: Parameters    
Parameter ID LIB  
Default Component name    
Change document    
No Input History    
Basic direction is set to LTR    
No BIDI Filtering    
Field Label
  Length  Field Label  
Short 10 Funct.Name 
Medium 20 Exit Function Module 
Long 20 Exit Function Module 
Heading 20 Exit Function Module 
Documentation

Definition

This module is called in function FLQ_STANDARD_INV_PREPARE. The interface is the same as the one used in FLQ_SAMPLE_INV_LINE.

Technical background:
If FLQ_STANDARD_INV_PREPARE has been entered in process event 1120, and you enter a document with customer and vendor line items in accounting, all the other line items in the document (that is, the G/L account line items) are transferred to the specified module individually.

In each case, the module determines whether the line item changes the value of the substitution field and what the new value is.

If the amount behind a new value is high enough (minimum: defined percentage rate * amount in customer/vendor line items), the substitution field in the customer/vendor line items in FLQ_STANDARD_INV_PREPARE is set to the new value.

Example: Vendor Invoice

001    31    Vendor    1300

002    40    Expenses    1000

003    40    Tax    300

FLQ_STANDARD_INV_PREPARE transfers the G/L line items 002 and 003 from this invoice to the specified module.

Substitution field = XREF1

Module determines:
Line item 002: XREF1 = 'EXPENSE'
Line item 003: No value or other value for XREF1

Result:
If the percentage rate is 60, the vendor line item XREF1 = 'EXPENSE' is substituted (1300 * 0.6 is less than 1000).
If the percentage rate is 90, it is not substituted.

History
Last changed by/on SAP  20030325 
SAP Release Created in