hello
in our application we're using a!sapInvoke to query some data from SAP. the integration were working till last friday but from this week they're failing.
here's an example code of one of this expressions:
a!sapInvoke( scsExternalSystemKey: cons!LEASE_SAP_SCS_EXTERNAL_SYSTEM_KEY, usePerUserCredentials: cons!LEASE_SAP_USE_PER_USER_CREDENTIALS, hostname: cons!LEASE_SAP_HOSTNAME, clientnumber: cons!LEASE_SAP_CLIENT_NUMBER, systemNumber: cons!LEASE_SAP_SYSTEM_NUMBER, bapi: "BAPI_MATERIAL_AVAILABILITY", importParameters: { MATERIAL: ri!SAPcode, STGE_LOC: cons!LEASE_MATERIAL_STORAGELOCATIONSELECT_LOW, PLANT: cons!LEASE_MATERIAL_PLANTSELECTION_LOW, UNIT: ri!unit }, tableParameters: {}).result
which is returning the error:
Could not connect,message:Failed to connect to the external system [key=leasesapdev]. The site-wide credentials may be incorrect. Please ask an administrator to update the credentials in the Third-Party Credentials page in the Administration Console. Connection failure details: Initialization of destination leasesapdev failed: Connect to SAP gateway failed Connection parameters: TYPE=A DEST=leasesapdev ASHOST=10.151.17.14 SYSNR=00 PCS=1 LOCATION CPIC (TCP/IP) on local host with Unicode ERROR partner '10.151.17.14:3300' not reached TIME Wed Oct 2 07:55:31 2024 RELEASE 720 COMPONENT NI (network interface) VERSION 40 RC -10 MODULE nibuf.cpp LINE 4658 DETAIL NiBufIConnect: connection pending after 60000ms SYSTEM CALL connect ERRNO 115 ERRNO TEXT Operation now in progress COUNTER 2 ,detail:]]
the externalSystemKey (leasesapdev) is properly configured, and we've checked with SAP team that the credentials are still valid and that there's traffic ongoing. (we're on Appian Cloud, Test is on 24.2 and Prod 24.1, both are failing with same error)
on a!sapInvoke help it says
[Deprecated - use an HTTP Connected System instead] Invokes an SAP BAPI function.
Hence my queston is:
how can i configure with http connected system?
the a!sapInvoke has the following parameters which I don't know how to configure in the http integration (should they stay in header, query, where..?)
clientnumber,systemNumber,bapi,importParameters,tableParameters
Discussion posts and replies are publicly visible
AFAIK that deprecation was revoked. The SAP functions are fully supported.
Check in sap forums if you can find an HTTP request in order to take it as a reference when implementing the connected system.
Anyway, deprecated does not mean not supported.. and as Stefan Helzle said, the function should work without problems...