Working with Avo Assure
Automating VA01 (Sales Order Creation) in SAP using Avo Assure
The VA01 transaction in SAP is used to create a new Sales Order. This is one of the most common and critical processes in the SAP Sales & Distribution (SD) module. In Avo Assure, we can automate this flow using pre-built SAP actions, reusable repositories, and structured process flows.
SAP Steps in VA01 flow
The business process involves:
Login: Authenticate into the SAP system.
Create Sales Order (VA01): Start the VA01 transaction, enter the order type and organizational details, and provide customer and order information such as Sold-to Party, Ship-to Party, Material, Quantity, and Plant.
Validate Sales Document: Verify pricing, mandatory fields, and product availability. Once validated, save the order and capture the generated Sales Order Number.
Logout: Exit the SAP session.
Implementing VA01 flow in Avo Assure
In Avo Assure, the process flow is broken into Test Step Groups inside a Test Case:
Test Step Group 1 – Login
Action: Launch Application.
Inputs: SAP Server, Client, User ID, Password.
Validation: Verify login screen navigation.

Test Step Group 2 – Create Sales Order (VA01)
Action: Start Transaction
Input: VA01
Next: Select Order Type (OR – Standard Order)
Actions Used: Dropdown → Select Value by Text, Set Text (for Org/Division fields)
Action: Set Text → Enter Sold-to Party
Action: Set Text → Enter Ship-to Party
Action: Set Text → Enter Material Code
Action: Set Text → Enter Quantity
Action: Set Text → Enter Plant
Validation: Verify mandatory fields are not empty

Test Step Group 3 – Validate Sales Document
Action: Verify Text (for pricing condition fields)
Action: Get Status Bar Message → Validate system messages
Validation: Ensure no errors are displayed
Action: Press Tool Bar Button → Save
Action: Get Status Bar Message → Capture Sales Order number
Output: Store Sales Order ID in a Dynamic Variable {SO_Number} for reporting/reuse

Test Step Group 4 – Logout
Action: @Sap → End Transaction / Logoff
Validation: Verify SAP GUI closes successfully

Avo Assure Features Used in VA01 Automation
Element Repository: Create a repository with SAP option selected, store VA01 screen elements (buttons, text fields, dropdowns).
Reusable Step Groups: Login and Logout flows can be reused across other SAP test cases.
Dynamic Variables: Sales Order Number captured during Save step can be used for downstream test cases (e.g., Invoice creation).
SAP Actions Library: Utilized SAP-specific prebuilt actions (Start Transaction, Set Text, Dropdown Select, Get Status Bar, Tool Bar Action).
Reporting: Execution results, including captured Sales Order Number, are logged in Unified Reports and Web Reports.
Example Process Flow in Avo Assure
Login
Launch Application
@Sap → Launch
User credentials, SAP server
Start Transaction
Start VA01
@Sap → Start Transaction
VA01, Order Type = OR, Sales Org = 1000
Enter Details
Fill Customer & Order Info
Set Text, Dropdown Select
Sold-to = 1000, Material = MAT01, Qty = 10
Validate Document
Check Pricing & Messages
Verify Text, Get StatusBar
Pricing complete, No error messages
Save Order
Save and Capture Order Number
Tool Bar Action → Save
Output {SO_Number} captured
Logout
End SAP Session
@Sap → Logoff
Application closed
Benefits of Automating VA01 Flow
Ensures consistent validation of Sales Order creation.
Reduces manual effort in repetitive order entry tests.
Captures dynamic data (Order Number) for end-to-end testing.
Enhances reusability (Login/Logout groups reused in other flows like ME21N Purchase Order, VF01 Billing).
Conclusion
The VA01 Sales Order Creation flow is a fundamental process in SAP SD. Automating it with Avo Assure provides:
Reliability
Faster test execution
End-to-end coverage (integration with downstream processes)
By leveraging process flows, element repository, and SAP actions, Avo Assure makes SAP automation structured, reusable, and business aligned.
Note: Verification and Validation can be scripted according to your requirements.
Last updated