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

Declaration table

Former Member
0 Likes
728

Hi frnds,

I have seen so many times declarations like

EXPORTING l_tab TYPE ANY TABLE.

what is the "Type any table" means.

can anyone just clarify my doubt.

Thanks,

sanjay

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
706

Its used when you dont know the structure of the table untill runtime.

So to store data during runtime you can use the same. Such table can store data of any structure.

5 REPLIES 5
Read only

Former Member
0 Likes
708

Its used when you dont know the structure of the table untill runtime.

So to store data during runtime you can use the same. Such table can store data of any structure.

Read only

Former Member
0 Likes
706

Hi

It means the parameter I_TAB can be an internal table of every kind:

- STANDARD TABLE,

- SORTED TABLE,

- INDEX TABLE,

- HASHED TABLE

The kind of table depends on the kind of internal table tansfers its data by that parameter, so its kind is decide at runtime.

Max

Read only

Former Member
0 Likes
706

Its a table with charecterstrings, It can be used to hold any kind of data. Its type is determined dynam,icaaly depending on the base table, I mean, The data that is been uploaded to this table.

HOpe this helps.

Cheers,

Jaleel.

Read only

Former Member
0 Likes
706

Hi,

It will accepct any type of table irredspective of the structure

you can pass mara table type, or marc etc..

rewards if useful,

regards,

nnazeer..

Read only

varma_narayana
Active Contributor
0 Likes
706

Hi Sanjay..

Type Any Table means Generic internal Table.

Suppose if u give as

Type Table of EKPO

Then you can only pass internal table with the Same structure i.e EKPO.

But to allow any internal table you have to declare as

Itab type ANY TABLE.

<b>REWARD IF HELPFUL</b>