‎2008 Dec 10 4:38 AM
Hi Abapers!
i tried CALL METHOD l_alv->set_table_for_first_display with internal table to automaticaly creating alv grid.The output shows like all the itab data displaying in single feild.Instead of itab if i gave any table name like mara it is working fine .
is it possible to display itnternal table by using this method?
Thanks in Advance!!!
‎2008 Dec 10 4:47 AM
HI
Refer to this links
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/abap/7%2bsteps%2bto%2bcreate%2boops%2balv
http://abapreports.blogspot.com/2008/06/alv-grid-display-with-oops.html
check the program BCALV_GRID_01 to BCALV_GRID_08.
and also BCALV_EDIT_01 to BCALV_EDIT_08 programs.
‎2008 Dec 10 4:47 AM
HI
Refer to this links
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/abap/7%2bsteps%2bto%2bcreate%2boops%2balv
http://abapreports.blogspot.com/2008/06/alv-grid-display-with-oops.html
check the program BCALV_GRID_01 to BCALV_GRID_08.
and also BCALV_EDIT_01 to BCALV_EDIT_08 programs.
‎2008 Dec 10 4:51 AM
This is because of header line issue if mara table:
CALL METHOD oref1->set_table_for_first_display
EXPORTING
is_layout = wa_layout
CHANGING
it_outtab = i_mara[]"--<<<This is Body of Internal table.
it_fieldcatalog = fieldcat
‎2008 Dec 10 6:52 AM
Hi Amit,
Thanks for ur reply.Should i build fieldcatlog manualy? and is the exporting parameter is_layout is my interanl table? could u pl expalin with little bit more,if possible?
Thanks ia advance.
Edited by: Ranganayahi Chandirasekaran on Dec 10, 2008 7:52 AM
‎2008 Dec 10 7:56 AM
Hello
If you like to have weird errors due to faulty fieldcatalogs then you should create it manually otherwise I recommend to use fm LVC_FIELDCATALOG_MERGE.
If you are still using itab's with header lines then you have missed an important restriction that fortunately has come with ABAP-OO: header lines are banned from ABAP classes (and they should be banned from any programming object as well).
The EXPORTING parameter IS_LAYOUT describes the layout of your ALV list (e.g. which columns are displayed, column width optimization, subtotals, etc.).
Your data itab has to "feed" to CHANGING parameter IT_OUTTAB.
Regards
Uwe
‎2008 Dec 10 7:41 AM
‎2009 Aug 11 7:23 AM