Praman — AI-First SAP UI5 Test Automation Platform - v1.0.1
    Preparing search index...

    Function createPurchaseOrder

    • Creates a purchase order in SAP ME21N / Manage Purchase Orders.

      Parameters

      • ui5: UI5HandlerSlice

        UI5 interaction handler.

      • ui5Nav: NavAPI

        Navigation API.

      • vocabulary: VocabLookup

        Vocabulary lookup service.

      • input: { material: string; plant: string; quantity: number; vendor: string }

        PO creation parameters.

      • Optionaloptions: IntentOptions

        Optional intent options.

      Returns Promise<IntentResult<void>>

      IntentResult describing the outcome.

      Navigates to the PurchaseOrder-create FLP hash, fills vendor, material, quantity, and plant fields via vocabulary, then clicks Save.

      Create a purchase order from structured input data.

      MM

      ME21N / Manage Purchase Orders — new PO creation.

      import * as procurement from '#intents/domains/procurement.js';

      const result = await procurement.createPurchaseOrder(ui5, ui5Nav, vocab, {
      vendor: '100001',
      material: 'MAT-001',
      quantity: 10,
      plant: '1000',
      });