Message type: E = Error
Message class:  FB - Batch Programs 
Message number: 398
Message text: Select only tables KNA1, KNB1 and BSEC
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.
The SAP error message FB398, which states "Select only tables KNA1, KNB1 and BSEC," typically occurs when you are trying to execute a transaction or report that involves financial data, and the system is enforcing a restriction on the tables that can be accessed or modified in that context.
Cause: This error is usually triggered when: You are attempting to access or manipulate data from tables other than KNA1 (General Data in Customer Master), KNB1 (Customer Master Company Code Data), and BSEC (Document Segment: Accounting Document) in a transaction that is specifically designed to work with these tables. The transaction or report you are using has been programmed to only allow these specific tables for data integrity and consistency reasons.
Solution: To resolve this error, consider the following steps: Check Your Query/Transaction: Ensure that you are only selecting or working with the specified tables (KNA1, KNB1, and BSEC). If you are using a custom report or query,
 Get instant SAP help. Sign up for our Free Essentials Plan.
Get instant SAP help. Sign up for our Free Essentials Plan. 
FB397 Enter account type D (customer) or K (vendor)
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
FB396 Error in internal table for branches
What causes this issue?  The company code is missing in an entry in the internal table for brances. The entry is: company code: &V1& branch:  ...
FB399 Select only tables LFA1, LFB1 and BSEC
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
FB400 Form for error list does not exist in company code &
What causes this issue?  Errors were found when creating balance confirmations. However, the form for the error list does not exist.System Response  T...
Click on this link to search all SAP messages.