on 03-23-2016 4:06 PM
Dear community,
we use a Visual Basic program to connect to SAP for doing funny things.
The connection is opened via RFC in this style:
(like published here and found at many other places in the SAPnet and internet)
If oBAPICtrl.Connection.Logon(frmStart.hWnd, False) = False Then
MsgBox "R/3 connection failed"
End
End IfThe call of .Connection.Logon returns True/False only. But - in professional programming - I need to tell the reason WHY the connection was refused. There are so many possibilities (from wrong password to system not reached).
So, can anyone tell me how to retrieve any sort of further information? Can't believe it is not possible...
Thank you for the help.
Michael
Hello Michael,
you are referring to a pretty old approach for connecting from a VB environment to an ABAP system. I*'d recommend to have a look at the SAP Connector for Microsoft .NET 3.0 aka SAP .NET Connector 3.0 aka NCo 3.0. It offers all you need and is more powerful in the usage. Have a look at the blog . it provides a good introduction and is also pointing to the download section. The downloadable SDK includes also examples for VB. If a connection cannot be established, an exception will be thrown containing a message why.
Best regards,
Markus
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.