<?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/2333634#M513712</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi friends,&lt;/P&gt;&lt;P&gt;      can you please tell me how to hide the horizontal lines in the alv grid display using alv oops&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 03 Jun 2007 17:28:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-03T17:28:20Z</dc:date>
    <item>
      <title>alv grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/2333634#M513712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi friends,&lt;/P&gt;&lt;P&gt;      can you please tell me how to hide the horizontal lines in the alv grid display using alv oops&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Jun 2007 17:28:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/2333634#M513712</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-03T17:28:20Z</dc:date>
    </item>
    <item>
      <title>Re: alv grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/2333635#M513713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Premraj&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ALV layout (structure &amp;lt;b&amp;gt;LVC_S_LAYO&amp;lt;/b&amp;gt;) has the fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;NO_HGRIDLN	ALV control: Hide horizontal grid lines
NO_VGRIDLN	ALV control: Hide vertical grid lines&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which allow you to hide horizontal or vertical lines for &amp;lt;b&amp;gt;entire &amp;lt;/b&amp;gt;columns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Jun 2007 19:23:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/2333635#M513713</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2007-06-03T19:23:53Z</dc:date>
    </item>
    <item>
      <title>Re: alv grid</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/2333636#M513714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do it this way assuming you have a  "display only" type grid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the new simplified class cl_salv_table -- no field catalog or other complex stuff required.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want Interactive editable lists then you'll have to use the more complex class cl_gui_alv_grid but for simple lists and cell selections the new cl_salv_table class is the one to use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've only shown the relevant ALV coding stuff here&lt;/P&gt;&lt;P&gt;but build an internal table say t_vbak via standard abap. I've for example got some basic data about sales orders in an internal table t_vbak. (coding not shown --absolutely 100% bog standard Abap.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once you've built an internal table then the following code should work without much modification. Change the column names to those in your own internal table and set the name of your internal table in the CHANGING parameter when you call cl_salv_table=&amp;gt;factory as shown below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The internal table also desn't have to consist of only DDIC entries. Any field names are allowed. Remember we aren't using the standard FCAT's in this cl_salv_table class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now display as grid or classic list hiding vertical and horizontal lines and colour some cells as well.&lt;/P&gt;&lt;P&gt;Also shown here is how to add your own names to columns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**********************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: gr_table TYPE REF TO cl_salv_table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: gr_display TYPE REF to cl_salv_display_settings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: lr_functions type ref to cl_salv_functions_list.&lt;/P&gt;&lt;P&gt;constants: gc_true  type sap_bool value 'X',&lt;/P&gt;&lt;P&gt;           gc_false type sap_bool value space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;add for colour displays&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   data: ls_color type lvc_s_colo.&lt;/P&gt;&lt;P&gt;   DATA : LV_SALV_COLUMNS_TABLE TYPE REF TO CL_SALV_COLUMNS_TABLE.&lt;/P&gt;&lt;P&gt;  data: lr_columns type ref to cl_salv_columns_table,&lt;/P&gt;&lt;P&gt;        lr_column  type ref to cl_salv_column_table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Instantiate our alv grid / list&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;TRY.&lt;/P&gt;&lt;P&gt;      CALL METHOD cl_salv_table=&amp;gt;factory&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          list_display   = if_salv_c_bool_sap=&amp;gt;false  "set to TRUE for classic list&lt;/P&gt;&lt;P&gt;        IMPORTING&lt;/P&gt;&lt;P&gt;          r_salv_table   = gr_table&lt;/P&gt;&lt;P&gt;        CHANGING&lt;/P&gt;&lt;P&gt;          t_table    =  t_vbak.   "Your internal table&lt;/P&gt;&lt;P&gt;    CATCH cx_salv_msg.&lt;/P&gt;&lt;P&gt;  ENDTRY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Colour some columns&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;try.&lt;/P&gt;&lt;P&gt;LV_SALV_COLUMNS_TABLE = gr_table-&amp;gt;get_columns( ).&lt;/P&gt;&lt;P&gt;lr_column ?= LV_SALV_COLUMNS_TABLE-&amp;gt;get_column( 'NETWR' ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      ls_color-col = col_negative.&lt;/P&gt;&lt;P&gt;      ls_color-int = 0.&lt;/P&gt;&lt;P&gt;      ls_color-inv = 0.&lt;/P&gt;&lt;P&gt;      lr_column-&amp;gt;set_color( ls_color ).&lt;/P&gt;&lt;P&gt;  catch cx_salv_not_found.&lt;/P&gt;&lt;P&gt;endtry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try.&lt;/P&gt;&lt;P&gt;lr_column ?= LV_SALV_COLUMNS_TABLE-&amp;gt;get_column( 'VBELN' ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ls_color-col = col_negative.&lt;/P&gt;&lt;P&gt;      ls_color-int = 1.&lt;/P&gt;&lt;P&gt;      ls_color-inv = 1.&lt;/P&gt;&lt;P&gt;      lr_column-&amp;gt;set_color( ls_color ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; catch cx_salv_not_found.&lt;/P&gt;&lt;P&gt;endtry.&lt;/P&gt;&lt;P&gt;try.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Set your own titles&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;you can set your own column titles here&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;note column name is the FIELD NAME in your internal table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LV_SALV_COLUMNS_TABLE = gr_table-&amp;gt;get_columns( ).&lt;/P&gt;&lt;P&gt;lr_column ?= LV_SALV_COLUMNS_TABLE-&amp;gt;get_column( 'NETWR' ).&lt;/P&gt;&lt;P&gt;lr_column-&amp;gt;set_short_text( 'Short' ).&lt;/P&gt;&lt;P&gt;lr_column-&amp;gt;set_medium_text( 'Medium' ).&lt;/P&gt;&lt;P&gt;lr_column-&amp;gt;set_long_text( 'Net Value' ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; catch cx_salv_not_found.&lt;/P&gt;&lt;P&gt;endtry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gr_table-&amp;gt;set_screen_status( pfstatus = 'SALV_STANDARD'&lt;/P&gt;&lt;P&gt; report = sy-repid&lt;/P&gt;&lt;P&gt;set_functions = gr_table-&amp;gt;c_functions_all ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;above statement only needed if you are running as a dialog and want &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;the standard buttons / functions&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;switch off horizontal and vertical lines&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;gr_display = gr_table-&amp;gt;get_display_settings( ).&lt;/P&gt;&lt;P&gt;gr_display-&amp;gt;set_horizontal_lines( value = '  ' ).&lt;/P&gt;&lt;P&gt;gr_display-&amp;gt;set_vertical_lines( value = '  '  ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;this statement actually does the display.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  gr_table-&amp;gt;display( ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should answer the question &amp;lt;b&amp;gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Jimbo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Alvaro Tejada Galindo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2007 07:26:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid/m-p/2333636#M513714</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-19T07:26:52Z</dc:date>
    </item>
  </channel>
</rss>

