Output Management Service
The Output Management module provides a client for creating and sending output requests — including emails and print documents — via the SAP Output Management Service.
Quick Start
Here's the simplest way to send an email:
from sap_cloud_sdk.outputmanagement import create_client
# Create client using the factory function
client = create_client(destination_name="ARIBA_OUTPUT_SERVICE")
# Send email directly
response = client.send_email(
notification_template_key="PO_APPROVAL_NOTIFICATION",
to=["finance@company.com"],
business_document={
"PurchaseOrder": {
"orderId": "PO-12345",
"vendor": "ACME Corp",
"total": 1500.00,
}
},
)
# Check the result
if response.error:
print(f"Failed to send email: {response.error.message}")
else:
print(f"Email sent successfully! Request ID: {response.outputRequestId}")
)
For the complete API reference and more examples, see the Output Management user guide in the cloud-sdk-python repository.