Check out our OnlineHelp for further information.

The code snippet shows, how to obtain the meta data of a SAP table by using the ReadTable class.

After calling RetrieveAllFieldsOfTable() the Fields collection is filled with detailed information on each column.

R3Connection con = new R3Connection("SAPServer", 00, "SAPUSer","Password", "en", "800");
ReadTable read = new ReadTable(con);
read.TableName = "MKPF";
for(int i=0; i < read.Fields.Count; i++)
    Console.WriteLine(read.Fields[i].FieldName + " (" +
        read.Fields[i].ABAPType + ", " + read.Fields[i].Length + ")");