Skip to Content
Former Member
Oct 23, 2013 at 03:06 PM

First Interface



i have some trouble creating my first Interface to SAP.

We are using SAP Phone and i need to create an Interface that pushes a phone number to the SAPPhone, so that the Agent that this number is posted to get the Information on SAP directly to on his SAP Screen.

The SAP System is 720.

Im acutally trying to use the GUI Library with C++

My code up to here is:

#include "stdafx.h"

#include "..\..\..\..\..\Desktop\Projekte\NZZ\SAP Entwicklung\guilib.h"

#pragma comment(lib, "../../../../../Desktop/Projekte/NZZ/SAP Entwicklung/GUILIB.LIB")

int _tmain(int argc, _TCHAR* argv[])


char Hostname[50];

char SystemID[5];

char Client[5];

char User[20];

char Passwd[20];

char Language[5];

HANDLE hHandle;

PIT_EVENT pEvt = 0;

const char* PROGRAM = "Sog2013" ;

/* Initialise the Connection details*/

strcpy_s (Hostname,"");

strcpy_s (SystemID,"C80");

strcpy_s (Client,"100");

strcpy_s (User,"abc");

strcpy_s (Passwd,"***");

strcpy_s (Language,"DE");

hHandle = It_NewConnection(Hostname, SystemID, SAPGUI_FRONT);

return 0;


Thats the message i get..

is here an Error in my Code?

Is this an generel Error?


As i find out i have to update the service file i have know the Error No 10061

WSAECONNREFUSED: Connection refused

Error: parnert nocht reached..

Any ideas what i should do here?

If im on the right way to get to my goal anyway... 😊


SAP.JPG (36.6 kB)
SAP.JPG (36.6 kB)