<?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 New Selection-Screen via Button? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/new-selection-screen-via-button/m-p/6360886#M1400407</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi SDN community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need your help:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a dynpro with a button. Clicking this button, I want to display a new screen with many "SELECT-OPTIONS", but I don't want to create the "SELECT-OPTIONS" via ScreenPainter, I want to generate them via e.g.:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT-OPTIONS : s_matnr FOR mara-matnr.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any possibility to do this? I have already tried this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Process After Input on the StartScreen clicking the button:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PERFORM selection_screen.

FORM selection_screen.

  SELECT-OPTIONS : s_matnr FOR mara-matnr.

ENDFORM.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it doesnt work, SELECT-OPTIONS may not be local or something =/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You know whats my point? I wanna generate a new Selection-Screen by using &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT-OPTIONS : s_matnr FOR mara-matnr.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; and not by using the ScreenPainter...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: I also tried to generate the SelectionScreen by writing &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT-OPTIONS : s_matnr FOR mara-matnr.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; directly into the PAI, but then, this SelectionScreen is displayed immediately after I execute the program and this overrides the StartScreen with the button =[&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help, hope you got my points &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marius Klaus&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Marius Klaus on Dec 2, 2009 12:34 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Marius Klaus on Dec 2, 2009 12:35 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Dec 2009 11:33:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-12-02T11:33:56Z</dc:date>
    <item>
      <title>New Selection-Screen via Button?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/new-selection-screen-via-button/m-p/6360886#M1400407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi SDN community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need your help:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a dynpro with a button. Clicking this button, I want to display a new screen with many "SELECT-OPTIONS", but I don't want to create the "SELECT-OPTIONS" via ScreenPainter, I want to generate them via e.g.:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT-OPTIONS : s_matnr FOR mara-matnr.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any possibility to do this? I have already tried this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Process After Input on the StartScreen clicking the button:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PERFORM selection_screen.

FORM selection_screen.

  SELECT-OPTIONS : s_matnr FOR mara-matnr.

ENDFORM.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it doesnt work, SELECT-OPTIONS may not be local or something =/&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You know whats my point? I wanna generate a new Selection-Screen by using &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT-OPTIONS : s_matnr FOR mara-matnr.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; and not by using the ScreenPainter...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: I also tried to generate the SelectionScreen by writing &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT-OPTIONS : s_matnr FOR mara-matnr.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; directly into the PAI, but then, this SelectionScreen is displayed immediately after I execute the program and this overrides the StartScreen with the button =[&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help, hope you got my points &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marius Klaus&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Marius Klaus on Dec 2, 2009 12:34 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Marius Klaus on Dec 2, 2009 12:35 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Dec 2009 11:33:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/new-selection-screen-via-button/m-p/6360886#M1400407</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-02T11:33:56Z</dc:date>
    </item>
    <item>
      <title>Re: New Selection-Screen via Button?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/new-selection-screen-via-button/m-p/6360887#M1400408</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;Try it like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECTION-SCREEN BEGIN OF SCREEN 1111. 
  SELECTION-SCREEN BEGIN OF BLOCK BL1. 
    SELECT-OPTIONS SEL0 FOR SY-REPID. 
    PARAMETERS     PAR0. 
  SELECTION-SCREEN END  OF  BLOCK BL1. 
  SELECT-OPTIONS SEL1 FOR SY-REPID. 
  PARAMETERS     PAR1. 
  SELECTION-SCREEN PUSHBUTTON /10(30) PUBU USER-COMMAND US03. 
SELECTION-SCREEN END OF SCREEN 1111.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And when the user presses the button:&lt;/P&gt;&lt;P&gt;IF sy-ucomm = 'BUTTONPRESS'.&lt;/P&gt;&lt;P&gt;  CALL SCREEN 1111.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's untested, but hopefully will work...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Tamá&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Dec 2009 11:41:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/new-selection-screen-via-button/m-p/6360887#M1400408</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-02T11:41:32Z</dc:date>
    </item>
    <item>
      <title>Re: New Selection-Screen via Button?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/new-selection-screen-via-button/m-p/6360888#M1400409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dont think just by declaring a select-options will generate a new selection screen as in a normal report in a module pool program. You may have to use CALL SELECTION-SCREEN or SUBMIT to a normal report with the selection screen you require.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vikranth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Dec 2009 11:41:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/new-selection-screen-via-button/m-p/6360888#M1400409</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-02T11:41:45Z</dc:date>
    </item>
    <item>
      <title>Re: New Selection-Screen via Button?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/new-selection-screen-via-button/m-p/6360889#M1400410</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;Tamas code will work, except that use call-selection screen instead of call screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
IF sy-ucomm = 'BUTTONPRESS'.
CALL SELECTION-SCREEN 1111.
ENDIF.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Dec 2009 11:44:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/new-selection-screen-via-button/m-p/6360889#M1400410</guid>
      <dc:creator>former_member217544</dc:creator>
      <dc:date>2009-12-02T11:44:44Z</dc:date>
    </item>
    <item>
      <title>Re: New Selection-Screen via Button?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/new-selection-screen-via-button/m-p/6360890#M1400411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you all very much, you're so great !!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Dec 2009 11:51:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/new-selection-screen-via-button/m-p/6360890#M1400411</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-02T11:51:48Z</dc:date>
    </item>
    <item>
      <title>Re: New Selection-Screen via Button?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/new-selection-screen-via-button/m-p/6360891#M1400412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank You very much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Feb 2011 14:49:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/new-selection-screen-via-button/m-p/6360891#M1400412</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-10T14:49:58Z</dc:date>
    </item>
    <item>
      <title>Re: New Selection-Screen via Button?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/new-selection-screen-via-button/m-p/6360892#M1400413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I made a post some time ago with many screen examples, including this one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check it out here: &lt;A href="http://www.abapzombie.blog.br/codigos-exemplo/2011/01/05/abap-zombie-screen-examples-a-tela-de-selecao-turbo/" target="test_blank"&gt;http://www.abapzombie.blog.br/codigos-exemplo/2011/01/05/abap-zombie-screen-examples-a-tela-de-selecao-turbo/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It has many other examples. Hope it helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Feb 2011 16:05:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/new-selection-screen-via-button/m-p/6360892#M1400413</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-10T16:05:29Z</dc:date>
    </item>
  </channel>
</rss>

