BDC-Not a Batch Input Session

来源:互联网 发布:电话追踪定位软件 编辑:程序博客网 时间:2024/06/06 01:04

最近用BDC做CO11N报工时遇到一个问题,如果CO11N报工存在货物移动错误,又配置了即使存在这种错误也能报工的话,CO11N保存后先跳到货物移动错误日志的界面,再返回。现在的问题是录屏时点保存后就结束了,压根就没到错误日志的界面。

其实在开始录BDC时勾上"Not a Batch Input Session"选项就行了。

但是程序里调用BDC呢?

看系统生成的代码:

难道要掉'BDC_INSERT'函数?

最终经过多次测试,CALL TRANSACTION就能满足需求,有一个选项是 OPTIONS FROM OPT,OPT的参数:

ComponentMeaningDISMODEProcessing mode for batch input processing. Values as for the MODE addition.UPMODEProcessing mode for batch input processing. Values as for the UPDATE addition.CATTMODECATT mode for batch input processing. CATT means Computer Aided Testtool. While batch input is mostly used for data transfer, CATT processes are to be viewed as more complex transactions, since they are reusable tests. Values: " " (no CATT mode), "N" (CATT without single screen control), "A" (CATT with single screen control).DEFSIZESelection as to whether the screens of the called transaction are displayed in the standard screen size. Values "X" (standard size), " " (current size).RACOMMITSelection as to whether the COMMIT WORK statement terminates batch input processing or not. Values: " " (COMMIT WORK terminates processing), "X" ( COMMIT WORK does not terminate processing).NOBINPTSelection for the symbol field sy-binpt. Values: " " (sy-binpt contains in the called transaction "X"), "X" (sy-binpt contains in the called transaction " ").NOBIENDSelection for the system field sy-binpt. Values: " " (sy-binpt contains "X" after the end of the batch input data in the called transsaction ) "X" (sy-binpt contains " " after the end of the batch input data in the called transaction).

里面的NOBINPT就对应"Not a Batch Input Session"。

另外,指定了OPTIONS FROM 就不能指定MODE和UPDATE了,因为在OPT的参数里包括了这两项。