In this SAP MM tutorial, you will learn how to define number ranges for purchase order in SAP step by step. Purchase order number ranges control how SAP assigns PO document numbers when users create purchasing documents such as standard purchase orders, framework orders, stock transport orders, or other PO document types.

How to define number ranges for purchase order in SAP MM

In this activity, you define number ranges for purchase order (PO) documents in SAP based on purchasing document types. Each purchasing document type can use a different number range interval, and these number range settings are client-specific. After the interval is created, it can be assigned to the required PO document type so that new purchase orders follow the correct numbering sequence.

For example, an organization may use one number range for standard purchase orders and another number range for stock transport orders. This helps users identify the document category from the purchase order number itself, provided the document type configuration is planned properly.

Transaction code and IMG path for purchase order number ranges

You can define number ranges for purchase order by using one of the following navigation methods.

Transaction codeOMH6
SAP IMG PathIMG > Material Management > Purchasing > Purchase Order > Define number ranges.

Before maintaining PO number ranges in SAP

  • Check whether the purchase order document type already has a number range assigned.
  • Decide whether the PO number should be assigned internally by SAP or entered externally by the user or an interface.
  • Use a number interval that does not overlap with another interval for purchasing documents.
  • Leave enough room in the interval for future transaction volume.
  • Make the change first in the development or customizing client and transport it according to your project process.

Steps to define number range intervals for purchase orders in SAP

Step 1 : – Execute t-code “SPRO” in SAP command field from SAP easy access screen.

SPRO t-code SAP MAC

Step 2 : – Choose “SAP Reference IMG” from execute project screen.

SAP Reference IMG - mac

Step 3 : – From display IMG screen, follow the navigation path Material Management – Purchasing – Purchase Order and click on IMG activity “Define number ranges”.

Define number ranges in SAP path

Step 4 : – From range maintenance purchasing document overview screen, click on change interval icon as shown below image.

Define Number Ranges for PO new entries

Step 5 : – On maintain intervals screen, click + insert interval icon to define new number range interval for PO.

Insert number range interval PO in SAP

Step 6 : – On insert interval for PO screen, update the following details.

  • No : – Key that defines as number range interval for PO.
  • From No : – Enter the starting number of interval
  • To number : – Enter the last ending number of interval.
  • Ext : – Check this option for external number assignment purpose.
Define Number Ranges for Purchase Order

After you maintain number range interval for po, choose save icon and save the configured details.

Internal and external number assignment for SAP purchase orders

When defining a purchase order number range in SAP, the Ext indicator decides how the PO number is assigned.

Number assignment typeMeaning in purchase order processingTypical use
Internal number assignmentSAP automatically assigns the next available PO number from the interval.Most standard purchase order processes.
External number assignmentThe PO number is entered manually or passed from an external system, within the allowed interval.Legacy conversion, interface scenarios, or special business requirements.

For regular purchase order creation, internal number assignment is usually easier to control because SAP manages the next number automatically. Use external number assignment only when the business process clearly requires the PO number to be supplied from outside the automatic sequence.

Assigning PO number ranges to purchasing document types

Defining an interval creates the available number range, but the practical use of the interval depends on the purchasing document type configuration. A document type such as NB, FO, or UB can be assigned to a number range key so that SAP knows which interval to use when a user creates that type of purchase order.

When planning number ranges for purchase orders, keep the document type design consistent. If two document types use the same number range, their PO numbers will come from the same sequence. If the business needs separate sequences, assign separate number range keys to the relevant document types.

Common mistakes while defining SAP PO number ranges

  • Overlapping intervals: Do not create intervals that overlap with existing purchase order number ranges.
  • Wrong external assignment setting: Selecting the Ext indicator when internal numbering is expected can cause users to enter PO numbers manually.
  • Interval too small: A narrow interval may be consumed quickly in a high-volume purchasing process.
  • Missing document type assignment: Creating a number range interval alone is not enough if the purchase order document type does not point to the intended range.
  • Changing live numbering without review: Number range changes in a production system should be reviewed carefully because purchase order numbering affects audit, reporting, and integrations.

Purchase order number range QA checklist

  • Confirm that the PO number range interval key is correct.
  • Verify that the From No and To number values match the approved numbering design.
  • Check whether internal or external assignment is selected correctly.
  • Confirm that the required purchasing document type uses the intended number range.
  • Create a test purchase order in the correct document type and verify the generated PO number.

FAQs on SAP MM purchase order number ranges

What is the transaction code to define number ranges for purchase orders in SAP?

The transaction code is OMH6. You can also reach the same configuration through SPRO under Materials Management > Purchasing > Purchase Order > Define number ranges.

Can different SAP purchase order document types have different number ranges?

Yes. Purchase order number ranges are commonly controlled through purchasing document type configuration. Separate document types can be assigned to separate number range keys when the business needs different PO numbering sequences.

What does the Ext indicator mean in a PO number range interval?

The Ext indicator is used for external number assignment. When it is selected, the purchase order number can be entered externally within the permitted interval instead of being generated automatically by SAP.

Are purchase order number ranges company-code specific in standard SAP?

Purchase order number ranges are normally controlled by purchasing document type, not directly by company code. If a company-code-wise numbering design is required, it must be handled through document type design or suitable enhancements, depending on the business requirement.

Why is my SAP purchase order not using the new number range?

The most common reason is that the purchase order document type is not assigned to the new number range key. Also check whether the correct document type is being used during PO creation and whether the interval is valid and not exhausted.

Successfully we have defined number ranges for purchase order in SAP MM.