SAP Message AD01163 - Document type &1 is incorrect for billing of sales document &2

AD01163 : Document type &1 is incorrect for billing of sales document &2