Set
RFC_READ_TABLE = SAPFunctions.Add(
"RFC_READ_TABLE"
)
Set
strExport1 = RFC_READ_TABLE.Exports(
"QUERY_TABLE"
)
Set
strExport2 = RFC_READ_TABLE.Exports(
"DELIMITER"
)
Set
tblOptions = RFC_READ_TABLE.Tables(
"OPTIONS"
)
Set
tblData = RFC_READ_TABLE.Tables(
"DATA"
)
Set
tblFields = RFC_READ_TABLE.Tables(
"FIELDS"
)
strExport1.Value =
"USREXTID"
strExport2.Value =
"|"
tblOptions.AppendRow
tblOptions(1,
"TEXT"
) =
"BNAME = 'I*'"
tblFields.AppendRow
tblFields(1,
"FIELDNAME"
) =
"BNAME"
tblFields.AppendRow
tblFields(2,
"FIELDNAME"
) =
"EXTID"
If
RFC_READ_TABLE.
Call
=
True
Then
If
tblData.RowCount > 0
Then
For
i = 1
To
tblData.RowCount - 1
Cells(i, 1) = tblData(i, 1)
Next
i
End
If
Else
LoadTableDataFCT =
False
End
If
End
Function
Ich hoffe mir kann jemand helfen, vielen Dank (: