<?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: AVL Double click Problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/avl-double-click-problem/m-p/6175331#M1372395</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for ur reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I m using normal ALV. go through the following &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
form display_all_item_alv.

w_repid = sy-repid.
perform update_catalog.

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
 EXPORTING
   I_CALLBACK_PROGRAM                = w_repid
   I_CALLBACK_USER_COMMAND           = 'USER_COMMAND'
*   I_CALLBACK_TOP_OF_PAGE            = 'TOP-OF-PAGE'
   IT_FIELDCAT                       = I_FCAT[]
   I_SAVE                             = 'X'

* IMPORTING
*   E_EXIT_CAUSED_BY_CALLER           =
*   ES_EXIT_CAUSED_BY_USER            =
  TABLES
    T_OUTTAB                          = i_faglflexa_all
* 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.


endform.

*------------------------------------------------------------------*
*       FORM USER_COMMAND                                          *
*------------------------------------------------------------------*
*       --&amp;gt; R_UCOMM                                                *
*       --&amp;gt; RS_SELFIELD                                            *
*------------------------------------------------------------------*

form user_command using r_ucomm like sy-ucomm
                  rs_selfield TYPE slis_selfield.
  w_gjahr = p_gjahr.
  case r_ucomm.
     when '&amp;amp;IC1'.

        if r_open = 'X'.
          set parameter id 'BLN' field i_faglflexa_open-belnr.

        elseif r_clear = 'X'.
          set parameter id 'BLN' field i_faglflexa_clear-belnr.

        else.
          set parameter id 'BLN' field i_faglflexa_clear-belnr.
        endif.


      set parameter id 'BUK' field p_bukrs.
      set parameter id 'GJR' field w_gjahr.   "i_faglflexa_clear-gjahr.
      call transaction 'FB03' and skip first screen.

  endcase.
endform.                    "user_command

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Maverick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Sep 2009 05:30:37 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-09-29T05:30:37Z</dc:date>
    <item>
      <title>AVL Double click Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/avl-double-click-problem/m-p/6175329#M1372393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hv created an ALV report. when in double click on the record it take me to the required tcode (FB03).&lt;/P&gt;&lt;P&gt;But the problem is ,it always display last record of internal table if I clicked on first record,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any one suggest me something.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Maverick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2009 05:10:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/avl-double-click-problem/m-p/6175329#M1372393</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-29T05:10:23Z</dc:date>
    </item>
    <item>
      <title>Re: AVL Double click Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/avl-double-click-problem/m-p/6175330#M1372394</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;Can u be clear with u r requirement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;are u using oops alv or normal alv.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2009 05:15:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/avl-double-click-problem/m-p/6175330#M1372394</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-29T05:15:26Z</dc:date>
    </item>
    <item>
      <title>Re: AVL Double click Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/avl-double-click-problem/m-p/6175331#M1372395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for ur reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I m using normal ALV. go through the following &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
form display_all_item_alv.

w_repid = sy-repid.
perform update_catalog.

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
 EXPORTING
   I_CALLBACK_PROGRAM                = w_repid
   I_CALLBACK_USER_COMMAND           = 'USER_COMMAND'
*   I_CALLBACK_TOP_OF_PAGE            = 'TOP-OF-PAGE'
   IT_FIELDCAT                       = I_FCAT[]
   I_SAVE                             = 'X'

* IMPORTING
*   E_EXIT_CAUSED_BY_CALLER           =
*   ES_EXIT_CAUSED_BY_USER            =
  TABLES
    T_OUTTAB                          = i_faglflexa_all
* 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.


endform.

*------------------------------------------------------------------*
*       FORM USER_COMMAND                                          *
*------------------------------------------------------------------*
*       --&amp;gt; R_UCOMM                                                *
*       --&amp;gt; RS_SELFIELD                                            *
*------------------------------------------------------------------*

form user_command using r_ucomm like sy-ucomm
                  rs_selfield TYPE slis_selfield.
  w_gjahr = p_gjahr.
  case r_ucomm.
     when '&amp;amp;IC1'.

        if r_open = 'X'.
          set parameter id 'BLN' field i_faglflexa_open-belnr.

        elseif r_clear = 'X'.
          set parameter id 'BLN' field i_faglflexa_clear-belnr.

        else.
          set parameter id 'BLN' field i_faglflexa_clear-belnr.
        endif.


      set parameter id 'BUK' field p_bukrs.
      set parameter id 'GJR' field w_gjahr.   "i_faglflexa_clear-gjahr.
      call transaction 'FB03' and skip first screen.

  endcase.
endform.                    "user_command

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Maverick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2009 05:30:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/avl-double-click-problem/m-p/6175331#M1372395</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-29T05:30:37Z</dc:date>
    </item>
    <item>
      <title>Re: AVL Double click Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/avl-double-click-problem/m-p/6175332#M1372396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;by default txn  FB03 has the cursor on first record.&lt;/P&gt;&lt;P&gt;Are you settting the last row using set_selected_rows?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2009 05:31:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/avl-double-click-problem/m-p/6175332#M1372396</guid>
      <dc:creator>Sandeep_Panghal</dc:creator>
      <dc:date>2009-09-29T05:31:33Z</dc:date>
    </item>
    <item>
      <title>Re: AVL Double click Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/avl-double-click-problem/m-p/6175333#M1372397</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; Please share the part of code where you have handled double click. &lt;/P&gt;&lt;P&gt; For cl_gui_alv_grid It should be like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;class class1 definition.
  public section.
    methods:
    double_click         for event double_click
                         of cl_gui_alv_grid
                         importing e_row.

endclass.

class class1 implementation.

method double_click.
 READ TABLE it_table INTO l_table
                      INDEX e_row-INDEX. "Index of selected row during double click

* Set the parameter using selected value and call transaction

endmethod.
endclass.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2009 05:34:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/avl-double-click-problem/m-p/6175333#M1372397</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-29T05:34:00Z</dc:date>
    </item>
    <item>
      <title>Re: AVL Double click Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/avl-double-click-problem/m-p/6175334#M1372398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for ur reply. &lt;/P&gt;&lt;P&gt;But i m using normal ALV not OOPs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Maverick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2009 05:36:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/avl-double-click-problem/m-p/6175334#M1372398</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-29T05:36:03Z</dc:date>
    </item>
    <item>
      <title>Re: AVL Double click Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/avl-double-click-problem/m-p/6175335#M1372399</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;PRE&gt;&lt;CODE&gt;
form user_command using r_ucomm like sy-ucomm
                  rs_selfield TYPE slis_selfield.
  w_gjahr = p_gjahr.
  case r_ucomm.
     when '&amp;amp;IC1'.
 
        if r_open = 'X'.
          read table i_faglflexa_open index rs_selfield-tabindex. " &amp;lt;- add this
          set parameter id 'BLN' field i_faglflexa_open-belnr.
 
        elseif r_clear = 'X'.
          read table i_faglflexa_clear index rs_selfield-tabindex. " &amp;lt;- add this
          set parameter id 'BLN' field i_faglflexa_clear-belnr.
 
        else.
          read table i_faglflexa_clear index rs_selfield-tabindex. " &amp;lt;- add this
          set parameter id 'BLN' field i_faglflexa_clear-belnr.
        endif.
 
 
      set parameter id 'BUK' field p_bukrs.
      set parameter id 'GJR' field w_gjahr.   "i_faglflexa_clear-gjahr.
      call transaction 'FB03' and skip first screen.
 
  endcase.
endform.  
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2009 05:37:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/avl-double-click-problem/m-p/6175335#M1372399</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-29T05:37:51Z</dc:date>
    </item>
    <item>
      <title>Re: AVL Double click Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/avl-double-click-problem/m-p/6175336#M1372400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi  Maverick44,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it's showing last record because in SET parameter you are using the internal table header line... if i am not wrong then you are using internal table with header line... as header line contains last record it always shows last record...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do the changes which i have made in below code and it will work...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data : l_belnr type bseg-belnr.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

form user_command using r_ucomm like sy-ucomm
                  rs_selfield TYPE slis_selfield.
  w_gjahr = p_gjahr.
  case r_ucomm.
     when '&amp;amp;IC1'.

       l_belnr =  rs_selfield-value. " Assigen value to L_BELNR
 
        if r_open = 'X'.
          set parameter id 'BLN' field l_belnr. " Change here.. you were using internal table header line before
        elseif r_clear = 'X'.
          set parameter id 'BLN' field l_belnr.  " Change here.. you were using internal table header line before
        else.
          set parameter id 'BLN' field l_belnr. " Change here.. you were using internal table header line before
        endif.
 
 
      set parameter id 'BUK' field p_bukrs.
      set parameter id 'GJR' field w_gjahr.   "i_faglflexa_clear-gjahr.
      call transaction 'FB03' and skip first screen.
 
  endcase.
endform.                    "user_command&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Hope it will solve your problem..&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;ilesh 24x7&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ilesh Nandaniya&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2009 05:41:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/avl-double-click-problem/m-p/6175336#M1372400</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-29T05:41:11Z</dc:date>
    </item>
  </channel>
</rss>

