Hi Rahul,
You want to stop posting of ASN/inbound delivery creation in ECC based on vendor.
Then one of the way:You can stop posting of IDoc in ECC by having validation in PI.
Ask your PI team to have validation check whenever DDN comes with that vendor.
Regards,
Nikhil