7

交货单行项目手动添加控制

 1 year ago
source link: https://blogs.sap.com/2022/05/11/%e4%ba%a4%e8%b4%a7%e5%8d%95%e8%a1%8c%e9%a1%b9%e7%9b%ae%e6%89%8b%e5%8a%a8%e6%b7%bb%e5%8a%a0%e6%8e%a7%e5%88%b6/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

交货单行项目手动添加控制

客户需求,由于交货单允许手动添加行项目,这会使得与销售订单不一致,在复杂繁多的实际业务中,由于员工误判或者操作原因添加免费行项目会直接导致公司实际亏损,需要避免此场景的发生。

我们可以通过BADI :保存交货前的最后检查,添加自定义逻辑

delivery1.png

比如对手动添加免费项目的交货单行项目类型DLXN进行控制,如果新增此项目类型,那么发生报错无法保存,下面代码仅供参考

delivery2.png

1. 更改交货单时,手动添加免费行项目点击保存

delivery3.png

2. 创建交货单时,手动添加免费行项目点击保存

delivery4.png


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK