I’ve created a com object, and i have method GetList wich should return me a list of values, but compiler says i cannot do it, is there are other ways to do it?
BEGIN OF ty_itab,
id type id,
str type string.
TYPES END OF ty_itab.
data : invlist type STANDARD TABLE OF ty_itab WITH HEADER LINE.
INCLUDE OLE2INCL.
DATA evat TYPE OLE2_OBJECT.
CREATE OBJECT evat ‘EInvVatService.Connector’.
if sy-subrc <> 0.
write: ‘Error’.
endif.
CALL METHOD of evat ‘GetList’ = invlist exporting #1 = ‘2024-07-03T16:40:00’.