<?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: Double click using user-command. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/double-click-using-user-command/m-p/12780957#M2023737</link>
    <description>&lt;P&gt;You should not trying to learn using old FM. &lt;/P&gt;&lt;P&gt;Restart from begining using SALV&lt;/P&gt;&lt;P&gt;all the examples are available in SAP, the program start with  SALV_DEMO_TABLE&lt;/P&gt;</description>
    <pubDate>Fri, 24 Nov 2023 06:36:47 GMT</pubDate>
    <dc:creator>FredericGirod</dc:creator>
    <dc:date>2023-11-24T06:36:47Z</dc:date>
    <item>
      <title>Double click using user-command.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/double-click-using-user-command/m-p/12780956#M2023736</link>
      <description>&lt;P&gt;Hi everyone ! &lt;/P&gt;
  &lt;P&gt;I just have start learning Abap and was working in a Mini project where after displaying the table if the user does a double click in any fields the report should open a little information window where to display the field name. Just like in the pic. &lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2227002-screenshot-114.png" /&gt;&lt;/P&gt;
  &lt;P&gt;And here is the code :&lt;/P&gt;
  &lt;P&gt;REPORT zrd_exercises.&lt;BR /&gt;TABLES: ekko,ekpo.&lt;BR /&gt;TYPE-POOLS : slis.&lt;BR /&gt;&lt;BR /&gt;DATA: it_fieldcat TYPE slis_t_fieldcat_alv,&lt;BR /&gt; wt_fieldcat TYPE slis_fieldcat_alv.&lt;BR /&gt;&lt;BR /&gt;TYPES:&lt;BR /&gt; BEGIN OF ty_ekko,&lt;BR /&gt; ebeln TYPE ekko-ebeln,&lt;BR /&gt; bukrs TYPE ekko-bukrs,&lt;BR /&gt; bstyp TYPE ekko-bstyp,&lt;BR /&gt; ebelp TYPE ekpo-ebelp,&lt;BR /&gt; matnr TYPE ekpo-matnr,&lt;BR /&gt; END OF ty_ekko.&lt;BR /&gt;&lt;BR /&gt;DATA gt_ekko TYPE STANDARD TABLE OF ty_ekko.&lt;BR /&gt;&lt;BR /&gt;SELECT-OPTIONS : s_ebeln FOR ekko-ebeln.&lt;BR /&gt;&lt;BR /&gt;START-OF-SELECTION.&lt;BR /&gt;&lt;BR /&gt; SELECT * FROM ekko&lt;BR /&gt; LEFT JOIN ekpo ON ekko~ebeln = ekpo~ebeln&lt;BR /&gt; INTO CORRESPONDING FIELDS OF TABLE gt_ekko&lt;BR /&gt; WHERE ekko~ebeln IN s_ebeln.&lt;BR /&gt;&lt;BR /&gt; wt_fieldcat-fieldname = 'EBELN'.&lt;BR /&gt; wt_fieldcat-seltext_l = 'Purchasing document'.&lt;BR /&gt; wt_fieldcat-key = 'X'.&lt;BR /&gt; APPEND wt_fieldcat TO it_fieldcat.&lt;BR /&gt; CLEAR wt_fieldcat.&lt;BR /&gt;&lt;BR /&gt; wt_fieldcat-fieldname = 'BUKRS'.&lt;BR /&gt; wt_fieldcat-seltext_l = 'Company code'.&lt;BR /&gt; wt_fieldcat-key = 'X'.&lt;BR /&gt; APPEND wt_fieldcat TO it_fieldcat.&lt;BR /&gt; CLEAR wt_fieldcat.&lt;BR /&gt;&lt;BR /&gt; wt_fieldcat-fieldname = 'BSTYP'.&lt;BR /&gt; wt_fieldcat-seltext_l = 'Purchasing document category'.&lt;BR /&gt; APPEND wt_fieldcat TO it_fieldcat.&lt;BR /&gt; CLEAR wt_fieldcat.&lt;BR /&gt;&lt;BR /&gt; wt_fieldcat-fieldname = 'EBELP'.&lt;BR /&gt; wt_fieldcat-seltext_m = 'Item number'.&lt;BR /&gt; APPEND wt_fieldcat TO it_fieldcat.&lt;BR /&gt; CLEAR wt_fieldcat.&lt;BR /&gt;&lt;BR /&gt; wt_fieldcat-fieldname = 'MATNR'.&lt;BR /&gt; wt_fieldcat-seltext_l = 'Material number'.&lt;BR /&gt; APPEND wt_fieldcat TO it_fieldcat.&lt;BR /&gt; CLEAR wt_fieldcat.&lt;BR /&gt;&lt;BR /&gt; CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'&lt;BR /&gt; EXPORTING&lt;BR /&gt;* I_INTERFACE_CHECK = ' '&lt;BR /&gt;* I_BYPASSING_BUFFER = ' '&lt;BR /&gt;* I_BUFFER_ACTIVE = ' '&lt;BR /&gt; i_callback_program = sy-repid&lt;BR /&gt;* I_CALLBACK_PF_STATUS_SET = ' '&lt;BR /&gt;* I_CALLBACK_USER_COMMAND = ' '&lt;BR /&gt;* I_CALLBACK_TOP_OF_PAGE = ' '&lt;BR /&gt;* I_CALLBACK_HTML_TOP_OF_PAGE = ' '&lt;BR /&gt;* I_CALLBACK_HTML_END_OF_LIST = ' '&lt;BR /&gt;* I_STRUCTURE_NAME =&lt;BR /&gt;* I_BACKGROUND_ID = ' '&lt;BR /&gt;* I_GRID_TITLE =&lt;BR /&gt;* I_GRID_SETTINGS =&lt;BR /&gt;* IS_LAYOUT =&lt;BR /&gt; it_fieldcat = it_fieldcat&lt;BR /&gt;* IT_EXCLUDING =&lt;BR /&gt;* IT_SPECIAL_GROUPS =&lt;BR /&gt;* IT_SORT =&lt;BR /&gt;* IT_FILTER =&lt;BR /&gt;* IS_SEL_HIDE =&lt;BR /&gt; i_default = 'X'&lt;BR /&gt;* I_SAVE = ' '&lt;BR /&gt;* IS_VARIANT =&lt;BR /&gt;* IT_EVENTS =&lt;BR /&gt;* IT_EVENT_EXIT =&lt;BR /&gt;* IS_PRINT =&lt;BR /&gt;* IS_REPREP_ID =&lt;BR /&gt;* I_SCREEN_START_COLUMN = 0&lt;BR /&gt;* I_SCREEN_START_LINE = 0&lt;BR /&gt;* I_SCREEN_END_COLUMN = 0&lt;BR /&gt;* I_SCREEN_END_LINE = 0&lt;BR /&gt;* I_HTML_HEIGHT_TOP = 0&lt;BR /&gt;* I_HTML_HEIGHT_END = 0&lt;BR /&gt;* IT_ALV_GRAPHICS =&lt;BR /&gt;* IT_HYPERLINK =&lt;BR /&gt;* IT_ADD_FIELDCAT =&lt;BR /&gt;* IT_EXCEPT_QINFO =&lt;BR /&gt;* IR_SALV_FULLSCREEN_ADAPTER =&lt;BR /&gt;* IMPORTING&lt;BR /&gt;* E_EXIT_CAUSED_BY_CALLER =&lt;BR /&gt;* ES_EXIT_CAUSED_BY_USER =&lt;BR /&gt; TABLES&lt;BR /&gt; t_outtab = gt_ekko&lt;BR /&gt; EXCEPTIONS&lt;BR /&gt; program_error = 1&lt;BR /&gt; OTHERS = 2.&lt;BR /&gt; IF sy-subrc &amp;lt;&amp;gt; 0.&lt;BR /&gt;* Implement suitable error handling here&lt;BR /&gt; ENDIF.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Nov 2023 20:45:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/double-click-using-user-command/m-p/12780956#M2023736</guid>
      <dc:creator>redjon</dc:creator>
      <dc:date>2023-11-23T20:45:34Z</dc:date>
    </item>
    <item>
      <title>Re: Double click using user-command.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/double-click-using-user-command/m-p/12780957#M2023737</link>
      <description>&lt;P&gt;You should not trying to learn using old FM. &lt;/P&gt;&lt;P&gt;Restart from begining using SALV&lt;/P&gt;&lt;P&gt;all the examples are available in SAP, the program start with  SALV_DEMO_TABLE&lt;/P&gt;</description>
      <pubDate>Fri, 24 Nov 2023 06:36:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/double-click-using-user-command/m-p/12780957#M2023737</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2023-11-24T06:36:47Z</dc:date>
    </item>
    <item>
      <title>Re: Double click using user-command.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/double-click-using-user-command/m-p/12780958#M2023738</link>
      <description>&lt;P&gt;For anyone with the same issue this is the solution I found : &lt;/P&gt;&lt;P&gt;FORM HANDLE_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;  DATA: lv_fieldname TYPE slis_fieldname.&lt;/P&gt;&lt;P&gt;  CASE r_ucomm.&lt;/P&gt;&lt;P&gt;    WHEN '&amp;amp;IC1'.  " Double-click event&lt;/P&gt;&lt;P&gt;      lv_fieldname = rs_selfield-fieldname.&lt;/P&gt;&lt;P&gt;      MESSAGE lv_fieldname TYPE 'I'.&lt;/P&gt;&lt;P&gt;  ENDCASE.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Nov 2023 10:59:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/double-click-using-user-command/m-p/12780958#M2023738</guid>
      <dc:creator>redjon</dc:creator>
      <dc:date>2023-11-24T10:59:22Z</dc:date>
    </item>
  </channel>
</rss>

