Hi there!
Have you looked at the Provisioning Framework tasks? Also this document, SAP NetWeaver Identity Management Identity Center Implementation Guide - Self-Service Password Reset, will be quite helpful. While it is not your exact use case, it's probably the best document that discusses password management for SAP IDM. Take a look at those and let us know what questions you have.
Regards,
Matt