Skip to Content

Getting data from SAP to C# with TABLE_ENTRIES_GET_VIA_RFC

I have written some Code for a program that is using the RFC .NET Connector to get the data from an SAP Server to my C# program. I have done some research what module you should use to get data from the server but I couldn't find out how to use the module.


class RFCConnector
        RfcDestination dest = RfcDestinationManager.GetDestination("SAPServer");

        public void Ping()
            Console.WriteLine("Ping erfolgreich.");

        public void GetData(string module)
            IRfcFunction function = dest.Repository.CreateFunction(module);
            Console.WriteLine("Verbindung erfolgreich aufgebaut zu Module: " + module);


class Program
        static void Main(string[] args)
            RFCConnector connector = new RFCConnector();



In the SAP .NET Connector Programming Guide, it tells you can get access to the fields of a table with this code:

IRfcTable addresses = function["ADDRESSES"].GetTable();
            for (int index = 0; index < addresses.RowCount; ++index)

The problem is when I put that code into my program I get this error:

SAP.Middleware.Connector.RfcInvalidParameterException: "Element ADDRESSES of container metadata TABLE_ENTRIES_GET_VIA_RFC unknown"

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Jul 18, 2018 at 07:16 AM

    Hi Raphael,

    There are some exmaples and tutorials available on the .NET connector site:

    Check the examples provided in StepByStepClient.cs file (

    Best regards,


    Add comment
    10|10000 characters needed characters exceeded

    • Hello Antal,

      I already looked through the examples provided by SAP, the problem is there is no part where they explain how to get data from a table only how to use the STFC_CONNECTION module.

      Kind regards,