# Enterprise Communication Interface (ECI)

## eci_add_doc_his

### Description
Add text to modification history of document. Call history widget of selected document (via CID): Opt. pre-selection with the CAD flag. switch to edit mode, Default the fields. entry/modification of the values by the user. execute all field and form triggers. Return the content of the desired fields after storing is executed. Return appropriate return code.
| The history is referenced by the master data, therefore the type is not required. If the sel_cad_flag has a value of "y" or "Y", only the entries having the flag "CAD relevance" 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) supplies the same result.
### Input parameter
#### wdg_mod
string | mode of widget {"list"}
#### act_mod
string | mode of interaction {"bat", "int"}
#### sel_fld_nam
stringlist | names of fields of document for selection
#### sel_fld_val
stringlist | values of fields of document for selection
#### set_fld_nam
stringlist | names of fields of history for default
#### set_fld_val
stringlist | values of fields of history for default
#### ret_fld_nam
stringlist | names of fields of history for return
#### sel_cad_flg
string | flag for selection of entries having "CAD relevance" {"Y", "N"}
### Output parameter
#### ret_fld_val
stringlist | values of fields of history for return