{
  "test_id": "ORCL.P2P.PROC.PO.CREATE",
  "scenario_name": "Create Purchase Order",
  "application": "Oracle Fusion Cloud",
  "product": "SCM / Procurement",
  "module": "Procurement",
  "process": "Purchase Orders",
  "business_flow": "Procure-to-Pay",
  "scenario_type": "Positive / Functional",
  "priority": "High",
  "automation_status": "SyntraFlow Ready",
  "library": "Syntra Standard",
  "canonical_url": "https://www.syntraflow.cloud/oracle-erp-testing-tool/test-library/scm/procurement/purchase-orders/create-purchase-order/",
  "objective": {
    "intro": "The objective of this test is to validate that a purchase order can be created in Oracle Fusion SCM using a valid supplier, supplier site, procurement Business Unit, buyer, item or category, quantity, price, currency, ship-to and bill-to location and charge account, and that the resulting purchase order is created with correct header and line detail.",
    "confirms": [
      "the purchase order is created for the correct procurement Business Unit and buyer",
      "supplier and supplier site information is captured correctly",
      "line detail — item or category, quantity, unit of measure and unit price — is captured correctly",
      "ship-to, bill-to and charge account information on the line is correct",
      "the purchase order receives a system-generated PO number and correct status",
      "Oracle correctly enforces validation when data errors, configuration errors or security restrictions are introduced (DATA_ERROR, CONFIGURATION_ERROR, SECURITY_ERROR, EXPECTED_VALIDATION)"
    ],
    "scope_note": "This scenario covers creation of a single or multi-line purchase order in Oracle Fusion SCM Procurement TEST/UAT environments, whether created manually or from an approved requisition. It does not cover approval, subsequent changes, or inquiry, which are covered by the separate Approve Purchase Order, Change Purchase Order and Purchase Order Inquiry scenarios in the same Purchase Orders cluster."
  },
  "preconditions": [
    "A procurement Business Unit is configured in the target Oracle Fusion SCM environment.",
    "The supplier and supplier site being used on the purchase order are active.",
    "The buyer has appropriate access to create a purchase order for the procurement BU.",
    "The item or category being ordered is active in the item/category catalog.",
    "The charge account entered on the line is valid and open for the purchase order date.",
    "The ship-to and bill-to locations used on the purchase order are configured and active."
  ],
  "test_data": [
    {
      "field": "Procurement BU",
      "example": "${PROCUREMENT_BU}"
    },
    {
      "field": "Requisitioning BU",
      "example": "${REQUISITIONING_BU}"
    },
    {
      "field": "Supplier",
      "example": "${SUPPLIER}"
    },
    {
      "field": "Supplier Site",
      "example": "${SUPPLIER_SITE}"
    },
    {
      "field": "Buyer",
      "example": "${BUYER}"
    },
    {
      "field": "Item",
      "example": "${ITEM}"
    },
    {
      "field": "Category",
      "example": "${CATEGORY}"
    },
    {
      "field": "Quantity",
      "example": "${QUANTITY}"
    },
    {
      "field": "UOM",
      "example": "${UOM}"
    },
    {
      "field": "Unit Price",
      "example": "${UNIT_PRICE}"
    },
    {
      "field": "Currency",
      "example": "${CURRENCY}"
    },
    {
      "field": "Ship-to",
      "example": "${SHIP_TO}"
    },
    {
      "field": "Bill-to",
      "example": "${BILL_TO}"
    },
    {
      "field": "Charge Account",
      "example": "${CHARGE_ACCOUNT}"
    },
    {
      "field": "Payment Terms",
      "example": "${PAYMENT_TERMS}"
    }
  ],
  "business_steps": [
    {
      "step_number": 1,
      "step_name": "Sign In and Navigate to Procurement",
      "action": "Sign in to Oracle Fusion using an authorised buyer test user and navigate to the Procurement work area.",
      "test_data": "",
      "expected_result": "The Procurement work area opens successfully.",
      "validation_type": "action"
    },
    {
      "step_number": 2,
      "step_name": "Navigate to Purchase Orders",
      "action": "Open the Purchase Orders page to begin creating a new purchase order.",
      "test_data": "${PROCUREMENT_BU}",
      "expected_result": "The purchase order creation page opens for the correct procurement Business Unit.",
      "validation_type": "action"
    },
    {
      "step_number": 3,
      "step_name": "Create New Purchase Order",
      "action": "Initiate a new purchase order for the test buyer, either manually or sourced from an approved requisition.",
      "test_data": "${BUYER}",
      "expected_result": "A new, unsaved purchase order is opened for the correct buyer and procurement BU.",
      "validation_type": "action",
      "note": "This single business step replaces multiple technical actions such as opening the create page, confirming the buyer and confirming the procurement BU."
    },
    {
      "step_number": 4,
      "step_name": "Select Supplier and Site",
      "action": "Search for and select the supplier and supplier site for the purchase order.",
      "test_data": "${SUPPLIER} / ${SUPPLIER_SITE}",
      "expected_result": "The supplier and supplier site are accepted and reflected on the purchase order header.",
      "validation_type": "action"
    },
    {
      "step_number": 5,
      "step_name": "Enter Item or Category",
      "action": "Search for and select a catalog item, or enter category and line description details where a catalog item is not used.",
      "test_data": "${ITEM} / ${CATEGORY}",
      "expected_result": "The item or category line detail is accepted and added to the purchase order.",
      "validation_type": "action"
    },
    {
      "step_number": 6,
      "step_name": "Enter Quantity and Unit Price",
      "action": "Enter the purchase order line quantity, unit of measure, unit price and currency.",
      "test_data": "${QUANTITY} / ${UOM} / ${UNIT_PRICE} / ${CURRENCY}",
      "expected_result": "Quantity, UOM, unit price and currency are accepted without unexpected validation errors.",
      "validation_type": "action"
    },
    {
      "step_number": 7,
      "step_name": "Select Ship-to and Bill-to",
      "action": "Select the ship-to and bill-to locations for the purchase order line.",
      "test_data": "${SHIP_TO} / ${BILL_TO}",
      "expected_result": "The ship-to and bill-to locations are accepted and reflected on the line.",
      "validation_type": "action"
    },
    {
      "step_number": 8,
      "step_name": "Select Charge Account",
      "action": "Select or confirm the charge account and payment terms that the purchase order line will be costed to.",
      "test_data": "${CHARGE_ACCOUNT} / ${PAYMENT_TERMS}",
      "expected_result": "The charge account and payment terms are accepted and reflected on the line.",
      "validation_type": "action"
    },
    {
      "step_number": 9,
      "step_name": "Review Purchase Order Totals",
      "action": "Review the purchase order header, line detail and calculated totals as computed by Oracle Fusion before saving.",
      "test_data": "",
      "expected_result": "The reviewed purchase order reflects the entered supplier, site, item/category, quantity, price and totals.",
      "validation_type": "action",
      "note": "Reviewing the purchase order before saving lets the tester catch an incorrect field entry before the PO is created."
    },
    {
      "step_number": 10,
      "step_name": "Save the Purchase Order",
      "action": "Save the purchase order for creation in the test environment.",
      "test_data": "",
      "expected_result": "Oracle Fusion successfully processes the purchase order without unexpected errors.",
      "validation_type": "action"
    },
    {
      "step_number": 11,
      "step_name": "Verify PO Number and Status",
      "action": "Reopen or refresh the purchase order and confirm the generated PO number, status and line detail.",
      "test_data": "",
      "expected_result": "A PO number is generated, the purchase order status is correct, and supplier, site, quantity, price and totals match the entered data.",
      "validation_type": "business_assertion",
      "note": "This is the primary business assertion for the scenario — a correctly created purchase order with accurate header and line detail is the expected pass condition, not merely a successful save."
    }
  ],
  "expected_results": [
    "The purchase order is created for the correct procurement Business Unit and buyer.",
    "A system-generated PO number is assigned.",
    "Supplier and supplier site are correct.",
    "Line data — item/category, quantity, UOM and unit price — is correct.",
    "Ship-to, bill-to and charge account on the line are correct.",
    "The purchase order status correctly reflects a newly created purchase order.",
    "The purchase order is visible and traceable for the test buyer."
  ],
  "validation_checkpoints": [
    "PO created.",
    "PO number generated.",
    "Supplier/site correct.",
    "Lines correct.",
    "Totals correct.",
    "Status correct."
  ]
}
