# Enterprise Communication Interface (ECI)

## eci_rea_doc_his_tot

### Description
Read total history of life cycle of a document. Selection of the total history of selected document in batch mode Select all entries with cad revence flag and additionally the entries defned by following system defaults (type and count specific): ECH-CHOI-DOCTYP (Count of selection records for specific document type DOCTYP). ECH-x-N--DOCTYP (Count of selection fields for selection record x). ECH-x-M--DOCTYP (Count of records to be returned for selection record x). ECH-x-Fy-DOCTYP (Name of field y for selection of selection record x). ECH-x-Vy-DOCTYP (value of field y for selection of selection record x). Return requested entries of total history Return appropriate return code
| We strongly propose that you use instead of this quite complex function the simpler base functions for history ! The document total history is determined from the history entries of the single document and all of its version precessors, by copying them togehter in a temporary table. The document history is referenced by the document master data. Therefore the document type is here not required. Example of an additional selection using default entries: ECH-CHOI-DRAWING = 1 ECH-1-N--DRAWING = 1 ECH-1-M--DRAWING = 2 ECH-1-F1-DRAWING = T_DOC_HIS.FUNCTION ECH-1-V1-DRAWING = TRANSITION
### Input parameter
wdg_mod
string | mode of widget{"list", "form"}
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
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