<?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 in module pool program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/double-click-in-module-pool-program/m-p/6711744#M1453903</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try this .Assign function code to F2 the way you have assigned.Now in PROCESS AFTER INPUT of your screen (On which you have text buttons ), write this code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE user_command_0100 INPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Declare a field of length equal to the name of the text box.Here i have taken two text boxes namely 'TEXT1' and 'TEXT2'.I have declared a local field with length 5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : L_FIELD(5) TYPE C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CASE sy-ucomm. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; WHEN 'PICK'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; GET CURSOR FIELD l_field.&lt;/P&gt;&lt;P&gt;     IF l_field = 'TEXT1'.&lt;/P&gt;&lt;P&gt;         CALL SCREEN 1002.&lt;/P&gt;&lt;P&gt;     ELSEIF l_field = 'TEXT2'.. &lt;/P&gt;&lt;P&gt;         CALL SCREEN 1003.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMODULE. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is working.Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Tejaswini Khante&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Mar 2010 04:54:32 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-03-10T04:54:32Z</dc:date>
    <item>
      <title>Double click in module pool program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/double-click-in-module-pool-program/m-p/6711742#M1453901</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 set respond to double click to 4 text elements in a screen. I have also give the PICK for F2 in GUI. Now I want to call 4 different screens on clicking those text elements. But how to call different screens. I have done&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CASE sy-ucomm.
 WHEN 'PICK'.
  IF screen-name = 'T1'.
   CALL SCREEN 1000.
  ELSEIF screen-name = 'T2'.
   CALL SCREEN 1001.
  ENDIF.
ENDCASE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which is not working. Please help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dev.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Mar 2010 04:15:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/double-click-in-module-pool-program/m-p/6711742#M1453901</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-10T04:15:21Z</dc:date>
    </item>
    <item>
      <title>Re: Double click in module pool program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/double-click-in-module-pool-program/m-p/6711743#M1453902</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;PRE&gt;&lt;CODE&gt;in TOP include declare 
data : fnam type char40, fval type char40.

CASE sy-ucomm.
 WHEN 'PICK'.
GET CURSOR FIELD FNAM VALUE FVAL.
  IF fnam = 'T1'.
" You only get the Screen-Name when you say LOOP AT SCREEN
   CALL SCREEN 1000.
  ELSEIF fnam = 'T2'.
   CALL SCREEN 1001.
  ENDIF.
ENDCASE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheerz&lt;/P&gt;&lt;P&gt;Ram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Mar 2010 04:50:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/double-click-in-module-pool-program/m-p/6711743#M1453902</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-10T04:50:17Z</dc:date>
    </item>
    <item>
      <title>Re: Double click in module pool program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/double-click-in-module-pool-program/m-p/6711744#M1453903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try this .Assign function code to F2 the way you have assigned.Now in PROCESS AFTER INPUT of your screen (On which you have text buttons ), write this code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE user_command_0100 INPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Declare a field of length equal to the name of the text box.Here i have taken two text boxes namely 'TEXT1' and 'TEXT2'.I have declared a local field with length 5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : L_FIELD(5) TYPE C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CASE sy-ucomm. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; WHEN 'PICK'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; GET CURSOR FIELD l_field.&lt;/P&gt;&lt;P&gt;     IF l_field = 'TEXT1'.&lt;/P&gt;&lt;P&gt;         CALL SCREEN 1002.&lt;/P&gt;&lt;P&gt;     ELSEIF l_field = 'TEXT2'.. &lt;/P&gt;&lt;P&gt;         CALL SCREEN 1003.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMODULE. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is working.Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Tejaswini Khante&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Mar 2010 04:54:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/double-click-in-module-pool-program/m-p/6711744#M1453903</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-10T04:54:32Z</dc:date>
    </item>
    <item>
      <title>Re: Double click in module pool program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/double-click-in-module-pool-program/m-p/6711745#M1453904</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;use the GET CURSOR statement.&lt;/P&gt;&lt;P&gt;only then will you get the name of the screen element/field.&lt;/P&gt;&lt;P&gt;and code it in the PAI of the screen in user commmand.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Mar 2010 05:05:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/double-click-in-module-pool-program/m-p/6711745#M1453904</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-10T05:05:30Z</dc:date>
    </item>
    <item>
      <title>Re: Double click in module pool program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/double-click-in-module-pool-program/m-p/6711746#M1453905</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;Follow the below step.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Goto Element List in relevent screen then goto tab Display attr. and tick check box in column as Resp. to DblClk.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Goto GUI then enclolapes the  Function keys and put function code in first position and assign the same in 'Recommended function key setting' for F2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) FLOW LOGIC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;process after input.&lt;/P&gt;&lt;P&gt;module user_command_0100.&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;module user_command_0100 input.&lt;/P&gt;&lt;P&gt;SAVE_OK = OK_CODE.&lt;/P&gt;&lt;P&gt;CLEAR OK_CODE.&lt;/P&gt;&lt;P&gt; case SAVE_OK.&lt;/P&gt;&lt;P&gt;   when 'SELE'.&lt;/P&gt;&lt;P&gt;   GET CURSOR FIELD FLD OFFSET OFF VALUE VAL LENGTH LEN.&lt;/P&gt;&lt;P&gt;   if fld eq 'IT_PORELI-LIN'.&lt;/P&gt;&lt;P&gt;       set pf-status 'POCON' immediately.&lt;/P&gt;&lt;P&gt;       set titlebar  'PORECV' with sy-uname.&lt;/P&gt;&lt;P&gt;       perform  subscrnew.&lt;/P&gt;&lt;P&gt;        CALL SCREEN 200 STARTING AT 25 10 ENDING AT 140 20.&lt;/P&gt;&lt;P&gt;   endif.&lt;/P&gt;&lt;P&gt;endmodule.                 " user_command_0100  INPUT &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Nehruu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Mar 2010 05:27:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/double-click-in-module-pool-program/m-p/6711746#M1453905</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-03-10T05:27:58Z</dc:date>
    </item>
  </channel>
</rss>

