Do you have any question about this error?
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 report or program. Ensure that all fields referenced are indeed part of the BSIK or BSID tables.
- Modify the Code: If you are using custom code, modify it to only include fields that are defined in the BSIK and BSID tables. You can check the structure of these tables using transaction codes SE11 (Data Dictionary) or SE16 (Data Browser).
- Use Correct Tables: If you need to access additional fields that are not in BSIK or BSID, consider using other related tables or views that contain the necessary data.
- Debugging: If you are unsure where the error is occurring, use the debugging tools in SAP to trace the execution of the program and identify the exact line causing the issue.
Related Information:
By ensuring that only valid fields from the BSIK and BSID tables are used in your reports or programs, you can resolve the F0239 error.
Get instant SAP help. Start your 7-day free trial now.
Feature | Free Access | Free Trial |
---|---|---|
Basic SAP error explanation | ![]() |
![]() |
Step-by-Step Usage Guide | ![]() |
![]() |
Interactive SAP Coach Assistance | ![]() |
![]() |
AI Troubleshooting for T-Code Errors | ![]() |
![]() |
F0238 Termination - Negative payment amount in payment document &
What causes this issue? The program calculated a negative payment amount at the...
F0237 Maintain reference text (message "6" selected)
What causes this issue? You selected message type 6 (see the documentation for ...
F0240 Only values "BEN" or "OUR" permitted
What causes this issue? You have selected TFB format.System Response For type ...
F0241 Entry & either missing from or incomplete in the country table
What causes this issue? Entry &V1& in the countries table was not prope...
SAP messages fall into 3 different categories: Error messages
(message type = E), Warnings (W) or Informational (I) messages.
An error message will prevent you from continuing your work - it is a hard stop and you need to fix the error before you can proceed. A warning message will stop your work, however, you can then bypass the warning by pressing the Enter key on your keyboard. That said, it is still good practice to investigate the cause of the warning message and address it. An information message will not stop your work and is truly just for informational purposes.
Click on this link to search all SAP messages.