Not sure if this can be done through SAP standard configuration. You may have to create custom payroll function to check that the sum of pre and post not exceeding the 50%.
However, if you use 401K plan with post-tax contribution as ROTH, wouldn't it really still just be 401K plan as ROTH contribution would also be contributed to the current $18,000.00 401K limit per year?