# Enterprise Communication Interface (ECI)

## eci_rea_doc_his_mex

### Description
Read total history of modification texts of a document. Selection of requested document in batch mode. Determine the whole version precessor chain, than loop over each document: Call of history widget of selected document (via C_ID). Selection of all MEMO fields (and optional additional selection with CAD flag). If entries found: Return maximum requested count of newest modification texts. Return appropriate return code.
| The document history is assigned to the document master data, therefore no document type is necessary. The user controls by the call parameters whether all modification texts are returned, or only the texts having the CAD flag .
### Input parameter
wdg_mod
string | mode of widget {"list"}
act_mod
string | mode of interaction {"bat"}
sel_fld_nam
string | names of fields of document for selection
sel_fld_val
string | values of fields of document for selection
sel_cad_flg
string | flag for selection of entries having "CAD relevance" {"Y", "N"}
ret_rec_max
string | max. number of newest modification text entries to return
ret_fld_nam
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