Skip to Content
0
Former Member
Jan 20, 2009 at 04:31 PM

Error: The data objet "p_t_ods" has no structure

12 Views

Hi guys!!

I have a problem with a table:

*program1*

DATA: BEGIN OF t_ods OCCURS 0.
        INCLUDE STRUCTURE zdeu0.
DATA: END OF t_ods.

***Zdeu0 is a structure that it has field1 type c and field2 type c.

perform change_table (program2) tables t_ods.

**end program1*

*program 2**

types: begin of s_ods.
           include structure zdeu0.
           end of s_ods.
data: ODS type s_ods.
form change_table tables p_t_ods structure ods.

aux = p_t_ods-field1 .

"here my program fail because p_t_ods has no structure and therefore

"no component called field1.

endform.

*end program2*

*end program2**

Anybody can tell me how can I change it??

Thanks a lot in advance.

Ana ๐Ÿ˜‰