Code Assist MCP for SAP Ariba Procurement

Build 26.0.9655

DownloadProcurementDocumentAttachment

Allows you to retrieve attachment documents that are part of procurement approvables.

Input

Name Type Required Description
Realm String False Identify requested realm.
AttachmentId String True The unique attachment ID or attachment ID value which is provided as part of the document's attachment data. QueryType and ApprovableId must also be specified if the attachment ID instead of the unique attachment ID is specified.
QueryType String False Specifies the document type of the historical document whose attachment you wish to retrieve.

The allowed values are invoices, requisitions, receipts, directOrders, copyOrders, ERPOrders, invoiceReconciliations.

ApprovableId String False The unique identifier specifying the historical document whose attachment you wish to retrieve, which you can get from the document's UniqueName field.
LocalPath String False The absolute location where you want to save the file in.

Result Set Columns

Name Type Description
FileData String If the LocalPath and FileStream inputs are empty, file data will be output encoded in base64.
Success String Indicates whether or not the operation was successful.
Details String Any extra details on the operation's execution.

Copyright (c) 2026 CData Software, Inc. - All rights reserved.
Build 26.0.9655