<?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: Problem at Selection-screen in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-at-selection-screen/m-p/5175210#M1198174</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shiva,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    First check if the ALV is bound or not. IF it is bound then you will have to refresh the table display otherwise display the complete ALV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your problem you are displaying a new ALV again and again so a new object is being creating again and again.  So refreshing the ALV will solve your issue instead of displaying again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If alvgrid is not initial.&lt;/P&gt;&lt;P&gt;Call method SET_TABLE_FOR_FIRST_DISPLAY,&lt;/P&gt;&lt;P&gt;Else.&lt;/P&gt;&lt;P&gt;Write another method REFRESH_TABLE_DISPLAY.&lt;/P&gt;&lt;P&gt;Endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Komal&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Komal Prakashlal Lakhwani on Feb 26, 2009 7:07 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Feb 2009 13:35:35 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-02-26T13:35:35Z</dc:date>
    <item>
      <title>Problem at Selection-screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-at-selection-screen/m-p/5175207#M1198171</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;P&gt;I generated a Report program, which displays output in ALV Grid format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The logic works fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, when I click 'ENTER'  at selection-screen with all necessary data, the report is getting executed and ALV output is displayed.&lt;/P&gt;&lt;P&gt;I come back and again press 'ENTER' , the report is getting executed again and ALV output is displayed twice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This continues as many times I press 'ENTER' on the selection-screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What should I do to avoid this problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, &lt;/P&gt;&lt;P&gt;Shivaa......&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Feb 2009 13:25:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-at-selection-screen/m-p/5175207#M1198171</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-26T13:25:33Z</dc:date>
    </item>
    <item>
      <title>Re: Problem at Selection-screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-at-selection-screen/m-p/5175208#M1198172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Put break-point on selection screen.Check the SY-UCOMM's value when you press enter.&lt;/P&gt;&lt;P&gt;Value of Sy-ucomm should be always space.If its ONLI  there is some program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If its Sy-ucomm = space use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use  the codes to block ENTER.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TABLES:
  spfli,sscrfields.

SELECT-OPTIONS:
    s_carrid FOR spfli-carrid.

AT SELECTION-SCREEN.

  IF s_carrid IS INITIAL.
    CLEAR sscrfields-ucomm.
    MESSAGE 'ENTER A VALUE' TYPE 'E'.
  ENDIF.
  CHECK sscrfields-ucomm = 'ONLI'.

START-OF-SELECTION.

  WRITE:/ s_carrid-low.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ESLEIF &lt;STRONG&gt;ONLI&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;check FCODE assignment .&lt;/P&gt;&lt;P&gt;&amp;lt;If not working paste selection screen codes&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Gurpreet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Feb 2009 13:33:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-at-selection-screen/m-p/5175208#M1198172</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-26T13:33:17Z</dc:date>
    </item>
    <item>
      <title>Re: Problem at Selection-screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-at-selection-screen/m-p/5175209#M1198173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Shiva&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After the FM or CALL SCREEN statement, write LEAVE LIST-PROCESSING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pushpraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Feb 2009 13:34:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-at-selection-screen/m-p/5175209#M1198173</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-26T13:34:03Z</dc:date>
    </item>
    <item>
      <title>Re: Problem at Selection-screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-at-selection-screen/m-p/5175210#M1198174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shiva,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    First check if the ALV is bound or not. IF it is bound then you will have to refresh the table display otherwise display the complete ALV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your problem you are displaying a new ALV again and again so a new object is being creating again and again.  So refreshing the ALV will solve your issue instead of displaying again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If alvgrid is not initial.&lt;/P&gt;&lt;P&gt;Call method SET_TABLE_FOR_FIRST_DISPLAY,&lt;/P&gt;&lt;P&gt;Else.&lt;/P&gt;&lt;P&gt;Write another method REFRESH_TABLE_DISPLAY.&lt;/P&gt;&lt;P&gt;Endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Komal&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Komal Prakashlal Lakhwani on Feb 26, 2009 7:07 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Feb 2009 13:35:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-at-selection-screen/m-p/5175210#M1198174</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-26T13:35:35Z</dc:date>
    </item>
    <item>
      <title>Re: Problem at Selection-screen</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-at-selection-screen/m-p/5175211#M1198175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;make sure you use the start of selection event as well...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Feb 2009 13:45:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-at-selection-screen/m-p/5175211#M1198175</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2009-02-26T13:45:27Z</dc:date>
    </item>
  </channel>
</rss>

