<?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: Selection screen exit in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-exit/m-p/2541630#M577604</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;DO you have code in the START-OF-SELECTION event block.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any List generating statements like WRITE, ULINE or SKIP etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you show us your code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Jul 2007 10:07:18 GMT</pubDate>
    <dc:creator>seshatalpasai_madala</dc:creator>
    <dc:date>2007-07-11T10:07:18Z</dc:date>
    <item>
      <title>Selection screen exit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-exit/m-p/2541629#M577603</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've created a selection screen with several select-options.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;however after i enter the 'execute' button, the program exit without any warning and return to the main menu.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what've i done wrong here and how to correct it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2007 10:06:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-exit/m-p/2541629#M577603</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-11T10:06:08Z</dc:date>
    </item>
    <item>
      <title>Re: Selection screen exit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-exit/m-p/2541630#M577604</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;DO you have code in the START-OF-SELECTION event block.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any List generating statements like WRITE, ULINE or SKIP etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you show us your code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2007 10:07:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-exit/m-p/2541630#M577604</guid>
      <dc:creator>seshatalpasai_madala</dc:creator>
      <dc:date>2007-07-11T10:07:18Z</dc:date>
    </item>
    <item>
      <title>Re: Selection screen exit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-exit/m-p/2541631#M577605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mr Sesh, here is my code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN BEGIN OF BLOCK frm1 WITH FRAME TITLE text-t01 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS :  sidnum FOR zcustomer-idnumber,&lt;/P&gt;&lt;P&gt;                  sconame FOR zcustomer-contactname,&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN END   OF BLOCK frm1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM zcustomer WHERE ( idnumber IN sidnum    ) and&lt;/P&gt;&lt;P&gt;                                  ( contactname IN sconame ).&lt;/P&gt;&lt;P&gt;    MOVE-CORRESPONDING zcustomer TO tbl_customer.&lt;/P&gt;&lt;P&gt;    APPEND tbl_customer. CLEAR tbl_customer.&lt;/P&gt;&lt;P&gt;ENDSELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at tbl_customer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  itab-idnumber = tbl_customer-idnumber.&lt;/P&gt;&lt;P&gt;  itab-coname   = tbl_customer-contactname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  APPEND itab. CLEAR itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    add 1 TO bil.&lt;/P&gt;&lt;P&gt;    FORMAT COLOR COL_NORMAL INTENSIFIED OFF.&lt;/P&gt;&lt;P&gt;    write:/1(274) sy-uline.&lt;/P&gt;&lt;P&gt;    write:/1 sy-vline ,             2 bil,             7 sy-vline ,&lt;/P&gt;&lt;P&gt;           8 sy-vline,&lt;/P&gt;&lt;P&gt;       22 sy-vline ,          23 itab-idnumber,    39 sy-vline    ,&lt;/P&gt;&lt;P&gt;       40 itab-coname,       70 sy-vline    ,     71 sy-vline ,&lt;/P&gt;&lt;P&gt;           119 sy-vline    ,     120 sy-vline ,    134 sy-vline,&lt;/P&gt;&lt;P&gt;           135 sy-vline ,  159 sy-vline,&lt;/P&gt;&lt;P&gt;           160 sy-vline , 170 sy-vline,&lt;/P&gt;&lt;P&gt;           171 sy-vline ,     195 sy-vline,&lt;/P&gt;&lt;P&gt;           196 sy-vline ,     206 sy-vline,&lt;/P&gt;&lt;P&gt;           207 sy-vline , 236 sy-vline,&lt;/P&gt;&lt;P&gt;           237 sy-vline , 255 sy-vline,&lt;/P&gt;&lt;P&gt;           256 sy-vline ,&lt;/P&gt;&lt;P&gt;           274 sy-vline.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;write:/1(274) sy-uline.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TOP-OF-PAGE.&lt;/P&gt;&lt;P&gt;  SKIP 2.&lt;/P&gt;&lt;P&gt;    WRITE:/1(206) 'SENARAI FAIL PERMOHONAN LESEN PERNIAGAAN' CENTERED.&lt;/P&gt;&lt;P&gt;  SKIP 1.&lt;/P&gt;&lt;P&gt;  WRITE:/1(274) sy-uline.&lt;/P&gt;&lt;P&gt;  FORMAT COLOR COL_HEADING.&lt;/P&gt;&lt;P&gt;  WRITE:/1 sy-vline ,              2 'Bil' ,           7 sy-vline ,&lt;/P&gt;&lt;P&gt;         8(15) 'XXXXXX' CENTERED,                     22 sy-vline ,&lt;/P&gt;&lt;P&gt;        23(12) 'XXXXX' CENTERED,                       39 sy-vline ,&lt;/P&gt;&lt;P&gt;        40(30) 'XXXXXXXXXXXXXXXXXXXXXX' CENTERED,       70 sy-vline ,&lt;/P&gt;&lt;P&gt;        71(48) 'XXXXXXXXXXXXX' CENTERED,               119 sy-vline ,&lt;/P&gt;&lt;P&gt;       120(14) 'XXXXXX' CENTERED,                  134 sy-vline,&lt;/P&gt;&lt;P&gt;       135(24) 'XXXXX' CENTERED,            159 sy-vline,&lt;/P&gt;&lt;P&gt;       160(10) 'XXXXX' CENTERED,                  170 sy-vline,&lt;/P&gt;&lt;P&gt;       171(24) 'XXXXX' CENTERED,                      195 sy-vline,&lt;/P&gt;&lt;P&gt;       196(10) 'XXXXX' CENTERED,                      206 sy-vline,&lt;/P&gt;&lt;P&gt;       207(29) 'XXXXX' CENTERED,               236 sy-vline,&lt;/P&gt;&lt;P&gt;       237(18) 'XXXXX' CENTERED,           255 sy-vline,&lt;/P&gt;&lt;P&gt;       256(18) 'XXXXX' CENTERED,          274 sy-vline.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  FORMAT COLOR OFF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2007 10:16:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-exit/m-p/2541631#M577605</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-11T10:16:16Z</dc:date>
    </item>
    <item>
      <title>Re: Selection screen exit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-exit/m-p/2541632#M577606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;insert "START-OF-SELECTION." or "END-OF-SELECTION." between "SELECTION-SCREEN END..." and "SELECT * FROM..."&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jul 2007 10:56:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-exit/m-p/2541632#M577606</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-11T10:56:16Z</dc:date>
    </item>
    <item>
      <title>Re: Selection screen exit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-exit/m-p/2541633#M577607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry still cannot solve the problem. no matter where i put start-of-selection and end-of-selection, the program keeps exiting to the main menu after i execute. Any other help please, experts?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2007 10:01:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-exit/m-p/2541633#M577607</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-12T10:01:27Z</dc:date>
    </item>
    <item>
      <title>Re: Selection screen exit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-exit/m-p/2541634#M577608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try the following... comment out all your code and replace it with (temporarily):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
report zlocal_jc_pf_status.

tables:
  sscrfields.           "Fields on selection screens

parameters:
  p_test                type checkbox default 'X'.

at selection-screen output.
  perform message.

at selection-screen.
  perform message.

start-of-selection.
  perform message.

*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  message
*&amp;amp;---------------------------------------------------------------------*
form message.

  break-point.
  message i398(00) with 'PF-KEY' sy-pfkey 'UCOMM:' sy-ucomm.
  break-point.
  message i398(00) with 'SCCRFIELDS-UCOMM' sscrfields-ucomm space space.

endform.                    "message&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you run it, step through the breaks and display SY-PFKEY and SY-UCOMM and SCCRFIELDS-UCOMM at each stage... what do you see... are you getting something like "%_00" for SY-PFKEY and "ONLI" when you execute, or something else?...  To get the behaviour you are describing, it seems that the "execute" is causing the code to exit instead of run, and the PF-STATUS seems the most likely culprit.  You could try creating a brand new report program, and pasting your existing code across there to test this too.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2007 05:51:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-exit/m-p/2541634#M577608</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-13T05:51:17Z</dc:date>
    </item>
    <item>
      <title>Re: Selection screen exit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-exit/m-p/2541635#M577609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mr Coleman,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've replace the code as u suggested for testing. The result :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; SY-PFKEY -&amp;gt; %-CS&lt;/P&gt;&lt;P&gt;SY-UCOMM -&amp;gt; CRET&lt;/P&gt;&lt;P&gt;SSCRFIELDS-UCOMM -&amp;gt;CRET&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What does that mean? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also have created new report and pasted the code at the new report but the result remains the same. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I didnt put any PF-STATUS in my program. therefore how it can be the problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2007 09:49:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-exit/m-p/2541635#M577609</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-13T09:49:48Z</dc:date>
    </item>
    <item>
      <title>Re: Selection screen exit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-exit/m-p/2541636#M577610</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;What are the attributes of your program? &amp;lt;i&amp;gt;Goto - Attributes&amp;lt;/i&amp;gt; from The Editor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have seen similar problems where the program is defined as a Module Pool (type M), when it should be an executable (type 1)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2007 09:59:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-exit/m-p/2541636#M577610</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-13T09:59:41Z</dc:date>
    </item>
    <item>
      <title>Re: Selection screen exit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-exit/m-p/2541637#M577611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you running this from SE38, or a transaction code? - I saw something similar quite recently once where the transaction code that called the report had been set up wrongly, so I deleted it and recreated the transaction code correctly and all was good.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2007 23:56:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-exit/m-p/2541637#M577611</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-13T23:56:38Z</dc:date>
    </item>
    <item>
      <title>Re: Selection screen exit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-exit/m-p/2541638#M577612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Mr Coleman for the suggestion. It solve the problem. I think the previous trans code was wrongly created where I maybe select the wrong select object during creation. For the second trans code, I selected 'program and selection screen (report transaction)' and right now the program can execute correctly. I've awarded points to u. thanks again&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jul 2007 02:08:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/selection-screen-exit/m-p/2541638#M577612</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-16T02:08:48Z</dc:date>
    </item>
  </channel>
</rss>

