Message type: E = Error
Message class:  F0 - FI batch program messages 
Message number: 238
Message text: Termination - Negative payment amount in payment document &
The program calculated a negative payment amount at the end of one of
the payment documents. This renders the DME file incorrect. The reason
for this is that you have not selected the "One payment per pamyent
document" parameter (domestic payments) or "Minimize number of
transfers" parameter (foreign payments). Data has been configured
incorrectly for the payment method in question.
Configuration data:
The "Message type" parameter determines the maximum number of reference
data that can be carried in each payment order (see parameter
documentation).
The value entered for this parameter determines the amount of items per
form for each payment method and in each company code.
If the value entered for "Items per form" is not correct, you can
rectify this using the minimum amount per transfer (for future payment
runs).
The program run terminates.
Rerun the DME creation program after selecting the "One payment per
payment document - minimize number of transfers" parameter.
For future payment runs: reconfigure the appropriate functionality or
always select the "Minimize number of transfers" parameter.
Error message extract from SAP system. Copyright SAP SE.
The SAP error message F0238, which states "Termination - Negative payment amount in payment document," typically occurs when there is an attempt to process a payment document that has a negative payment amount. This situation can arise in various scenarios, such as when reversing a payment or when there is an error in the payment processing logic. Causes: Incorrect Payment Amount: The payment document may have been incorrectly entered with a negative amount. Reversal Transactions: If a payment is being reversed, the system may generate a negative payment amount.
Configuration Issues: There may be issues in the configuration of payment methods or payment processing settings. Data Entry Errors: Manual entry errors during the creation of payment documents can lead to negative amounts. Custom Code: If there are custom developments or enhancements in the payment processing logic, they may inadvertently lead to negative amounts. Solutions: Review Payment Document: Check the payment document for any incorrect entries. Ensure that the
 Get instant SAP help. Sign up for our Free Essentials Plan.
Get instant SAP help. Sign up for our Free Essentials Plan. 
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...
F0236 Permitted values for payment type are 00 - > 11
What causes this issue?  The value you have entered is not supported. Permitted values are: 00 --> 11. For a description of the permitted values, r...
F0239 Only use fields that are defined in tables BSIK and BSID
What causes this issue?  You have selected by a field from the BKPF document header or you have specified line item BSEG. Your specifications will be ...
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...
Click on this link to search all SAP messages.