Skip to Content
0
Former Member
Sep 04, 2013 at 06:28 PM

SAP Beginner

17 Views

Hi There, My company just bought a new SAP Business One system 8.82. I want to connect to this system using .Net C#. Below is my codes. However, I couldn't figure it out how & where to get the Client, SystemNumber. Installed the 7.20 SAP GUI and I got the connection work but I can't see the SAP system. Any help would be appreciated. Thanks SAPLogonControl connctl = new SAPLogonControl (); connctl.Client = "" ; Where Can I find this client ? connctl.Language = "EN" ; connctl.ApplicationServer = "192.68.0.1" ; Is this corrected? connctl.SystemNumber = 0000; Where Can I find this SystemNumber ? connctl.User = "userID " ; connctl.Password = "Password12345" ;
Connection conn = ( Connection ) connctl.NewConnection(); if (conn.Logon( null , false )) MessageBox .Show( "Successful" ); else MessageBox .Show( "Logon Failed" ); I got the failed message here