cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

API Consumption from S4 Hana Cloud Public Edition to SAP Profitability and Performance Management

LeonardoGarcia2
Explorer
0 Kudos
585

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: 

Product Master (A2X)
Business Partner (A2X)

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*

 

LeonardoGarcia2_0-1738361625210.png

 

And I've configured the connection like this on PaPM

LeonardoGarcia2_1-1738361625212.png

 

LeonardoGarcia2_2-1738361625212.png

 

 

I can see the fields of the API without a problem

LeonardoGarcia2_3-1738361625213.png

 

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

LeonardoGarcia2_4-1738361625213.png

 

 

Also I want to take all the data at once, or get it one by one, like the following example.

LeonardoGarcia2_5-1738361625213.png

 

Thank you in advance with any advice. Hope someone can help me. 

Best Regards

 

 

 

Accepted Solutions (0)

Answers (2)

Answers (2)

Chuma
Active Contributor
0 Kudos

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)

  • OData service versioning (v=000x) — APIs on SAP Business Accelerator Hub / OData V2 (explicitly shows the version suffix). SAP Help Portal
  • Business Partner (A2X) API page (entity sets, usage). SAP Help Portal
  • PaPM Cloud – Manage Connections (how PaPM consumes OData services). SAP Help Portal
  • Destinations to S/4HANA Cloud use OAuth2SAML (Integration Suite & BTP docs). SAP Help Portal

 

 

 

LeonardoGarcia2
Explorer
0 Kudos

Hi, that's the full error that appears even in the Application Monitor

LeonardoGarcia2_0-1738546044360.png

Is there a way to see the full message? Thank you for you response @gregorw