on 2025 Jan 31 10:21 PM
Hi Experts,
I'm having trouble with API consumption from S4 Hana Cloud PE to a SAP PaPM Cloud tenant.
The APIs in question are:
I've created a conection between the SAP S4 Hana Cloud and the SAP BTP in which the SAP PaPM Cloud resides. And on s4 hana, I've created a Communication System, and Communication Arrangement. **All inbound*
And I've configured the connection like this on PaPM
I can see the fields of the API without a problem
I map the fields, and after saving, activating and running I get the following error: /NXI/P1_N/104 Error calling oData service destination: S4CtoPaPM; <?xml version="1.0" encoding="utf-8"?><error xmlns
Also I want to take all the data at once, or get it one by one, like the following example.
Thank you in advance with any advice. Hope someone can help me.
Best Regards
Request clarification before answering.
Hello @LeonardoGarcia2 ,
The error is usually one of these:
1. Missing API version in the Service Root
In S/4HANA Public Cloud, the A2X OData V2 services are versioned. Include the version suffix in PaPM:
Product: /sap/opu/odata/sap/API_PRODUCT_SRV;v=0002/ (entity set A_Product)
Business Partner: /sap/opu/odata/sap/API_BUSINESS_PARTNER;v=0002/ (entity set A_BusinessPartner)
SAP Help documents the v=000x convention for OData V2 services. SAP Help Portal-APIs on SAP Business Accelerator Hub
2.Destination authentication
When transitioning from BTP/PaPM to S/4HANA Cloud, use OAuth2SAMLBearerAssertion instead of Basic authentication, referencing your S/4 Communication Arrangement details. SAP’s documentation recommends OAuth2SAML as the preferred configuration for S/4HANA Cloud destinations. SAP Help Portal-SAP S/4HANA Cloud
How could you fix it?
In BTP → Destinations → Check Connection, call the service root with $metadata ( /sap/opu/odata/sap/API_PRODUCT_SRV;v=0002/$metadata).
404 → wrong path (usually missing; v=0002).
401/403 → auth/role/scopes (switch to OAuth2SAML or fix the comm. arrangement/roles).
200 + EDMX → destination is good; re-run in PaPM. (PaPM connection doc is here.) SAP Help Portal-Application Help for Universal Model-Manage Connections
Regarding “get all data at once”:
set a higher Maximum page size (for example, 1000). S/4 will continue paginating large results using @odata.nextLink; PaPM automatically follows this link, so manual looping isn’t necessary. The general paging behaviour aligns with standard OData V2; details for Product/Business Partner API pages are provided here. SAP Help Portal-APIs for Master Data Maintenance-Business Partner (A2X) – OData API
Let me know if you need further support
With regards
Chuma
GenAI support generated content (SAP Useful references)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, that's the full error that appears even in the Application Monitor
Is there a way to see the full message? Thank you for you response @gregorw
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 17 | |
| 8 | |
| 8 | |
| 6 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.