Hi Sonu,
You can control this using the check function module.
create FM and use this FM as a check function module in event linkage(SWETYPV).
Function Modules for Processing Events - Embedded Processes (SAP Business Workflow) - SAP Library
Or check below link for details:
**************** - Using Check Function Module in SAP Workflow
Regards,
Vignesh