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

Dynamic Internal Table

Former Member
0 Likes
529

Hello Everyone,

I m doing 1 report, in which i required filled 2 be changed according 2 different data.

For Ex : I want Document type ( ekko-bsart ) in my report.

now i m doing hardcord in select query like bsart = ' '.

So, if there is any other document type then i have 2 change it in coding every time.

But i dont wnt 2 do ths.

So, I have 2 create Dynamic Internal Table.

So,i have 2 change in internal table only n according 2 tht it gets changed in report.

I dont knw how 2 create Dynamic Internal Table n i have 2 include fields in Dynamic Table like internal table

or i have 2 do code 2 include field?

Plz Help me 2 create.

Thanks in Advance,

Urvi Rajyaguru

4 REPLIES 4
Read only

Former Member
0 Likes
493

hi,

wat r u using alv or simple report.

Read only

0 Likes
493

Hi,

actually i m using it in report n it calls smartform.

Read only

Former Member
0 Likes
493

Hi,

You can create generate a field catalog(using the structure lvc_s_fcat and table type lvc_t_fcat) as per your requirements and

passing it to the static method create_dynamic_table of the class cl_alv_table_create , you can get a dynamic internal table.

Regards,

Sagar

Read only

ThomasZloch
Active Contributor
0 Likes
493

Thread locked due to extensive use of "txt spk", please refer to forum rules of engagement.

Also, please search before posting, "dynamic internal table" is a very frequent topic here.

Thomas