‎2009 May 29 7:38 AM
Hi All
I need to create an Internal Table which can be named dynamically.
i know how an internal table can be created at runtime, but i want to know if the name can also be specified at runtime.
Ex:
field-symbol : <fs> type any table.
now i can create <fs> to hold any kind of table structure and data.
the requirement is to rename <fs> itself at runtime.......
Any pointers???
Regards
Ravish
‎2009 May 29 7:41 AM
HI,
Check this WIKI link if it helps you.
[https://wiki.sdn.sap.com/wiki/x/UYA_Bg ]
Regards,
Ankur Parab
‎2009 May 29 7:45 AM
Hi Ankur
as i mentioned, i already know how to create an itab at runtime. what i wanted to know is if i can rename it dynamically, i.e if iv declared it as <fs> can i rename it to IT_ITAB or sumthing at runtime?
Cheers
Ravish
‎2009 May 29 7:50 AM
Hi,
Assign the required internal table to the field symbol so that it points to the coresponding internal table.
I am not able to understand your exact requirement. Can you explain it with an example?
Regards,
Ankur Parab
‎2009 May 29 9:42 AM
Hi
here goes....
in my FM, i enter a table-fieldname, which has to serve as a field for dynamic where clause in my select query.
Now to include the field, i have to generate a range which holds the values entered by the user.
this generated range has to be correctly mapped to the select query(i have multiple select queries),
so essentially i wud want to generate ranges on a need basis, rather than declaring them beforehand.
as an example u can see the code of std. fm "REUSE_ALV_BLOCKLIST_APPEND". it has 29 <fs> declared to hold values at runtime. But i dont want to do tht, coz the no of table reqd can be variable...
Regards
Ravish
‎2009 May 29 11:48 AM
Hi
Solved my req with the FM "FREE_SELECTIONS_RANGE_2_WHERE".
Cheers
Ravish