#10011 Improve performance when posting credit memos by skipping unnecessary lookups on empty keys
Credit memo posting now skips unnecessary table lookups when source keys are empty, improving performance for both purchase and sales credit memos without changing functional behavior.
- 22files
- 22AL files
- 2objects
Pull request · merged into main (BC30) on 2026-08-07 by JakovljevicDusan · 22 files (+33 -11), 22 AL · performance · tier official · reviewed (checked by Opus)
What changed
- Purch. Cr. Memo Line only runs the Purch. Inv. Line lookup when Order No. is filled in
- Sales Cr.Memo Line exits early when the header’s Applies-to Doc. No. is empty
- Avoids broad table scans during credit memo posting and related lookups
- Functional behavior is unchanged
- Applied in W1 and several country layers
AL objects touched
- Table 125 “Purch. Cr. Memo Line”, Base Application: modified
- Table 115 “Sales Cr.Memo Line”, Base Application: modified
Context
- Work items: AB#645247
- Labels: Team: SCM
- Systems: purchasing, sales
Source: metadata of a merged pull request in microsoft/BCApps (bcapps): title, labels, changed paths and counts, with a summary in our words. No source text and no description beyond one short quote (D10, D61).