Forum Discussion
Hi, Now It's working, I had to create a Gateway datasource type and it already allowed me to compile it in SIF with the SAP dll. It can NOW connect me and bring information
Hi JC_Hackkett,
I'm facing a similar issue with an SAP connection. I was informed that a Database Type connection needs to be created for SAP for ERPConnect. We have added all the necessary DLLs to the local SIC gateway server, and the BR compiles successfully. However, it seems that the connection to SAP is not being established. Here's what we did:
- Created a Gateway of Database Type Connection.
- Added all the DLLs.
- Created an SIF which compiles successfully.
- When the External BR referencing the SIF BR is run, it does not establish a connection with SAP.
Can you please help me understand the steps you took to create a data source if you opted for a direct connection? We were informed that creating a data source is not required.
- JC_Hackkett6 months agoNew Contributor II
Hi ashimoga
It's correct you don't need create a datasource in Local Gateway Connections.
If the gateway is online, you have to review the DLLs installed, you need the librfc32.dll installed too
the link SAP Libraries | Theobald Software Online Help (theobald-software.com)
- ashimoga6 months agoNew Contributor
Thanks JC_Hackkett . Do we need to buy ERPConnect license for this?
- JC_Hackkett6 months agoNew Contributor II
I was also validating this topic. No, it is not necessary
Download the dll from the OneStream marketplace according to the SIC manual, once you copy it into the local SIC configuration xml, automatically add the license.Validate with the Basic or ABAP people that your login request is being received and the request, whether it is to read a table or request an RFC.
I had to take the error that calls you backThis is an example of how to take the error message that comes to you directly from SAP, use some standard RFC and give access to your SAP connection user.
Dim r3Conn As New R3Connection(host, systemnumber, username, password, language, client)r3Conn.Protocol = ClientProtocol.NWRFCr3Conn.Open()If r3Conn.IsOpen ThenDim r3Func As RFCFunction = r3Conn.CreateFunction("BAPI_GL_ACC_GETBALANCE")r3Func.Exports("COMPANYCODE").ParamValue = "XXXX"r3Func.Exports("GLACCT").ParamValue = "XXXXXXXXX"r3Func.Exports("FISCALYEAR").ParamValue = "XXXX"r3Func.Exports("CURRENCYTYPE").ParamValue = "XX"r3Func.Execute()Dim balanceDetail As RFCStructure = r3Func.Imports("ACCOUNT_BALANCE").ToStructure()Dim returnStruct As RfcStructure = r3Func.Imports("RETURN").ToStructure()'This message is from SAPDim message As String = returnStruct("MESSAGE").ToString()End If
Related Content
- 5 months ago
- 3 years ago
- 3 years ago