# Enterprise Communication Interface (ECI)

## eci_cre_gtm_rec

### Description
Insert record in GTM-list. Open GTM-list. Select for record and if it does not exist: write default values to fields, interactive mode: user can modify and insert values, call of field and list triggers. Return values of return fields. If record exists, return appropriate return code.
| If a record is found with selection values, an error is returned. The letter of the attributes are allowed as field names. You can also specify the field names without the GTM-table number: SML.C_1, SML.C_2 etc, instead of SML5.C_1, SML5.C_2 for GTM-table SML5.
### Input parameter
#### wdg_mod
string | mode of widget {"list", "form"}
#### act_mod
string | mode of interaction {"int", "bat"}
#### csg_nam
stringlist | Part1: classification code of group Part2: SML_NUM of classification group
As the classification code is no longer the unique key, it is necessary to provide the unique key "SML_NUM". #### sel_fld_nam
stringlist | names of fields for selection
#### sel_fld_val
stringlist | values of fields for selection
#### set_fld_nam
stringlist | names of default fields
#### set_fld_val
stringlist | values of default fields
#### ret_fld_nam
stringlist | names of return fields
### Output parameter
#### ret_fld_val
stringlist | values of return fields