Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

No DestinationConfiguration registered


I have a problem when I try to connect with SAP, please see my code below

using System;

using System.Collections.Generic;

using System.Linq;

using System.Web;

using System.Web.UI;

using System.Web.UI.WebControls;

using SAP.Middleware.Connector;

public partial class _Default : System.Web.UI.Page


    public class MyBackendConfig : IDestinationConfiguration


        public RfcConfigParameters GetParameters(String destinationName)


            if ("SE38".Equals(destinationName))


                RfcConfigParameters parms = new RfcConfigParameters();

                parms.Add(RfcConfigParameters.AppServerHost, "");

                parms.Add(RfcConfigParameters.SystemNumber, "00");

                parms.Add(RfcConfigParameters.User, "ssanchez");

                parms.Add(RfcConfigParameters.Password, "SAPLSC001");

                parms.Add(RfcConfigParameters.Client, "200");

                parms.Add(RfcConfigParameters.Language, "ES");

                parms.Add(RfcConfigParameters.PoolSize, "5");

                parms.Add(RfcConfigParameters.MaxPoolSize, "10");

                parms.Add(RfcConfigParameters.IdleTimeout, "600");

                return parms;


            else return null;


        public bool ChangeEventsSupported()


            return false;


        public event RfcDestinationManager.ConfigurationChangeHandler ConfigurationChanged;


    protected void Page_Load(object sender, EventArgs e)




    protected void Button1_Click(object sender, EventArgs e)



        RfcDestination prd = RfcDestinationManager.GetDestination("SE38");

        RfcRepository repo = prd.Repository;

        IRfcFunction companyBapi1 = repo.CreateFunction("ZREGRESAVAR");


     string Dato = companyBapi1.GetValue("DATO").ToString();





But when I run my webpage, I get this error:

Anyone knows how can I solve this?

Former Member

Now I see the problem:

After declaring "cn" as new MyBackendConfig, you must register the destination:


0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question