Announcement:
wanna exchange links? contact me at sapchatroom@gmail.com.
Posted by
Admin at
Reply from Pierre_Richer on Jan 12 at 3:48 PM Hi Nicolas, You can use cl_salv_form_element with cl_salv_ Here is a code snipet. I'm sure that BCALV * program can help you too! data:r_salv_tree_grid type ref to cl_salv_table, lr_form_element type ref to cl_salv_form_element. ..... * Bind data cl_salv_table=>factory( importing r_salv_table = r_salv_tree_grid changing t_table = t_rpt_tree_grid ). * Header lr_form_element = build_alv_header_0100( ). r_salv_tree_grid->set_top_of_list( lr_form_element ). r_salv_tree_grid->set_top_of_list_print( lr_form_element ). *&---* *& Method build_alv_header_0100 *&---* * *---* method build_alv_header_0100. data: lr_grid type ref to cl_salv_form_layout_grid, lr_gridx type ref to cl_salv_form_layout_grid, lr_flow type ref to cl_salv_form_layout_flow, lr_pict type ref to cl_salv_form_picture, lr_logo type ref to cl_salv_form_layout_logo, lr_label type ref to cl_salv_form_label, lr_text type ref to cl_salv_form_text. data: l_picture type bds_typeid value 'JACOB_SMALL'. create object lr_grid. lr_grid->create_header_information( row = 1 column = 1 text = sy-title tooltip = sy-title ). lr_gridx = lr_grid->create_grid( row = 2 column = 1 ). lr_label = lr_gridx->create_label( row = 2 column = 1 text = text-a01 tooltip = text-a01 ). lr_text = lr_gridx->create_text( row = 2 column = 2 text = zmppr_projhdr-saisj tooltip = zmppr_projhdr-saisj ). lr_label = lr_gridx->create_label( row = 2 column = 3 text = text-a02 tooltip = text-a02 ) . lr_text = lr_gridx->create_text( row = 2 column = 4 text = zmppr_projhdr-saiso tooltip = zmppr_projhdr-saiso ). lr_label = lr_gridx->create_label( row = 2 column = 5 text = text-a03 tooltip = text-a03 ) . lr_text = lr_gridx->create_text( row = 2 column = 6 text = zmppr_projhdr-wgru2 tooltip = zmppr_projhdr-wgru2 ). lr_label = lr_gridx->create_label( row = 2 column = 7 text = text-a04 tooltip = text-a04 ) . lr_text = lr_gridx->create_text( row = 2 column = 8 text = zmppr_projhdr-wgru1 tooltip = zmppr_projhdr-wgru1 ). lr_label = lr_gridx->create_label( row = 3 column = 1 text = text-a05 tooltip = text-a05 ) . lr_text = lr_gridx->create_text( row = 3 column = 2 text = sy-datum tooltip = sy-datum ) . lr_label = lr_gridx->create_label( row = 3 column = 3 text = text-a06 tooltip = text-a06 ) . lr_text = lr_gridx->create_text( row = 3 column = 4 text = sy-datum tooltip = sy-datum ) . lr_label = lr_gridx->create_label( row = 3 column = 5 text = text-a07 tooltip = text-a07 ) . lr_text = lr_gridx->create_text( row = 3 column = 6 text = sy-uname tooltip = sy-uname ) . lr_label = lr_gridx->create_label( row = 3 column = 7 text = text-a08 tooltip = text-a08 ) . lr_text = lr_gridx->create_text( row = 3 column = 8 text = zmppr_projhdr-dispmode tooltip = zmppr_projhdr-dispmode ). * Create logo layout, set grid content on left and logo image on right create object lr_logo. lr_logo->set_left_content( lr_grid ). lr_logo->set_right_logo( l_picture ). * Set the element top_of_list re_form_element = lr_logo. endmethod. "build_alv_header_0100 End result.... Regards, Pierre
| | | ---------------Original Message--------------- From: Nicolas de los Reyes Sent: Thursday, January 12, 2012 3:31 PM Subject: OO ALV Top of Page Hi all!! Does anybody know how to create a top of page using oo alv? Thanks! | | Reply to this email to post your response. __.____._ | _.____.__ |