‎2006 Aug 03 2:35 PM
Can any one of you clarify this:
TYPES: BEGIN OF STRUCT1.
COLI TYPE I,
BEGIN OF STRUCT OF STRUCT2,
COL1 TYPE I,
COL2 TYPE I,
END OF STRUCT 2,
END OF STRUCT1.
TYPES MYTYPE TYPE STRUCT1-STRUCT2-COL2.
Please clarify why the last TYPES statement is used and how it works?
‎2006 Aug 03 2:37 PM
hi,
the second types statement is used to define your own object type( which refers to <b>col2</b> field of the <b>struct2</b> which is defined in <b>struct1</b>).
.
Regards
Ashok P
Message was edited by: Ashok Parupalli
‎2006 Aug 03 2:41 PM
hi vamshi,
That type statement is for defining as many structures as you want of the same type declared above...
Regards,
Santosh
‎2006 Aug 03 2:38 PM
‎2006 Aug 03 2:39 PM
Hi Vamsi,
Strange declaration in my opinion :).
I think the last statement only declare a type MYTYPE that is only a type I (the type of STRUCT1-STRUCT2-COL2)
Regards,
Sylvain
‎2006 Aug 03 2:42 PM
hi,
TYPES MYTYPE TYPE STRUCT1-STRUCT2-COL2.
or
TYPES MYTYPE TYPE i.
both are same.
here you are defining one data type MYTYPE OF type Integer.
first one is defining using with the existing datatype STRUCT1
and the second is directly defining with basic datatype I
regards
srikanth