Setting up Reverse Charge Mechanism while booking purchase invoice

Need help in setting up RCM while booking purchase invoice so that Output liability and input credit is booked while entering purchase invoice. Currently we have to map it manually at the time on invoice booking.

Regards
Mudit
FC - Strideone