SAP MM TUTORIAL

SAP MM Automatic Purchase Order Creation (ME59N) from Purchase Requisition: A Practical Guide

Master SAP MM automatic PO creation from PR using ME59N. Learn configuration, prerequisites, common errors, and optimize procurement efficiency in S/4HANA.

Anshuman Behuria
Anshuman BehuriaLead SAP Mentor · theTechMentor
Updated
SAP MM Automatic Purchase Order Creation (ME59N) from Purchase Requisition: A Practical Guide
ModuleSAP MM
Read time13 min
LevelBeginner → Consultant
T-codes covered

MM02ME11ME12ME01ME59NMEK1ME23NSM36

As an SAP MM consultant in India, you know that manual processes are the enemy of efficiency, especially in high-volume procurement scenarios. When you're dealing with hundreds or thousands of purchase requisitions (PRs) daily for routine items like MRO spares, office supplies, or even low-value production components, asking a buyer to convert each PR to a Purchase Order (PO) manually using ME21N is simply not sustainable. This is where SAP MM's automatic PO creation functionality, specifically transaction code ME59N, becomes indispensable. It's a critical tool for any organization looking to streamline its procure-to-pay cycle.

This guide will cut straight to the chase, explaining not just what ME59N does, but why it's configured the way it is and how to troubleshoot common issues. We'll cover the essential master data prerequisites, delve into the grouping logic, and walk through practical steps. By the end, you'll be able to confidently set up and manage automatic PO creation from purchase requisitions in your SAP S/4HANA system, moving your team towards a more automated and error-free procurement landscape.

⚡ Key takeaways
  • ME59N automates purchase order creation from purchase requisitions, significantly boosting procurement efficiency and reducing manual effort for routine items.
  • Four critical master data prerequisites are mandatory: Material Master (Automatic PO), Vendor BP (Automatic PO), Purchasing Info Record (price, valid dates), and Source List (fixed vendor, valid dates).
  • ME59N intelligently groups multiple PRs into one PO or splits one PR into multiple POs based on criteria like vendor, purchasing organization, company code, and PO document type.
  • Common errors like 'Source not determined' or 'Pricing error' stem from incomplete or incorrect master data; always start troubleshooting there.
  • Always use the 'Test run' or 'Creation indicator = 2' option in ME59N for simulations to identify and resolve issues before creating actual purchase orders.
  • ME59N can be scheduled as a background job (SM36) for fully automated, continuous processing of purchase requisitions.

01Business Value of ME59N: Eliminating Manual Buyer Intervention

The core business value of SAP MM automatic PO creation via ME59N lies in its ability to transform a typically labour-intensive and error-prone process into an automated, background task. Imagine a large manufacturing plant in Pune or Chennai, generating thousands of PRs daily for indirect materials. Without ME59N, each of these would require a buyer's manual review and PO creation. This consumes valuable buyer time that could be better spent on strategic sourcing, vendor negotiation, or handling exceptions.

By implementing ME59N, companies can achieve:

For organisations aiming for true procurement excellence, ME59N is not merely a convenience; it's a strategic necessity, especially when integrated with other automation capabilities like SAP Joule AI in S/4HANA Logistics & Procurement.

02The Mandatory Prerequisites for SAP MM Automatic PO Creation (ME59N)

Automatic PO creation in SAP MM isn't a magical 'push-button' solution. It relies heavily on well-maintained master data. If any of these foundational elements are missing or incorrectly configured, ME59N will fail. You need to verify these settings rigorously:

1. Material Master (MM01/MM02)

The material being procured must be set up for automatic PO creation. Navigate to the Purchasing view for the relevant plant and ensure the 'Automatic PO' indicator is checked. This tells the system that this material is eligible for automated procurement processes.

2. Vendor Master / Business Partner (BP) (BP)

Similar to the material, the vendor (supplier) must also be enabled for automatic PO creation. In S/4HANA, vendors are managed as Business Partners. Within the 'Supplier' role, under the 'Purchasing Organization Data' section, check the 'Automatic PO' indicator.

3. Purchasing Info Record (ME11/ME12)

The purchasing info record is paramount. It links a material, a vendor, and a purchasing organization, defining pricing conditions, delivery data, and other critical parameters for a specific material-vendor combination. Without an active info record, ME59N cannot determine a valid source for pricing or other details, leading to errors.

4. Source List (ME01/ME02)

For materials requiring a specific vendor for a plant, a source list entry is essential. It defines valid vendors for a material during a specific period. ME59N uses the source list to determine *which* vendor to use if multiple info records exist for a material, or simply to ensure a vendor is explicitly approved.

5. Purchase Requisition (ME51N/ME52N)

The PR itself needs to be correctly set up for automatic PO creation:

03Configuring ME59N Parameters for Automatic PO Creation

When you execute ME59N, you're presented with a selection screen to filter and process purchase requisitions. Understanding these parameters is key to running the transaction effectively.

Transaction Code: ME59N

Path: Logistics > Materials Management > Purchasing > Purchase Requisition > Follow-on Functions > Create Purchase Order Automatically

Here are the key selection parameters:

Recommendation: Always perform a 'Test run' or use 'Creation indicator = 2' initially when you are unsure or testing new setups. This allows you to identify and correct master data or configuration issues without creating erroneous purchase orders.

04Grouping and Splitting Logic in ME59N

One of the most powerful features of ME59N is its intelligent grouping and splitting logic. It doesn't simply create one PO for each PR. Instead, it tries to optimize by consolidating multiple PRs into a single PO where appropriate, or splitting a PR into multiple POs based on specific criteria. Understanding this logic is crucial for predicting the outcome of your automatic PO runs.

ME59N determines whether to group or split based on the following key fields:

Here’s how the logic usually works:

The grouping logic is highly dependent on the consistency of your master data and the selection criteria you provide in ME59N. Always ensure your master data aligns with your desired grouping strategy.

05Common Errors in ME59N and Their Resolution

Running ME59N is rarely a 'first-time-lucky' affair, especially in complex environments. You'll encounter errors. Here are the most frequent ones and how to resolve them:

1. Error: 'Source not determined for material XXXXX in plant YYYY'

Cause: The system cannot find a valid vendor to create the PO. This is almost always a master data issue related to sourcing.

Resolution:

2. Error: 'Pricing error in item XXXXX' or 'No price could be determined'

Cause: The system failed to determine a net price for the PO item. This is a crucial step for PO creation.

Resolution:

3. Error: 'Account assignment data missing' or 'Enter G/L account'

Cause: For PRs with account assignment categories (e.g., K-Cost Center, F-Order, P-Project), the required G/L account and other account assignment objects (Cost Center, WBS Element) are not complete or valid.

Resolution:

4. Error: 'No plant specified'

Cause: The purchase requisition item lacks a plant assignment.

Resolution:

5. Error: 'No suitable requisition found' (after running ME59N)

Cause: This isn't strictly an error message, but it means no PRs met your selection criteria or the prerequisites for automatic PO creation.

Resolution:

06Step-by-Step Execution of ME59N

Once your master data is squared away and you've understood the logic, executing ME59N is straightforward. Here’s a typical procedure:

  1. Access Transaction: Go to ME59N.
  2. Enter Selection Criteria:
    • Input your Purchasing Organization.
    • Enter the Vendor if you want to run for a specific supplier.
    • Specify a Plant if needed.
    • Crucially, ensure the 'Only with source of supply' checkbox is checked.
    • For initial runs or troubleshooting, set 'Creation indicator' to '2 - Create POs, but do not save' or tick the 'Test run' checkbox.
  3. Execute: Click the 'Execute' button (F8).
  4. Analyze Results (Test Run):
    • If you ran a test, the system will display a log. Green lights indicate successful simulation of PO creation. Red lights or warning triangles indicate issues.
    • Double-click on any red light messages to view the exact error details. Use the error messages section above to troubleshoot.
    • Adjust master data or PRs as needed based on the errors.
  5. Execute for Real:
    • Once confident, uncheck 'Test run' and set 'Creation indicator' to '1 - Create POs directly'.
    • Execute again.
  6. Verify PO Creation:
    • The system will display a list of created purchase orders.
    • Note down the PO numbers.
    • Use ME23N (Display Purchase Order) to verify that the POs have been created correctly and reflect the PR details.

Regularly scheduled background jobs can be set up for ME59N (using T-code SM36 for job scheduling) to automate this process completely for routine items, running daily or multiple times a day as required. This is where the true power of automation is realized, freeing up your team from repetitive tasks.

07Interview Questions on SAP MM Automatic PO Creation (ME59N)

As an SAP MM consultant in India, you should expect questions on ME59N during interviews, especially for roles focusing on procurement automation or functional lead positions. Here are some common ones:

Being able to articulate the 'why' behind each prerequisite and resolution step, combined with practical transaction knowledge, will set you apart. For more preparation, review Top 30 SAP MM Interview Questions for 2026.

🎁
Free: SAP MM & EWM video course + interview kit

Get the 40+ lesson playlist, the most-asked interview questions and our 90-day roadmap on WhatsApp.

?Frequently asked questions

What is the primary function of ME59N in SAP MM?

ME59N is an SAP MM transaction code used to automatically create purchase orders (POs) from eligible purchase requisitions (PRs). Its main purpose is to automate routine procurement tasks, reduce manual effort for buyers, and accelerate the procure-to-pay cycle by converting PRs into POs based on predefined master data and configuration.

Which master data must be correctly configured for ME59N to work?

For ME59N to function, you need correctly configured Material Master (with 'Automatic PO' indicator), Vendor Business Partner (with 'Automatic PO' indicator in purchasing data), a valid Purchasing Info Record (with pricing), and often a Source List entry for unique vendor determination. Incomplete or incorrect setup of any of these will lead to errors.

Can ME59N create multiple POs from a single PR, or group multiple PRs into one PO?

Yes, ME59N is designed with flexible grouping and splitting logic. It can group multiple PRs (or PR items) into a single PO if they share the same vendor, purchasing organization, company code, and PO document type. Conversely, a single PR with items that require different vendors or PO document types will be split into multiple POs.

What should I do if ME59N gives an error 'Source not determined'?

If you encounter a 'Source not determined' error, first check the Purchasing Info Record (ME12) for the material and vendor to ensure it's valid and has a price. Then, verify the Source List (ME02) for an active entry linking the material, plant, and vendor. Finally, confirm the 'Automatic PO' indicators are checked in both the Material Master and Vendor Business Partner.

Is ME59N available in SAP S/4HANA, and are there any differences from ECC?

Yes, ME59N is fully available and functions similarly in SAP S/4HANA as it did in ECC. The core logic and prerequisites remain the same. The main difference in S/4HANA is that vendor master data is now managed through the Business Partner (BP) concept (transaction BP), so you'll configure the 'Automatic PO' indicator within the BP record rather than directly in the old vendor master (FK01/MK01).

How can I test ME59N without creating actual purchase orders?

You can test ME59N safely by using the 'Test run' checkbox on the selection screen, or by setting the 'Creation indicator' to '2 - Create POs, but do not save'. Both options simulate the PO creation process and generate a log of potential POs and any errors, allowing you to troubleshoot and correct issues without impacting live data.

Learn SAP hands-on with theTechMentor

Live weekday & weekend batches or 24/7 recorded courses, with S/4HANA practice server access and interview preparation.