<?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 Re: alv in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/4063276#M971277</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi check thes links.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapfans.com/forums/viewtopic.php?t=58286" target="test_blank"&gt;http://www.sapfans.com/forums/viewtopic.php?t=58286&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapfans.com/forums/viewtopic.php?t=76490" target="test_blank"&gt;http://www.sapfans.com/forums/viewtopic.php?t=76490&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapfans.com/forums/viewtopic.php?t=20591" target="test_blank"&gt;http://www.sapfans.com/forums/viewtopic.php?t=20591&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapfans.com/forums/viewtopic.php?t=66305" target="test_blank"&gt;http://www.sapfans.com/forums/viewtopic.php?t=66305&lt;/A&gt; - this one discusses which way should you use - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapfans.com/forums/viewtopic.php?t=11601" target="test_blank"&gt;http://www.sapfans.com/forums/viewtopic.php?t=11601&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapfans.com/forums/viewtopic.php?t=23010" target="test_blank"&gt;http://www.sapfans.com/forums/viewtopic.php?t=23010&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Jul 2008 11:18:24 GMT</pubDate>
    <dc:creator>former_member195383</dc:creator>
    <dc:date>2008-07-04T11:18:24Z</dc:date>
    <item>
      <title>alv</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/4063275#M971276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;plz send any one alv report?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jul 2008 11:13:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/4063275#M971276</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-04T11:13:17Z</dc:date>
    </item>
    <item>
      <title>Re: alv</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/4063276#M971277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi check thes links.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapfans.com/forums/viewtopic.php?t=58286" target="test_blank"&gt;http://www.sapfans.com/forums/viewtopic.php?t=58286&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapfans.com/forums/viewtopic.php?t=76490" target="test_blank"&gt;http://www.sapfans.com/forums/viewtopic.php?t=76490&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapfans.com/forums/viewtopic.php?t=20591" target="test_blank"&gt;http://www.sapfans.com/forums/viewtopic.php?t=20591&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapfans.com/forums/viewtopic.php?t=66305" target="test_blank"&gt;http://www.sapfans.com/forums/viewtopic.php?t=66305&lt;/A&gt; - this one discusses which way should you use - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapfans.com/forums/viewtopic.php?t=11601" target="test_blank"&gt;http://www.sapfans.com/forums/viewtopic.php?t=11601&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapfans.com/forums/viewtopic.php?t=23010" target="test_blank"&gt;http://www.sapfans.com/forums/viewtopic.php?t=23010&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jul 2008 11:18:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/4063276#M971277</guid>
      <dc:creator>former_member195383</dc:creator>
      <dc:date>2008-07-04T11:18:24Z</dc:date>
    </item>
    <item>
      <title>Re: alv</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/4063277#M971278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Radhika,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;factory method &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;----&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  report_display&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     --&amp;gt;P_IT_QUAN  output table for billing and quantity&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form report_display  using    p_it_outtab type any table.  " ALV output&lt;/P&gt;&lt;P&gt;  " table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  data: ob_table        type ref to  cl_salv_table,&lt;/P&gt;&lt;P&gt;        ob_salv_msg     type ref to  cx_salv_msg,&lt;/P&gt;&lt;P&gt;        ob_functions    type ref to  cl_salv_functions,&lt;/P&gt;&lt;P&gt;        ob_columns      type ref to  cl_salv_columns_table,&lt;/P&gt;&lt;P&gt;        ob_column       type ref to  cl_salv_column_table,&lt;/P&gt;&lt;P&gt;        ob_display      type ref to  cl_salv_display_settings,&lt;/P&gt;&lt;P&gt;        it_columns      type         salv_t_column_ref,&lt;/P&gt;&lt;P&gt;        wa_columns      like line of it_columns,&lt;/P&gt;&lt;P&gt;        v_long_text     type         scrtext_l,&lt;/P&gt;&lt;P&gt;        v_max_length    type         lvc_outlen,&lt;/P&gt;&lt;P&gt;        v_output_length type         lvc_outlen.&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;Get the columns &amp;lt;b&amp;gt;(u can use as many colums&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  ob_columns = ob_table-&amp;gt;get_columns( ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Service order number&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  try.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    Set the column header for field Messages&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      ob_column ?= ob_columns-&amp;gt;get_column( 'AUFNR' ).&lt;/P&gt;&lt;P&gt;      ob_column-&amp;gt;set_short_text( text-010 ).&lt;/P&gt;&lt;P&gt;      ob_column-&amp;gt;set_medium_text( text-011 )."Medium text&lt;/P&gt;&lt;P&gt;      ob_column-&amp;gt;set_long_text( text-011 ).  " Long text&lt;/P&gt;&lt;P&gt;    catch cx_salv_not_found.&lt;/P&gt;&lt;P&gt;      message e000(zfi1) with ob_salv_msg-&amp;gt;msgv1&lt;/P&gt;&lt;P&gt;                              ob_salv_msg-&amp;gt;msgv2&lt;/P&gt;&lt;P&gt;                              ob_salv_msg-&amp;gt;msgv3&lt;/P&gt;&lt;P&gt;                              ob_salv_msg-&amp;gt;msgv4.&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;Material number&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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;  For header display&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ob_display = ob_table-&amp;gt;get_display_settings( ).&lt;/P&gt;&lt;P&gt;    ob_display-&amp;gt;set_striped_pattern( cl_salv_display_settings=&amp;gt;true ).&lt;/P&gt;&lt;P&gt;    ob_display-&amp;gt;set_list_header(&lt;/P&gt;&lt;P&gt;    text-026 ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hpoe this will help u &lt;/P&gt;&lt;P&gt;Amit &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Purchase  document number&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  try.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    Set the column header for field Messages&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      ob_column ?= ob_columns-&amp;gt;get_column( 'EBELN' ).&lt;/P&gt;&lt;P&gt;      ob_column-&amp;gt;set_short_text( text-028 ).&lt;/P&gt;&lt;P&gt;      ob_column-&amp;gt;set_medium_text( text-029 )."Medium text&lt;/P&gt;&lt;P&gt;      ob_column-&amp;gt;set_long_text( text-034 ).  " Long text&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    catch cx_salv_not_found.&lt;/P&gt;&lt;P&gt;      message e000(zfi1) with ob_salv_msg-&amp;gt;msgv1&lt;/P&gt;&lt;P&gt;                              ob_salv_msg-&amp;gt;msgv2&lt;/P&gt;&lt;P&gt;                              ob_salv_msg-&amp;gt;msgv3&lt;/P&gt;&lt;P&gt;                              ob_salv_msg-&amp;gt;msgv4.&lt;/P&gt;&lt;P&gt;  endtry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  it_columns = ob_columns-&amp;gt;get( ).&lt;/P&gt;&lt;P&gt;  clear: ob_column ,wa_columns.&lt;/P&gt;&lt;P&gt;  loop at it_columns into wa_columns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ob_column ?= wa_columns-r_column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; Set the output length to the long text length of the heading&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    v_long_text = ob_column-&amp;gt;get_long_text( ).&lt;/P&gt;&lt;P&gt;    v_max_length = strlen( v_long_text ).&lt;/P&gt;&lt;P&gt;    v_output_length = ob_column-&amp;gt;get_output_length( ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    if v_output_length lt v_max_length.&lt;/P&gt;&lt;P&gt;      ob_column-&amp;gt;set_output_length( v_max_length ).&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;    clear :wa_columns.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Check if quantity report is selected&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if p_quan = c_true.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; For header display&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ob_display = ob_table-&amp;gt;get_display_settings( ).&lt;/P&gt;&lt;P&gt;    ob_display-&amp;gt;set_striped_pattern( cl_salv_display_settings=&amp;gt;true ).&lt;/P&gt;&lt;P&gt;    ob_display-&amp;gt;set_list_header(&lt;/P&gt;&lt;P&gt;    text-027 ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Set all basic functions&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ob_functions = ob_table-&amp;gt;get_functions( ).&lt;/P&gt;&lt;P&gt;  ob_functions-&amp;gt;set_all( if_salv_c_bool_sap=&amp;gt;true ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Display the ALV grid&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ob_table-&amp;gt;display( ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Amit Kumar on Jul 4, 2008 1:29 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jul 2008 11:29:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/4063277#M971278</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-04T11:29:12Z</dc:date>
    </item>
    <item>
      <title>Re: alv</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/4063278#M971279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To learn about the ALV grid I suggest you to read the following: [An easy reference to the ALV Grid|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e8a1d690-0201-0010-b7ad-d9719a415907].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jul 2008 12:07:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv/m-p/4063278#M971279</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-04T12:07:10Z</dc:date>
    </item>
  </channel>
</rss>

