【问题标题】:abas-ERP: How to create a dataset without using the .make-commandabas-ERP:如何在不使用 .make-command 的情况下创建数据集
【发布时间】:2015-07-15 10:33:36
【问题描述】:

我需要在.make-命令未涵盖的文件中创建数据集。我怎样才能做到这一点?

我尝试使用您在.select-command 中使用的文件标识符和正确的组标识符(例如 group3)。运行时提示“wrong group”。

【问题讨论】:

    标签: erp abas


    【解决方案1】:

    您也可以使用 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 的最大好处是,您可以使用事务。如果一个操作失败,所有的事务都会被回滚。

    【讨论】:

    • 欢迎来到 StackOverflow :-)。我很高兴看到其他人与 abas 合作。不错的答案。我从没想过从 FO 运行 edpimport
    【解决方案2】:

    .command 有一个解决方法

    invisible-Property 设置为1 时,掩码不会变得可见并且会立即保存数据集。

    你可以按如下方式使用它:

    .formula xtCmd = "<File-Identifier> <new>, Group-Identifier ? param1=value1|param2=value2|[invisible]=1"
    .command -WAIT -ID maskID 'U|xtCmd'
    

    【讨论】:

      猜你喜欢
      • 2023-03-21
      • 1970-01-01
      • 2019-05-12
      • 2021-05-06
      • 1970-01-01
      • 1970-01-01
      • 2018-12-03
      • 1970-01-01
      • 2014-01-22
      相关资源
      最近更新 更多