You may be able to get more help by posting in the main manufacturing forum:
It looks like most of the ME related action happens there.
If I had to guess you probably have to parse/check for the error out of the PAPI xml response.
Regards,
Christian