Hi David,
There is no direct way of telling from SDK.
If your requirement is just to do a validation and stop the user, I recommend you to use SP Transaction Notification.
During SP Notification, all the records, including the inventory transaction has been created by SAP, but you can roll it back if you return error in the SP
Regards
Edy