BAPI_PO_CHANGE error number 351
I am facing a problem while trying to update a Partner in the Purchase order header.
I am doing it through the BAPI "BAPI_PO_CHANGE" and getting error number 351 "Please enter a valid partner role".
Please let me know how to remove this error.
Thanks in advance.