Skip to Content
0
Oct 21, 2009 at 06:03 AM

Error:Table &1 is implemented but not defined

443 Views

Hi all,

In the below program of my custom object type in SWO1 after the key fields declaration I tried to put in some code similar to the code in main program of object type IDOC. But i get the error Table 'ZSUBTEST ' is implemented but not defined....

Please help.

INCLUDE <OBJECT>.

BEGIN_DATA OBJECT. " Do not change.. DATA is generated

  • only private members may be inserted into structure private

DATA:

" begin of private,

" to declare private attributes remove comments and

" insert private attributes here ...

" end of private,

BEGIN OF KEY,

ACTUALPROCESSOR LIKE ZAGENTS-AGENT,

END OF KEY,

SENDERADDRESS TYPE USR02-BNAME,

_ZSUBTEST LIKE ZSUBTEST.

END_DATA OBJECT. " Do not change.. DATA is generated

tables:zsubtest.

get_table_property ZSUBTEST.

DATA subrc LIKE sy-subrc.

PERFORM select_table_ZSUBTEST USING subrc.

IF sy-subrc NE 0.

exit_object_not_found.

ENDIF.

end_property.

&----


*& Form select_table_ZSUBTEST

&----


  • text

----


  • -->P_SUBRC text

----


FORM select_table_ZSUBTEST USING subrc LIKE sy-subrc.

SELECT SINGLE * FROM ZSUBTEST CLIENT SPECIFIED

WHERE MANDT = SY-MANDT

AND ZNAME = object-key-ACTUALPROCESSOR.

subrc = sy-subrc.

IF subrc eq 0.

object-_zsubtest = zsubtest.

ELSE.

zsubtest = object-_zsubtest.

ENDIF.

ENDFORM. " select_table_ZSUBTEST

*From here the normal method implementation starts....

BEGIN_METHOD GET_AGENTS CHANGING CONTAINER.

....

....

...

Thanks,

Subba