<?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: Function key in ALV output in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-key-in-alv-output/m-p/6638028#M1442948</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;Create the function key in menu painter(SE41).&lt;/P&gt;&lt;P&gt;And use it in your program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Feb 2010 06:17:46 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-02-04T06:17:46Z</dc:date>
    <item>
      <title>Function key in ALV output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-key-in-alv-output/m-p/6638025#M1442945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have to make a function key(Re-process) in ALV  grid output and if user selects any ALV row and click on that function key then it will reprocess the selected data. so can any one please tell how would i make Function key in ALV output and also how to trap the selected row data of ALV?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Feb 2010 03:23:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-key-in-alv-output/m-p/6638025#M1442945</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-02T03:23:48Z</dc:date>
    </item>
    <item>
      <title>Re: Function key in ALV output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-key-in-alv-output/m-p/6638026#M1442946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For this you will have to write the a Call back routine you will have to add a custom button in allv &lt;/P&gt;&lt;P&gt;and when your added button is pressed then this routine will be triggred you will have to write  a operation for the function code inteh call back routine &lt;/P&gt;&lt;P&gt;you Get the CALL BACK ROUTING NAME PARAMETER in the REUSE_ALV_GRID_DISPLAY&lt;/P&gt;&lt;P&gt;in this routine you will ge the current selected row also.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
call function 'REUSE_ALV_GRID_DISPLAY'
   exporting
*   I_INTERFACE_CHECK              = ' '
*   I_BYPASSING_BUFFER             =
*   I_BUFFER_ACTIVE                = ' '
    i_callback_program             = sy-cprog
    i_callback_html_top_of_page = 'TOP_OF_PAGE'
*    i_callback_top_of_page         = 'TOP_OF_PAGE'
*   I_CALLBACK_PF_STATUS_SET       = ' '
    i_callback_user_command        = 'USER_COMMAND'
*    I_GRID_TITLE                   = 'VIRAJ PROFILES LTD.'
*   I_STRUCTURE_NAME               =
      is_layout                      = layout
      it_fieldcat                    = fieldcat
*   IT_EXCLUDING                   =
*   IT_SPECIAL_GROUPS              =
     it_sort                        = i_sort
*   IT_FILTER                      =
*   IS_SEL_HIDE                    =
*   I_DEFAULT                      = 'X'
*   I_SAVE                         = ' '
*   IS_VARIANT                     =
*   IT_EVENTS                      =
*   IT_EVENT_EXIT                  =
*   IS_PRINT                       =
*   IS_REPREP_ID                   =
*   I_SCREEN_START_COLUMN          = 0
*   I_SCREEN_START_LINE            = 0
*   I_SCREEN_END_COLUMN            = 0
*   I_SCREEN_END_LINE              = 0
*   IR_SALV_LIST_ADAPTER           =
*   IT_EXCEPT_QINFO                =
*   I_SUPPRESS_EMPTY_DATA          = ABAP_FALSE
* IMPORTING
*   E_EXIT_CAUSED_BY_CALLER        =
*   ES_EXIT_CAUSED_BY_USER         =
    tables
      t_outtab                       = &amp;lt;table&amp;gt;
* EXCEPTIONS
*   PROGRAM_ERROR                  = 1
*   OTHERS                         = 2
            .
form user_command using r_ucomm like sy-ucomm
                 rs_selfield type slis_selfield.
  case r_ucomm.
    when '&amp;amp;IC1'.
      loop at it_ekko into wa_it_ekko.
        if rs_selfield-fieldname cs wa_it_ekko-ebeln.
          set parameter id  'ANF' field wa_it_ekko-ebeln.
          call transaction 'ME47' and skip first screen.
        endif.
      endloop.
    when '%_GC 117 3'.
      data : msg type string.
      concatenate 'Click' 'on' rs_selfield-fieldname into msg separated by space.
      message msg type 'I'.
    when others.
  endcase.
endform.                    "USER_COMMAND
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Above is sample code ...just debug it you will get it all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Anup Deshmukh on Feb 2, 2010 4:43 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Feb 2010 03:42:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-key-in-alv-output/m-p/6638026#M1442946</guid>
      <dc:creator>anup_deshmukh4</dc:creator>
      <dc:date>2010-02-02T03:42:59Z</dc:date>
    </item>
    <item>
      <title>Re: Function key in ALV output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-key-in-alv-output/m-p/6638027#M1442947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi anup,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanx for reply....can u please tell me how would i make function key on application tool bar of ALV output screen?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;can anyone please help me on this? actually in ALV if user selects the row of ALV and click on that function key then i have to take all selected records in and have to do some operation againg.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2010 05:54:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-key-in-alv-output/m-p/6638027#M1442947</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-04T05:54:09Z</dc:date>
    </item>
    <item>
      <title>Re: Function key in ALV output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-key-in-alv-output/m-p/6638028#M1442948</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;Create the function key in menu painter(SE41).&lt;/P&gt;&lt;P&gt;And use it in your program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Feb 2010 06:17:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-key-in-alv-output/m-p/6638028#M1442948</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-04T06:17:46Z</dc:date>
    </item>
    <item>
      <title>Re: Function key in ALV output</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-key-in-alv-output/m-p/6638029#M1442949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;saurabh srivastava ,&lt;/P&gt;&lt;P&gt;Hear is a suggesition,&lt;/P&gt;&lt;P&gt;When you display your report and the standar tool bar put  '/h' in the Tcode input box i.e. enter the debugging mode will be activited&lt;/P&gt;&lt;P&gt;next for eg. if you save button you will go to your USER_COMMAND form &lt;/P&gt;&lt;P&gt;just check tey SY-UCOMM you will get the function code for the button pressed on the report &lt;/P&gt;&lt;P&gt;For. Eg. if you Click on SAVE icon on standar report you will get  a function Code as '&amp;amp;DATA_SAVE'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;This is only for alv save&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;your save button will be activated if your alv is editable...!&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Feb 2010 06:44:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-key-in-alv-output/m-p/6638029#M1442949</guid>
      <dc:creator>anup_deshmukh4</dc:creator>
      <dc:date>2010-02-05T06:44:37Z</dc:date>
    </item>
  </channel>
</rss>

