<?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: get cursor on subscreen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-cursor-on-subscreen/m-p/10325253#M1835878</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Answer to 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope you did not declare the function code associated to double-click as an exit function code, and that the module which manage the function code is not executed before the call subscreen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;process after input.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; module pai1 at exit-command.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; call subscreen sub1.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; call subscreen sub2.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; module pai2. &lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Same logic (without user command management) in embedded subscreens.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Answer to 2 has already been provided by &lt;SPAN class="j-post-author"&gt;&lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" data-avatarid="1098" data-externalid="" data-presence="null" data-userid="245495" data-username="sharath.yaralkattimath" href="https://answers.sap.com/people/sharath.yaralkattimath"&gt;Sharath&lt;/A&gt;&lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" data-avatarid="1098" data-externalid="" data-presence="null" data-userid="245495" data-username="sharath.yaralkattimath" href="https://answers.sap.com/people/sharath.yaralkattimath"&gt; &lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Jun 2014 13:11:31 GMT</pubDate>
    <dc:creator>RaymondGiuseppi</dc:creator>
    <dc:date>2014-06-06T13:11:31Z</dc:date>
    <item>
      <title>get cursor on subscreen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-cursor-on-subscreen/m-p/10325249#M1835874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;I have a question re subscreen processing.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;I have a variable 'PICK' in GUI status of mainscreen(0100) to trap for double click or F2.&lt;/P&gt;
&lt;P&gt;I do a GET CURSOR and process the value for the main screen correctly.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;This same idea does not seem to work (i.e. The get cursor part does not give me the field value and fieldname ) from the subscreen.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;Any Ideas how to get this for the subscreen?&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Note that the attributes field, responds to double click is checked for both main and subscreen.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;(Code below)&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Thanks Tony&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;MODULE user_command_0100 INPUT.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;DATA: lv_field TYPE fieldname, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lv_value(10) TYPE c.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;CASE gv_ok_code. &lt;/P&gt;
&lt;P&gt;WHEN: 'BACK' OR 'EXIT' OR 'CANC'. &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SET SCREEN 0.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;WHEN 'PICK'. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;GET CURSOR FIELD lv_field VALUE lv_value. &lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CASE lv_field.&amp;nbsp; *&lt;/P&gt;
&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *These fields are on the mainscreen and the get cursor work OK&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHEN: 'GV_KUNNR1' OR 'GV_KUNNR2'. &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SET PARAMETER ID 'BUK' FIELD gv_bukrs. &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SET PARAMETER ID 'KUN' FIELD lv_value. &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CALL TRANSACTION 'X' AND SKIP FIRST SCREEN.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *These fields are on the subscreen and the get cursor DOES NOT work OK&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHEN: 'GV_KUNNR1_LSTNR' OR 'GV_KUNNR2_LSTNR'. &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SET PARAMETER ID 'BUK' FIELD gv_bukrs. &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SET PARAMETER ID '/APFSS/LSTNR' FIELD lv_value. &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CALL TRANSACTION 'Y' AND SKIP FIRST SCREEN. &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ENDCASE.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;ENDCASE.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;ENDMODULE.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; " USER_COMMAND_0100&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jun 2014 12:13:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-cursor-on-subscreen/m-p/10325249#M1835874</guid>
      <dc:creator>former_member223118</dc:creator>
      <dc:date>2014-06-04T12:13:58Z</dc:date>
    </item>
    <item>
      <title>Re: get cursor on subscreen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-cursor-on-subscreen/m-p/10325250#M1835875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tony,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use GET CURSOR in the PAI of the subscreen &amp;amp; assign it to a global variable.&lt;/P&gt;&lt;P&gt;Then in the PAI i.e. &lt;SPAN style="color: #000000; font-family: monospace;"&gt;USER_COMMAND_0100&lt;/SPAN&gt; module you can read the variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sharath&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jun 2014 14:20:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-cursor-on-subscreen/m-p/10325250#M1835875</guid>
      <dc:creator>SharathYaralkattimath</dc:creator>
      <dc:date>2014-06-04T14:20:17Z</dc:date>
    </item>
    <item>
      <title>Re: get cursor on subscreen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-cursor-on-subscreen/m-p/10325251#M1835876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also dont hesitate to check sy-subrc, here if cursor is not in current screen, you got a sy-subrc = 4 after this statement...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jun 2014 14:39:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-cursor-on-subscreen/m-p/10325251#M1835876</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2014-06-04T14:39:14Z</dc:date>
    </item>
    <item>
      <title>Re: get cursor on subscreen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-cursor-on-subscreen/m-p/10325252#M1835877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your prompt replies guys, but neither solution has worked, perhaps because I have tabs on my subscreens, see below. Get back to me if you have any other good ideas or need further info.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Tony&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/467616" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jun 2014 16:42:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-cursor-on-subscreen/m-p/10325252#M1835877</guid>
      <dc:creator>former_member223118</dc:creator>
      <dc:date>2014-06-04T16:42:29Z</dc:date>
    </item>
    <item>
      <title>Re: get cursor on subscreen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-cursor-on-subscreen/m-p/10325253#M1835878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Answer to 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope you did not declare the function code associated to double-click as an exit function code, and that the module which manage the function code is not executed before the call subscreen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;process after input.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; module pai1 at exit-command.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; call subscreen sub1.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; call subscreen sub2.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; module pai2. &lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Same logic (without user command management) in embedded subscreens.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Answer to 2 has already been provided by &lt;SPAN class="j-post-author"&gt;&lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" data-avatarid="1098" data-externalid="" data-presence="null" data-userid="245495" data-username="sharath.yaralkattimath" href="https://answers.sap.com/people/sharath.yaralkattimath"&gt;Sharath&lt;/A&gt;&lt;A _jive_internal="true" class="jiveTT-hover-user jive-username-link" data-avatarid="1098" data-externalid="" data-presence="null" data-userid="245495" data-username="sharath.yaralkattimath" href="https://answers.sap.com/people/sharath.yaralkattimath"&gt; &lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2014 13:11:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-cursor-on-subscreen/m-p/10325253#M1835878</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2014-06-06T13:11:31Z</dc:date>
    </item>
    <item>
      <title>Re: get cursor on subscreen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-cursor-on-subscreen/m-p/10325254#M1835879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the FIELD must be globally defined...and not local.&lt;/P&gt;&lt;P&gt;Can you check that the field defined is in the top include or in a global include of your module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2014 13:30:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-cursor-on-subscreen/m-p/10325254#M1835879</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-06-06T13:30:01Z</dc:date>
    </item>
    <item>
      <title>Re: get cursor on subscreen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-cursor-on-subscreen/m-p/10325255#M1835880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for all your replies, but I had all your suggested points covered. In the end I just attached a button adjacent to the field with an sy-ucomm assigned to it, and checked for that in the PAI of main screen. Best Regards Tony&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2014 09:28:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-cursor-on-subscreen/m-p/10325255#M1835880</guid>
      <dc:creator>former_member223118</dc:creator>
      <dc:date>2014-06-23T09:28:59Z</dc:date>
    </item>
    <item>
      <title>Re: get cursor on subscreen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-cursor-on-subscreen/m-p/10325256#M1835881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please close this thread &amp;amp; mark it as answered.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2014 09:33:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-cursor-on-subscreen/m-p/10325256#M1835881</guid>
      <dc:creator>SharathYaralkattimath</dc:creator>
      <dc:date>2014-06-23T09:33:36Z</dc:date>
    </item>
  </channel>
</rss>

