Message type: E = Error
Message class:  FINS_CREDIT_MIG - Credit Management Migration 
Message number: 021
Message text: No main credit segment defined
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 FINS_CREDIT_MIG021 indicates that there is no main credit segment defined in the system. This error typically arises during the migration or configuration of credit management settings in SAP, particularly when dealing with the Credit Management module (FSCM - Financial Supply Chain Management).
Cause: Missing Configuration: The main credit segment has not been defined in the system. This could be due to incomplete configuration during the setup of credit management. Data Migration Issues: If you are migrating data from an older system or from another module, the necessary credit segment data may not have been transferred correctly. Customizing Settings: The customizing settings for credit management may not have been properly maintained, leading to the absence of a main credit segment.
Solution: Define Main Credit Segment: Go to the SAP Easy Access screen. Navigate to the path: SPRO > Financial Supply Chain Management > Credit Management > Basic Settings > Define Main Credit Segment. Ensure that a
 Get instant SAP help. Sign up for our Free Essentials Plan.
Get instant SAP help. Sign up for our Free Essentials Plan. 
FINS_CREDIT_MIG020 FI/AR commitment deleted
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
FINS_CREDIT_MIG018 Could not create main credit segment data for customer: &1
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
FINS_CREDIT_MIG022 Credit management customizing migrated
Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...
FINS_CREDIT_MIG023 Migration for automatic credit control failed
What causes this issue?  The system issues an error message and will not allow you to continue with this transaction until the error is resolved. Syst...
Click on this link to search all SAP messages.