<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic ALV Grid in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/3148595#M748627</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to display 3 Columns in Ist row of an ALV and from 2nd row onwards there will be 8 columns. How can I do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using 'REUSE_ALV_GRID_DISPLAY'  FM for displaying the ALV.&lt;/P&gt;&lt;P&gt;I have tried it using ROW_POS field of Field catalog. It was not working.Please help me out.If possible please send me code. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Points are sure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sushant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Dec 2007 09:05:43 GMT</pubDate>
    <dc:creator>sushant_singh</dc:creator>
    <dc:date>2007-12-27T09:05:43Z</dc:date>
    <item>
      <title>ALV Grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/3148595#M748627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to display 3 Columns in Ist row of an ALV and from 2nd row onwards there will be 8 columns. How can I do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using 'REUSE_ALV_GRID_DISPLAY'  FM for displaying the ALV.&lt;/P&gt;&lt;P&gt;I have tried it using ROW_POS field of Field catalog. It was not working.Please help me out.If possible please send me code. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Points are sure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sushant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Dec 2007 09:05:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/3148595#M748627</guid>
      <dc:creator>sushant_singh</dc:creator>
      <dc:date>2007-12-27T09:05:43Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/3148596#M748628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sushant,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this code.this gives you an idea how to solve ur problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;type-pools: slis.&lt;/P&gt;&lt;P&gt;data: x_fieldcat type slis_fieldcat_alv,&lt;/P&gt;&lt;P&gt;it_fieldcat type slis_t_fieldcat_alv,&lt;/P&gt;&lt;P&gt;l_layout type slis_layout_alv,&lt;/P&gt;&lt;P&gt;x_events type slis_alv_event,&lt;/P&gt;&lt;P&gt;it_events type slis_t_event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of itab occurs 0,&lt;/P&gt;&lt;P&gt;vbeln like vbak-vbeln,&lt;/P&gt;&lt;P&gt;posnr like vbap-posnr,&lt;/P&gt;&lt;P&gt;male type i,&lt;/P&gt;&lt;P&gt;female type i,&lt;/P&gt;&lt;P&gt;end of itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select vbeln&lt;/P&gt;&lt;P&gt;posnr&lt;/P&gt;&lt;P&gt;from vbap&lt;/P&gt;&lt;P&gt;up to 20 rows&lt;/P&gt;&lt;P&gt;into table itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;x_fieldcat-fieldname = 'VBELN'.&lt;/P&gt;&lt;P&gt;x_fieldcat-seltext_l = 'VBELN'.&lt;/P&gt;&lt;P&gt;x_fieldcat-tabname = 'ITAB'.&lt;/P&gt;&lt;P&gt;x_fieldcat-col_pos = 1.&lt;/P&gt;&lt;P&gt;append x_fieldcat to it_fieldcat.&lt;/P&gt;&lt;P&gt;clear x_fieldcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;x_fieldcat-fieldname = 'POSNR'.&lt;/P&gt;&lt;P&gt;x_fieldcat-seltext_l = 'POSNR'.&lt;/P&gt;&lt;P&gt;x_fieldcat-tabname = 'ITAB'.&lt;/P&gt;&lt;P&gt;x_fieldcat-col_pos = 2.&lt;/P&gt;&lt;P&gt;append x_fieldcat to it_fieldcat.&lt;/P&gt;&lt;P&gt;clear x_fieldcat.&lt;/P&gt;&lt;P&gt;x_fieldcat-fieldname = 'MALE'.&lt;/P&gt;&lt;P&gt;x_fieldcat-seltext_l = 'MALE'.&lt;/P&gt;&lt;P&gt;x_fieldcat-tabname = 'ITAB'.&lt;/P&gt;&lt;P&gt;x_fieldcat-col_pos = 3.&lt;/P&gt;&lt;P&gt;append x_fieldcat to it_fieldcat.&lt;/P&gt;&lt;P&gt;clear x_fieldcat.&lt;/P&gt;&lt;P&gt;x_fieldcat-fieldname = 'FEMALE'.&lt;/P&gt;&lt;P&gt;x_fieldcat-seltext_l = 'FEMALE'.&lt;/P&gt;&lt;P&gt;x_fieldcat-tabname = 'ITAB'.&lt;/P&gt;&lt;P&gt;x_fieldcat-col_pos = 3.&lt;/P&gt;&lt;P&gt;append x_fieldcat to it_fieldcat.&lt;/P&gt;&lt;P&gt;clear x_fieldcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;x_events-name = slis_ev_top_of_page.&lt;/P&gt;&lt;P&gt;x_events-form = 'TOP_OF_PAGE'.&lt;/P&gt;&lt;P&gt;append x_events to it_events.&lt;/P&gt;&lt;P&gt;clear x_events .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;l_layout-no_colhead = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'REUSE_ALV_LIST_DISPLAY'&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;i_callback_program = sy-repid&lt;/P&gt;&lt;P&gt;is_layout = l_layout&lt;/P&gt;&lt;P&gt;it_fieldcat = it_fieldcat&lt;/P&gt;&lt;P&gt;it_events = it_events&lt;/P&gt;&lt;P&gt;tables&lt;/P&gt;&lt;P&gt;t_outtab = itab&lt;/P&gt;&lt;P&gt;exceptions&lt;/P&gt;&lt;P&gt;program_error = 1&lt;/P&gt;&lt;P&gt;others = 2.&lt;/P&gt;&lt;P&gt;if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;message id sy-msgid type sy-msgty number sy-msgno&lt;/P&gt;&lt;P&gt;with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form top_of_page.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*-To display the headers for main list&lt;/P&gt;&lt;P&gt;format color col_heading.&lt;/P&gt;&lt;P&gt;write: / sy-uline(103).&lt;/P&gt;&lt;P&gt;write: / sy-vline,&lt;/P&gt;&lt;P&gt;(8) ' ' ,&lt;/P&gt;&lt;P&gt;sy-vline,&lt;/P&gt;&lt;P&gt;(8) ' ' ,&lt;/P&gt;&lt;P&gt;sy-vline,&lt;/P&gt;&lt;P&gt;(19) 'SEX'(015) centered,&lt;/P&gt;&lt;P&gt;sy-vline.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write: / sy-vline,&lt;/P&gt;&lt;P&gt;(8) 'VBELN'(013) ,&lt;/P&gt;&lt;P&gt;sy-vline,&lt;/P&gt;&lt;P&gt;(8) 'POSNR'(014) ,&lt;/P&gt;&lt;P&gt;sy-vline,&lt;/P&gt;&lt;P&gt;(8) 'MALE'(016) ,&lt;/P&gt;&lt;P&gt;sy-vline,&lt;/P&gt;&lt;P&gt;(8) 'FMALE'(017) ,&lt;/P&gt;&lt;P&gt;sy-vline.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;format color off.&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward Points,if useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Manoj Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Dec 2007 11:22:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/3148596#M748628</guid>
      <dc:creator>former_member402443</dc:creator>
      <dc:date>2007-12-27T11:22:01Z</dc:date>
    </item>
  </channel>
</rss>

