Creating and Using Document Types in Purchasing

Objective

After completing this lesson, you will be able to create and use document types in Purchasing in SAP S/4HANA.

Defining Document Types

To define a new document type for a document category, follow these steps.

1. Configure general settings
Start by defining the core parameters for your document type. This may include setting up number ranges for assignment and determining which fields are hidden, displayed, required, or optional.
2. Assign allowed item categories
Specify which item categories can be used with this document type. This ensures that only relevant categories are available during document creation.
3. Link purchase requisitions to external purchasing documents
Define the conversion rules. This step allows you to control which purchase requisition document types and item categories can be converted into specific external purchasing documents, such as purchase orders.

If you need to define new document types for purchase orders, you can find the settings in Customizing under Materials Management→Purchasing→Purchase Order→Define Document Types for Purchase Orders.

Diagram illustrates key configuration attributes and processes for item categories, using simple icons and callouts for clarity.

Number Assignment

Define number assignment for purchasing documents by setting up number ranges and assigning them to document types.

Set up number ranges

First, you need to establish the specific intervals the system uses to identify documents. For each range, you define a lower and upper limit to create a clear boundary. During this setup, you also decide the assignment method:

  • Internal assignment: The system automatically generates the next available number within the range.
  • External assignment: The user manually enters a number when creating the document.

When defining these intervals, ensure they do not overlap with any existing ranges. Keep in mind that document numbers are limited to a maximum of 10 characters.

To define new number ranges for purchase orders, navigate in Customizing to Materials Management→Purchasing→Purchase Order→Define Number Ranges for Purchasing Documents (OMH6).

A visual chart summarizes document types in SAP purchasing with brief descriptions, internal and external numbers, and field selection codes, supporting easy reference and workflow navigation.

In this example, when you create a purchase order using document type NB, you can use two different number ranges: range 45 for internal assignments and range 41 for external assignments.

Assign number ranges to document types

Once your ranges are defined, you must link them to specific document types within a category. You have the flexibility to assign two different ranges to each document type: one specifically for internal assignments and one for external assignments. It is important to note that the system uses separate number range objects for purchase requisitions and external purchasing documents, allowing you to manage these processes independently.

At least one number range must be assigned to each document type of a document category.

Diagram illustrates the flow from document category and type to specific purchasing document types in SAP, such as purchase requisitions and purchase orders.

Item Category Control

The item category is a critical setting that determines how the system handles specific items in purchasing documents. It defines:

  • Whether items without a material number are possible
  • Whether items can or must contain an account assignment
  • Whether a goods receipt can or must be posted for an item
  • Whether an invoice receipt is possible or necessary for an item

For every new document type you create within a category, you need to specify which item categories are allowed. In the example below, the table displays the category items that can be used in a purchase order created with document type NB.

Table lists allowable item categories and descriptions for document type NB within an SAP purchasing workflow.

It is important to note that the core control parameters for item categories are fixed and cannot be modified in Customizing. Additionally, you cannot create new item categories or delete existing ones.

However, you can customize the external representation (the specific key that SAP S/4HANA uses to identify the category in purchase requisitions and other purchasing documents.) and the designation, which is the descriptive name or label for the category.

To manage how item categories appear in your system, navigate to Customizing under Materials Management→Purchasing→Define External Representation of Item Categories

Document dependencies

The availability of specific item categories depends entirely on the combination of the document category and document type. For example, item category W (Material group) can only be used with the combination of document category K (Contract) and document type WK (Value contract).

Common item categories

SAP S/4HANA provides several item categories to support different procurement processes. Here is an overview of the most common ones:

Standard (blank)
Use this category for materials that your company procures externally. You can include a material number and account assignment. A goods receipt (GR) is optional but required for warehouse materials, and an invoice receipt (IR) is possible.
Limit (B)
Use this category to procure consumable materials or services up to a specific value limit. For these items, account assignment and an IR are mandatory, while a GR is not possible.
Consignment (K)
Use this category to order materials that are supplied by the supplier but not invoiced for now. Until you withdraw the material from stock for use, it belongs to the supplier. A liability to the supplier only arises when you withdraw the material from consignment stock.
Subcontracting (L)
Use this category when you provide specific components to a subcontractor to produce a finished material. These components can come from your own stock or be delivered directly to the subcontractor by a third party. For these items, a GR is required, while material numbers, account assignments, and IRs are optional.
Stock transfer (U)
Use this category to move materials between different plants within your company. Both a material number and a GR are required for these transactions.
Third-party (S)
Use this category when you order material that the supplier delivers directly to a third party, such as a customer. While the supplier sends the invoice to you, the physical goods never enter your stock. In this case, both account assignment and an IR are required.
Diagram explains SAP item categories and shows how each category controls related processes such as material management, account assignment, and receipt handling.

Linking Purchase Requisitions to External Purchasing Documents

After you create a new document type for the Purchase Order category, you must configure how it interacts with existing requisitions.

For example, if you want to convert Standard or Subcontracting items from an NB purchase requisition into Subcontracting items within your new purchase order document type, you must maintain specific entries in the system.

To enable this conversion, ensure the following entries exist in the configuration table:

Purchase RequisitionPurchase Order
Document TypeDescriptionItem CategoryDescriptionItem CategoryDescription
NBPurch. Requis. Standard StandardLSubcontracting
NBPurch. Requis. StandardLSubcontractingLSubcontracting

You must list all the combinations of document types and item categories that can serve as a basis for converting a purchase requisition into an external purchasing document.

Visual diagram explains linking purchase requisition document types to purchasing document types, using standard item categories and table to summarize configuration mapping options.

How to Create Document Types in Purchasing

How to Use Document Types in Purchasing

Summary

  • Creating a new document type follows three steps: defining the general settings, allowing the item categories, and linking purchase requisitions with external purchasing documents.
  • Number ranges define intervals and number assignment mode (internal or external).
  • At least one number range must be assigned to each combination document category/document type.
  • For any document category/document type combination, you must declare its permissible item categories, each controlling material number, account assignment, GR, and IR requirements.
  • All valid combinations of document types and item categories that can serve as a basis for converting a purchase requisition into an external purchasing document must be explicitly configured in Customizing.