As you are expecting a Z. Then an functional consultant can't help your further.
This process needs an technical consultant. Sit with your abaper and tell him this requirement. He will do that.
To find a badi or user exit, please have a look into the document Methods to find Customer/User Exit's & BADi's for a Transaction Code!
***Edited by: Dibyendu Patra