one of many ways, either on call disconnect or on agent state event idle/wrap-up you could popup a box filled with codes/descriptions. Send a workflow request to the eflow with your parameters, intrument, agent id, code and the eflow can enter it in your database.
If you want to data in the ACD...