Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Type any

Former Member
0 Kudos

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

4 REPLIES 4

Former Member
0 Kudos

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

former_member583013
Active Contributor
0 Kudos

<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.

0 Kudos

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

0 Kudos

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.