<?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 while using alv in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/while-using-alv/m-p/2276669#M495205</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why do we need to prepare layout?&lt;/P&gt;&lt;P&gt;And the procedure.&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;deniz.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 May 2007 11:33:49 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-21T11:33:49Z</dc:date>
    <item>
      <title>while using alv</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/while-using-alv/m-p/2276669#M495205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why do we need to prepare layout?&lt;/P&gt;&lt;P&gt;And the procedure.&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;deniz.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2007 11:33:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/while-using-alv/m-p/2276669#M495205</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-21T11:33:49Z</dc:date>
    </item>
    <item>
      <title>Re: while using alv</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/while-using-alv/m-p/2276670#M495206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;field catalog is used give some descriptions for different columns individually.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;layout is used to describe the table as a hole.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like u can use columnwidth_optimize - to optimize the width of the entire table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;go through the slis_layout_alv in SLIS.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2007 11:36:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/while-using-alv/m-p/2276670#M495206</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-21T11:36:20Z</dc:date>
    </item>
    <item>
      <title>Re: while using alv</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/while-using-alv/m-p/2276671#M495207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To define general appearance of our ALV Grid we fill a structure of type &amp;#147;LVC_S_LAYO&amp;#148;. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;example code :&lt;/P&gt;&lt;P&gt;FORM prepare_layout CHANGING ps_layout TYPE lvc_s_layo.&lt;/P&gt;&lt;P&gt;ps_layout-zebra = 'X' .&lt;/P&gt;&lt;P&gt;ps_layout-grid_title = 'Flights' .&lt;/P&gt;&lt;P&gt;ps_layout-smalltitle = 'X' .&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;some of the fields in the structure lvc_s_layo can be set are:&lt;/P&gt;&lt;P&gt;CWIDTH_OPT&lt;/P&gt;&lt;P&gt;If this field is set, the ALV Grid Control optimizes the column width. You can then see the column header and the contents of the cells of this column.&lt;/P&gt;&lt;P&gt;SPACE, 'X'&lt;/P&gt;&lt;P&gt;SMALLTITLE&lt;/P&gt;&lt;P&gt;If this field is set, the title size in the grid control is set to the font size of the column header.&lt;/P&gt;&lt;P&gt;SPACE, 'X'&lt;/P&gt;&lt;P&gt;GRID_TITLE&lt;/P&gt;&lt;P&gt;Title between grid control and toolbar&lt;/P&gt;&lt;P&gt;Char string of max. 70&lt;/P&gt;&lt;P&gt;NO_HEADERS&lt;/P&gt;&lt;P&gt;If this field is set, column headers are hidden.&lt;/P&gt;&lt;P&gt;SPACE, 'X'&lt;/P&gt;&lt;P&gt;NO_HGRIDLN&lt;/P&gt;&lt;P&gt;If this field is set, columns are displayed without horizontal grid lines.&lt;/P&gt;&lt;P&gt;SPACE, 'X'&lt;/P&gt;&lt;P&gt;NO_MERGING&lt;/P&gt;&lt;P&gt;If this field is set, cells are not merged when a column is sorted.&lt;/P&gt;&lt;P&gt;SPACE, 'X'&lt;/P&gt;&lt;P&gt;NO_ROWMARK&lt;/P&gt;&lt;P&gt;If this field is set, the button at the beginning of a row is hidden in selection modes cell selection ( SEL_MODE = 'D' ) and column/row selection ( SEL_MODE = 'A' ).&lt;/P&gt;&lt;P&gt;SPACE, 'X'&lt;/P&gt;&lt;P&gt;NO_TOOLBAR&lt;/P&gt;&lt;P&gt;If this field is set, the toolbar is hidden.&lt;/P&gt;&lt;P&gt;SPACE, 'X'&lt;/P&gt;&lt;P&gt;NO_VGRIDLN&lt;/P&gt;&lt;P&gt;If this field is set, columns are displayed without vertical grid lines.&lt;/P&gt;&lt;P&gt;SPACE, 'X'&lt;/P&gt;&lt;P&gt;SEL_MODE&lt;/P&gt;&lt;P&gt;Set the selection mode (see table at C.4.).&lt;/P&gt;&lt;P&gt;SPACE, 'A', 'B', 'C', 'D'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Sridhar Srirama&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2007 11:39:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/while-using-alv/m-p/2276671#M495207</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-21T11:39:06Z</dc:date>
    </item>
    <item>
      <title>Re: while using alv</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/while-using-alv/m-p/2276672#M495208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi deniz,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;suppose if u r having many fcat's.... and only a few fcat u need to be displayed while loading....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then u can layout's.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for ex : fcat 1 --- fcat 10 --- layout 1.&lt;/P&gt;&lt;P&gt;           fcat 11 -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt; fcat20 --- layout2...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for that,&lt;/P&gt;&lt;P&gt;in the reuse_alv fn module u hav to specify this line&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  I_SAVE                 = 'A' &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then, after execution, from the alv scrren, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;goto menu settings --&amp;gt; change / choose.... in that u hav u select the fields and save it....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With Regards,&lt;/P&gt;&lt;P&gt;S.Barani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2007 11:39:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/while-using-alv/m-p/2276672#M495208</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-21T11:39:53Z</dc:date>
    </item>
    <item>
      <title>Re: while using alv</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/while-using-alv/m-p/2276673#M495209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field catalog is used for a structured display of report. displaying the output fields in a structure is important as the ned user should able to know that what field in which position. and in field catalog used-defiend names for fields is also possible by 'seltext option'.and also it has 'do-sum' option for caluclating totals.&lt;/P&gt;&lt;P&gt;........&lt;/P&gt;&lt;P&gt;......&lt;/P&gt;&lt;P&gt; so for more readability field catalog is used in alvs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if helpful reward some points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with regards,&lt;/P&gt;&lt;P&gt;suresh babu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2007 11:44:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/while-using-alv/m-p/2276673#M495209</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-21T11:44:25Z</dc:date>
    </item>
    <item>
      <title>Re: while using alv</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/while-using-alv/m-p/2276674#M495210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The layout  contains fields for setting graphical properties of the grid control, displaying exceptions, calculating totals and enabling specific interaction options.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naveena.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 May 2007 06:00:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/while-using-alv/m-p/2276674#M495210</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-22T06:00:52Z</dc:date>
    </item>
    <item>
      <title>Re: while using alv</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/while-using-alv/m-p/2276675#M495211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Comon guys  --this method is "Out of the ark".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use this type of approach for SIMPLE classic ALV list formatting&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: lr_functions type ref to cl_salv_functions_list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ata: gr_table TYPE REF TO cl_salv_table.&lt;/P&gt;&lt;P&gt;data: gr_container type ref to cl_gui_custom_container.&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;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;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&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   "display as a 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;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;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;*lr_column ?= LV_SALV_COLUMNS_TABLE-&amp;gt;get_column( 'URL' ).&lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;you only need above statement if you want to use an ALV * with standard functionality as dialog job&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; set_functions = gr_table-&amp;gt;c_functions_all ).&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 = '  ' ).  "Switch Off horizontal lines&lt;/P&gt;&lt;P&gt;  gr_display-&amp;gt;set_vertical_lines( value = '  '  ).   "Switch off Vertical lines&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;&lt;/P&gt;&lt;P&gt;No field catalog or whatever needed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Forget all the OLD STUFF.  It''s long, complicated and you are much more likely to make an error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that the class cl_salv_table doesn't allow you to EDIT data so if you need to EDIT columns / add / modify stuff then you'll need the more complex class cl_gui_alv_grid but when you just need to DISPLAY data use the class cl_salv_table. Works in BATCH as well without change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jimbo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2007 06:39:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/while-using-alv/m-p/2276675#M495211</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-19T06:39:37Z</dc:date>
    </item>
  </channel>
</rss>

