<?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 Function Codes in Dynamic ALV in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-codes-in-dynamic-alv/m-p/6930894#M1485759</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had created an ALV using CL_SALV_TABLE. My requirement is to hide some of the satndard functions appearing in ALV. I had tried this using the method REMOVE_FUNCTION from CL_SALV_FUNCTIONS. For example to hide Find function, I tried by giving function code as MC_FC_FIND (function code for Find in normal ALV created using CL_GUI_ALV_GRID). But this lead to dump error. I can't find any function codes in CL_SALV_TABLE class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone tell me which is the function code that I have to use and in which class I can find this. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Abijith&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 May 2010 10:46:56 GMT</pubDate>
    <dc:creator>former_member196651</dc:creator>
    <dc:date>2010-05-20T10:46:56Z</dc:date>
    <item>
      <title>Function Codes in Dynamic ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-codes-in-dynamic-alv/m-p/6930894#M1485759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had created an ALV using CL_SALV_TABLE. My requirement is to hide some of the satndard functions appearing in ALV. I had tried this using the method REMOVE_FUNCTION from CL_SALV_FUNCTIONS. For example to hide Find function, I tried by giving function code as MC_FC_FIND (function code for Find in normal ALV created using CL_GUI_ALV_GRID). But this lead to dump error. I can't find any function codes in CL_SALV_TABLE class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone tell me which is the function code that I have to use and in which class I can find this. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Abijith&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 May 2010 10:46:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-codes-in-dynamic-alv/m-p/6930894#M1485759</guid>
      <dc:creator>former_member196651</dc:creator>
      <dc:date>2010-05-20T10:46:56Z</dc:date>
    </item>
    <item>
      <title>Re: Function Codes in Dynamic ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-codes-in-dynamic-alv/m-p/6930895#M1485760</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;You can get Names in debugging using,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: r_functions TYPE REF TO cl_salv_functions,
      t_func_list TYPE salv_t_ui_func,
      w_fname type string,
      wa_func_list LIKE LINE OF t_func_list.
 
* Get all functions
  r_functions =   gr_table-&amp;gt;get_functions( ).
"gr_table is ref to cl_salv_table
  t_func_list = r_functions-&amp;gt;get_functions( ).
 
  LOOP AT t_func_list INTO wa_func_list.
    w_fname = wa_func_list-r_function-&amp;gt;get_name( ).
  ENDLOOP.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: You can Hide the particular Function code by &lt;/P&gt;&lt;P&gt;         wa_func_list-r_function-&amp;gt;set_visible( ' ' ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope This Helps You.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raghava Channooru&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 May 2010 12:17:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-codes-in-dynamic-alv/m-p/6930895#M1485760</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-20T12:17:10Z</dc:date>
    </item>
    <item>
      <title>Re: Function Codes in Dynamic ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-codes-in-dynamic-alv/m-p/6930896#M1485761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All the function codes you can find in attributes of interfcace &lt;STRONG&gt;IF_SALV_C_FUNCTION&lt;/STRONG&gt; . So using Raghava's code you can hide specific option&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
lr_functions-&amp;gt;set_all( 'X' ).

  LOOP AT lt_function_list INTO ls_function.
    check ls_function-r_function-&amp;gt;get_name( ) = IF_SALV_C_FUNCTION=&amp;gt;SORT_ASC.  "get sort ascending option
    ls_function-r_function-&amp;gt;set_visible( space ).  "and hide it
  ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;If you want to use custom options then simply assign custom GUI status&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
r_alv-&amp;gt;set_screen_status(
    pfstatus      =  "give GUI status
    report        =  "of report
    set_functions = co_alv-&amp;gt;c_functions_all ).
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 May 2010 14:06:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-codes-in-dynamic-alv/m-p/6930896#M1485761</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2010-05-20T14:06:17Z</dc:date>
    </item>
    <item>
      <title>Re: Function Codes in Dynamic ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-codes-in-dynamic-alv/m-p/6930897#M1485762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This query has been answered.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Jul 2010 06:23:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-codes-in-dynamic-alv/m-p/6930897#M1485762</guid>
      <dc:creator>former_member196651</dc:creator>
      <dc:date>2010-07-10T06:23:45Z</dc:date>
    </item>
  </channel>
</rss>

