2008 Feb 19 7:58 AM
hi folks,
how can we include structure within structure created by us can tell me the syntax please .
2008 Feb 19 8:03 AM
TYPES: BEGIN OF l_ty_struct.
INCLUDE TYPE sflight.
TYPES: nameflight(10) TYPE C.
TYPES: END OF l_ty_struct.
DATA: l_wa_struct TYPE l_ty_struct.
DATA: l_it_struct TYPE STANDARD TABLE OF l_ty_struct.
Please reward points if it is useful.
Thanks,
Prasanna
2008 Feb 19 8:08 AM
Hi Vinay,
Find the below code snippent.
types: begin of <struct name>.
include type <struct name X>.
types: data1(20) type c.
types: data2(30) type c.
types: data3(40) type c.
types: end of <struct name>.
data: <wa name> type <struct name>.
Thanks
Anand D
2008 Feb 19 8:17 AM
Hi
types : begin of struct,
include type struct1,
kunnr typr kna1-kunnr,
end of struct.
2008 Feb 19 8:18 AM
Hello,
declare like this
Types: Begin of Struct2.
Include Type struct1.
Types: end of struct2.
Thanks,
Gunjan
Edited by: gunjan tyagi on Feb 19, 2008 9:19 AM
2008 Feb 19 8:42 AM
Hi Vinay,
You can include structure within a structure as follows:
TYPES: BEGIN OF <struct_name>.
INCLUDE STRUCTURE <already defined structure>.
TYPES: END OF <struct_name>.
Please reward points if helpful.
Best Regards,
Vishal.