更新Sales Order里schedule line的ATP检查类型
来源:互联网 发布:酶标仪检测数据怎么看 编辑:程序博客网 时间:2024/05/17 01:21
需求:根据Sales Order 中交货工厂和库存地点的组合不同,设置Schedule line category
解决方法:
(1)在工厂的库存地点中,维护地址中的SerchTerm2为CP;
(2)查找ScheduleLine中,查找User Exit;
在SD标准UserExit - User Exits In Sales Document Processing
因为修改的内容最后写到VBEP表中,所以选用
- USEREXIT_MOVE_FIELD_TO_VBEP
- Use this user exit to assign values to new fields at the level of the sales document schedule lines.
The user exit is called up at the end of the FORM routine VBEP_FUELLEN.
(3)表关系:
TWLAD:Determination of Address from Plant and Storage
ADRC:Addresses (Business Address Services)
1.先查找TWLAD表中的ADRNR(Address number)
2.然后用Address number 到ADRC表中查找到地址信息记录;
(4)代码:
IF VBAK-AUART = 'FPOR' and ( VBAP-WERKS = '1220' or VBAP-WERKS = '1240' or VBAP-WERKS = '1315' ) and VBAP-LGORT <> '' .
SELECT count(*) from TWLAD
INNER JOIN ADRC ON TWLAD~ADRNR = ADRC~ADDRNUMBER
WHERE TWLAD~WERKS = VBAP-WERKS and TWLAD~LGORT = VBAP-LGORT and TWLAD~LFDNR = '001' and ADRC~SORT2 = 'CP' .
IF SY-SUBRC = 0 .
VBEP-ETTYP = 'CP' .
else.
VBEP-ETTYP = 'NP' .
ENDIF.
ENDIF.
- 更新Sales Order里schedule line的ATP检查类型
- ATP检查的一些TIPS
- Sales Order
- 銷售訂單 (Sales Order): 資料表及更新記錄
- How To Import A Sales Order With One Line In Booked Status
- How Does The Invoice Date Get Derived From The Sales Order Line? (文档 ID 300311.1)
- SALES ORDER所有出口
- Sales Order Related Scripts
- Sales Order Related Scripts
- Sales Order Related Scripts
- Sales Order Related Scripts
- sales order 流程
- 一个获取Sales Order中Item价格的Query
- SD-关于信用释放时的ATP检查的逻辑(note:1324433)
- SD-关于信用释放时的ATP检查的逻辑(note:1324433)
- ATP的SDOI2017R1续命记
- ATP的SDOI2017R2被翻记
- Product Cost by Sales Order
- XSL
- SAP IDES、DEV、QAS、PRD都是什么含义
- CVS 添加用户以及新项目
- Http错误代码
- 游戏角色设计小技巧
- 更新Sales Order里schedule line的ATP检查类型
- 淘宝显示全部分类(Jquery效果)
- 网站LOGO如何优化
- QTreeView对象如何设置行高(Row Height)?
- 回家的冲动
- 利用Session完成用户的登录和注销
- C++:STL标准入门汇总
- 四极管: wince 镜像下载 DNW的传输机制
- 两种典型委外处理