Hi,
Luckily that BAPI has very detailed documentation (some of the best I've seen!).
You can also do a where-used to get some samples of how it is called. For example, see function module PLM_PS_MAINTAIN_DATA.
Give it a try & please do come back if you have issues.
good luck
Paul