‎2009 Jul 23 1:12 PM
hello ABAP gurus
i want to know how can i create an internal table dynamically and then move data into it.
i already have data in one internal table which is coming from more than one table and having say 5 rows.
now i want to move data of that table into a dynamic internal table.
which has only one row, two fields from row 2 3 and 4 are added as column.
please help...
thanks and regards in advance.
‎2009 Jul 23 1:23 PM
Hi Deep,
Can you explain clearly on these below statements.
now i want to move data of that table into a dynamic internal table.
which has only one row, two fields from row 2 3 and 4 are added as column.
Thanks,
Pradeep
‎2009 Jul 23 1:30 PM
Hi ,
check this link and try to execute it .this will be helpful.
[http://www.sap-img.com/ab030.htm]
Please let me know if you have any issues on this.
Thanks and regards,
Rajeshwar.
Edited by: rajeshwar on Jul 23, 2009 2:30 PM
‎2009 Jul 23 1:35 PM
Hi Deep,
This is preety basic quetion which you will certainly yourself find anwser for.
Examples from wiki code gallery
[dynamic internal table all fields|http://wiki.sdn.sap.com/wiki/x/LgHlAw]
[How to create internal table dynamically|http://wiki.sdn.sap.com/wiki/x/j4E_Bg]
Also a number of results you would get when exploring forum. Example result for query [creating dynamic table|https://www.sdn.sap.com/irj/scn/advancedsearch?query=creatdynamictable#sdn_content_category_value_forums]
Regards
Marcin
‎2009 Jul 23 1:53 PM
search it here
link:[code gallery|https://wiki.sdn.sap.com/wiki/display/Snippets/Home?showChildren=true#children]
‎2009 Jul 24 11:59 AM
the requirement is like i have data in one internal table
whose first 3 column are holding same values but 4th and 5th column have different values
now i want to arrange the data in such a manner that it appears in one single row
which holds those changing values as column
available data in my itab1
1a 1b 1c 1d 1e
2a 2b 2c 2d 2e
3a 3b 3c 3d 3e
.
.
.
and so on
number of rows is also not fixed
required format
1a 1b 1c 1d 1e 2d 2e 3d 3e........
if possible reply with some working code....
‎2009 Jul 24 12:05 PM
>
> if possible reply with some working code....
if possible try to Code with the help of existing sample code. if you are facing any issues then you post the issue here, every one ready to help you.
‎2009 Jul 24 1:55 PM
Hi,
Check the example program BCALV_TABLE_CREATE.
Regards,
Ankur Parab