<?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: Block Grid ALV in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/block-grid-alv/m-p/5859798#M1321234</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;It would be simple. Follow these steps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You must have activated the hotspot on a field say XYZ. Now you invoke the subroutine only when the field name is XYZ.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. To get the field name use GET CURSOR command.&lt;/P&gt;&lt;P&gt;     It returns you the name of the field you have choosen.&lt;/P&gt;&lt;P&gt;    GET CURSOR is used to uniquely identify the field where your cursor is clicked.&lt;/P&gt;&lt;P&gt;    By using this you will be able to save the name of your field in a variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; 2. Use IF or CASE to check the variable value holding the field name is XYZ and then call the subroutine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;P Bansal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jul 2009 05:36:33 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-07-15T05:36:33Z</dc:date>
    <item>
      <title>Block Grid ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/block-grid-alv/m-p/5859797#M1321233</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 am facing a problem in alv.&lt;/P&gt;&lt;P&gt;I have kept hotspot on for only one field and the subroutine is getting called even when I double click any other field.&lt;/P&gt;&lt;P&gt;Th hotspot icon doesnt come on other fiels so ite means the hotspot is disabled for other fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wanted to knw ho to disbale the call of subroutine for non hotspot fields when i dbl clink on them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As this is giving me dumb as i try to ftech some data based on the selected field value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Waseem&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2009 05:27:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/block-grid-alv/m-p/5859797#M1321233</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-15T05:27:57Z</dc:date>
    </item>
    <item>
      <title>Re: Block Grid ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/block-grid-alv/m-p/5859798#M1321234</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;It would be simple. Follow these steps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You must have activated the hotspot on a field say XYZ. Now you invoke the subroutine only when the field name is XYZ.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. To get the field name use GET CURSOR command.&lt;/P&gt;&lt;P&gt;     It returns you the name of the field you have choosen.&lt;/P&gt;&lt;P&gt;    GET CURSOR is used to uniquely identify the field where your cursor is clicked.&lt;/P&gt;&lt;P&gt;    By using this you will be able to save the name of your field in a variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; 2. Use IF or CASE to check the variable value holding the field name is XYZ and then call the subroutine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;P Bansal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2009 05:36:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/block-grid-alv/m-p/5859798#M1321234</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-15T05:36:33Z</dc:date>
    </item>
    <item>
      <title>Re: Block Grid ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/block-grid-alv/m-p/5859799#M1321235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Waseem,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Enable the hotspot for the paticular field in field catalog.&lt;/P&gt;&lt;P&gt;Then Use the event "hotspot_click"  of " cl_gui_alv_grid" class... &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CLASS event_class DEFINITION.
  PUBLIC SECTION.
    METHODS: handle_hotspot_click FOR EVENT hotspot_click OF
             cl_gui_alv_grid IMPORTING e_row_id e_column_id es_row_no.
ENDCLASS.
CLASS event_class IMPLEMENTATION.
* HOTSPOT CLICK EVENT IMPLEMENTATION
  METHOD handle_hotspot_click.
    CLEAR: V_ROW,V_COLUMN,V_ROW_NUM.
    V_ROW  = E_ROW_ID.
    V_COLUMN = E_COLUMN_ID.
    V_ROW_NUM = ES_ROW_NO.

* TO UPDATE THE SCREEN FIELDS
PERFORM HANDLE_HOTSPOT_CLICK USING E_ROW_ID E_COLUMN_ID ES_ROW_NO .
ENDMETHOD.
ENDCLASS.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2009 05:36:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/block-grid-alv/m-p/5859799#M1321235</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-15T05:36:44Z</dc:date>
    </item>
    <item>
      <title>Re: Block Grid ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/block-grid-alv/m-p/5859800#M1321236</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;&lt;/P&gt;&lt;P&gt;The  SY-UCOMM value for a double click is '&amp;amp;IC1'. Restrict your portion of the code where you call your transaction (CALL TRANSACTION) not to work for this SY-UCOMM value. That should solve your problem. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively,&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.
  " Read only the field that you have clicked instead of reading the entire row of the internal table
  " Then call the transaction.
ENDFORM.   

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2009 05:40:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/block-grid-alv/m-p/5859800#M1321236</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-15T05:40:59Z</dc:date>
    </item>
    <item>
      <title>Re: Block Grid ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/block-grid-alv/m-p/5859801#M1321237</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;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have already implemented it but the value of rs_selfield-sel_tab_field and the rs_selfield-fieldname are blank while&lt;/P&gt;&lt;P&gt;the rs_selfield-value is coming correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Waseem&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2009 05:47:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/block-grid-alv/m-p/5859801#M1321237</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-15T05:47:08Z</dc:date>
    </item>
    <item>
      <title>Re: Block Grid ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/block-grid-alv/m-p/5859802#M1321238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi the problem is solved i m using tabindex insteda of fieldname and value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg. code:&lt;/P&gt;&lt;P&gt;For user_command using p_ucomm type sy-ucomm&lt;/P&gt;&lt;P&gt;p_selfield type slis_selfield.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if not p_selfield-tabindex is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table itab into wa index p_selfield-tabindex .&lt;/P&gt;&lt;P&gt;&amp;lt;put your logic&amp;gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2009 07:00:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/block-grid-alv/m-p/5859802#M1321238</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-15T07:00:36Z</dc:date>
    </item>
  </channel>
</rss>

