Questions tagged [sap-cpi]

38 questions
2
votes
1 answer

Converting XML to JSON using Groovy

I am trying to convert XML into desired JSON using Groovy in SAP CPI. I am not getting results as wanted using standard XML-to-JSON converter provided by SAP CPI. I have written below groovy code and it is giving me JSON as I wanted except the Array…
Kaushik
  • 155
  • 1
  • 2
  • 17
2
votes
0 answers

Handling of redundant product data in SAP material integration

The SAP standard material integration* wants to create for each salesOrg a different Catalog. Therefore, the products are redundantly saved in each catalog which leads to a huge amount of redundant data in SAP Commerce, because the products are…
miwoe
  • 757
  • 1
  • 6
  • 17
2
votes
2 answers

Authenticate calls to Google Cloud Functions programmatically

I am trying to authenticate to Google Cloud Functions from SAP CPI to fetch some data from a database. To push data, we use pub/sub, with a service account access token, and it works perfectly. But for the functions, it needs an identity token…
2
votes
1 answer

SAP HCI: get more entities than page size

I don't actually know if this is the right place to ask and don't even know if I can phrase my question correctly, but I'll try: My employer starts using SuccessFactors by SAP soon and I try to design some very basic HANA Cloud Integration Flows. I…
Markus Köhler
  • 764
  • 2
  • 8
  • 20
2
votes
1 answer

How to store an editable variable outside the integration flow in HCP PI?

I created an integration flow that queries a database and upserts the results to a SAP HANA database every hour. The initial database table I am replicating in SAP HANA has a field with the timestamp at which each entry's data was altered. To…
Diogo Magalhães
  • 441
  • 1
  • 9
  • 19
2
votes
1 answer

SAP HCI - WSDL Error - must not define an output, only one-way operations are allowed

I am trying to integrate Salesforce with SAP HCI and for that I am using Eclipse. I am following this guide and the WSDL I am using was generated in the Salesforce portal. The problem is that when I deploy the integration flow, I get the following…
Diogo Magalhães
  • 441
  • 1
  • 9
  • 19
1
vote
0 answers

Java classcasting / classloading mess in SAP CPI

I'm working on a Groovy script in the SAP CPI environment which means the script runs in a somewhat canned JVM. I uploaded the jjwt-api-0.11.2, jjwt-impl-0.11.2 and jjwt-jackson-0.11.2 jars, in order to build a JWT. The first run just after…
Vladimir
  • 393
  • 3
  • 16
1
vote
0 answers

XML to JSON Array Conversion using XSLT

I have a scenario where in I am trying to convert the following XML: 1023 1542 30 Mr
megrao1811
  • 21
  • 2
1
vote
1 answer

Remove node according to date in child

Using SAP CPI as a tool and with a Groovy script, I need to remove the "Letter" node if its creation date is older than others located at the same level. Given this XML:
Jorge Ramón
  • 141
  • 1
  • 1
  • 8
1
vote
1 answer

How to access Groovy script from SAP CPI Script Collection in another Script?

I try to access a groovy script from a script collection in another script (SAP CPI). The script from the script collection contains an enumeration and I want to access this enumeration in a message mapping script. So I do the following: Create the…
Sebi
  • 3,879
  • 2
  • 35
  • 62
1
vote
1 answer

OAuth Connection between SAP CPI and Salesforce

I am trying to connect Salesforce (REST API) from SAP CPI through Rojo Salesforce adapter. The connected app was created in Salesforce and the respective credential details given below was configured in CPI. Username & Password: (saved as user…
Vaisu Raj
  • 11
  • 1
1
vote
1 answer

Groovy script to Add node in SAP CPI

I was trying to add node using Groovy script but output is showing like input. Input: ABC 123 XXX
user16513122
1
vote
0 answers

API Gateway, API Mgt. & SAP CPI

I think I understand what API Mgt is and Orchestration. E.g. SAP PO and SAP CPI allow Orchestration. I was reading the following statement: Modern applications and changes in protocols and message designs also started to influence the ESB. A more…
1
vote
1 answer

Sort XML child nodes by date field in Groovy Script

My XML is like below... I need to sort EmpJob nodes under jobInfoNav by startDate element. I tried below codes and followed below logs, it doesn't give any error but list is not sorting. Please help. I am using this groovy script in SAP…
1
vote
2 answers

SAP Cloud Platform Integration add dependencies

I need to use the @Grab in a Groovy script in SAP Cloud Platform Integration and it gives an error ClassNotFoundException: org.apache.ivy.core.report.ResolveReport . Is there a way I can add this kind of dependency or can I load a jar on CPI in…
1
2 3