<?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: REUSE_ALV_GRID_DISPLAY function in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/reuse-alv-grid-display-function/m-p/1446543#M211888</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry Max,&lt;/P&gt;&lt;P&gt;not sure how to do this, could you please explain?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Jun 2006 10:43:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-06-28T10:43:02Z</dc:date>
    <item>
      <title>REUSE_ALV_GRID_DISPLAY function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reuse-alv-grid-display-function/m-p/1446534#M211879</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;with 'REUSE_ALV_GRID_DISPLAY'function, once displayed,&lt;/P&gt;&lt;P&gt;I need to show in a label, a field from the List, is there a way to do this. I did try and see if a user command occurs , when I select a line, but there was not one generated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2006 10:07:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reuse-alv-grid-display-function/m-p/1446534#M211879</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-28T10:07:13Z</dc:date>
    </item>
    <item>
      <title>Re: REUSE_ALV_GRID_DISPLAY function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reuse-alv-grid-display-function/m-p/1446535#M211880</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 need to implement a USER_COMMAND event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set the field IS_LAYOUT-F2CODE = &amp;lt;CODE FOR DOUBLE CLICK&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Insert the name of routine for user command in to parameter I_CALLBACK_USER_COMMAND&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It has to be like that&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM user_command  USING r_ucomm LIKE sy-ucomm&lt;/P&gt;&lt;P&gt;                         rs_selfield TYPE slis_selfield.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; IF R_UCOMM = &amp;lt;CODE FOR DOUBLE CLICK&amp;gt;.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Here write your code&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt; ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2006 10:12:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reuse-alv-grid-display-function/m-p/1446535#M211880</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-28T10:12:16Z</dc:date>
    </item>
    <item>
      <title>Re: REUSE_ALV_GRID_DISPLAY function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reuse-alv-grid-display-function/m-p/1446536#M211881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sims,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when I select a line, but there was not one generated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Event will occur when we DOUBLE-CLICK &lt;/P&gt;&lt;P&gt;a line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. There are some parameters&lt;/P&gt;&lt;P&gt;in the FM which are passed,&lt;/P&gt;&lt;P&gt;and a new FORM has to be written.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Just copy paste this code in new program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. It will display list of company.&lt;/P&gt;&lt;P&gt;On double-clicking on the alv,&lt;/P&gt;&lt;P&gt;it will again display the clicked company code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Important code has been marked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT abc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPE-POOLS : slis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="---------" /&gt;&lt;P&gt; Data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : BEGIN OF itab OCCURS 0.&lt;/P&gt;&lt;P&gt;INCLUDE STRUCTURE t001.&lt;/P&gt;&lt;P&gt;DATA : END OF itab.&lt;/P&gt;&lt;P&gt;DATA : alvfc TYPE slis_t_fieldcat_alv.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt; Select Data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM t001 INTO TABLE itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*------- Field Catalogue&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;i_program_name = sy-repid&lt;/P&gt;&lt;P&gt;i_internal_tabname = 'ITAB'&lt;/P&gt;&lt;P&gt;i_inclname = sy-repid&lt;/P&gt;&lt;P&gt;CHANGING&lt;/P&gt;&lt;P&gt;ct_fieldcat = alvfc&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;inconsistent_interface = 1&lt;/P&gt;&lt;P&gt;program_error = 2&lt;/P&gt;&lt;P&gt;OTHERS = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="----------" /&gt;&lt;P&gt;Display&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;it_fieldcat = alvfc&lt;/P&gt;&lt;P&gt;i_callback_program = sy-repid "&amp;lt;-------Important&lt;/P&gt;&lt;P&gt;i_callback_user_command = 'ITAB_USER_COMMAND' "&amp;lt;------ Important&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;t_outtab = itab&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;program_error = 1&lt;/P&gt;&lt;P&gt;OTHERS = 2.&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;HR originaltext="--------------------------------------------" /&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;CALL BACK FORM&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="--------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM itab_user_command USING whatcomm TYPE sy-ucomm whatrow TYPE&lt;/P&gt;&lt;P&gt;slis_selfield.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE itab INDEX whatrow-tabindex.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE itab-bukrs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM. "ITAB_user_command&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;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2006 10:12:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reuse-alv-grid-display-function/m-p/1446536#M211881</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-28T10:12:32Z</dc:date>
    </item>
    <item>
      <title>Re: REUSE_ALV_GRID_DISPLAY function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reuse-alv-grid-display-function/m-p/1446537#M211882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you explain a little more, what exactly are you trying to do? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can have a tool tip for each column in the field catalog, if that is what you are looking for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2006 10:13:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reuse-alv-grid-display-function/m-p/1446537#M211882</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-28T10:13:53Z</dc:date>
    </item>
    <item>
      <title>Re: REUSE_ALV_GRID_DISPLAY function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reuse-alv-grid-display-function/m-p/1446538#M211883</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;I found it responded to the double click as well, but when I looked in whatcomm, there was no value in it,&lt;/P&gt;&lt;P&gt;also is it possible to define a user command for a single click?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2006 10:17:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reuse-alv-grid-display-function/m-p/1446538#M211883</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-28T10:17:21Z</dc:date>
    </item>
    <item>
      <title>Re: REUSE_ALV_GRID_DISPLAY function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reuse-alv-grid-display-function/m-p/1446539#M211884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;what I have is an alv grid generated. one of the columns has a price field. When the user selects all the lines they are interested in, I want a label displaying the total of all the prices selected.&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2006 10:19:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reuse-alv-grid-display-function/m-p/1446539#M211884</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-28T10:19:08Z</dc:date>
    </item>
    <item>
      <title>Re: REUSE_ALV_GRID_DISPLAY function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reuse-alv-grid-display-function/m-p/1446540#M211885</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 have to define a code for the sum in the status gui,&lt;/P&gt;&lt;P&gt;so the in the routine USER_COMMAND:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM user_command USING r_ucomm LIKE sy-ucomm&lt;/P&gt;&lt;P&gt;rs_selfield TYPE slis_selfield.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF R_UCOMM = 'SUM'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;here calculate the total and show the label with the result.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you have to create a new status gui as copy of std grid gui.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the parameter I_CALLBACK_PF_STATUS_SET you indicate the name of the routine to set your new status:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM set_pf_status USING rt_extab TYPE slis_t_extab&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; SET PF-STATUS &amp;lt;MY GUI&amp;gt; EXCLUDING rt_extab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2006 10:21:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reuse-alv-grid-display-function/m-p/1446540#M211885</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-28T10:21:49Z</dc:date>
    </item>
    <item>
      <title>Re: REUSE_ALV_GRID_DISPLAY function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reuse-alv-grid-display-function/m-p/1446541#M211886</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;I did that and used Choose , F2 option, but again, the only event it responds to is double click, although now I do see the code for it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ehich code should I use, or can it respond to a single click?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2006 10:25:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reuse-alv-grid-display-function/m-p/1446541#M211886</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-28T10:25:57Z</dc:date>
    </item>
    <item>
      <title>Re: REUSE_ALV_GRID_DISPLAY function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reuse-alv-grid-display-function/m-p/1446542#M211887</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;for the single click you should active the HOT SPOT attribute in the catalog table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2006 10:28:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reuse-alv-grid-display-function/m-p/1446542#M211887</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-28T10:28:46Z</dc:date>
    </item>
    <item>
      <title>Re: REUSE_ALV_GRID_DISPLAY function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reuse-alv-grid-display-function/m-p/1446543#M211888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry Max,&lt;/P&gt;&lt;P&gt;not sure how to do this, could you please explain?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2006 10:43:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reuse-alv-grid-display-function/m-p/1446543#M211888</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-28T10:43:02Z</dc:date>
    </item>
    <item>
      <title>Re: REUSE_ALV_GRID_DISPLAY function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reuse-alv-grid-display-function/m-p/1446544#M211889</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;check this code..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;report  ztest_alv_check     message-id zz           .

type-pools: slis.
data: x_fieldcat type slis_fieldcat_alv,
      it_fieldcat type slis_t_fieldcat_alv,
      l_layout type slis_layout_alv,
      x_events type slis_alv_event,
      it_events type slis_t_event.

data: begin of itab occurs 0,
      vbeln like vbak-vbeln,
      posnr like vbap-posnr,
      chk(1),
     end of itab.

select vbeln
       posnr
       from vbap
       up to 20 rows
       into table itab.

x_fieldcat-fieldname = 'CHK'.
x_fieldcat-tabname = 'ITAB'.
x_fieldcat-col_pos = 1.
x_fieldcat-input = 'X'.
x_fieldcat-edit = 'X'.
x_fieldcat-checkbox = 'X'.
append x_fieldcat to it_fieldcat.
clear x_fieldcat.

x_fieldcat-fieldname = 'VBELN'.
x_fieldcat-seltext_l = 'VBELN'.
x_fieldcat-tabname = 'ITAB'.
x_fieldcat-col_pos = 2.
append x_fieldcat to it_fieldcat.
clear x_fieldcat.

x_fieldcat-fieldname = 'POSNR'.
x_fieldcat-seltext_l = 'POSNR'.
x_fieldcat-tabname = 'ITAB'.
x_fieldcat-col_pos = 3.
append x_fieldcat to it_fieldcat.
clear x_fieldcat.


call function 'REUSE_ALV_GRID_DISPLAY'
  exporting
    i_callback_program       = sy-repid
    is_layout                = l_layout
    i_callback_pf_status_set = 'STATUS'
    i_callback_user_command  = 'USER_COMMAND'
    it_fieldcat              = it_fieldcat
  tables
    t_outtab                 = itab
  exceptions
    program_error            = 1
    others                   = 2.
if sy-subrc &amp;lt;&amp;gt; 0.

  message id sy-msgid type sy-msgty number sy-msgno
          with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.
form status using p_extab type slis_t_extab.
*- Pf status
  set pf-status 'STATUS'.
endform.                 " STATUS
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  USER_COMMAND
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*      --&amp;gt;R_UCOMM      text
*      --&amp;gt;RS_SELFIELD  text
*----------------------------------------------------------------------*
form user_command using r_ucomm     like sy-ucomm
                               rs_selfield type slis_selfield.

  case r_ucomm.

    when '&amp;amp;IC1'.
      if rs_selfield-fieldname = 'VBELN'.
      message i000 with 'clicked on row and field' rs_Selfield-tabindex
      rs_selfield-fieldname.
      endif.
  endcase.
endform.                    "USER_COMMAND&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;before testing create the pf-status and set the function code for f2 key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2006 10:45:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reuse-alv-grid-display-function/m-p/1446544#M211889</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-28T10:45:25Z</dc:date>
    </item>
    <item>
      <title>Re: REUSE_ALV_GRID_DISPLAY function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reuse-alv-grid-display-function/m-p/1446545#M211890</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;Go to SE41 give the Program name SAPLKKBL&lt;/P&gt;&lt;P&gt;and status as STANDARD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now click Copy status (CTRL+F6), now give your Program name , and PF-status and copy it. now save it and activate the pf-satus which you have copied.and add fcode for F2 function key to it. and use it in your PF-status form.&lt;/P&gt;&lt;P&gt;pass that status using the parameter call back status option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2006 10:49:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reuse-alv-grid-display-function/m-p/1446545#M211890</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-28T10:49:18Z</dc:date>
    </item>
    <item>
      <title>Re: REUSE_ALV_GRID_DISPLAY function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reuse-alv-grid-display-function/m-p/1446546#M211891</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;In the parameter IT_FIELDCAT you can transfer the attributes for the field, here you can set the field flag HOTSPOT for the fields you need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this way the doubleclick (for that fields) is triggered by a single click.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2006 10:49:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reuse-alv-grid-display-function/m-p/1446546#M211891</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-28T10:49:40Z</dc:date>
    </item>
    <item>
      <title>Re: REUSE_ALV_GRID_DISPLAY function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reuse-alv-grid-display-function/m-p/1446547#M211892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did get the program to work, but again it only responds to double click , and not sing click?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any Ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2006 11:06:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reuse-alv-grid-display-function/m-p/1446547#M211892</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-28T11:06:08Z</dc:date>
    </item>
    <item>
      <title>Re: REUSE_ALV_GRID_DISPLAY function</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reuse-alv-grid-display-function/m-p/1446548#M211893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;report  ztest_alv_check     message-id zz           .

type-pools: slis.
data: x_fieldcat type slis_fieldcat_alv,
      it_fieldcat type slis_t_fieldcat_alv,
      l_layout type slis_layout_alv,
      x_events type slis_alv_event,
      it_events type slis_t_event.

data: begin of itab occurs 0,
      vbeln like vbak-vbeln,
      posnr like vbap-posnr,
      chk(1),
     end of itab.

select vbeln
       posnr
       from vbap
       up to 20 rows
       into table itab.

x_fieldcat-fieldname = 'CHK'.
x_fieldcat-tabname = 'ITAB'.
x_fieldcat-col_pos = 1.
x_fieldcat-input = 'X'.
x_fieldcat-edit = 'X'.
x_fieldcat-checkbox = 'X'.
append x_fieldcat to it_fieldcat.
clear x_fieldcat.

x_fieldcat-fieldname = 'VBELN'.
x_fieldcat-seltext_l = 'VBELN'.
&amp;lt;b&amp;gt;x_fieldcat-hotspot = 'X'.&amp;lt;/b&amp;gt;
x_fieldcat-tabname = 'ITAB'.
x_fieldcat-col_pos = 2.
append x_fieldcat to it_fieldcat.
clear x_fieldcat.

x_fieldcat-fieldname = 'POSNR'.
x_fieldcat-seltext_l = 'POSNR'.
x_fieldcat-tabname = 'ITAB'.
x_fieldcat-col_pos = 3.
append x_fieldcat to it_fieldcat.
clear x_fieldcat.


call function 'REUSE_ALV_GRID_DISPLAY'
  exporting
    i_callback_program       = sy-repid
    is_layout                = l_layout
    i_callback_pf_status_set = 'STATUS'
    i_callback_user_command  = 'USER_COMMAND'
    it_fieldcat              = it_fieldcat
  tables
    t_outtab                 = itab
  exceptions
    program_error            = 1
    others                   = 2.
if sy-subrc &amp;lt;&amp;gt; 0.

  message id sy-msgid type sy-msgty number sy-msgno
          with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.
form status using p_extab type slis_t_extab.
*- Pf status
  set pf-status 'STATUS'.
endform.                 " STATUS
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  USER_COMMAND
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*      --&amp;gt;R_UCOMM      text
*      --&amp;gt;RS_SELFIELD  text
*----------------------------------------------------------------------*
form user_command using r_ucomm     like sy-ucomm
                               rs_selfield type slis_selfield.

  case r_ucomm.

    when '&amp;amp;IC1'.
      if rs_selfield-fieldname = 'VBELN'.
      message i000 with 'clicked on row and field' rs_Selfield-tabindex
      rs_selfield-fieldname.
      endif.
  endcase.
endform.                    "USER_COMMAND&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Now check it.&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jun 2006 11:10:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reuse-alv-grid-display-function/m-p/1446548#M211893</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-28T11:10:14Z</dc:date>
    </item>
  </channel>
</rss>

