1. 程式人生 > >SD的信用控制增強

SD的信用控制增強

1 信用檢查呼叫的函式
FUNCTION SD_ORDER_CREDIT_CHECK 

2 信用釋放的函式(相關TCODE: VKM1)
FUNCTION SD_ORDER_CREDIT_RELEASE

3 對信用檢查重呼叫和可用性檢查重呼叫的程式(V_V1)
程式 SDV03V01

4 使用者可增強的介面
Credit Check
If you want to carry out your own individual credit checks, that differ from those in the standard system, you must define them in the following user exits:

LVKMPTZZ
LVKMPFZ1: USER_CREDIT_CHECK1
LVKMPFZ2: USER_CREDIT_CHECK2
LVKMPFZ3: USER_CREDIT_CHECK3
User exit for availability check
User exit USEREXIT_AVAIL_CHECK_CREDIT exists in Include MV45AFZF.

5 重要的結構和其他函式
S067-ofaku 未清開票憑證
s067-olikw  交貨
s066-oeikw 訂單
SD_CREDIT_EXPOSURE : 計算銷售值

6 可以參照的函式呼叫單元 LVKMPF0G

7 信用額度讀取
      CALL FUNCTION 'CREDIT_EXPOSURE'
        EXPORTING
          kkber                = wa_result-kkber
          kunnr                = wa_result-kunnr
          date_credit_exposure = '99991231'
        IMPORTING
          creditlimit          = old_klimk
          open_delivery        = old_olikw
          open_invoice         = old_ofakw
          open_items           = old_skfor
          open_order           = old_oeikw
          PERCENTAGE           = old_KLPRZ
          sum_opens            = old_oblig.