09-20-2007 4:41 PM
Hi Sapians,
If we declare any ET_SCREEN_STRUCTURE type any
What does it mean ?
Please tell me i am stuck at some point ?
With warm Regards
Tarun upadhyay
09-20-2007 4:49 PM
Type Any means
Variable is of Any data type (suitable for any type)
The generic type any currently has the same effect in typing as the generic type data.
DATA: my_data TYPE REF TO data.
FIELD-SYMBOLS: <fs> TYPE ANY.
ASSIGN my_data TO <fs>.
Regards
Vasu
09-20-2007 4:50 PM
<b>TYPE ANY</b> can only be used for Field-Symbols...And means that the field symbols can accept any type of data...A String, an Internal Table...
Greetings,
Blag.
09-20-2007 4:57 PM
Hi Blag,
<b>TYPE ANY</b> can be used for <b>much more than</b> Field-Symbols
as already explained: ANY (like i.e. ANY TABLE) is a generic type. An existing data object always has a 'real' type.
You can use type any for all typed objects except DATA. This includes the typing of (function, method, FORM) parameters, TYPE declarations and also last not least field-symbols
Regards,
Clemens
09-20-2007 9:46 PM
Clemens! Thanks for that -:D
That's why I got on error by using TYPE ANY on DATA LOL Thanks for helping me to learn something new -;) Much appreciated -:D
Greetings,
Blag.