# Enterprise Communication Interface (ECI)

## eci_chk_acc_ent

### Description
Check access to record in an entity list. Open enitity mask. Select record. Determine access of record. Close mask. If records do not exit, return error.
### Input parameter
#### ent_nam
string | name of entity
#### wdg_nam
string | name of mask
#### wdg_ext
string | activate system fields on mask {"on", "off"}
#### 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 if you use {'or', 'ow', 'od'}
detail
string | If the flag is set {on|off}, detailed information on C_LOCK and a lock are returned.
### Output parameter
#### access
string | {'1', '0', '-1'} 1: you have access 0: no access -1: no access, 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 the current user -1 = no reservation set 2 = username of user who reserved record
####
### Example
Determine write access to record in item list Input parameter:
ent_nam | "EDB-ARTICLE"
wdg_nam | "EDB-ART-SLI"
wdg_ext | "on"
wdg_mod | "list"
act_mod | "bat"
sel_fld_nam | "T_MASTER_DAT.PART_ID"
sel_fld_val | "art003"
check_access | "w"