How-to · SAP Official Document Numbering

Your SAP invoice sequence has a gap. Rule 46(b) notices — and a duplicate hits the IRP

The short answer

SAP's own KBAs trace ODN trouble to configuration. A missing row in the ODN control table (company code, business place, document class and fiscal year together) is a hard stop — VF01 throws error 8A/652, the document never posts, and no number is drawn. In a series that does post, SAP documents two failures — a document type never assigned to a document class gets no ODN at all, and supplier invoices numbered through the generic "Classical" determination instead of India's own ODN setup are "not assigned consecutively". Rule 46(b) requires a tax invoice's serial number to be consecutive and "unique for a financial year"; for a supplier notified for e-invoicing, a reused number also runs into the IRP's duplicate-reporting validation.

A skipped Official Document Number in SAP is rarely random. SAP's own knowledge base traces it to configuration — an India ODN setup that was never completed, or one document type (a self-invoice, an ISD credit note, an RCM entry) that nobody ever mapped to a class. What SAP doesn't spell out is what a gap or a duplicate costs once Rule 46(b) — and, for a duplicate e-invoice, the IRP — sees it.

What SAP's ODN mechanism actually checks

Official Document Numbering (ODN) is SAP's India-localization feature for generating the consecutive serial number Indian GST law requires on a tax invoice — separate from SAP's own internal document number, a system key with no legal meaning. ODN assigns that legally-required number from a control table keyed on four things together: company code, business place, document class, and fiscal year. The lookup fails as a unit, not a field at a time: KBA 3658406 documents the error billing-document creation throws — in VF01 directly, or via the Schedule Billing Creation app — as "8A/652 – No sufficient record found in control table for &1/&2/&3, mm/dd/yyyy." Per the KBA's cause line, this fires "when the system cannot find a matching ODN (Official Document Numbering) record in the control table for the combination of: Company Code, Business Place, Document Class, Fiscal Year," most often because "the configuration entry for that specific combination is missing or expired." The fix: configuration activity SSCUI 103785, "Assign Number Ranges to Business Places" — the KBA's own worked example assigns document class GF2 (billing documents) a range for the current fiscal year.

That's a hard failure — the document simply won't post. A skipped or reused number in a sequence that does post is quieter, and traces to one of two other places: the document class a type is mapped to, or the number-range interval itself.

The document-class gap: every new GST document type needs one

ODN isn't automatic for a document type just because the type exists — it has to be explicitly assigned to a document class, and that's what go-lives miss the first time a new kind of document shows up: a self-invoice for reverse charge, an ISD credit note, a reverse-charge credit memo from an unregistered vendor. SAP KBA 3553285 states the mechanism for inward documents plainly: "the official document numbering (ODN) will be stored in the field XBLNR_ALT of BKPF table for the inward supply documents (invoice, credit note and debit note) from unregistered vendors with reverse charge." Its resolution is a BAdI, J_1IG_CHANGE_ODN_CHECK: set C_ODN_FLAG to X and C_SUPPLY_TYPE to '1' "based on the document type for which ODN generation is required." The companion KBA 3554006 documents the reverse — to switch ODN off for a type, remove it from configuration activity SSCUI 101338 ("Assign Document Types to Document Classes"), or clear the same flag in the BAdI (which the KBA marks as available only for 3SL).

Three further KBAs — 3742886, 3763927 and 3710088 — document the identical gap from the self-invoice/RCM side, each titled around ODN not generating, or not generating consecutively, for a reverse-charge supplier invoice. All three give the same resolution sequence: classify the vendor correctly (Business Partner, "Vendor: Country Spec Enh 2" tab, set to 0 or 2 — RCM ODN also applies to suppliers outside India), create a new document class for the RE document type (the KBAs' own example name: ZRE), assign RE to that class, create a number group and number range, and assign the business place to the class; the ODN then appears in the Alternate Reference field of the accounting document header. KBA 3725787 shows the same configuration activity, 101338, from the outgoing side: document type DR — the customer invoice posted through the "Create Outgoing Invoices" app — is set to "Generate Official Document Number, without date control" in its "Official Document Number" field, which is why its journal entry carries the ODN in the reference field. SAP's own line: "every outgoing invoice, credit memo, and debit memo must have an official document number." The common thread: a document class is not inherited by a new document type. A self-invoice flow, an ISD route, or any type new to the business needs its own pass through 101338 — skip it, and that type gets no ODN at all — removing a type from 101338 is exactly how KBA 3554006 switches ODN off. This is also the symptom SAP's own "See Also" list on KBA 3742886 flags by name: SAP Note 2633136 ("IN: How to enable ODN generation for all incoming invoices?") and SAP Note 2497165 ("ODN not generated for SD/MM/FI invoice - IN") (cited by title only).

The number-range gap: overlap and exhaustion

Even with the class correctly assigned, the interval behind it can misbehave two further ways. KBA 3742872 describes an overlap check more aggressive than most configurators expect: "SAP number range overlap check is performed globally across all years and all business places ... for the same number range object" — so an expired interval from a prior fiscal year can still block a new one if the ranges intersect at all, even for a different business place. The fixes: shift the new interval's starting value clear of the old one, or delete the expired interval once its fiscal year is fully closed and no ODN document will ever be created for it again. KBA 3757017 documents the opposite problem — an interval "fully consumed" — fixed via configuration activity SSCUI 102879, "Maintain Number Ranges." And KBA 3744387 documents a config-time "Invalid namespace" error when a prefix collides with SAP's reserved namespace characters (S, Q, R, X, P, Y for character fields; 5, 6, 7, 8, 9, 0 for numeric fields) — worth checking before picking a prefix scheme.

Two behaviors that look like bugs but aren't. KBA 3553235: reversing an invoice via MR8M can generate a new ODN instead of reusing the original's — the fix is a configuration gap (mapping the reversal document type to the right doc class via OBA7/V_DOCCLS/J_1IG_V_T003_I), not a defect in the reversal logic. KBA 3714539: SAP assigns the same reference number to a customer invoice and its cancellation invoice by design — stated plainly as "current system behavior," not a fix candidate.

Every KBA cited above is tagged SAP S/4HANA Cloud Public Edition, several with FI-LOC-SD-IN, FI-LOC-MM-IN or FI-LOC-LO-IN India-localization tags. Confirm your product line and release before applying a fix — ODN is a cross-country SAP framework, and SAP's own cause line in KBA 3742886 is that India's numbering "is governed by a separate country-specific configuration" — a fix written for another country's ODN doesn't carry over.

Why a gap is a Rule 46(b) problem, not just an SAP problem

Rule 46 of the CGST Rules sets out what a tax invoice under Section 31 must contain. Clause (b), quoted verbatim from CBIC's consolidated text (checked 18 November 2026: unamended since notified — CBIC's amendment footnotes on Rule 46 attach to the proviso under clause (f), to clauses (r) and (s) and to the provisos, none to (b); and the CGST (Amendment) Rules 2026, Notification 05/2026-Central Tax, do not touch Rule 46), requires "a consecutive serial number not exceeding sixteen characters, in one or multiple series, containing alphabets or numerals or special characters- hyphen or dash and slash symbolised as '-' and '/' respectively, and any combination thereof, unique for a financial year."

That's two separate requirements an SAP ODN problem can breach on its own: the number has to be consecutive within its series, and it has to be unique within the financial year. A number skipped in a series that does post breaks the first — the case SAP documents in KBA 3742886, where supplier invoices set up on the generic "Classical" determination rather than India's own configuration get ODNs "not assigned consecutively." The 8A/652 error is not a skip: the document never posts, so no number is drawn. A document type that never got a class is a different defect again — that document carries no ODN at all. A reused number would break the second limb, the more serious of the two: two invoices carrying the same serial number in the same financial year cannot both be "unique for a financial year." None of the KBAs above documents ODN reissuing a number on its own — its global overlap check (KBA 3742872) exists to stop overlapping intervals — but however a duplicate arises, that is the breach.

Rule 46 governs tax invoices — including the self-invoice a recipient issues under Section 31(3)(f) for reverse-charge purchases from an unregistered supplier. Credit and debit notes carry the identical serial-number wording under Rule 53(1A)(c), and ISD invoices and ISD credit notes under Rule 54(1)(b); for those document types, those are the rules to cite.

What that exposure actually is under Section 122 — and what it isn't

Section 122(1)(i) of the CGST Act penalises a taxable person who "supplies any goods or services or both without issue of any invoice or issues an incorrect or false invoice with regard to any such supply," with a penalty of "ten thousand rupees or an amount equivalent to the tax evaded ... or input tax credit availed of or passed on or distributed irregularly, or the refund claimed fraudulently, whichever is higher." Whether a skipped or reused serial number, on its own, makes an invoice "incorrect" under 122(1)(i) isn't spelled out — the Act doesn't define "incorrect" — and no CBIC circular or ruling we could find settles it either way (as of 18 November 2026), so treat that characterisation as [verify]. The clause that reads more squarely on a pure numbering defect is the separate, capped penalty at Section 122(3)(e): failing "to issue invoice in accordance with the provisions of this Act or the rules made thereunder" — Rule 46(b) is one of those rules — "shall be liable to a penalty which may extend to twenty-five thousand rupees." Either way, the money scales only where tax actually escaped: under 122(1), a defect with no tax effect comes to the ₹10,000 floor, not a sum tied to the invoice's value. And Section 126(1) bars any penalty for "minor breaches of tax regulations or procedural requirements and in particular, any omission or mistake in documentation which is easily rectifiable and made without fraudulent intent or gross negligence" — a breach is "minor" where the tax involved is under ₹5,000. That covers a discretionary penalty like 122(3)(e)'s, though not fixed-sum or fixed-percentage ones (Section 126(6)). The defensible frame is a capped compliance exposure, not an automatic evasion finding.

Where it surfaces downstream: e-invoicing and GSTR-1 Table 13

If you fall in the class notified for e-invoicing under Rule 48(4) — aggregate turnover above five crore rupees in any preceding financial year from 2017-18 onwards, a PAN-level figure, since 1 August 2023 per Notification 10/2023-Central Tax — a reused serial number stops being an SAP-internal problem for the documents the IRP covers, which as of 18 November 2026 are invoices, credit notes and debit notes for B2B supplies, SEZ supplies, exports and deemed exports. GSTN's own e-Invoicing overview states plainly that "the schema and the portal have built-in validations to prevent duplicate reporting and other checks" at the Invoice Registration Portal. What exactly the IRP keys a duplicate on is set out in NIC's e-invoice API specification, not in GSTN's overview; GSP integration documentation commonly describes the IRN as derived from supplier GSTIN, financial year, document type and document number together, so treat that mechanism as [verify]. What GSTN's own text does confirm is that duplicate detection exists at the IRP, and a reused ODN is exactly the kind of input it is built to catch. Separately, Rule 48(5) is unambiguous: an invoice issued other than in the manner Rule 48(4) prescribes "shall not be treated as an invoice" at all. The reverse-charge self-invoice series discussed above doesn't reach the IRP yet. That changes on 1 January 2027: Notification 04/2026-Central Tax (26 October 2026) extends the same notified persons' e-invoicing to supplies "received from an unregistered person where the tax is payable on reverse charge basis by the recipient" and to "import of services", and the INV-01 schema adds matching RCMDOM and RCMIMP supply-type codes from the same date (Notification 05/2026-Central Tax). The notification doesn't name the document, but the natural reading is that the recipient's Section 31(3)(f) self-invoice for those purchases needs an IRN from that date, and its ODN series meets the same duplicate check (as of 18 November 2026).

On the GSTR-1 side, Rule 48(3) requires "the serial number of invoices issued during a tax period" to be furnished in FORM GSTR-1, and GSTN's own user manual for the Documents Issued table (Table 13) states, in its Note 5: "Table 13 of GSTR-1 is mandatory. If taxpayer enters any data in Tables 4,5,6,7,8,9,10, 14 or 15, then entering of details in Table 13 will be compulsory." The portal enforces it: while those tables carry data and Table 13 is empty, the summary won't generate — "Please enter details in Table 13 before generating summary." The manual's screenshots of the Add Document screen show what each row takes — Sr. No. From and Sr. No. To, Total number and Cancelled, with Net issued derived — across twelve document categories, one of which, "Invoices for inward supply from unregistered person", is the self-invoice series; the Documents Issued tile then reports "Total Docs, Cancelled Docs and Net Issued Docs" (GSTN's GSTR-1 manual, as of 18 November 2026). A gap or a silent duplicate doesn't automatically fail this table; GSTN's manual doesn't document a cross-check against the invoice-level sequence itself. But whatever you type into it is then a manual reconstruction of a series your ERP didn't actually keep clean — the opposite of what the table is meant to make routine.

Walking every company code, business place, document class and fiscal year combination for gaps, chasing which document type never got a class, then reconstructing what Table 13 and your e-invoice log should actually say, is painful to do by hand across a GSTIN with real invoice volume — which is why it tends to surface only when VF01 throws 8A/652 or the IRP rejects a duplicate. Recoup doesn't touch SAP's number-range configuration or its document classes — that stays SAP's to fix, per the KBAs above. What Recoup reconciles is the other side of the same GST position: your books, your bank, and the GST portal's GSTR-2B/IMS feed, invoice by invoice, continuously.

Reconcile the side Recoup already covers

Recoup reconciles your bank, books and the GST portal's GSTR-2B/IMS feed continuously, invoice by invoice, while you sort out the ODN configuration in SAP.

Book a demo →

Related guides