# Enterprise Communication Interface (ECI)

## eci_rea_doc_his

### Description
Read modification history of document. Call appropriate history widget of the selected document (via CID), select about CAD relevance flag. If entries exist: Return the desired max. number of newest modification texts. Return appropriate return code.
| The document history is referenced by the document master data. Only history entries with the CAD flag are selected. This function is still supported due to the upward compatibility. The general function eci_rea_rel (Entity1=EDB-DOCUMENT, Entity2=EDB-HISTORY, view=STR) supplys the same result.
### Input parameter
wdg_mod
string | mode of widget {"list"}
act_mod
string | mode of interaction {"bat", "int"}
sel_fld_nam_u
string | names of fields for selection of a document
sel_fld_val_u
string | values of fields for selection of a document
ret_rec_max
string | max. number of newest modification texts to return
ret_fld_nam_r
stringlist | names of fields of history for return
### Output parameter
n
string | count of selected data records
ret_fld_val_1 ... ret_fld_val_n
stringlist | values of fields of history-record 1
... | ...
stringlist | values of fields of history-record n