Dear Abhishek,
It would be easy to do as follows (as you suggested as well).
After completion of the BAPI - successfully
If BAPI_ORDER_KEY-ORDER_NUMBER is not initial
then assign your purchase order number details to the ZZ-table value and
call the update statement.
endif.
Regards,
Venkat