For document reversal using FB08, SAP do not recommend the use of BAPI. Instead, you should use the FM CALL_FB08.