【发布时间】:2015-07-15 10:33:36
【问题描述】:
我需要在.make-命令未涵盖的文件中创建数据集。我怎样才能做到这一点?
我尝试使用您在.select-command 中使用的文件标识符和正确的组标识符(例如 group3)。运行时提示“wrong group”。
【问题讨论】:
我需要在.make-命令未涵盖的文件中创建数据集。我怎样才能做到这一点?
我尝试使用您在.select-command 中使用的文件标识符和正确的组标识符(例如 group3)。运行时提示“wrong group”。
【问题讨论】:
您也可以使用 EDP 或 EPI。 如何使用 EDP 创建客户的简短示例:
.type text xtedp xterr xtres xtsys
..
..: file containing the EDP commands
.file -TEMPNAME U|xtedp
..: file containing the error output of the edp command
.file -TEMPNAME U|xterr
..: file containing the id of the new customor
.file -TEMPNAME U|xtres
..
..: Create the edp command file containing two new customers
.input DATEI.F
.output new 'U|xtedp'
# hier you can write a comment for the edp file
#!database=0
#!group=1
#!action=new
#!password=yourpassword
#!charset=EKS
#!report=NUM
#!DONTCHANGE=-
#!TRANSACTION=1
# now we list all fields which we want to write
such#name#ans#plz#nort#str#
DOW#John Dow Ldt;#John Dow Ltd#12345#Someplace#Somestreet#
Max#Max Ldt;#Max Ltd#22345#Someplace2#Somestreet2#
..
..: close edp file
.output TERMINAL
..
..: Execute the edp command
.formula U|xtsys = "edpimport.sh " + " -t# -I " + 'U|xtedp' + " > " + 'U|xtrep' + " 2> " + 'U|xterr'
.system 'U|xtsys' background
..
..: G|mehr or G|success is "true" when the command could be executed successfully (on some abas-ERP versions G|success does not wort, use G|mehr)
.continue ERROR ? _G|success
.continue SHOW
!ERROR
..: Do something here!!
..
!SHOW
New customer(s) created:
.input -TEXT 'U|xtres'
.continue
使用 edp 的最大好处是,您可以使用事务。如果一个操作失败,所有的事务都会被回滚。
【讨论】:
.command 有一个解决方法
当invisible-Property 设置为1 时,掩码不会变得可见并且会立即保存数据集。
你可以按如下方式使用它:
.formula xtCmd = "<File-Identifier> <new>, Group-Identifier ? param1=value1|param2=value2|[invisible]=1"
.command -WAIT -ID maskID 'U|xtCmd'
【讨论】: