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.

相关参照
http://blog.csdn.net/CompassButton/archive/2006/08/25/1115036.aspx
http://blog.csdn.net/compassbutton/archive/2006/08/15/1066926.aspx



你可能感兴趣的:(.net,Blog)