close

SAP SD定價技術分析 - Part I

1) 定價程式
FunctionPool: SAPLV61A
Function Name: Pricing


2) 變數說明
XKOMV 記錄系統定價結果(Item Level)
TKOMV 記錄系統定價結果(Doc. Level)
KOMT1 定價過程
KOMT2 訪問順序
KOMK 定價關鍵字(表頭)
KOMP 定價關鍵字(行)


3) 程式處理邏輯
A) 整理 KOMK / KOMP 的值 (SAP提供介面做增強,SO/DN/BILLING)
SO:
Program: MV45AFZZ
User Exit: userexit_pricing_prepare_tkomk / userexit_pricing_prepare_tkomp
DN:
BADI: LE_SHP_PRICING
Method: CHANGE_INPUT_HEADER_AND_ITEMS
BILLING:
Program: RV60AFZZ
User Exit: USEREXIT_PRICING_PREPARE_TKOMK / USEREXIT_PRICING_PREPARE_TKOMP


B) 抓取定價IMG的相關設定
Program: LV61AA12
FORM: KONDITIONSVORSTEP

--------------------------------------------------------------------------------

* --> KOMK header communication structure *
* KOMK header communication structure *
* --> KOMP item communication structure *
* --> KOMT1 pricing procedure *
* --> KOMT2 accesses *
* KOMT1 pricing procedure *
* --> TKOMV complete table of conditions *
* PREISFINDUNGSART pricing type *
* --> KOMK header communication structure *
* KOMP item communication structure *
* XKOMV internal table of conditions *
* GKOMV table of group conditions pricing type F only *
* --> GKOMZ table of group cond indeces pricing type F only *F) 根據表T684的記錄,執行定價排斥
Program: LV61AA56
FORM: XKOMV_AUSSCHLUSS
可參考 SAP NOTES: 836243


G) 將XKOMV的結果整理到TKOMV
Program: LV61AA42
FORM: XKOMV_UEBERTRAGEN_NACH_TKOMV

--------------------------------------------------------------------------------

* Transfer XKOMV to TKOMV *

--------------------------------------------------------------------------------

* --> XKOMV table document conditions *
*


arrow
arrow
    全站熱搜
    創作者介紹
    創作者 Aspromise 的頭像
    Aspromise

    Aspromise

    Aspromise 發表在 痞客邦 留言(1) 人氣()