on 01-20-2006 3:44 PM
Hello:
I have the next two code lines, they work well:
ZHRRESNOMTable tEmp = new ZHRRESNOMTable();
proxy.Z_Hrpfpa00105("20051231", "A", out sts, ref tEmp);
Using a loop, I would like to know the the abap name, type and length of the fields that structure tEmp has. Is this possible? I would like to use class SAPField but I can not find a connection with tEmp.
Any help will be appreciated.
Regards
Like all SAPTables ZHRRESNOMTable has a virtual method "GetElementType" that return the type of the structures that is basis of the table.
Using the returned type you can find all fields by reflection or SAPStructure.GetSAPFieldsSchema().
ZHRRESNOMTable tEmp = new ZHRRESNOMTable();
Type structureType = tEmp.GetElementType();
SAPField[] fields = SAPStructure.GetSAPFieldsSchema(structureType);
// ...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.