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: 

Getting Error Table is not defined ABAP Dictionary.

Former Member
0 Kudos

Hi,

i have create a Transparent table and want to call in my INCLUDE, but when i activate it it show's me this error.

''TABLE IS NOT DEFINED IN THE ABAP DICTIONARY AS A TABLE, PROJECTION VIEW OR DATABASE VIEW''.

even tough i already checked it that the table is still exit ABAP DICTIONARY so why im getting this ERROR...?

Regards,

sappk25

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

show me the code

Regards,

Lisa

3 REPLIES 3

Former Member
0 Kudos

Hi,

show me the code

Regards,

Lisa

0 Kudos

This is the CODE:

-->Where ZTESTREORT is a Transparent Table

-->And ZTESTREORT_STUC is a structure.

FORM displayform.

DATA: fm_name TYPE rs38l_fnam,

lv_remarks(1000) TYPE c.

DATA:

IT_HEAD like standard table of ZTESTREPORT_STUC,

IT_MAIN like standard table of ZTESTREPORT_STUC,

IT_DETAIL like standard table of ZTESTREPORT_STUC.

CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'

EXPORTING

formname = 'ZTESTREPORT'

IMPORTING

fm_name = fm_name.

SELECT *

FROM ZTESTREPORT

INTO table ZTESTREPORT_STUC

WHERE AUDAT = ZTESTREPORT-AUDAT.

CALL FUNCTION fm_name

EXPORTING

IT_HEAD = ZTESTREPORT_STUC

TABLES

IT_MAIN = ZTESTREPORT_STUC.

ENDFORM.

FORM getdata .

CLEAR LV_STRING.

SELECT SINGLE *

FROM ZTESTREPORT

INTO ZTESTREPORT_STUC

WHERE AUDAT = ZTESTREPORT-AUDAT.

IF sy-subrc EQ 0.

MOVE ZTESTREPORT-KUNNR TO LV_STRING.

CALL METHOD KUNNR->set_textstream

EXPORTING

text = lv_string

EXCEPTIONS

error_cntl_call_method = 1

not_supported_by_gui = 2

OTHERS = 3.

move ZTESTREPORT-AUDAT to lv_string.

CALL METHOD staff->set_textstream

EXPORTING

text = lv_string

EXCEPTIONS

error_cntl_call_method = 1

not_supported_by_gui = 2

OTHERS = 3.

else.

clear: ZTESTREPORT,ztestreport_stuc.

endif.

SELECT SINGLE *

FROM ZTESTREPORT

INTO ZTESTREPORT_STUC

WHERE AUDAT = ZTESTREPORT-AUDAT.

ENDFORM.

0 Kudos

Hi,

I have noticed. You have declared an internal table in a routine and if you want to access this internal table outside this form it won't be possible. This object exist with in routine

Regards,

Lisa