How To Create Stock For Testing Purposes in SAP SD
4.9 out of 5 based on 15460 votesLast updated on 13th May 2026 28.6K Views
- Bookmark
Learn how to create stock for testing purposes in SAP SD using MIGO and movement type 561 with this simple step-by-step guide for beginners.
Introduction
SAP SD manages the sales and distribution process in an integrated way. It controls order processing, delivery execution, and billing creation. You must test the complete SD flow after system setup. This step ensures that all configurations work correctly. Once you complete your SAP SD setup, the next step is to test whether your Order to Cash process works end-to-end. This includes creating a Sales Order, generating a Delivery, posting Goods Issue, and creating a Billing document. The SAP SD Course is designed for beginners and offers the best guidance in this field. Stock plays a critical role in this flow. The system cannot process delivery or goods issue without stock. In this guide, we focus on how to create stock in SAP S/4HANA for testing. Read this section to know more.
Key Prerequisites Before Stock Creation
Before stock creation, professionals need to prepare all master data and configurations:
Material Master Setup
- Transaction MM01 must be used
- Maintain views: Basic Data, Sales Org Data, Plant Data, Storage
- Material type (e.g., FERT, HALB) must be assigned correctly
Plant and Storage Location
- Plant must be assigned to company code
- It is vital for the storage locations to exist
- Storage location and plant in customizing must be linked together
Sales Area Assignment
- Extend materials to Sales Org and Distribution Channel for efficiency
- Item category groups must be maintained accurately
Understanding Stock Creation in SAP SD Context
SAP SD does not create stock on its own. Stock managed in SAP MM is used here. Stock creation and updates are handled by Inventory management transactions. You create stock using processes like goods receipt or stock transfer in MM. Once the stock is available, SAP SD Business Process can use it for business activities. These activities include sales order creation, delivery processing, and billing. The system checks stock availability during order and delivery.
Stock creation for testing checks the following points:
- Availability Check (ATP)
- Pricing during delivery
- Picking and packing logic
- Issue posting for the Goods
Methods to Create Stock for Testing
Method 1: Initial Stock Upload (Movement Type 561)
Professionals can create inventory without purchase order reference using the Initial stock upload method. This method works best during system setup and testing. Movement type 561 posts stock as an opening balance in this.
Technical Overview
Movement type 561 posts unrestricted-use stock directly into inventory. The system updates quantity and value at the plant and storage location level. It does not trigger vendor or accounting documents in the procurement cycle. It updates stock tables like MARD and MBEW. It also updates valuation based on material price control.
Transaction Execution in MIGO
You use transaction code MIGO to perform this activity. Follow these detailed steps:
- Step 1: Goods Receipt must be selected as the transaction type
- Step 2: Select “Other”
- Step 3: Manually enter Movement Type 561
- Step 4: Input Material Number and check for material master data
- Step 5: “Plant” and “Storage Location” must be entered accurately
- Step 6: “Quantity” and “Unit of Measure” must be accurately maintained
- Step 7: Check “Stock Type” as unrestricted use
- Step 8: Check whether batch management is active, then enter the Batch number
- Step 9: Maintain “Valuation Type” while using split valuation
- Step 10: Go to “Where” tab and check the storage data
- Step 11: Select “Accounting” tab and check valuation class
- Step 12: Click “Check” to check the entire document
- Step 13: Click “Post” to complete stock creation in SD
Important Configuration Checks
- Material type must allow stock posting
- Plant and storage location must be defined accurately
- It is important to check valuation area and settings of price control
- Disable negative stock to keep testing processes clean
Use Case in Testing
- Creating stock for SD order-to-cash testing
- Bypassing procurement cycle during sandbox testing
- Stock availability simulation to process delivery
- Maintaining ATP and availability
Professionals can generate controlled stock scenarios with the above method. Testing becomes accurate. The courses on SAP SD Training in Noida ensure the best guidance in these methods for beginners.
Method 2: Goods Receipt Against Purchase Order
Stock is generated with a procurement reference under this method. It connects inventory with purchase document.
- Transaction code MIGO must be used
- Select Goods Receipt → Purchase Order
- PO number must be entered accurately to get the line items
- For accurate stock posting, check movement type 101
- Maintain quantity, storage location, and batch if active
- Go to “Accounting” tab to check accounting entries
- Click “Post” to update stock and FI documents
Method 3: Transfer Posting (Movement Type 311)
Stock travels between storage locations within the same plant with this method without changing stock ownership.
- MIGO or MB1B must be used for transfer posting
- Enter movement type 311
- Issuing and receiving storage locations must be given
- Maintain material, quantity, and plant details
- Check for stock availability in the source location
- Click on “Post” to update stock in both the locations
Method 4: Stock Upload via Batch Input or LSMW
Mass stock creation is enabled in this method with the help of data migration tools.
- Define object and source structure using LSMW
- Material, storage location, plant, quantity must be mapped accurately
- MB1C or MIGO can be used to record batch input session
- Flat file data must be unloaded and converted into SAP Course Online format
- Use background mode to execute batch input session
- Logs must be monitored and errors in failed records must be fixed immediately
Important Movement Types for Testing
| Movement Type | Usage Scenario |
| 561 | Tests the system setup |
| 101 | Used for procurement simulation |
| 311 | Tests internal movement |
| 601 | Tests SD delivery |
Availability Check (ATP) Impact
ATP improves visibility of the stock generated for SD.
Configuration Points:
- Group in material master must be checked thoroughly
- SD document rule must be checked
- Scope of check configuration
Testing Steps:
- Creating Sales Order (VA01)
- Checking for availability in schedule lines
- Confirming quantity according to the available stock
Integration with SD Process Flow
SD testing cycle must be followed after the stock is created. Below is the cycle.
Sales Order Creation
- Transaction: VA01
- Material and quantity must be entered
- Stock availability is checked in the systems
Delivery Creation
- Transaction: VL01N
- System uses storage location to pick stock
Picking and Packing
- Executing warehouse processes
- Creating transfer order
Post Goods Issue (PGI)
- Movement type 601 triggered
- Stock reduces from inventory
Storage Location and Batch Considerations
Storage Location Control
- Define picking relevance
- Assign to shipping point
Batch Management
- Enable batch in material master
- Create stock with batch number
- Use batch determination in SD
Table-Level Technical Insights
| Table Name | Description |
| MARD | Storage location stock |
| MARC | Plant data for material |
| MKPF | Material document header |
| MSEG | Material document segment |
These tables help verify stock at database level.
SELECT matnr werks lgort labst
FROM mard
INTO TABLE lt_stock
WHERE matnr = 'TEST_MAT'
AND werks = '1000'.
Testing Strategies for Stock Creation
Use Isolated Test Data
- generating dummy materials
- avoid use of production materials
Use Separate Plant
- Configure the test plant accurately
- Prevent changes on live data
Automate Stock Creation
- Using scripts or batch jobs improves efficiency
- Automation reduces manual errors significantly
Validate After Each Step
- Ensure regular checking of stock in MMBE
- Check accuracy in FI postings
The SAP SD Course in Hyderabad offers ample hands-on training opportunities under expert guidance for the best skill development of beginners.
Common Issues and Troubleshooting
Stock Not Visible in SD
- Check availability configuration
- Check plant assignment for accuracy
Incorrect Quantity
- Review all movement types
- Regularly check unit of measure
Posting Errors
- Check all account determination
- OBYC settings must be checked
Advanced Stock Simulation Using Special Stock Indicators
Special stock indicators simulate ownership scenarios accurately. These scenarios are critical for SD testing. You can validate third-party and consignment processes using this setup.
Key Special Stock Types
- Consignment Stock (K)
- Sales Order Stock (E)
- Project Stock (Q)
Technical Behaviour
- System stores stock separately using special stock fields
- Table MSKA stores sales order stock
- Table MSKU stores consignment stock
Testing Use Case
- Create sales order stock using movement type 501 E
- Link stock directly to a sales order
- Validate that only assigned order consumes stock
SAP SD Course in Pune includes advanced labs for simulating goods receipt, transfer posting, and goods issue flows.
Stock Reversal for Test Reset
Testing requires repeated execution. You must reverse stock postings after each cycle.
Common Reversal Movement Types
| Movement Type | Description |
| 562 | Reverse initial entry |
| 102 | Reverse GR |
| 602 | Reverse PGI |
Steps
- MIGO helps with reversal
- Original documents must be referenced
- Validating consistency in stock is mandatory
Performance Considerations
- Large manual entries must be avoided
- Batch processing helps with mass data
- Monitoring database tables improves consistency
Best Practices
- Using realistic quantities
- Maintaining master data consistency
- Reset test data after execution is completed
Consider joining SAP SD Certification Course for the best industry-relevant skill development along with certificates.
You May Also Read:
Conclusion
Stock creation is an important SAP SD testing process. Delivery or billing processes remain incomplete without available stock. Professionals can quickly generate stock using movement type 561 in MIGO. This method supports fast validation of system configuration. You can perform the entire Order to Cash cycle properly after stock creation is completed. Creating stock enables you to test sales orders, delivery, issues in goods, billing, etc. The above procedures enable professionals to identify errors quickly.
Other Related Courses:
FAQs
Which movement type is best for creating test stock in SAP SD scenarios?
Use movement type 561 for initial stock creation. It does not require a purchase order.
Why is stock required before delivery creation in SAP SD?
ATP logic helps the system to check stock. Delivery fails if stock is not available.
How can I verify stock after creation?
Use transaction MMBE. It shows stock at the plant and storage location levels.
Can I create stock directly in the SAP SD module?
No. SAP SD consumes stock. SAP MM Course manages stock creation.
How do I reset stock after testing?
Use reversal movement types like 562 or 102. This step keeps test data clean.
Subscribe For Free Demo
Free Demo for Corporate & Online Trainings.