General Overview of Function Module Pricing - Complete - ERP SD - SCN Wiki
General Overview of Function Module Pricing - Complete - ERP SD - SCN Wiki
Purpose
In order to make deeper analysis, it's necessary to get some basic technical info regarding header condition and group condition functionality in SD pricing. Provide some overview info about the main
program related to this functionality.
Overview
General introduction
Important internal tables of function module pricing_complete
How does pricing_complete work in general?
Has a large key (e.g. KSCHL, KNUMH, KOPOS, KRECH, KNTYP, KHERK, KSTEU, MESK1)
Key contains also a variable key (VAKEY), which can be affected by group key routines
All TKOMV entries with identical key are in the same group
One GKOMV entry for each group
Contains fields for cumulation (e.g. KAWRT, SUMPS, KWERT, KWERT_K)
A if you go to header condition screen. Process rounding difference comparison and group conditions.
E if you leave the header condition screen or if the Activate button is pressed. Used to distribute conditions entered on header level into items. Also includes the functionality of A.
*---------------------------------------------------------------------*
* KOMP-KAEND_TYP = '*' *
*---------------------------------------------------------------------*
PERFORM fixieren_kopfkond_kopf.
1 of 3 21/01/2016 23:17
General overview of function module pricing_complete - ERP SD - S... http://wiki.scn.sap.com/wiki/display/SD/General+overview+of+functi...
LOOP AT tkomp.
(item pricing)
ENDLOOP.
*---------------------------------------------------------------------*
*---------------------------------------------------------------------*
PERFORM tkomv_exklude_k.
*---------------------------------------------------------------------*
*---------------------------------------------------------------------*
kposn = komp-kposn
tabix = sy-tabix.
LOOP AT gkomv.
MODIFY gkomv.
APPEND gkomv.
ENDLOOP.
*---------------------------------------------------------------------*
*---------------------------------------------------------------------*
CLEAR xkomv.
CLEAR komk.
CLEAR komp.
LOOP AT gkomv.
PERFORM gkomv_bewerten.
ENDLOOP.
*---------------------------------------------------------------------*
*---------------------------------------------------------------------*
2 of 3 21/01/2016 23:17
General overview of function module pricing_complete - ERP SD - S... http://wiki.scn.sap.com/wiki/display/SD/General+overview+of+functi...
LOOP AT gkomz.
ENDLOOP.
In case that you want to have some more detailed information regarding how to do the technical analysis for an issue in header condition/group condition functionality, you may refer to the WIKI page: How
to perform technical analysis for group condition and header condition issue
Related Content
Related Documents
How to perform technical analysis for group condition and header condition issue
3 of 3 21/01/2016 23:17