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 itab creation

Former Member
0 Likes
611

Hi friends,

Have run into to trouble trying to create a dynamic structure as follows

"Material Land Nov.09 Dez.09 Jan.10 Feb.10 Mar.10 TotalCount"

The dates are created dynamically with regard to the time period entered in the select options.

The first 2 fields("Material","Land" and the last field "TotalCount") will always be there.The date fields have to change according to the dates entered.

The code Iam attaching is a compilable code with which Iam trying for this purpose.

Would be helpful and I would really appreciate it if someone could change the code I attached and show it how it works....

Moderator message - Please respect the 2,500 character maximum when posting. Post only the relevant portions of code, butr search before posting - locked

The code gives a dump at the call

"CALL METHOD cl_alv_table_create=>create_dynamic_table"

Please advice what iam doing wrong.

->If the dynamic itab is created ,how to fill it with values.

For example.- I want to access specifically the field names like itab-dez.09 or itab-Feb.10 to put values in it.Is it possible?

->If I write this itab using "Write" statement - Will the field names be written

For example - the following field names.

"Material Land Nov.09 Dez.09 Jan.10 Feb.10 Mar.10 TotalCount"

Thanks

P

Edited by: pazzuzu on Mar 16, 2010 1:43 PM

Edited by: pazzuzu on Mar 16, 2010 1:44 PM

Edited by: pazzuzu on Mar 16, 2010 1:44 PM

Edited by: pazzuzu on Mar 16, 2010 1:45 PM

Edited by: Rob Burbank on Mar 16, 2010 9:14 AM

4 REPLIES 4
Read only

Former Member
0 Likes
577

You can search in SDN using word Dynamic Internal table so many example

Read only

Former Member
0 Likes
577

.

Edited by: kk.adhvaryu on Mar 16, 2010 1:54 PM

Read only

Former Member
0 Likes
577

.

Edited by: kk.adhvaryu on Mar 16, 2010 1:54 PM

Read only

0 Likes
577

I tried and started using it.The posted code is the end result from which I dont know where to go....