Application Development and Automation 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: 
Read only

Type any

Former Member
0 Likes
826

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
Read only

Former Member
0 Likes
787

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

Read only

Former Member
0 Likes
787

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

Read only

0 Likes
787

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

Read only

0 Likes
787

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.