2009 Jan 07 4:10 PM
Hello All:
Many forum posts have discussed similar topics, but I couldn't exactly find one answering my requirement. Apologies if I have missed out reading some.
Instead of creating a type as below (as suggested in few forum posts)
TYPES begin of types ty_itab
include type BISEG
xxxx type xxx
xxxx type xxx
End of types ty_itab
I need to create the type with include structure after the additonal fields.
TYPES begin of types ty_itab
<fld1> type <ty1>
<fld2> type <ty2>
include type <struc>
End of types ty_itab
Can someone give the right syntax?
Please help,
Fred.
2009 Jan 07 4:14 PM
As I remember is this way.
TYPES: begin of types ty_itab,
<fld1> type <ty1>,
<fld2> type <ty2>.
include type <struc>.
TYPES: End of types ty_itab
2009 Jan 07 4:13 PM
Try
TYPES: begin of ty_itab,
<fld1> type <ty1>,
<fld2> type <ty2>.
include structure <struc>. (or: include type <struc_type>.)
TYPES: End of ty_itab.
Thomas
2009 Jan 07 4:14 PM
As I remember is this way.
TYPES: begin of types ty_itab,
<fld1> type <ty1>,
<fld2> type <ty2>.
include type <struc>.
TYPES: End of types ty_itab
2009 Jan 07 4:16 PM
Hello Fred
If you are using the extended syntax you should not encounter any problems:
TYPES: begin of types ty_itab.
TYPES: <fld1> type <ty1>.
TYPES: <fld2> type <ty2>.
include type <struc>.
TYPES: End of types ty_itab
Regards
Uwe
2009 Jan 07 5:01 PM
Thank you Thomas, Ramiro, Uwe for your great help. Any one of your suggestions could be used for my requirement.
Fred.
Nb: Did not intend to be partial with selective 'solved' and 'helpful answer'; that was the best way I could.
2024 Jul 10 2:50 PM
What worked for me:
TYPES: BEGIN OF TY_MAIN.
INCLUDE STRUCTURE SFLIGHT.
TYPES : CARRNAME TYPE SCARR-CARRNAME,
COUNTRYFR TYPE SPFLI-COUNTRYFR,
COUNTRYTO TYPE SPFLI-COUNTRYTO,
END OF TY_MAIN.
2025 Jan 30 10:18 AM
The right syntax is
TYPES: BEGIN OF tt_hpath_custo,
zrate TYPE zsd_satis-zrate. "WITH a POINT
INCLUDE TYPE vbpavb.
TYPES: END OF tt_hpath_custo.