Message type: E = Error
Message class:  F0 - FI batch program messages 
Message number: 239
Message text: Only use fields that are defined in tables BSIK and BSID
You have selected by a field from the BKPF document header or you have
specified line item BSEG. Your specifications will be used internally
in the index files for open items (BSID for customer accounts and BSIK
for vendor accounts). This means that you can only select by fields
that are in both of the above tables. You have not selected such
fields.
Your selection is not accepted.
Select using one of the defined fields.
Error message extract from SAP system. Copyright SAP SE.
The SAP error message F0239, which states "Only use fields that are defined in tables BSIK and BSID," typically occurs when there is an attempt to access or manipulate fields in a report or program that are not defined in the specified tables. BSIK and BSID are standard SAP tables that store accounting documents for open items in accounts payable and accounts receivable, respectively.
Cause: Field Usage: The error is triggered when a field that is not part of the BSIK or BSID tables is referenced in a query, report, or program. Custom Development: If there is custom code or a custom report that tries to access fields not defined in these tables, it will lead to this error. Data Dictionary Changes: If there have been changes in the data dictionary or if fields have been removed or renamed, this could also cause the error.
Solution: Check Field Definitions: Review the fields being used in your
 Get instant SAP help. Sign up for our Free Essentials Plan.
Get instant SAP help. Sign up for our Free Essentials Plan. 
F0238 Termination - Negative payment amount in payment document &
What causes this issue?  The program calculated a negative payment amount at the end of one of the payment documents. This renders the DME file incorr...
F0237 Maintain reference text (message "6" selected)
What causes this issue?  You selected message type 6 (see the documentation for this parameter).How to fix this error?  Change the message type or ent...
F0240 Only values "BEN" or "OUR" permitted
What causes this issue?  You have selected TFB format.System Response  For type of cost assignment, only the following values: - BEN : Costs to be pai...
F0241 Entry & either missing from or incomplete in the country table
What causes this issue?  Entry &V1& in the countries table was not properly maintained.System Response  The system issues an error message and...
Click on this link to search all SAP messages.