设为首页 收藏本站
查看: 939|回复: 0

[经验分享] 【转】SAP SD定价技术分析

[复制链接]

尚未签到

发表于 2015-9-18 09:49:17 | 显示全部楼层 |阅读模式
  定价技术一直是SAP引以为豪的一个设计。设计也很复杂,闲下空来DEBUG了一下SAP的标准程式。   
基础的IMG设定(定价表/访问顺序/定价类型/定价过程)就不说了,   
现将一些SAP的定价逻辑分享给大家,希望能给做定价增强的ABAPer兄弟一些些帮助。
  1) 定价程序   
FunctionPool: SAPLV61A   
Function Name: Pricing
  2) 变量说明   
XKOMV 记录系统定价结果(Item Level)   
TKOMV 记录系统定价结果(Doc. Level)   
KOMT1 定价过程   
KOMT2 访问顺序   
KOMK 定价关键字(表头)   
KOMP 定价关键字(行)
  3) 程序处理逻辑   
A) 整理 KOMK / KOMP 的值 (SAP提供接口做增强,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) 抓取定价IMG的相关设定   
Program: LV61AA12   
FORM: KONDITIONSVORSTEP   
* --> KOMK header communication structure *   
* <-- KOMT1 table of pricing procedure *   
* <-- KOMT2 table of condition access sequences *
  C) 根据定价设定,整理定价过程结果内表   
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 *   
*---------------------------------------------------------------------*   
定价过程中的&quot;需求&quot;将在这里被处理. 如果检查通过的话,改定价类型将会被记录在XKOMV里面.   
价格主档的数据也会在这里被处理,见   
Program: LV61AA29   
FORM: konditionen_lesen
  D) 根据TKOMV整理XKOMV定价过程结果内表   
Program: LV61AA58   
FORM: XKOMV_AUFBAUEN_AUS_TKOMV   
*---------------------------------------------------------------------*   
* Build XKOMV from TKOMV *   
*---------------------------------------------------------------------*   
* --> KOMT1 pricing procedure *   
* --> TKOMV complete table of conditions *   
* <-- XKOMV internal table of conditions *   
*---------------------------------------------------------------------*
  E) 定价过程内表的计算(处理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 *   
*---------------------------------------------------------------------*
  小计/计算类型/基础类型 在这里被处理. 可参考 SAP NOTES: 900089,有详细描述处理逻辑.
  F) 根据表T684的记录,执行定价排斥   
Program: LV61AA56   
FORM: XKOMV_AUSSCHLUSS   
可参考 SAP NOTES: 836243
  G) 将XKOMV的结果整理到TKOMV   
Program: LV61AA42   
FORM: XKOMV_UEBERTRAGEN_NACH_TKOMV   
*---------------------------------------------------------------------*   
* Transfer XKOMV to TKOMV *   
*---------------------------------------------------------------------*   
* --> XKOMV table document conditions *   
* <-- TKOMV table all document conditions *   
*---------------------------------------------------------------------*
  4) 有关定价的一些SAP NOTES.   
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

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.iyunv.com/thread-115225-1-1.html 上篇帖子: SAP中本地文件的upload和download的方法 下篇帖子: SAP Infotypes
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表