# Enterprise Communication Interface (ECI)

## eci_chk_acc_typ

### Description
Check access to record in type list. Open mask of type. Select record. Rreturn access information. Close mask. If record doesn't exist, return errorcode.
### 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"}
#### act_mod
string | mode of interaction {"bat"}
#### sel_fld_nam
stringlist | names of fields for selection
#### sel_fld_val
stringlist | values of fields for selection
#### check_access
string | access to check: { "r", "w", "d", "or", "ow", "od"} reservation is not checked: "or", "ow", "od"
detail
string | If the flag is set {on|off}, detailed information on C_LOCK and a lock are returned. If the flag is set to off or is not set, the reservation is not checked.
### Output parameter
#### access
string | '1': you have access '0': no access '-1': no access, because record is reserved
Additional return parameter for "detail" has the value "on". lock
stringlist | 0 = No lock 1 = Lock 2= User name of lock
res
stringlist | 1 = reserved by another user O = reserved by current user -1 = no reservation set 2 = username of user who reserved record
### Example
Determine write access to record in document type list. Input parameters:
ent_nam | "EDB-DOCUMENT"
typ_nam | "DRAWING"
wdg_nam | "EDB-DOC-DRW-TLI"
wdg_mod | "list"
act_mod | "bat"
sel_fld_nam | "T_DOC_DAT.DOCUMENT_ID"
sel_fld_val | "drw001"
check_access | "w"