Académique Documents
Professionnel Documents
Culture Documents
Field Name
Variable Mapping 1
1 Credit Limit
LFA1-STRAS
2 Credit Exceeded by
LFA1-TELTX
USD_TTL_TEXT
LFA1-NAME1
5 90 to 120 days
LFA1-NAME2
6 60 to 90 days
LFA1-NAME3
7 30 to 60 days
LFA1-NAME4
8 01 to 30 days
LFA1-PFORT
9 Oldest Inv
10 Total Overdue
OLDEST_INVOICE_AMOUNT_STRING
LFA1-ORT01
11 Future Due
12 Ttl Recv Outstanding
LFA1-ORT02
LFA1-TELFX
13 Open Orders*
OPEN_SOT
14 Open Deliveries**
15 Curr. Ord (Foreign Curr)
OPEN_DOT
KOMK-FKWRT
ORD_LOC_CURR_TEXT
Line #
349
456
470
478
483
488
493
498
505
509
514
519
523
526
770
435
Logic 1
~ LFA1 - STRAS
~ Value populated by KNKK-KLIMK (Customer's credit limit)
~ LFA1 - TELTX
~ Value populated from Var A
~ IF EXCEEDS GT 0
Var A = EXCEEDS
ELSE
Var A = 0
ENDIF
~ USD_TTL
~ Assignment depends upon whether Credit Limit is exceeded or not
~ IF EXCEEDS LE 0.
USD_TTL = EXPOSURE.
ELSE.
USD_TTL = Var A + KNKK-KLIMK.
ENDIF.
~ IF EXCEEDS GT 0
Var A = EXCEEDS
ELSE
Var A = 0
ENDIF
~ For SO# 337814, the value is populated by this logic (BSID-DMBTR + KNKK-KLIMK)
~ EXCEEDS = ( DUED999 + DUED120 + DUED90 + DUED60 + DUED30 + NOTDUED + OPEN_S
~ ZFKWRT
~ Value is populated from KOMK-FKWRT (Net Value in Document Currency)
~ If the SD Doc Currency is NE 'USD' it is converted into USD using standard FM "CONVERT_
~ EXPOSURE = EXCEEDS + KNKK-KLIMK (Customer's credit limit)
~ DUED999
~ Summation of all the DMBTR (Amount in Local Currency)
of table BSID (Accounting: Secondary Index for Customers)
which matches the below criteria:
Note: Value of DMBTR is positive when Debit and negative when Credit
A. Customer No NE VBAK-VKORG
Special G/L Indicator NE 'R'
Customer No EQ VBAK-KNKLI
Company Code EQ '6500'
B. Var Y is GT 120 days
C. Var Y = Today's Date - Var X
D. If Debit,
Var X = Baseline Date for Due Date Calculation + Cash Discount Days 1
+ Cash Discount Days 2 + Net Payment Terms Period
If Credit,
Var X = Baseline Date for Due Date Calculation
~ DUED120
~ Summation of all the DMBTR (Amount in Local Currency)
of table BSID (Accounting: Secondary Index for Customers)
which matches the below criteria:
Note: Value of DMBTR is positive when Debit and negative when Credit
A. Customer No NE VBAK-VKORG
Special G/L Indicator NE 'R'
Customer No EQ VBAK-KNKLI
Company Code EQ '6500'
B. Var Y is between 91 to 120 days
C. Var Y = Today's Date - Var X
D. If Debit,
Var X = Baseline Date for Due Date Calculation + Cash Discount Days 1
+ Cash Discount Days 2 + Net Payment Terms Period
If Credit,
Var X = Baseline Date for Due Date Calculation
~ DUED90
~ Summation of all the DMBTR (Amount in Local Currency)
of table BSID (Accounting: Secondary Index for Customers)
which matches the below criteria:
Note: Value of DMBTR is positive when Debit and negative when Credit
A. Customer No NE VBAK-VKORG
Special G/L Indicator NE 'R'
Customer No EQ VBAK-KNKLI
Company Code EQ '6500'
B. Var Y is between 61 to 90 days
C. Var Y = Today's Date - Var X
D. If Debit,
Var X = Baseline Date for Due Date Calculation + Cash Discount Days 1
+ Cash Discount Days 2 + Net Payment Terms Period
If Credit,
Var X = Baseline Date for Due Date Calculation
~ DUED60
~ Summation of all the DMBTR (Amount in Local Currency)
of table BSID (Accounting: Secondary Index for Customers)
which matches the below criteria:
Note: Value of DMBTR is positive when Debit and negative when Credit
A. Customer No NE VBAK-VKORG
Special G/L Indicator NE 'R'
Customer No EQ VBAK-KNKLI
Company Code EQ '6500'
B. Var Y is between 31 to 60 days
C. Var Y = Today's Date - Var X
D. If Debit,
Var X = Baseline Date for Due Date Calculation + Cash Discount Days 1
+ Cash Discount Days 2 + Net Payment Terms Period
If Credit,
Var X = Baseline Date for Due Date Calculation
~ DUED30
~ Summation of all the DMBTR (Amount in Local Currency)
of table BSID (Accounting: Secondary Index for Customers)
which matches the below criteria:
Note: Value of DMBTR is positive when Debit and negative when Credit
A. Customer No NE VBAK-VKORG
Special G/L Indicator NE 'R'
Customer No EQ VBAK-KNKLI
Company Code EQ '6500'
B. Var Y is GT 0 and LE 30 days
C. Var Y = Today's Date - Var X
D. If Debit,
Var X = Baseline Date for Due Date Calculation + Cash Discount Days 1
+ Cash Discount Days 2 + Net Payment Terms Period
If Credit,
Var X = Baseline Date for Due Date Calculation
~ OLDEST_INVOICE_AMOUNT
~ Value is populated from field DMBTR (Amount in Local Currency)
of table BSID (Accounting: Secondary Index for Customers)
for first record which matches the below criteria:
A. Customer No NE VBAK-VKORG
Special G/L Indicator NE 'R'
Customer No EQ VBAK-KNKLI
Company Code EQ '6500'
B. Document Type's first letter should be 'R'
~ (DUED30 + DUED60 + DUED 90 + DUED120 + DUED999)
~ NOTDUED
~ Summation of all the DMBTR (Amount in Local Currency)
of table BSID (Accounting: Secondary Index for Customers)
which matches the below criteria:
Note: Value of DMBTR is positive when Debit and negative when Credit
A. Customer No NE VBAK-VKORG
Special G/L Indicator NE 'R'
Customer No EQ VBAK-KNKLI
Company Code EQ '6500'
B. Var Y is LE 0 days
C. Var Y = Today's Date - Var X
D. If Debit,
Var X = Baseline Date for Due Date Calculation + Cash Discount Days 1
+ Cash Discount Days 2 + Net Payment Terms Period
If Credit,
Var X = Baseline Date for Due Date Calculation
~ (NOTDUED + DUED30 + DUED60 + DUED90 + DUED120 + DUED999)
~ OPEN_SO
~ Summation of all the OEIKW (Open sales order credit value (schedule lines))
from table S066 (Open orders: credit management)
with the following condition:
A. Version number in the information structure EQ '000'
B. Credit Control Area EQ '6500'
C. Customer's account number with credit limit reference EQ VBAK-KNKLI (Customer's accoun
~ OPEN_DO
~ Summation of all the OLIKW (Open delivery credit value)
from table S067 (Open deliveries/billing documents (KM))
with the following condition:
A. Version number in the information structure EQ '000'
B. Credit Control Area EQ '6500'
C. Customer's account number with credit limit reference EQ VBAK-KNKLI (Customer's accoun
~ Populated by Standard FM "RV_PRICE_PRINT_HEAD"
~ ZFKWRT
~ Value is populated from KOMK-FKWRT (Net Value in Document Currency)
~ If the SD Doc Currency is NE 'USD' it is converted into USD using standard FM "CONVERT_TO
353
EURO_CEB_TEXT
459
EURO_TTL_TEXT
473
Logic 2
~ Amount converted to Euro currency
using standard FM "CONVERT_TO_FOREIGN_CURRENCY"