Skip to Content
0
Jan 25, 2011 at 07:47 AM

.NET connector how to convert data type

36 Views

Hi Iam using .NET connector 3.0 and have problem reading result table.

Function module returns table of following structure

Cont BOOLE_D CHAR 1

LINE CHAR255 CHAR 255

How should I move it to some VB datatype I can further use. Problem is that LINE includes Packed numbers and it can contain 00 in hex, so if I convert it to string , it ends on 00h.

I use structure RSDRI_S_RFCDATA.

E_T_RFCDATA = BAPI.GetTable("E_T_RFCDATA", True)

FIELDx.Text = E_T_RFCDATA.RowCount()

Dim ARRA As System.Array

ARRA = System.Array.CreateInstance(GetType(Char), 256)

E_T_RFCDATA.Item(0).CopyTo(ARRA, 1)

gives me an error.

Thank you

Juraj