cancel
Showing results for 
Search instead for 
Did you mean: 

Iterate IRfcStructure (.NET Connector 3.0) and get field name and value?

Former Member
0 Kudos

Hello, I am reading an IRfcStructure which I get like this:

IRfcStructure s = function.GetStructure("ES_XYZ");

Now I want to go through this structure and display the field names and the values. I managed to display the values, but it does not include the field names. What I get is 010 but what I want is FIELD MANDT=010. Here is my code:

string results = string.Empty;
for (int structCounter = 0; structCounter < s.Count; structCounter++)
 {
        results += s.GetString(structCounter) + Environment.NewLine;
 }

How do I have to change that to get the field name, too?

Thanks

Edited by: grady1 on Apr 13, 2011 3:14 PM

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos
 
 s.Metadata[structCounter].Name.ToString()

Former Member
0 Kudos

Thanks! Thats what I needed...

Edited by: grady1 on Apr 15, 2011 1:29 PM

Answers (0)