메뉴 건너뛰기

SAP 한국 커뮤니티



asp에서 sap 인터페이스 진행하는데 문제가 생겨 조언좀 얻고 싶습니다.


서버 : 가상화서버에서 작업중이며 윈도우 2012 입니다.

           해당서버에는 SAPGUI (730)을 설치했습니다.

 


Public theFunc 

Public con

Public functionCtrl 

Dim returnFunc 


Set functionCtrl = CreateObject("SAP.Functions") 

Set sapConnection = CreateObject("SAP.Logoncontrol.1") 

Set sapConnection = sapConnection.NewConnection 

'************************************** 

'Pass the name of the system 

'************************************** 

sapConnection.System = "XX" 

'************************************** 

'Pass the name of the Server 

'************************************** 

sapConnection.ApplicationServer = "XXX.XXX.XXX.XXX" 

'************************************** 

'Pass the name of the Client 

'************************************** 

sapConnection.client = 100

'************************************** 

'Pass the name of the USER 

'************************************** 

sapConnection.user = "XXXXXX" 

'************************************** 

'Pass the name of the Password 

'************************************** 

sapConnection.Password = "XXXXXX" 

'************************************** 

'Pass the name of the Language 

'************************************** 

sapConnection.language = "KO" 


'************************************** 

'Log On to the SAP System 

'************************************** 

Set functionCtrl = server.CreateObject("SAP.Functions") 

 retcd=oConn.Logon(0,true) 

 If RetCd = False Then 

   Response.write "SAP Logon Failed." 

   Response.Write "<A href='admin.asp'>" & "Login Again" & "</A>" 

   Response.End 

 else 

   Response.write "SAP Logon Succeeded." 

 end if 


위와 같이 작성하여 실행 했을때 "SAP Logon Failed." 만 계속 뜹니다.

sap를 처음 접하는 저로선 무슨 문제가 있는 모르겠네요...ㅠㅠ

위에 소스도 검색해서 찾은 소스입니다.

위의 문제에 대해 조언 좀 부탁드립니다.