Skip to Content
-1
Aug 08, 2023 at 03:07 PM

I am not able to define structure type in abap metot.

87 Views

Hello,
I get an error when I want to define a structure named "rs_table" after making a type definition.
error : TYPE ''CCT'' is unknown.

method get_cc_mail.
data: lt_data type table of ty_data.

types : begin of ty_cc,
cc type ad_smtpadr,
end of ty_cc.

data : cct type table of ty_cc.
data : rs_table type cct.
...
..

Can't we define type inside method?
Please suggest if anyone has a solution for this.

Thanks.

structure.png

Attachments

structure.png (285.6 kB)