RMRTPE and RMRSQPE Stored Procedure Implementation Detail