Message type: E = Error
Message class:  EK - IS-U Accounts Receivable and Payable 
Message number: 504
Message text: Account maintenance not performed for business partner &
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 EK504 ("Account maintenance not performed for business partner &") typically occurs in the context of vendor or customer account management within the SAP system. This error indicates that there is an issue with the business partner (BP) configuration or the account assignment for the vendor or customer.
Cause:
Missing Business Partner Data: The business partner may not have been fully set up or activated in the system.
Account Group Configuration: The account group assigned to the business partner may not be configured correctly to allow for the necessary account maintenance.
Role Assignment: The required roles for the business partner (e.g., vendor, customer) may not be assigned.
Data Inconsistencies: There may be inconsistencies or missing data in the business partner master data.
Authorization Issues: The user may not have the necessary authorizations to perform account maintenance for the business partner.
Solution:
Check Business Partner Setup:
Go to the transaction code BP to check the business partner's Get instant SAP help. Sign up for our Free Essentials Plan.
Get instant SAP help. Sign up for our Free Essentials Plan. 
EK503 You cannot reverse documents with origin &1
What causes this issue?  The existing industry-specific instance of event 0070 prevents the reversal of reversal documents for documents that were cre...
EK502 G/L account &1 is not maintained in the transaction relevant data
What causes this issue?  You defined the general ledger account &V1& in Customizing. However this account is not maintained in the account ass...
EK505 Acct determination maintained, but transaction for acct balance display
What causes this issue?  Checks all entries in the posting area R010 (Utilities), or T010 (Telecommunications) <LS>account display</> to d...
EK506 Posting area R001 for deregulation transactions
What causes this issue?  Checks all entries to be posted to the invoicing service provider in posting area R001 <LS>transaction-relevant account...
Click on this link to search all SAP messages.