<?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: Select-options inside a Dynpro in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-inside-a-dynpro/m-p/929122#M60485</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Cesar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't think you can do that. When you define your selection screen with select-options, system generates the screen 1000 automatically for and all the buttons, and the range from and to are also automatically defined based on your definition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to do something like that, you need to look at the screen design of any report that has select-options and see the screen flow logic for the push buttons. I don't think there is any straight forward way to do this. Alternatively you can try defining a selection-screen in your program and calling it from your dynpro in a subscreen. Here is how.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your main program(say ZTEST), you define a selection screen having the select-options you want as follows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TABLES: t001.

SELECTION-SCREEN BEGIN OF SCREEN 100 AS SUBSCREEN.
SELECT-OPTIONS: s_bukrs FOR t001-bukrs.
SELECTION-SCREEN: END OF SCREEN 100.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After that in your dynpro, you need to define a subscreen area(say SUB). In your flow logic, you need to call the subscreen defined above as follows.&lt;/P&gt;&lt;P&gt;PROCESS BEFORE OUTPUT.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MODULE STATUS_0200.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL SUBSCREEN sub&lt;/P&gt;&lt;P&gt;       INCLUDING 'ZTEST' '100'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS AFTER INPUT.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MODULE USER_COMMAND_0200.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL SUBSCREEN sub.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After that you are good to go.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this helps, please reward and close.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Jan 2005 20:53:57 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-01-20T20:53:57Z</dc:date>
    <item>
      <title>Select-options inside a Dynpro</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-inside-a-dynpro/m-p/929119#M60482</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;       How can a I do to put a field that seems like a select-options, but inside a dynpro.&lt;/P&gt;&lt;P&gt;I have the field: R_RANGE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In dynpro it should appear &lt;/P&gt;&lt;P&gt;       r_range-low [ ] r_range-high [ ]&lt;/P&gt;&lt;P&gt; and also the buttom of multiple value.&lt;/P&gt;&lt;P&gt;     &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jan 2005 20:07:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-inside-a-dynpro/m-p/929119#M60482</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-01-20T20:07:23Z</dc:date>
    </item>
    <item>
      <title>Re: Select-options inside a Dynpro</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-inside-a-dynpro/m-p/929120#M60483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Couple ways to do this. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) you can build the screen yourself and use a FM to handle the "multiple selections" functionality &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;2) you can embed a selection screen inside of a subscreen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a sample program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;report zrich_0006 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables: mara.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Custom Selection Screen 1010&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;selection-screen begin of screen 1010 as subscreen.&lt;/P&gt;&lt;P&gt;selection-screen begin of block b1 with frame title text-001.&lt;/P&gt;&lt;P&gt;parameters: p_rad1 radiobutton group grp1 default 'X',&lt;/P&gt;&lt;P&gt;            p_rad2 radiobutton group grp1,&lt;/P&gt;&lt;P&gt;            p_rad3 radiobutton group grp1.&lt;/P&gt;&lt;P&gt;select-options: s_matnr for  mara-matnr,&lt;/P&gt;&lt;P&gt;                s_matkl for  mara-matkl,&lt;/P&gt;&lt;P&gt;                s_mtart for  mara-mtart.&lt;/P&gt;&lt;P&gt;selection-screen end of block b1.&lt;/P&gt;&lt;P&gt;selection-screen end of screen 1010.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  call screen 100.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Module  STATUS_0100  OUTPUT&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;module status_0100 output.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; SET PF-STATUS 'xxxxxxxx'.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; SET TITLEBAR 'xxx'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endmodule.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Module  USER_COMMAND_0100  INPUT&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;module user_command_0100 input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endmodule.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; Screen screen 100 with a subscreen area &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; called "subscreen_1010"&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; Screen Flow Logic follows&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;process before output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  module status_0100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  call subscreen subscreen_1010 &lt;/P&gt;&lt;P&gt;                 including sy-repid '1010'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;process after input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  call subscreen subscreen_1010 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  module user_command_0100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Rich Heilman&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jan 2005 20:19:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-inside-a-dynpro/m-p/929120#M60483</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-01-20T20:19:56Z</dc:date>
    </item>
    <item>
      <title>Re: Select-options inside a Dynpro</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-inside-a-dynpro/m-p/929121#M60484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think you can do that without some pogramming. You have to create PF-Status just like report selection screen. Then you have to program it for value request.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jan 2005 20:25:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-inside-a-dynpro/m-p/929121#M60484</guid>
      <dc:creator>nablan_umar</dc:creator>
      <dc:date>2005-01-20T20:25:13Z</dc:date>
    </item>
    <item>
      <title>Re: Select-options inside a Dynpro</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-inside-a-dynpro/m-p/929122#M60485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Cesar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't think you can do that. When you define your selection screen with select-options, system generates the screen 1000 automatically for and all the buttons, and the range from and to are also automatically defined based on your definition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to do something like that, you need to look at the screen design of any report that has select-options and see the screen flow logic for the push buttons. I don't think there is any straight forward way to do this. Alternatively you can try defining a selection-screen in your program and calling it from your dynpro in a subscreen. Here is how.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your main program(say ZTEST), you define a selection screen having the select-options you want as follows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TABLES: t001.

SELECTION-SCREEN BEGIN OF SCREEN 100 AS SUBSCREEN.
SELECT-OPTIONS: s_bukrs FOR t001-bukrs.
SELECTION-SCREEN: END OF SCREEN 100.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After that in your dynpro, you need to define a subscreen area(say SUB). In your flow logic, you need to call the subscreen defined above as follows.&lt;/P&gt;&lt;P&gt;PROCESS BEFORE OUTPUT.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MODULE STATUS_0200.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL SUBSCREEN sub&lt;/P&gt;&lt;P&gt;       INCLUDING 'ZTEST' '100'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS AFTER INPUT.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MODULE USER_COMMAND_0200.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL SUBSCREEN sub.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After that you are good to go.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this helps, please reward and close.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jan 2005 20:53:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-inside-a-dynpro/m-p/929122#M60485</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-01-20T20:53:57Z</dc:date>
    </item>
    <item>
      <title>Re: Select-options inside a Dynpro</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-inside-a-dynpro/m-p/929123#M60486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Cesar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I agree completely with Srinivas. The best option is to call a selection-screen as a subscreen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It takes less time and effort to do that then to program a select-options behaviour in a normal screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do not know your complete requirement, but if you do not have elements like a table-control on this particular screen, you can directly &amp;lt;i&amp;gt;call&amp;lt;/i&amp;gt; this selection screen - there's no need to call it as a &amp;lt;i&amp;gt;subscreen&amp;lt;/i&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All the best,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anand Mandalika.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jan 2005 05:26:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-inside-a-dynpro/m-p/929123#M60486</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-01-21T05:26:27Z</dc:date>
    </item>
  </channel>
</rss>

