get_credit_exposure โ€” Credit Exposure

Each customer's credit limit against current balance plus open sales-order value, flagging who is over limit.

This is a Named SQL Query (SAP /SQLQueries) โ€” dynamic aggregate SQL returning per-query rows, not a fixed Service Layer entity.

Credit-exposure report โ€” each customer’s credit limit against current balance plus open sales-order value. Returns one row per customer with credit_limit, current_balance, open_order_value (total of their open orders), total_exposure (balance + open orders), and over_limit (true when exposure exceeds the limit), ordered by exposure, highest first. Only open orders count toward exposure.

Try these prompts

  • “show me the credit exposure”
  • “who is over their credit limit?”
  • “which customers are near their limit?”
  • “credit exposure for C001”

ื ืกื• ื’ื ื‘ืขื‘ืจื™ืช

  • “ื”ืฆื’ ืืช ื”ื—ืฉื™ืคื” ื”ืืฉืจืื™ืช ืฉืœ ื”ืœืงื•ื—ื•ืช”
  • “ืžื™ ื—ืจื’ ืžืžืกื’ืจืช ื”ืืฉืจืื™?”
  • “ืื™ืœื• ืœืงื•ื—ื•ืช ืงืจื•ื‘ื™ื ืœืžืกื’ืจืช ืฉืœื”ื?”

Arguments

ArgRequiredMeaning
card_codeoptionalOne customer, e.g. C001. Omit for all customers.

Example result

One customer over limit. C002 Beta Industries โ€” $18,000 exposure vs a $15,000 limit ($12,000 balance + $6,000 open orders). C001 Acme Corp โ€” $9,500 exposure, within its $20,000 limit.

Result columns

ColumnTypeMeaning
card_codetextThe customer’s SAP code.
card_nametextThe customer’s name.
credit_limitnumberThe limit set on the customer’s account.
current_balancenumberWhat the customer owes today.
open_order_valuenumberTotal value of the customer’s open sales orders.
total_exposurenumbercurrent_balance plus open_order_value.
over_limittexttrue when total_exposure passes credit_limit. The row holds a boolean; the closed type set has none, so it is declared text โ€” a flag to read, not a magnitude to plot.

Charts

  • bar: x=card_name, y=total_exposure,credit_limit, title=“Exposure vs credit limit”
  • bar: x=card_name, y=current_balance,open_order_value, title=“Balance and open orders”
  • get_ar_aging โ€” plain outstanding-receivables aging, without the limit.
  • get_order_backlog โ€” open sales-order demand against stock.