<?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: SALV in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/salv/m-p/1737545#M320715</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;they is only why you are using a screen/container to display SALV you can use the add_function method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  try.
        cl_salv_table=&amp;gt;factory(
          exporting
            r_container    = gr_container
            container_name = 'CONTAINER'
          importing
            r_salv_table   = gr_table
          changing
            t_table        = gt_outtab ).
      catch cx_salv_msg.                                "#EC NO_HANDLER
    endtry.

*... §3.1 activate ALV generic Functions
    data: lr_functions type ref to cl_salv_functions,
          l_text       type string,
          l_icon       type string.

    lr_functions = gr_table-&amp;gt;get_functions( ).
    lr_functions-&amp;gt;set_all( gc_true ).

*... §3.2 include own functions
    l_text = text-b01.
    l_icon = icon_complete.
    try.
      lr_functions-&amp;gt;add_function(
        name     = 'MYFUNCTION'
        icon     = l_icon
        text     = l_text
        tooltip  = l_text
        position = if_salv_c_function_position=&amp;gt;right_of_salv_functions ).
      catch cx_salv_existing cx_salv_wrong_call.
    endtry.


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;otherwise you have to create your own GUI status and set it as below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
try.
      cl_salv_table=&amp;gt;factory(
        importing
          r_salv_table = gr_table
        changing
          t_table      = gt_outtab ).
    catch cx_salv_msg.                                  "#EC NO_HANDLER
  endtry.

*... §3 Functions
*... §3.1 activate ALV generic Functions
*... §3.2 include own functions by setting own status
  gr_table-&amp;gt;set_screen_status(
    pfstatus      =  'MYGUISTATUS'
    report        =  gs_test-repid
    set_functions = gr_table-&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;Raja&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Dec 2006 06:44:56 GMT</pubDate>
    <dc:creator>athavanraja</dc:creator>
    <dc:date>2006-12-06T06:44:56Z</dc:date>
    <item>
      <title>SALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/salv/m-p/1737543#M320713</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is wrong here ? I'd like to add a functionallyty to the SALV TABLE&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;form set_function  using    cho_hndlr
      type ref to zcl_handler_hrcockpit .

  data : lo_salv type ref to cl_salv_table        .
  data : lo_function type ref to cl_salv_functions.

  lo_salv =   cho_hndlr-&amp;gt;get_salv( ).

  lo_function = lo_salv-&amp;gt;get_functions( ).

  lo_function-&amp;gt;set_all( ).


  call method lo_function-&amp;gt;add_function
    exporting
      name     = 'EXEC'
      icon     = 'ICON_EXECUTE'
*    text     =
      tooltip  = 'Process Selected entries'
      position = 1   .

endform.                    " set_handler&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Dec 2006 14:49:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/salv/m-p/1737543#M320713</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-05T14:49:57Z</dc:date>
    </item>
    <item>
      <title>Re: SALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/salv/m-p/1737544#M320714</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you seen this demo program?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SALV_DEMO_TABLE_FUNCTIONS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Dec 2006 06:39:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/salv/m-p/1737544#M320714</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2006-12-06T06:39:26Z</dc:date>
    </item>
    <item>
      <title>Re: SALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/salv/m-p/1737545#M320715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;they is only why you are using a screen/container to display SALV you can use the add_function method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  try.
        cl_salv_table=&amp;gt;factory(
          exporting
            r_container    = gr_container
            container_name = 'CONTAINER'
          importing
            r_salv_table   = gr_table
          changing
            t_table        = gt_outtab ).
      catch cx_salv_msg.                                "#EC NO_HANDLER
    endtry.

*... §3.1 activate ALV generic Functions
    data: lr_functions type ref to cl_salv_functions,
          l_text       type string,
          l_icon       type string.

    lr_functions = gr_table-&amp;gt;get_functions( ).
    lr_functions-&amp;gt;set_all( gc_true ).

*... §3.2 include own functions
    l_text = text-b01.
    l_icon = icon_complete.
    try.
      lr_functions-&amp;gt;add_function(
        name     = 'MYFUNCTION'
        icon     = l_icon
        text     = l_text
        tooltip  = l_text
        position = if_salv_c_function_position=&amp;gt;right_of_salv_functions ).
      catch cx_salv_existing cx_salv_wrong_call.
    endtry.


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;otherwise you have to create your own GUI status and set it as below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
try.
      cl_salv_table=&amp;gt;factory(
        importing
          r_salv_table = gr_table
        changing
          t_table      = gt_outtab ).
    catch cx_salv_msg.                                  "#EC NO_HANDLER
  endtry.

*... §3 Functions
*... §3.1 activate ALV generic Functions
*... §3.2 include own functions by setting own status
  gr_table-&amp;gt;set_screen_status(
    pfstatus      =  'MYGUISTATUS'
    report        =  gs_test-repid
    set_functions = gr_table-&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;Raja&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Dec 2006 06:44:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/salv/m-p/1737545#M320715</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2006-12-06T06:44:56Z</dc:date>
    </item>
  </channel>
</rss>

