Sap sd pricing Technical Analysis

Source: Internet
Author: User

Pricing technology has always been a proud Design of SAP. The design is also very complicated. I tried to debug the SAP standard program.
The basic IMG settings (price table/access sequence/pricing type/Pricing Process) will not be mentioned,
I will share some sap pricing logic with you, hoping to provide some help to the abaper brothers who have made more pricing improvements.

1) PricingProgram
Functionpool: saplv61a
Function Name: Pricing

2) variable description
Xkomv records system pricing results (item level)
Tkomv record system pricing results (Doc. Level)
Komt1 Pricing Process
Komt2 access sequence
Komk pricing keywords (header)
Komp pricing keywords (rows)

3) program processing logic
A) sort out komk/komp values (SAP provides interfaces for enhancement, 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) settings of capture pricing img
Program: lv61aa12
Form: konditionsvorstep
* --> Komk header communication structure *
* <-- Komt1 table of pricing procedure *
* <-- Komt2 table of condition access sequences *

C. Sort out the results table of the pricing process based on the pricing settings.
Program: lv61aa67
Form: xkomv_aufbauen_aus_komt1
*---------------------------------------------------------------------*
* Build xkomv from komt1 derived from t683s *
*---------------------------------------------------------------------*
* --> Komk header communication structure *
* --> Komp item communication structure *
* --> Komt1 pricing procedure *
* --> Komt2 accesses *
* <-- Xkomv internal table of conditions *
*---------------------------------------------------------------------*
The "demand" in the pricing process will be processed here. If the check is successful, the price change type will be recorded in xkomv.
Data of the price primary file will also be processed here, see
Program: lv61aa29
Form: konditionen_lesen

d) sort out the xkomv pricing result table based on tkomv
program: lv61aa58
form: xkomv_aufbauen_aus_tkomv
* Secret *
* build xkomv from tkomv *
* Secret *
* --> komt1 pricing procedure *
* --> tkomv complete table of conditions *
* <-- xkomv internal table of conditions *
* ------------------------------------------------------------------- *

E) Calculation of tables in the pricing process (Processing Formula, subtotal, base value ...)
Program: lv61aa55
Form: xkomv_bewerten
*---------------------------------------------------------------------*
* Calculate on internal 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 *
*---------------------------------------------------------------------*

Subtotal/computing type/basic type is processed here. See sap notes: 900089 for detailed description of processing logic.

F) The prices are excluded based on the records in Table t684.
Program: lv61aa56
Form: xkomv_ausschluss
See sap notes: 836243

G) sort the xkomv results to tkomv
program: lv61aa42
form: xkomv_uebertragen_nach_tkomv
* Primary *
* Transfer xkomv to tkomv *
* Primary *
* --> xkomv table document conditions *
* <-- tkomv table all document conditions *
* ------------------------------------------------------------------------- *

4) Some sap notes about pricing.
1165078 authorization check for conditions or subtotals
1007110 how is the kwert determined in a subtotal?
836243 how condition exclusion works in R/3
791944 how is the kbetr determined in a subtotal?
485740 conditions with fixed amount in copy activities
201830 calculation of the net price of an item
154529 pricing in the delivery
130417 pricing preparation in billing document (User Exit)
92090 exclusion indicator kznep
67958 mode of operation of the condition exclusion
41490 condition exclusion (kznep)
24832 pricing rules/tvcpf
18173 minimum order value
900089 pricing: processing steps form xkomv_bewerten
363212 'pricing analysis 'mode of operation

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.