public SAPConnection()
 {
     this.dest = new SAP.Connector.Destination();
     dest.Client = Convert.ToInt16(ConfigurationManager.AppSettings["SAPClient"]);
     dest.AppServerHost = ConfigurationManager.AppSettings["SAPAppServerHost"];
     dest.SystemNumber = Convert.ToInt16(ConfigurationManager.AppSettings["SAPSystemNumber"]);
     dest.Username = ConfigurationManager.AppSettings["SAPUsername"];
     dest.Password = ConfigurationManager.AppSettings["SAPPassword"];
     dest.Language = "RU";
 }
 public SapConnectorClientToBC establecerConeccionSap()
 {
     SAP.Connector.Destination destinationG = new SAP.Connector.Destination();
     destinationG.Username      = this.User;          // SAP username
     destinationG.Password      = this.Password;      // SAP username's password
     destinationG.AppServerHost = this.AppServerHost; // SAP application server's ip number or id
     destinationG.Client        = this.Client;        // Client number
     destinationG.SystemNumber  = this.SystemNumber;  // application server system number
     sapConnection    = new SAP.Connector.SAPConnection(destinationG);
     proxy            = new SapConnectorClientToBC();
     proxy.Connection = sapConnection;
     return(proxy);
 }
 public SapConnectorClientToBC establecerConeccionSap()
 {
     SAP.Connector.Destination destinationG = new SAP.Connector.Destination();
     destinationG.Username = this.User; // SAP username
     destinationG.Password = this.Password; // SAP username's password
     destinationG.AppServerHost = this.AppServerHost; // SAP application server's ip number or id
     destinationG.Client = this.Client; // Client number
     destinationG.SystemNumber = this.SystemNumber; // application server system number
     sapConnection = new SAP.Connector.SAPConnection(destinationG);
     proxy = new SapConnectorClientToBC();
     proxy.Connection = sapConnection;
     return proxy;
 }
Esempio n. 4
0
        /// <summary>
        /// 연결 정보를 포함한 생성자
        /// </summary>
        /// <param name="strTYPE">RFC server type, 2/3/E: R/2 or R/3 or External System</param>
        /// <param name="strASHOST">Host name of a specific application server (R/3, No Load Balancing) </param>
        /// <param name="nSYSNR">R/3 system number (R/3, No Load Balancing) </param>
        /// <param name="nCLIENT">SAP logon client</param>
        /// <param name="strLANG">SAP logon language (1-byte SAP language or 2-byte ISO language) </param>
        /// <param name="strUSER">SAP logon user </param>
        /// <param name="strPASSWD">SAP logon password </param>
        public SAPServerConnector(string strTYPE, string strASHOST, short nSYSNR, short nCLIENT, string strLANG, string strUSER, string strPASSWD)
        {
            m_oDest = new SAP.Connector.Destination();

            SetConnectionInfo(strTYPE, strASHOST, nSYSNR, nCLIENT, strLANG, strUSER, strPASSWD);
        }
Esempio n. 5
0
 /// <summary>
 /// 기본 생성자
 /// </summary>
 public SAPServerConnector()
 {
     // SAP 서버 연결 문자열을 생성하는 Helper 클래스 개체를 생성한다.
     m_oDest = new SAP.Connector.Destination();
 }
Esempio n. 6
0
 public SAPServerConnector()
 {
     m_oDest = new SAP.Connector.Destination();
 }