SAP SD pricing condition技术在系统里的一些练习

来自我的同事Zhang Sara的研究。

(1) Related Concepts
Tcode: VA03

clipboard1
clipboard2
clipboard3

(2) How to determine Pricing Procedure?

clipboard4
clipboard5
clipboard6
clipboard7

The fourth condition: Document Pricing Procedure (related with order type(transaction type)
In this case, we use order type: OR as an example.

clipboard8

The fifth condition: Customer Pricing Procedure

clipboard9

(3) How Pricing Procedure, Condition Type and Access sequence work?

One Pricing Procedure has multi Condition Types.

clipboard10

We use Pricing Procedure (RVAA01), Condition Type (PR00), Access sequence (PR02) as an example to explain how it works.

clipboard11

System will follow steps from 10,20,30,40 to find the pricing one by one.

clipboard12

Then what’s in the condition 10?

clipboard13

Then what’s in the condition 20? Then you can check every condition one by one.

clipboard14

(4) What’s the DB behind pricing procedure and pricing type?
Condition Table: each condition table mapping with one condition table, for example: A304
Conditions (Item): KONP
Key fields in table KONP:
Key1: KNUMH --Condition record number ( foreign key of Condition Table )
Key2: KOPOS --Sequential number of the condition
How to find underlying transparent table for condition table
One way: Condition table xxx mapping with DB table Axxx.
For example:

clipboard15

The second way:

clipboard16

Then I perform a ST05 trace for Access sequence configuration activity and find two series of table T681* and T682*.

clipboard17

In table T681 I find what I want: the field KOTAB stores the name of underlying transparent table to store records. Here field KVEWE A means Pricing, and KAPPL V means Sales & Distribution.

clipboard18

cl_prc_result_factory=>get_instance( )->get_prc_result( )->get_price_element_db_by_key(
         EXPORTING
            iv_knumv                      = '0000069700'
         IMPORTING
            et_prc_element_classic_format = DATA(hkonv) ).
汪子熙 CSDN认证博客专家 前端框架 Node.js SAP
JerryWang,2007年从电子科技大学计算机专业硕士毕业后加入SAP成都研究院工作至今。Jerry是SAP社区导师,SAP中国技术大使。2020年5月下旬,Jerry做了脑部肿瘤的开颅切除手术,对编程和人生又有了新的感悟。
已标记关键词 清除标记
©️2020 CSDN 皮肤主题: 博客之星2020 设计师:CY__ 返回首页