1. 程式人生 > >SD-如何在訂單中使用客戶層次定價的配置和維護步驟

SD-如何在訂單中使用客戶層次定價的配置和維護步驟

               

在SD中有時會用到按客戶層次進行定價的策略,我這裡就將配置和維護的步驟簡單寫出來,供大家參考.

1)定義層次型別(VOH1)

路徑:銷售和分銷->主資料->業務合作伙伴->客戶->客戶層次->定義層次型別(1)夥伴功能必須維護,否則在層次確定時報"Partner function does not exist"錯誤

2)設定銷售憑證擡頭的合作伙伴確定路徑:銷售和分銷->主資料->業務合作伙伴->客戶->客戶層次->為層次類別設定合作伙伴確定

2.1)合作伙伴確定確定過程 2.2)單據合作伙伴確定過程分配 

3)設定銷售憑證型別為定價分配層次

路徑:銷售和分銷->主資料->業務合作伙伴->客戶->客戶層次->通過銷售憑證型別為定價分配層次型別In this step, you can assign a hierarchy type relevant for pricing for each sales document type. This way you can define the sales document types for which pricing data is taken into account if the data was determined on a level higher than the customer.For every hierarchy node which is selected as relevant for pricing, you can create condition records. During pricing, the customer hierarchy allows the use of price and rebate agreements which were determined on a level higher than the customer. If one or more hierarchy nodes in the hierarchy path of a sales order contain pricing data, these are automatically taken into account in the sales order during pricing.RequirementsIf you want the pricing data of one or more hierarchy nodes in a hierarchy path to be taken into account automatically during pricing, the following requirements must be fulfilled:You must have marked the hierarchy node as relevant for pricing in the master record.Condition records must exist for the hierarchy node(s).You must check whether the partner functions in the system are sufficient for the hierarchy levels which you require. If necessary, create new partner functions.ActionsSpecify for each sales document tpye a hierarchy type relevant for pricing for which you want to take pricing data into account when determining prices. 

4)維護條件表(V/03)

路徑:銷售和分銷->基本功能->定價->定價控制->定義條件表為了能在定價中按層次確認到價格,條件表必須含有層次欄位,如系統有標準808(銷售組織/客戶層次1/PH1/PH2/PH3/物料),使用了客戶層次1(KOMK-HIENR01)欄位.

5)定義儲存順序路徑:銷售和分銷->基本功能->定價->定價控制->定義儲存順序將新建立的條件表加入到儲存順序中

6)定義條件型別路徑:銷售和分銷->基本功能->定價->定價控制->定義條件型別定義新的條件型別,並指向定義的儲存順序

7)定義並分配定價過程路徑:銷售和分銷->基本功能->定價->定價控制->定義並分配定價過程在定價過程中引用新的條件型別

8)維護總店客戶主資料(XD01)

必須設定"銷售區域資料"->開票憑證->開票憑證->價格確定 

9)維護客戶層次(VDH1N)系統會在程式碼單元:FV45PF0P_PREISFINDUNG_VORBEREI中按層次級別給KOMK通訊表的KOMK-HIENR01到KOMK-HIENR16進行賦值.程式碼如下:IF vbak-hityp_pr NE space.  LOOP AT xvbpa WHERE prfre = 'X' AND histunr GT 0 AND posnr = '000000'.    CASE xvbpa-histunr.      WHEN '01'.        tkomk-hienr01 = xvbpa-kunnr.      WHEN '02'.        tkomk-hienr02 = xvbpa-kunnr.

10)建立訂單(VA01)