Message type: E = Error
Message class:  WS - Supplier Billing Document 
Message number: 249
Message text: Document category &1 of preceding document is not permitted
Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of messages in the SAP system have a message text, however this is frequently insufficient to comprehend or resolve the problem.
To make things easier, more detailed information is frequently added to describe the issue, how to fix it, and the necessary steps or configuration modifications.
Unfortunately, there isn't any extra information in this error notice.
First, use our AnswerBot below to get a possible cause and solution (requires a premium subscription).
Also, review the in-depth Common Questions & Answers listed below; you could discover a solution there or be able to connect with others who have faced similar challenges.
You can also try searching the SAP support portal (support.sap.com) but you need a special user ID to access it. It is possible that an SAP support note exists that provides additional details about the mistake or even steps for fixing it.
SAP Error Message: WS249 - Document category &1 of preceding document is not permitted
Cause: This error occurs when you try to create a document that references a preceding document with a document category that is not allowed in the current business process or transaction. In SAP, certain document categories (e.g., invoice, credit memo, debit memo, etc.) are only permitted to follow or be referenced by specific preceding document categories. If the system detects that the preceding document's category is not valid for the current document type or transaction, it throws this error. For example, in Sales and Distribution (SD), when creating a billing document, the system checks the preceding document (like a delivery or sales order). If the document category of the preceding document is not allowed for the billing document type, this error appears. Typical Scenarios: Creating a billing document referencing a preceding document with an invalid category. Posting a document in Financial Accounting (FI)
Get instant SAP help. Sign up for our Free Essentials Plan. 
WS248 Document category for preceding document &1 item &2 not maintained
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
WS247 Missing header data for document &1; item &2
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
WS250 No document flow information exists for item &1 of document &2
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
WS251 No parameters exist for financial transactions in company code &1
What causes this issue?  No parameters for the payment transactions of company code &V1& could be read.System Response  INCLUDE ISR_VERARBEITU...
Click on this link to search all SAP messages.