# Enterprise Communication Interface (ECI)

## eci_cki_typ_fil

### Description
Open the mask of the type. Search for the type data record with the specified search criteria. Open relation mask for FILE entity. Select file allocation with search criteria. If a file allocation meets the selection conditions, it is branched out depending on sel_flag. Check-In file. Close mask. If no entry, message via return code.
### Input parameter
ent_nam
string | Entity name
typ_nam
string | Type name
wdg_nam
string | Name of type mask
wdg_ext
string | Select system fields at type mask {"on", "off"}
wdg_mod
string | Type of mask {"list","form","bvb"}
act_mod
string | Type of interaction {"int","bat"}
sel_typ_fld
stringlist | Name of fields for selecting the type data record
sel_typ_val
stringlist | Values of fields for selecting the type data record
rel_wdg_nam
string | Name of relation mask with entity 'EDB-FILE'
rel_wdg_ext
string | Select system fields for relation mask {"on", "off"}
rel_wdg_mod
string | Type of relation mask {"list","form","bvb"}
sel_rel_fld
stringlist | Name of fields for selection relation record
sel_rel_val
stringlist | Values of fields for selection relation record
sel_flag
string | Selection-Flag {"0", "1", "2", "3"} '0': Check as for function eci_cki_fil with default ECI-CKI-OVERWRITE '1': If a file allocation meets the selection condition, the existing allocation is overwritten. '2': If a file allocation meets the selection condition, the file is stored parallel. '3': If a file allocation meets the selection condition, the function is aborted.
ins_rel_fld
stringlist | Name of fields for specifying the relation record
ins_rel_val
stringlist | Value of fields for specifying the relation record
ret_rel_fld
stringlist | Name of fields for return
### Output parameter
ret_rel_val
stringlist | Value of return fields
### Example
Check-in file „hello.world" Input parameter:
ent_nam | „EDB-DOCUMENT"
typ_nam | „DRAWING"
wdg_nam | „EDB-DOC-DRW-TLI"
wdg_ext | „off"
wdg_mod | „list"
act_mod | „int"
sel_typ_fld | „T_DOC_DAT.DOCUMENT_ID"
rel_wdg_nam | „EDB-DOC-FIL-RLI-C"
rel_wdg_ext | „off"
rel_wdg_mod | „list"
sel_rel_fld | „T_FILE_DAT.ORG_NAME"
sel_rel_val | „hello.world"
sel_flag | „1"
ins_rel_fld | „T_FILE_DAT.ORG_NAME"
ins_rel_val | „hello.world"
ret_rel_fld | „T_FILE_DAT.ORG_NAME"