I need a SELECT
statement in ABAP, but the problem is, that the table does not exist on that system.
I am checking the existence of the table with the FM:
CALL FUNCTION 'DDIF_TABL_GET'
EXPORTING
name = 'mytable'
IMPORTING
gotstate = l_got_state
EXCEPTIONS
OTHERS = 1.
IF sy-subrc = 0.
SELECT SINGLE * FROM mytable INTO mylocalstructure WHERE ........... .
ENDIF.
But there is still a syntax error:
"mytable" is not defined in the ABAP Dictionary as a table