How to Increase the Number of Line Items in a SAP Purchase Order Without Errors

Are you encountering errors when creating a large SAP Purchase Order? If your PO was unexpectedly cancelled due to message length issues, you're not alone. This typically occurs when attempting to process Purchase Orders with over 200 line items, and it's tied to SAP system limitations on record locks.

Common Issue: "PO Cancelled – Message Too Long"

When a Purchase Order fails to process because it's "too long," the root cause is often linked to SAP's lock management system. Specifically, the system reaches its limit for handling record locks due to the current enque/table_size parameter setting.

Recommended Solution: Collaborate With Your SAP BASIS Team

To resolve this, follow these steps:
  1. Contact your SAP BASIS team to perform a system-level check.
  2. In transaction SM12, ask them to examine the enqueue table for locks.
  3. Review the enque/table_size parameter in the system profile.
  4. Increase the enque/table_size value to allow a higher number of records to be locked during PO creation.
This adjustment enables the system to handle larger Purchase Orders with 200 or more line items, reducing the risk of cancellation due to system limitations.

Final Tip

Before implementing the change in a production environment, always test the configuration in a QA or development system to validate the performance and stability impact.

SAP MM Books
SAP Material Management Certification, Interview and Configuration Reference Books

SAP Material Management Tips
SAP MM Configuration Tips and Materials Management Discussion Forum

Main Index
SAP ERP Modules, Basis, ABAP and Other IMG Stuff

All the site contents are Copyright © www.erpgreat.com and the content authors. All rights reserved.
All product names are trademarks of their respective companies.  The site www.erpgreat.com is in no way affiliated with SAP AG.
Every effort is made to ensure the content integrity.  Information used on this site is at your own risk.
 The content on this site may not be reproduced or redistributed without the express written permission of
www.erpgreat.com or the content authors.