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

Internal table structure for Field n based on selection screen Input

Former Member
0 Likes
662

Hi folks,

i have created internal table for headers dynamically in alv output using alv oops like i have charactertics in my selection screen

based on each characterstic selected in selection screen i need to create two dynamic columns in my alv grid output, this one i have achieved. now my problem is for static fields im passing data(from my first internal table) for my dynamic fields ( how cna i pass ) since how can i design my final internal table it is some thing like the following

data: begin of t_final occurs 0,

kunnr type kunrr,

city type city1,

land1 type land1,

feild1 type char30, " field 1

. " filed2

.

.

fieldn type char30, " filed n

end of t_final.

sometimes my final internal table may have dynamic columns of field1, field2 but may be some other times it may have 100 fields(if selection screen selects 50 characterstics) it is based on input selected in selection screen.

so my question is how can create structure dynamically based on my selection screen input.

Thanks,

Shwetha

2 REPLIES 2
Read only

Former Member
0 Likes
381

Hi ,

please search in SDN/WIKI to get sample codes to create dyn internal tables.

regards

Prabhu

Read only

Former Member
0 Likes
380

Hi Shwetha,

May be this may help you.

http://wiki.sdn.sap.com/wiki/display/ABAP/InteractiveEditableOOALVgridwithdynamicitab%2CFCATandENTERkeyeventtrigger

for more details you can get many threads or WIKI for same.

Regards,

Ganesh.

Edited by: Ganesh Lathi on Dec 22, 2011 4:54 AM