SAP Step Variables

Last Updated: October 27, 2026

The SAP steps returns data from SAP as variables that later steps in your workflow can use. Use this reference to identify variables each SAP step provides, their data types, and what they contain. The variables appear in the variable list of any later step that supports variables, such as an Email, Storage, or Agent step. An Agent step can use these variables as runtime data in its instructions.

SAP Steps Variables

Find Purchase Order

Looks up purchase orders in SAP.

SAP Find Purchase Order Step Variables

Variable

Description

Type

matchCount

Number of matching purchase order headers

Whole number

purchaseOrders

Matching purchase order headers. Always a collection, even for a single match

List

purchaseOrder

Purchase order number of the first match.

Text

supplier

Supplier number on the order.

Text

companyCode

Company code to which the order belongs.

Text.

purchaseOrderType

Purchase order document type

Text

purchaseOrderDate

Order date as SAP serializes Edm.DateTime in JSON. Compare it or display it, but do not expect YYYY-MM-DD.

Text

purchasingGroup

Purchasing group responsible for the order.

Text

purchasingOrganization

Purchasing organization under which the order was raised.

Text

documentCurrency

Currency of the order amounts.

Text

pruchaseOrderNetAmount

Net order value, as the decimal string SAP returns. OData V2 serializes Edm.Decimal as a string to keep its precision.

Text

paymentTerms

Payment term key on the order.

Text

statusCode

HTTP status code of the SAP request.

Whole number

Get Purchase Order Detail

Reads one purchase order with its line items.

Get Purchase Order Detail Step Variables

Variable

Description

Type

purchaseOrder

The purchase order header with its line items nested beneath it.

Object

supplier

The supplier with whom the order was placed. Header-level item: Line items do not carry it.

Text

invoicingParty

The party expected to invoice, which may differ from the supplier.

Text

companyCode

Company code to whom the order belongs.

Text

documentCurrency

Currency of the whole order, like USD.

Text

paymentTerms

Payment terms key on the order.

Text

purchaseOrderType

Purchase order document type

Text

purchaseOrderDate

Order date as SAP serializes Edm.DateTime in JSON. Compare it or display it, but do not expect YYYY-MM-DD.

Text

purchasingProcessingStatus

Header processing status.

Text

purchasingCompletenessStatus

Header completeness status.

Text

statusCode

HTTP status of the SAP request.

Whole number

Get Goods Receipts

Reads goods movements posted against a purchase order.

Get Goods Receipts Step Variables

Variable

Description

Type

GoodsMovements

Goods movement items posted against the purchase order. If nothing is received the list is empty, which is not an error.

List

matchCount

Number of goods movement rows returned.

Whole number

statusCode

HTTP status of the SAP request.

Whole number

Get Prior Invoices

Reads supplier invoice items already posted against a purchase order.

Get Prior Invoices Step Variables

Variable

Description

Type

GoodsMovements

Goods movement items posted against the purchase order. If nothing is received the list is empty, which is not an error.

List

matchCount

Number of goods movement rows returned.

Whole number

statusCode

HTTP status of the SAP request.

Whole number

Get Service Entry Sheets

Reads service entry sheets for a purchase order.

Get Service Entry Sheets Step Variables

Variable

Description

Type

serviceEntrySheets

Service entry sheets recorded against the purchase order, each with its approval status and line items.

List

matchCount

Number of service entry sheets returned.

Whole number

statusCode

HTTP status of the SAP request.

Whole number

Get Supplier

Reads a supplier master record.

Get Supplier Step Variables

Variable

Description

Type

supplier

The supplier master record, with its company code and purchasing organization segments nested beneath them.

Text

supplierName

The supplier name in the root record.

Text

supplierFullName

Full legal name.

Text

vatRegistration

VAT registration number on the root record.

Text

postingIsBlocked

CENTRAL posting block. Accounting posts for this supplier in any company code fail.

Text

paymentIsBlockedForSupplier

CENTRAL payment block. An invoice will still post, but payment against that invoice will not process.

Text

purchasingIsBlocked

CENTRAL purchasing block.

Text

supplierProcurementBlock

Procurement block reason code. Blank means not blocked; a code says why.

Text

deletionIndicatior

The supplier is flagged for CENTRAL deletion.

True/False

alternaltivePayee

Payment goes to this party instead of the supplier.

Text

statusCode

HTTP status of the SAP request.

Whole number

Get Supplier Invoice Status

Reads the status of a supplier invoice.

Get Supplier Invoice Status Step Variables

Variable

Description

Type

supplierInvoice

The supplier invoice header, with its tax breakdown when requested.

Object

supplierInvoiceStatus

One-character status code. Parked versus Posted distinction.

Text

paymentBlockingReason

One-character payment block key. Blank means not blocked.

Text

isReversed

This invoice has been reversed. The payable no longer exists.

True/False

isReversal

This document is the reversal of another invoice, rather than the one that was reversed.

True/False

supplierInvoiceIsCreditMemo

This document is a credit memo, not an invoice

True/False

invoiceGrossAmount

Gross invoice amount, as the decimal string SAP returns (OData Vs serializes Edm.Decimal as a string to keep its precision.

Text

documentCurrency

Currency of every amount on this invoice, like USD.

Text

supplierInvoiceIdByInvcgParty

The supplier's own invoice number.

Text

supplier

The supplier who sent the invoice.

Text

invoicingParty

The party that issued the invoice. It may differ from the suppplier

Text

companyCode

Company code in which the invoice posted.

Text

statusCode

HTTP status of the SAP request.

Whole number

Create Supplier Invoice

Creates a supplier invoice.

Create Supplier Invoice Step Variables

Variable

Description

Type

supplierInvoice

The created invoice number.

Text

fiscalYear

Fiscal year of the created invoice.

Text

invoice

The full created invoice header as SAP returned it.

Object

statusCode

HTTP status of the SAP request.

Whole number

Post Supplier Invoice

Posts a supplier invoice.

Post Supplier Invoice Step Variables

Variable

Description

Type

success

True if SAP posted the invoice. False if it refused.

True/False

statusCode

HTTP status of the SAP request.

Whole number

Link Source Document

Attaches the source document to an SAP invoice.

Link Source Document Step Variables

Variable

Description

Type

attachment

The attachment record SAP created for the link.

Object

documentInfoRecordDocNumber

Document info record number identifying the attachment in SAP Document Management.

Text

documentInfoRecordDocType

Document type under which SAP filed the attachment.

Text

linkedSapObjectKey

Echo of the object key to which the object was linked.

Text

fileName

Name SAP recorded for the attachment.

Text

statusCode

HTTP status of the SAP request.

Whole number

Next Steps

Learn more about workflows and workflow steps: