‎2011 Dec 22 1:10 AM
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
‎2011 Dec 22 3:25 AM
Hi ,
please search in SDN/WIKI to get sample codes to create dyn internal tables.
regards
Prabhu
‎2011 Dec 22 3:53 AM
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