I have a developed a custom workflow for f-47 (vendor down payment request). Now whenever the document is approved/rejected the status is stored in a custom ztable. This document is posted in f-58.
My requirement is whenver the document is rejected and if the user tries to post it through f-58, i need to do a validation using that custom table. The system should give a error message and should not allow the document to be posted if the status in the ztable for the document is rejected.
How can i achieve this??