2007 Jun 25 3:04 PM
hi,
Please see the following declaration,
TYPES :BEGIN OF WA_ADMN_MAS.
TYPES :SEL TYPE CROSS-TYPE.
INCLUDE STRUCTURE ZTRST_ADMN_MAS.
TYPES :END OF WA_ADMN_MAS.
why did they write TYPES :SEL TYPE CROSS-TYPE.
what is the use of the statement.
please revert backas soon as possible
Thanks & regards,
Kirthi
2007 Jun 25 3:14 PM
Hi
Because it added a new field, not included in dictionary structure (or table) ZTRST_ADMN_MAS, in the type defination.
When the INCLUDE STRUCTURE is used to declare a structure, the first statament has to end with a point, so or you write:
TYPES : BEGIN OF WA_ADMN_MAS.
TYPES : SEL TYPE CROSS-TYPE.
INCLUDE STRUCTURE ZTRST_ADMN_MAS.
TYPES : END OF WA_ADMN_MAS.
or
TYPES : BEGIN OF WA_ADMN_MAS,
SEL TYPE CROSS-TYPE.
INCLUDE STRUCTURE ZTRST_ADMN_MAS.
TYPES : END OF WA_ADMN_MAS.
Max
2007 Jun 25 3:07 PM
2007 Jun 25 3:10 PM
Hi Kirti,
TYPES :SEL TYPE CROSS-TYPE.
denotes declaring a variable which is of the type Field:<b>TYPE</b> from Table:<b>CROSS</b>. It is basically a Single-Character Indicator.
Reward if useful.
Thanks
Aneesh.
2007 Jun 25 3:14 PM
Hi
Because it added a new field, not included in dictionary structure (or table) ZTRST_ADMN_MAS, in the type defination.
When the INCLUDE STRUCTURE is used to declare a structure, the first statament has to end with a point, so or you write:
TYPES : BEGIN OF WA_ADMN_MAS.
TYPES : SEL TYPE CROSS-TYPE.
INCLUDE STRUCTURE ZTRST_ADMN_MAS.
TYPES : END OF WA_ADMN_MAS.
or
TYPES : BEGIN OF WA_ADMN_MAS,
SEL TYPE CROSS-TYPE.
INCLUDE STRUCTURE ZTRST_ADMN_MAS.
TYPES : END OF WA_ADMN_MAS.
Max