문제

I am trying to connect to my clients SAP system. I am using the following code to connect, but how do i come to know that the connection has been successfully established.

protected void Page_Load(object sender, EventArgs e)
{
    try
    {
        SAPSystemConnect sapCfg = new SAPSystemConnect();
        RfcDestinationManager.RegisterDestinationConfiguration(sapCfg);
        RfcDestination rfcDest = null;
        rfcDest = RfcDestinationManager.GetDestination("Dev");
    }
    catch (Exception ex)
    {
        lbl.Text=ex.Message;
    }
}

올바른 솔루션이 없습니다

다른 팁

If the connection doesn't throw an exception, you'll know that the connection has been established. If there is a problem with the connection, the class will throw an appropriate exception.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top