SAP SD Pricing - Condition Technology

650 阅读1分钟

Example System: ER9
1, Related Concepts
Tcode: VA03

clipboard1
clipboard2
clipboard3

  1. 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

  1. 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

  1. 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

you can create a report in ER9/001, and paste the following source code to debug:

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) ).

We will use this price API available in S4/HANA system in the future.

要获取更多Jerry的原创文章,请关注公众号"汪子熙":