# Enterprise Communication Interface (ECI)

## eci_ins_typ

### Description
Insert record in type list. Open mask of type. Select record. Iif record exists: Cancel function and return errorcode. If record does not exist: Set default values 'ins_fld_nam'. User can modify record in interactive mode. Field and list trigger of list are executed. Record is saved. Return values of return fields. Close mask.
| Selection is used to check if record already exists.
### Input parameter
ent_nam
string | name of entity
typ_nam
string | name of type
wdg_nam
string | name of mask
wdg_mod
string | mode of widget {"list","form","bvb"}
act_mod
string | mode of interaction {"int","bat"}
sel_fld_nam
stringlist | names of fields for selection
sel_fld_val
stringlist | values of fields for selection
ins_fld_nam
stringlist | names of default fields
ins_fld_val
stringlist | values of default fields
ret_fld_nam
stringlist | names of field to return
### Output parameter
ret_fld_val
stringlist | values of field to return
### Example
Insert a document type record. Input parameters:
ent_nam | "EDB-DOCUMENT"
typ_nam | "DRAWING"
wdg_nam | "EDB-DOC-DRW-TFR"
wdg_mod | "form"
act_mod | "bat"
sel_fld_nam | ""
sel_fld_val | ""
ins_fld_nam | "T_DOC_DAT.DOCUMENT_ID"
| "T_DOC_DAT.DOC_NAME"
| "T_DOC_DAT.CHK_NAME"
| "T_DOC_DRW.CRE_SYSTEM"
ins_fld_val | "drw001"
| "name of drw001"
| "STANDARD"
| "CAD-SYSTEM x"
ret_fld_nam | "T_DOC_DRW.C_ID"
| "T_DOC_DAT.C_ID"