03-16-2010 6:31 AM
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
03-16-2010 6:34 AM
03-16-2010 6:34 AM
03-16-2010 6:39 AM
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.
03-16-2010 6:52 AM
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