<?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 Selection screen scenario in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-scenario/m-p/3249021#M775658</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is my scenario....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have  a parameter p1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then i have a selection screen block&lt;/P&gt;&lt;P&gt;with a checkbox c1 and a parameter p2 in it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the requirement is ......when i select the checkbox,&lt;/P&gt;&lt;P&gt;the cursor has to be placed in the parameter p2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;by default the parameter is placed in p1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please run the code i have written.&lt;/P&gt;&lt;P&gt;i ran my code and selected the checkbox......nothing happened... &lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;however, when i clicked on the 'execute ' button  the cursor did get placed in parameter p2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my requirement is ..the cursor has to be placed in p2 the moment i select the checkbox c1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please let me know where i am wrong...&lt;/P&gt;&lt;P&gt; thanking u all in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hari Kiran&lt;/P&gt;&lt;P&gt;here is the code i wrote.......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;code&lt;/P&gt;&lt;P&gt;*****&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  ZSELESCREEN     .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETER: P1(10) MODIF ID SC1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.&lt;/P&gt;&lt;P&gt;PARAMETERS: C1 AS CHECKBOX MODIF ID SC2,&lt;/P&gt;&lt;P&gt;                        P2(10) MODIF ID SC2.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK B1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt; IF SCREEN-GROUP1 ='SC2'.&lt;/P&gt;&lt;P&gt;   IF C1 = 'X'.&lt;/P&gt;&lt;P&gt;  SET CURSOR FIELD 'P2' .&lt;/P&gt;&lt;P&gt;   ENDIF.&lt;/P&gt;&lt;P&gt; ENDIF.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Jan 2008 17:56:00 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-04T17:56:00Z</dc:date>
    <item>
      <title>Selection screen scenario</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-scenario/m-p/3249021#M775658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is my scenario....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have  a parameter p1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then i have a selection screen block&lt;/P&gt;&lt;P&gt;with a checkbox c1 and a parameter p2 in it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the requirement is ......when i select the checkbox,&lt;/P&gt;&lt;P&gt;the cursor has to be placed in the parameter p2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;by default the parameter is placed in p1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please run the code i have written.&lt;/P&gt;&lt;P&gt;i ran my code and selected the checkbox......nothing happened... &lt;SPAN __jive_emoticon_name="sad"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;however, when i clicked on the 'execute ' button  the cursor did get placed in parameter p2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my requirement is ..the cursor has to be placed in p2 the moment i select the checkbox c1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please let me know where i am wrong...&lt;/P&gt;&lt;P&gt; thanking u all in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hari Kiran&lt;/P&gt;&lt;P&gt;here is the code i wrote.......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;code&lt;/P&gt;&lt;P&gt;*****&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  ZSELESCREEN     .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETER: P1(10) MODIF ID SC1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;selection-screen BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.&lt;/P&gt;&lt;P&gt;PARAMETERS: C1 AS CHECKBOX MODIF ID SC2,&lt;/P&gt;&lt;P&gt;                        P2(10) MODIF ID SC2.&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END OF BLOCK B1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT SCREEN.&lt;/P&gt;&lt;P&gt; IF SCREEN-GROUP1 ='SC2'.&lt;/P&gt;&lt;P&gt;   IF C1 = 'X'.&lt;/P&gt;&lt;P&gt;  SET CURSOR FIELD 'P2' .&lt;/P&gt;&lt;P&gt;   ENDIF.&lt;/P&gt;&lt;P&gt; ENDIF.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jan 2008 17:56:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-scenario/m-p/3249021#M775658</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-04T17:56:00Z</dc:date>
    </item>
    <item>
      <title>Re: Selection screen scenario</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-scenario/m-p/3249022#M775659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;change your parameter C1 declaration&lt;/P&gt;&lt;P&gt;from&lt;/P&gt;&lt;P&gt;&amp;gt;PARAMETERS: C1 AS CHECKBOX MODIF ID SC2,&lt;/P&gt;&lt;P&gt;to&lt;/P&gt;&lt;P&gt;&amp;gt;PARAMETERS: c1 AS CHECKBOX USER-COMMAND aaa,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bye,&lt;/P&gt;&lt;P&gt;marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jan 2008 18:02:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-scenario/m-p/3249022#M775659</guid>
      <dc:creator>mnicolai_77</dc:creator>
      <dc:date>2008-01-04T18:02:19Z</dc:date>
    </item>
    <item>
      <title>Re: Selection screen scenario</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-scenario/m-p/3249023#M775660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hari,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to trigger PAI for calling the selection screen again to take advantage of AT SELECTION-SCREEN OUTPUT event (PBO of selection screen). This is done here by adding a function code to the checkbox which triggers PAI whenever it is checked or unchecked. After the PAI, selection screen is called again and in the PBO of selection screen, the cursor is set in P2. See below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PARAMETER: P1(10)." MODIF ID SC1.

selection-screen BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
PARAMETERS: C1 AS CHECKBOX USER-COMMAND COM1,
            P2(10)." MODIF ID SC2.
SELECTION-SCREEN END OF BLOCK B1.

AT SELECTION-SCREEN OUTPUT.
  IF C1 eq 'X'.
    SET CURSOR FIELD 'P2'.
  else.
    SET CURSOR FIELD 'P1'.
  ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This one works, I have checked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sanjeev&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jan 2008 18:38:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-scenario/m-p/3249023#M775660</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-04T18:38:10Z</dc:date>
    </item>
    <item>
      <title>Re: Selection screen scenario</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-scenario/m-p/3249024#M775661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sanjeev,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it worked !!!!&lt;/P&gt;&lt;P&gt;thank u .&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Hari Kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jan 2008 19:42:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-scenario/m-p/3249024#M775661</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-04T19:42:40Z</dc:date>
    </item>
  </channel>
</rss>

