Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to save result of com object method into table?

shiz0frenik
Participant
0 Kudos
257

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?

TYPES :
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'.

 

0 REPLIES 0