The customer payment history report shows how customers really pay, so the company can collect on time and make better credit decisions. This guide shows how to display it with transaction S_ALR_87012177, using customer 109, company code 9000, five periods and the original screenshots. It explains the selection screen, how to read the output, how it differs from FBL5N, how to assess payment behavior, a real scenario, common mistakes, troubleshooting and month-end checks. If you encounter any errors in SAP, send a screenshot to pramod@learntosap.com and I will help you resolve the issue.
Customer payment history refers to a comprehensive record of payments made by customers to your organization. This history is essential for tracking outstanding receivables, assessing customer payment behavior, and ensuring timely collection of outstanding invoices. In SAP FICO, the S_ALR_87012177 transaction code enables you to access and analyze this crucial data.
The S_ALR_87012177 transaction code in SAP is part of the Financial Accounting (FI) module, specifically under Accounts Receivable. It generates a Customer Payment History Report that summarizes each customer's payment records, including posted amounts, due dates, clearing documents, and payment statuses.
In simple words, the report tells the story of how a customer pays. Some customers pay on the due date, some pay weeks late, and some pay early to take a discount. The report turns thousands of individual postings into a clear picture of each customer's habits, which is exactly what collections and credit teams need.
| Report | Shows | Best For |
|---|---|---|
| S_ALR_87012177 | Payment history over several periods. | Judging payment behavior. |
| FBL5N | Individual line items on the customer account. | Investigating invoices and payments. |
| FD10N | Customer balance and transaction figures. | Quick balance check. |
| S_ALR_87012172 | Customer balances by period. | Overview of receivables. |
The reports work together. Start with the balance report for the size of the receivable, use the payment history for the behavior, and drill into FBL5N for the individual documents.
| Transaction | Purpose |
|---|---|
| S_ALR_87012177 | Display customer payment history (used in this guide). |
| FBL5N | Display customer line items. |
| FD10N | Display customer balances. |
| S_ALR_87012172 | Display customer balances by period (confirm in your release). |
| F-28 | Post an incoming payment from the customer. |
| FB70 | Enter a customer invoice. |
The report only reads data, so it is safe to run as often as you like.
Accounting → Financial Accounting → Accounts Receivable → Information System → Reports for Accounts Receivable Accounting → Customer Payment History
You can also open the report directly by typing S_ALR_87012177 in the command field.
Select the customer. Customer: 109.
Select the company code. Company Code: 9000.
Select the number of periods. Number of Period: 5.
Select the Execute button. Press F8.


Save. If you want to reuse the selection, save it as a variant.
The table below summarizes every value from the steps above, so you can compare it with your own screen.
| Field | Value Used | Note |
|---|---|---|
| Transaction | S_ALR_87012177 | Customer payment history |
| Customer | 109 | Use your own customer |
| Company code | 9000 | Use your own company code |
| Number of periods | 5 | How many periods are analyzed |
| Execute | F8 | Runs the report |
| Final action | Save | Save a variant for reuse |
| Field | What It Controls | Tip |
|---|---|---|
| Customer | Which customer accounts are read. | Enter one account or a range. |
| Company code | Which legal entity's data is shown. | Always fill it. |
| Number of periods | How many periods are included in the analysis. | Five periods give a short-term picture; more give a trend. |
| Variant | A saved set of selections. | Use it for monthly reviews. |
Names and layout differ slightly between releases, so compare with your own screen before you run the report.
| Item | Meaning | How to Use It |
|---|---|---|
| Posted amount | The invoice amounts posted in the period. | Shows how much was billed. |
| Due date | The date on which payment was due. | Compare it with the clearing date. |
| Clearing document | The payment that settled the item. | Shows when the money arrived. |
| Payment status | Whether items are paid, partly paid or open. | Shows which items still need follow-up. |
Compare the due date with the clearing date to see whether the customer pays early, on time or late. A customer who always pays ten days late is a different risk from one who pays twenty days early, even if both have the same balance.
A good payment history report helps answer practical questions. Does the customer pay on time? Are late payments getting worse? Does the customer take cash discounts? Which invoices were short paid and why? The answers decide how the company treats the customer: standard terms, a closer follow-up, a lower credit limit or a change to prepayment.
Look at the trend over the five periods, not at one month. A single late payment may have an ordinary cause, such as a holiday or a bank delay. A pattern of late payments over several periods points to a real problem. Share the findings with sales, so the account manager can talk to the customer before the problem becomes a loss.
| Pattern | Possible Action |
|---|---|
| Always pays on time. | Keep or increase the credit limit. |
| Pays a few days late. | Send a friendly reminder before the due date. |
| Pays weeks late and getting worse. | Review the credit limit and contact the customer. |
| Often short pays. | Check for disputes and fix the cause. |
| Pays early with discount. | Offer a discount scheme to more customers. |
The report is only one input. Combine it with the customer's order history, market information and the opinion of the account manager before making a credit decision.
At Learn Pharma in Pune, customer 109 asked for a higher credit limit. Credit controller Sameer Joshi asked accounts receivable executive Pooja Patil for the customer's payment history. Pooja opened S_ALR_87012177, entered customer 109, company code 9000 and five periods, and pressed F8.
The report showed that the customer paid about a week after the due date in four of the five periods, and paid in full each time. Sameer compared the result with FBL5N and confirmed the open items. Sales manager Rohan Kulkarni agreed to a modest increase in the limit, with a reminder before each due date.
Pooja saved her selection as a variant and added the report to the quarterly credit review, so the same analysis could be produced for any customer in minutes.
Payment history only makes sense against the payment terms. A customer with sixty-day terms who pays after fifty days is early, while a customer with fourteen-day terms who pays after twenty is late. The due dates in the report come from the terms in the customer master, so always check them before judging behavior.
Cash discounts add another view. Some customers take a discount for early payment, which shows up as a small difference between the invoice and the payment. A customer who regularly takes the discount is a good candidate for a formal discount scheme, which can improve cash flow for the company.
After the due date, most companies send reminders. SAP supports this with the dunning program, which groups overdue items and creates letters or emails at several levels, from a friendly reminder to a formal notice. The payment history report helps decide who should receive which level: a regular good payer deserves a polite note, while a repeated late payer may need a call.
Check the open items with FBL5N before sending anything, because a payment may have arrived that is not yet matched. Sending a reminder for an invoice that is already paid damages the relationship and wastes the customer's time.
| Age of Open Item | Typical Treatment |
|---|---|
| Not yet due | No action, but plan the cash flow. |
| 1 to 30 days overdue | Friendly reminder. |
| 31 to 60 days overdue | Phone call and second reminder. |
| 61 to 90 days overdue | Escalation and review of credit limit. |
| More than 90 days overdue | Formal notice and decision on further steps. |
These ranges are examples. Agree your own with the finance lead, and use the same ranges for every customer, so reports can be compared over time.
| Cause | Typical Fix |
|---|---|
| Price difference | Check the order and issue a credit memo if the customer is right. |
| Quantity difference | Compare the delivery note with the invoice. |
| Damaged or returned goods | Process a return order and a credit memo. |
| Missing documents | Send copies of the invoice and delivery proof. |
| Customer cash flow | Agree a payment plan. |
Disputed items often look like late payments in the history. Record the reason on the document, so the next reader understands why the item stayed open.
Customers appreciate a clear statement that lists open invoices, payments received and the balance. Sending statements regularly, for example every month, reduces disputes, because both sides see the same numbers. At year end, many companies also ask key customers to confirm their balances.
The payment history report supports this work. It shows which customers pay slowly, so the team knows whom to remind with the statement. Keep the statements, the replies and any explanations together in one folder, so auditors can follow the story.
Customer payment data is commercially sensitive. It reveals how much a customer buys and how well it pays. Only people who need the information should have access, and the access should be limited to the company codes they work in. Review the roles once a year and remove access for people who change jobs.
If reports are exported or printed, store them in protected folders and delete them when they are no longer needed. A short rule in the work instruction protects customers and the company, and it shows auditors that the process is under control.
Credit limits are best reviewed with facts. The payment history shows how reliably a customer pays, the balance report shows how much is owed now, and the order history shows how much the customer is likely to buy next. Together these three views support a sensible limit, neither so tight that it blocks good sales nor so loose that it invites losses.
Many companies review limits every quarter for their largest customers and every year for the rest. Record each decision with the reason and the approver, so the team can explain it later. If a customer's behavior changes suddenly, do not wait for the next review. Run the report, check the line items with FBL5N and talk to the account manager the same day.
The quality of the payment history depends on how well incoming payments are matched to invoices. If payments are posted on account and cleared weeks later, the report will show late payments that were actually on time. Good cash application, which means matching each payment to the right invoice on the day it arrives, keeps the history honest.
Agree a rule, such as clearing every payment within one working day, and review unmatched payments every week. When customers send payment advices with invoice numbers, the matching is quick. When they do not, ask them to include a reference. A small improvement here pays back in every report that follows.
| Audience | What to Share | Why |
|---|---|---|
| Sales | Customers with late payments and the reasons. | So they can talk to customers early. |
| Credit control | Payment trends and limit usage. | To adjust limits and terms. |
| Management | Average days to pay and overdue totals. | To understand cash flow risk. |
| Auditors | Reports with explanations of unusual items. | To show that the process is controlled. |
A one-page summary each quarter, with a few clear numbers and a short explanation, is usually more effective than a long spreadsheet. Keep the underlying reports ready in case someone asks for detail.
| Symptom | Likely Cause | What to Check |
|---|---|---|
| Report is empty. | Wrong customer, company code or period count. | Check the selection values. |
| Figures look too low. | Too few periods selected. | Increase the number of periods. |
| Customer missing. | Not extended to the company code. | Check the customer master record. |
| Dates look strange. | Due dates depend on the payment terms. | Check the terms in the customer master. |
| Authorization error. | Missing display rights. | Ask for the right role. |
| Step | Action | Owner |
|---|---|---|
| 1 | Run the customer line items and list overdue invoices. | Accounts receivable |
| 2 | Check the payment history of customers with late items. | Credit controller |
| 3 | Contact customers by phone or email. | Accounts receivable |
| 4 | Record promises to pay. | Accounts receivable |
| 5 | Escalate disputes to sales. | Credit controller |
| 6 | Review the results every week. | Finance lead |
Following the same six steps every week keeps receivables healthy and cash flow predictable.
| Check | Done When |
|---|---|
| Customer balances | The balance report agrees with the line items. |
| Reconciliation account | The total of all customers agrees with the general ledger account. |
| Overdue items | Old open items are explained or followed up. |
| Credit limits | Large changes in payment behavior are reviewed. |
| Documentation | Differences and reasons are filed. |
A short checklist at month end finds small problems before they turn into audit findings, and it keeps the customer balances reliable.
Customer reports remain important in SAP S/4HANA, where many companies also use Fiori apps such as Manage Customer Line Items and Customer Payment Behavior. The classic report S_ALR_87012177 may still be available in your release. Screens and field names can differ from the examples used here, so confirm the exact steps in your own system before you train users. The business principle does not change: the report shows how customers pay, so the company can collect on time.
Q: What is S_ALR_87012177 used for?
To display the customer payment history.
Q: How does it differ from FBL5N?
It summarizes payment behavior over periods, while FBL5N shows individual line items.
Q: What does the number of periods control?
How many periods are included in the analysis.
Q: Why compare due dates with clearing dates?
To see whether the customer pays early, on time or late.
Q: How is the report used for credit decisions?
It shows payment behavior, which supports decisions on limits and terms.
The customer payment history report shows how customers really pay, which helps the company collect on time and decide on credit. Open S_ALR_87012177, enter customer 109, company code 9000 and five periods, and press F8. Then compare the result with the line items, share the findings with sales and save your selection as a variant. If you encounter any errors in SAP, send a screenshot to pramod@learntosap.com and I will help you resolve the issue.