I'm using this bapi to release purchase orders.
When I test it right from SE37 there is no problem. But when I try using it through a BSP (with the same data), it returns sy-subrc = 2 (document doesn't exist) and blocks the document.
What can the problem be?
Thanks in advance.