{
  "test_id": "ORCL.SCM.MFG.MAT.RETURN",
  "scenario_name": "Return Material",
  "application": "Oracle Fusion Cloud",
  "product": "SCM",
  "module": "Manufacturing",
  "process": "Return Material",
  "business_flow": "Plan-to-Produce",
  "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/manufacturing/material-transactions/return-material/",
  "objective": {
    "intro": "The objective of this test is to validate that a component previously issued to a work order can be correctly returned to inventory in Oracle Fusion SCM Manufacturing, using a valid work order, component, quantity, subinventory, locator and lot/serial number where required, without assuming over-return is universally permitted, and that the resulting return transaction correctly updates on-hand and the outstanding issued quantity.",
    "confirms": [
      "material is correctly returned against the work order and previously issued component",
      "quantity, subinventory and locator are captured correctly on the return transaction",
      "lot and serial control is correctly enforced according to each component's configuration",
      "a partial return correctly reduces the outstanding issued quantity rather than closing it entirely",
      "on-hand quantity and the outstanding issued quantity are correctly updated after the return",
      "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 return of previously issued components from work orders back to inventory in Oracle Fusion SCM Manufacturing TEST/UAT environments. It does not assume over-return is universally permitted, and does not cover component issue, backflush or shortage-reporting behavior, which are covered by the separate Issue Material, Backflush Material and Material Shortage scenarios in the same Material Transactions cluster."
  },
  "preconditions": [
    "A work order exists with a component previously issued and an outstanding issued quantity available to return.",
    "The component being returned is active in the manufacturing organization, with lot or serial control configured as required.",
    "A valid subinventory and locator exist to receive the returned quantity, where the scenario expects a successful return.",
    "The test user has appropriate access to return material for the manufacturing organization.",
    "The issued quantity, lot and serial detail being returned against are known and available for reference."
  ],
  "test_data": [
    {
      "field": "Work Order",
      "example": "${WORK_ORDER}"
    },
    {
      "field": "Component",
      "example": "${COMPONENT}"
    },
    {
      "field": "Quantity",
      "example": "${QUANTITY}"
    },
    {
      "field": "Subinventory",
      "example": "${SUBINVENTORY}"
    },
    {
      "field": "Locator",
      "example": "${LOCATOR}"
    },
    {
      "field": "Lot Number",
      "example": "${LOT}"
    },
    {
      "field": "Serial Number",
      "example": "${SERIAL}"
    },
    {
      "field": "Issued Quantity",
      "example": "${ISSUED_QUANTITY}"
    }
  ],
  "business_steps": [
    {
      "step_number": 1,
      "step_name": "Sign In and Navigate to Manufacturing",
      "action": "Sign in to Oracle Fusion using an authorised manufacturing test user and navigate to the Manufacturing work area.",
      "test_data": "",
      "expected_result": "The Manufacturing work area opens successfully.",
      "validation_type": "action"
    },
    {
      "step_number": 2,
      "step_name": "Navigate to the Work Order's Issued Components",
      "action": "Open the work order and navigate to its previously issued component transactions.",
      "test_data": "${WORK_ORDER}",
      "expected_result": "The work order's issued components are displayed, showing the outstanding issued quantity.",
      "validation_type": "action"
    },
    {
      "step_number": 3,
      "step_name": "Select Component to Return",
      "action": "Select the previously issued component to return from the work order's issued components.",
      "test_data": "${COMPONENT}",
      "expected_result": "The selected component is accepted and reflected on the return transaction.",
      "validation_type": "action"
    },
    {
      "step_number": 4,
      "step_name": "Enter Return Quantity",
      "action": "Enter the quantity of the component to return to inventory.",
      "test_data": "${QUANTITY}",
      "expected_result": "The return quantity is accepted and reflected on the return transaction.",
      "validation_type": "action",
      "note": "This single business step replaces multiple technical actions such as opening the quantity field and confirming it against the outstanding issued quantity."
    },
    {
      "step_number": 5,
      "step_name": "Enter Subinventory, Locator and Lot/Serial Where Required",
      "action": "Select the subinventory and locator to receive the returned material, and enter the lot or serial number where lot or serial control applies.",
      "test_data": "${SUBINVENTORY} / ${LOCATOR} / ${LOT} / ${SERIAL}",
      "expected_result": "Subinventory, locator and lot/serial detail are accepted and lot/serial control is correctly enforced according to the component's configuration.",
      "validation_type": "action",
      "note": "Not every component requires lot or serial entry — this step applies only where the component's configuration requires it."
    },
    {
      "step_number": 6,
      "step_name": "Submit Return Transaction",
      "action": "Submit the material return transaction for processing in the test environment.",
      "test_data": "",
      "expected_result": "Oracle Fusion successfully processes the return transaction without unexpected errors.",
      "validation_type": "action"
    },
    {
      "step_number": 7,
      "step_name": "Verify On-Hand and Issued Quantity Balances Update Correctly",
      "action": "Reopen or refresh the work order and the on-hand inquiry, and confirm the on-hand quantity and outstanding issued quantity have updated correctly.",
      "test_data": "",
      "expected_result": "On-hand quantity is increased by the returned quantity, and the work order's outstanding issued quantity correctly reflects the return.",
      "validation_type": "business_assertion",
      "note": "This is the primary business assertion for the scenario — a correctly updated on-hand balance and outstanding issued quantity is the expected pass condition, not merely a successful save."
    }
  ],
  "expected_results": [
    "Material is correctly returned against the work order and previously issued component.",
    "On-hand quantity is correctly increased by the returned quantity.",
    "Lot and serial control is correctly enforced where configured.",
    "A partial return correctly reduces the outstanding issued quantity.",
    "A return exceeding the issued quantity is correctly blocked or flagged as configured.",
    "Unauthorized return attempts are correctly blocked."
  ],
  "validation_checkpoints": [
    "Material correctly returned and on-hand correctly updated.",
    "Partial return correctly reduces the outstanding issued quantity.",
    "Lot/serial control correctly enforced on return.",
    "Over-return correctly blocked or flagged per configuration.",
    "Invalid component, lot or serial correctly rejected.",
    "Unauthorized return correctly blocked."
  ]
}
