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: 

Declaration table

Former Member
0 Kudos

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

former_member223537
Active Contributor
0 Kudos

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

former_member223537
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

former_member588853
Active Contributor
0 Kudos

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

varma_narayana
Active Contributor
0 Kudos

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>