11-09-2023 9:41 AM - edited 02-04-2024 5:29 AM
目前业务在前台写自定义逻辑,无法把销售订单字段增强到销售订单中
select single YY1_MESS1_SDI from I_salesdocumentitem into @MANUFACTURINGORDER_CHANGED-YY1_ADDTEST1_ORD where salesdocument = @MANUFACTURINGORDER-SALESORDER and SALESDOCUMENTITEM = @MANUFACTURINGORDER-SALESORDERITEM.
所以让后台来实现该需求,找到了近似的badi 增强 BD_COBADICFL_MFGORDER_HDR_INIT找不到传入的结构
入参,如下图:
然而我在增强的class中引用不到该结构,后台显示的是一个字段
如采购订单的例子传入是是一个内表就可以使用
请问下老师该如何去找到出入参数,进行代码编写
Hi ZeNan,
What is the sytax error you got when using MANUFACTURINGORDER.
I check in system, ty_manufacturingorder_in has salesorder and item information.
I think you exmaple code is correct:
select single YY1_MESS1_SDI from I_salesdocumentitem into @MANUFACTURINGORDER_CHANGED-YY1_ADDTEST1_ORD where salesdocument = @MANUFACTURINGORDER-SALESORDER and SALESDOCUMENTITEM = @MANUFACTURINGORDER-SALESORDERITEM.
But in your editor, I cannot see @ before MANUFACTURINGORDER which could be the problem.
BR,
Hongbo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
9 | |
7 | |
6 | |
6 | |
3 | |
3 | |
3 | |
2 | |
2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.