Skip to Content
0
Former Member
Dec 03, 2008 at 08:19 AM

I want to call components of an internal table in ABAP-Objects!!!!

118 Views

Hy all,

I am trying to call the component my_query_info-compuid. But if I do it that way like shown below I get a Syntax error message.

"MY_QUERY_INFO" is a table without a header line and therefore has no component called "COMPUID".

And in Classes and OO its forbidden to declare internal tables with header lines and I also tried it?!

I hope you can give me some help.

DATA: my_query_info TYPE STANDARD TABLE OF

rrmx_s_query_info

WITH DEFAULT KEY

INITIAL SIZE 0.

METHOD get_queries_from_wb.

CALL FUNCTION 'RRMX_WORKBOOK_QUERIES_GET'

EXPORTING

i_workbookid = obj_id

i_objvers = 'A'

IMPORTING

e_t_query_info = my_query_info.

SELECT *

FROM rsrrepdir

INTO table long_query_info

WHERE compuid = my_query_info-compuid.

ENDMETHOD. "get_queries_from_wb