SAP Message 5O508 - The system found no entries in table T512Q &1 &2

Diagnosis
In the parameter Pay slip form, you have entered aform ID for which there is no form background in table T512P.

Procedure
Enter a valid form ID.