‎2009 Nov 17 6:06 AM
Hi,
I am using 2 container,
in 1st one my header is there and 2nd one is having details.
when ever i am executing a report i am getting out put is HEADER, PF STATUS BAR, and DETAILS.
i am trying to download out put but it is giving on details w/o header,
pls guide me how to do it.
IF g_custom_container IS INITIAL.
CREATE OBJECT g_custom_container
EXPORTING
container_name = g_container.
CLEAR: gr_docking, g_splitter, g_container_1, g_container_2.
CREATE OBJECT gr_docking
EXPORTING
repid = sy-repid
dynnr = sy-dynnr
ratio = '95'.
Create a splitter with 2 rows and 1 column
CREATE OBJECT g_splitter
EXPORTING
parent = gr_docking
rows = 2
columns = 1.
Upper Container
CALL METHOD g_splitter->get_container
EXPORTING
row = 1
column = 1
RECEIVING
container = g_container_1.
Lower Container
CALL METHOD g_splitter->get_container
EXPORTING
row = 2
column = 1
RECEIVING
container = g_container_2.
Upper Container height
CALL METHOD g_splitter->set_row_height
EXPORTING
id = 1
height = 15.
CREATE OBJECT l_document.
CALL METHOD l_document->add_text
EXPORTING
text = text-039.
CALL METHOD l_document->new_line.
CALL METHOD l_document->add_text
EXPORTING
text = text-063.
CALL METHOD l_document->new_line.
CALL METHOD l_document->add_text
EXPORTING
text = text-064.
CALL METHOD l_document->add_text
EXPORTING
text = v_period1.
CALL METHOD l_document->display_document
EXPORTING
parent = g_container_1.
CREATE OBJECT gr_alvgrid1
EXPORTING
i_parent = g_container_2
EXCEPTIONS
error_cntl_create = 1
error_cntl_init = 2
error_cntl_link = 3
error_dp_create = 4
OTHERS = 5.
CALL METHOD gr_alvgrid1->set_table_for_first_display
EXPORTING
is_layout = gs_layout
CHANGING
it_fieldcatalog = it_fieldcatalog1[]
it_outtab = <l_table>.
ENDIF.
Thanks & Regards,
Mallikarjun(Arjun).
‎2009 Nov 17 6:14 AM
‎2009 Nov 17 6:28 AM
Very thankfull for your responce, but i already saw this threds, but this will not solve my problem...
Thanks & Regards,
Mallikarjuna.
‎2009 Nov 17 6:33 AM
wa_layout-grid_title = text-039.
wa_layout-sel_mode = 'A'.
APPEND wa_layout TO gs_layout.
wa_layout-grid_title = text-039.
wa_layout-sel_mode = 'A'.
APPEND wa_layout TO gs_layout.
wa_layout-grid_title = text-039.
wa_layout-sel_mode = 'A'.
APPEND wa_layout TO gs_layout.
CALL METHOD gr_alvgrid1->set_table_for_first_display
EXPORTING
is_layout = gs_layout
CHANGING
it_fieldcatalog = it_fieldcatalog1[]
it_outtab = <l_table>.
i am using like but its not accepting more than one line header in is_layout, is there any possibility to take like this.
Regards,
Mallikarjuna.
‎2009 Nov 17 6:38 AM
[IS_LAYOUT = <structure of type LVC_S_LAYO >|http://help.sap.com/saphelp_erp2004/helpdata/EN/0a/b5533cd30911d2b467006094192fe3/content.htm]
its a table type / structure... not a internal table to append more than 1 row
‎2009 Nov 17 6:42 AM
if i want to append more than one itam into this structure, how can do this,
Regards,
Mallikarjuna.
‎2009 Nov 17 6:44 AM
not possible... or not as its not designed to handle more than one row of data..
‎2009 Nov 17 6:47 AM
so there wer no way of downloading this data with header into 1 xl sheet.
‎2009 Nov 17 6:53 AM
>
> ...... but i already saw this threds, but this will not solve my problem...
>.
You already saw these threads and u have an answer..
‎2009 Nov 17 6:55 AM
Thnks for your help............. but problem still remains same........