METHOD IF_EX_LE_SHP_DELIVERY_PROC~CHANGE_DELIVERY_HEADER .
data : thismonth(2) type c.
data : wa_likp type line of SHP_LIKP_T.
data : wa_log type line of SHP_BADI_ERROR_LOG_T.
clear ct_log[],thismonth.
thismonth = sy-datum+4(2). "----->這一個月的月份
loop at it_xlikp into wa_likp.
check IS_V50AGL-WARENAUSG_STORNO ='X'."--->代表作GI cancel
if wa_likp-WADAT_IST+4(2) < thismonth.
wa_log-VBELN = cs_likp-vbeln.
wa_log-MSGTY = 'E'. "錯誤訊息
wa_log-MSGID = 'ZDN_ERROR'. "這一個class要自己建
wa_log-MSGNO = '001'.
append wa_log to ct_log. "Error log寫入
endif.
endloop.
ENDMETHOD.
SD相关的BADI
HU_BADI[td=1,1,445]Business Add-Ins for Handling Units
LE_SHP_BADI[td]Business Add-Ins in Shipping
LE_TRA_BADI[td]Business Add-Ins in Transportation
LE_WM_BADI[td]Business Add-Ins in Warehouse Management
MRM_BADI[td]Business Add-Ins in Invoice Verification
PL_PACKINST_BADI[td]Business Add-In in the Packing Instruction
S_BADI_FORMULA_BUILDER[td]BADI Implementation with Formula Builder
VA_BADI[td]BADIs R/3 Sales
VF_BADI[td]BAdIs for Billing
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