<?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: Reg- Selection screen in Dialog Programing in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-selection-screen-in-dialog-programing/m-p/5725688#M1298971</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="blue" __jive_macro_name="color"&gt;Hi Prabu,

It is possible to achieve what you are looking for in dialog programming.

Steps to get SELECT-OPTIONS in module pool programs.
1. Start one dialog program with SAPZ_TEST.
2. Place the below code in the TOP include of the dialog program.
&lt;PRE&gt;&lt;CODE&gt;TABLES mara.
SELECTION-SCREEN BEGIN OF SCREEN 2100 AS SUBSCREEN.
SELECT-OPTIONS: matnr FOR mara-matnr.
SELECTION-SCREEN END OF SCREEN 2100.&lt;/CODE&gt;&lt;/PRE&gt;
3. Create one screen 2000 .
4. Go to Layout of the screen and Define subscreen area on the screen and Name it as g_subscreen.
5. Place the below code in the Flow logic of the screen.
&lt;PRE&gt;&lt;CODE&gt;PROCESS BEFORE OUTPUT.
  CALL SUBSCREEN g_subscreen INCLUDING 'SAPMZ_TEST' '2100'.

PROCESS AFTER INPUT.
  CALL SUBSCREEN g_subscreen.&lt;/CODE&gt;&lt;/PRE&gt;.
6. Activate all.
7. Create Transaction code for the dialog program SAPZ_TEST.
8. Execute the transaction code. You will see the select-option like we see on Selection-screen.

I hope that you can understand. 
Let me know if you have any problem.

Thanks
Venkat.O
&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Jun 2009 07:45:00 GMT</pubDate>
    <dc:creator>venkat_o</dc:creator>
    <dc:date>2009-06-08T07:45:00Z</dc:date>
    <item>
      <title>Reg- Selection screen in Dialog Programing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-selection-screen-in-dialog-programing/m-p/5725684#M1298967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                  I have developed one Dialog program. In that i have to select profit center like from and to option. Apart from i want to select more profit ceneter also. Now my problem s i designed form,to and more fielsd also. If i enter more filds it s not coming in to from to option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tell any gud function modulr for selectiong from,to and more fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; regards&lt;/P&gt;&lt;P&gt;Prabu K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jun 2009 04:37:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-selection-screen-in-dialog-programing/m-p/5725684#M1298967</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-08T04:37:28Z</dc:date>
    </item>
    <item>
      <title>Re: Reg- Selection screen in Dialog Programing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-selection-screen-in-dialog-programing/m-p/5725685#M1298968</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;In you dialog screen just create 2 input fields. &lt;/P&gt;&lt;P&gt;1. &amp;lt;from field&amp;gt; 2. &amp;lt;to field&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Declare a range for that field type. eg. RANGES: R_RANGE for &amp;lt;field type&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After the values are entered to the input fields. Have this code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If from and to fields are not initial.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;R_RANGE-SIGN = 'I'.&lt;/P&gt;&lt;P&gt;R_RANGE-OPTION = 'BT'.&lt;/P&gt;&lt;P&gt;R_RANGE-LOW = &amp;lt;from field low value&amp;gt;.&lt;/P&gt;&lt;P&gt;R_RANGE-HIGH = &amp;lt;from field high value&amp;gt;.&lt;/P&gt;&lt;P&gt;APPEND R_RANGE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If from value only given.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;R_RANGE-SIGN = 'I'.&lt;/P&gt;&lt;P&gt;R_RANGE-OPTION = 'EQ'.&lt;/P&gt;&lt;P&gt;R_RANGE-LOW = &amp;lt;from field low value&amp;gt;.&lt;/P&gt;&lt;P&gt;R_RANGE-HIGH = SPACE.&lt;/P&gt;&lt;P&gt;APPEND R_RANGE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If to value only given.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;R_RANGE-SIGN = 'I'.&lt;/P&gt;&lt;P&gt;R_RANGE-OPTION = 'BT'.&lt;/P&gt;&lt;P&gt;R_RANGE-LOW = SPACE&lt;/P&gt;&lt;P&gt;R_RANGE-HIGH = &amp;lt;from field high value&amp;gt;.&lt;/P&gt;&lt;P&gt;APPEND.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Smart Varghese&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jun 2009 05:05:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-selection-screen-in-dialog-programing/m-p/5725685#M1298968</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-08T05:05:52Z</dc:date>
    </item>
    <item>
      <title>Re: Reg- Selection screen in Dialog Programing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-selection-screen-in-dialog-programing/m-p/5725686#M1298969</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;  From --  to --- and more filds ..if i click that arrow (More fields) i need put more profit center that case which function module going to use..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jun 2009 05:12:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-selection-screen-in-dialog-programing/m-p/5725686#M1298969</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-08T05:12:20Z</dc:date>
    </item>
    <item>
      <title>Re: Reg- Selection screen in Dialog Programing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-selection-screen-in-dialog-programing/m-p/5725687#M1298970</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;See below report it might help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT selectoptionsrestrict.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Include type pool SSCR&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;TYPE-POOLS sscr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES :&lt;/P&gt;&lt;P&gt;  marc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;defining the selection-screen&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;select-options :&lt;/P&gt;&lt;P&gt;  s_matnr for marc-matnr,&lt;/P&gt;&lt;P&gt;  s_werks for marc-werks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Define the object to be passed to the RESTRICTION parameter&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;DATA restrict TYPE sscr_restrict.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Auxiliary objects for filling RESTRICT&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;DATA : optlist TYPE sscr_opt_list,&lt;/P&gt;&lt;P&gt;           ass type sscr_ass.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INITIALIZATION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Restricting the MATNR selection to only EQ and 'BT'.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  optlist-name = 'OBJECTKEY1'.&lt;/P&gt;&lt;P&gt;  optlist-options-eq = 'X'.&lt;/P&gt;&lt;P&gt;  optlist-options-bt = 'X'.&lt;/P&gt;&lt;P&gt;  APPEND optlist TO restrict-opt_list_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ass-kind = 'S'.&lt;/P&gt;&lt;P&gt;  ass-name = 'S_MATNR'.&lt;/P&gt;&lt;P&gt;  ass-sg_main = 'I'.&lt;/P&gt;&lt;P&gt;  ass-sg_addy = space.&lt;/P&gt;&lt;P&gt;  ass-op_main = 'OBJECTKEY1'.&lt;/P&gt;&lt;P&gt;  APPEND ass TO restrict-ass_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Restricting the WERKS selection to CP, GE, LT, NE.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  optlist-name = 'OBJECTKEY2'.&lt;/P&gt;&lt;P&gt;  optlist-options-cp = 'X'.&lt;/P&gt;&lt;P&gt;  optlist-options-ge = 'X'.&lt;/P&gt;&lt;P&gt;  optlist-options-lt = 'X'.&lt;/P&gt;&lt;P&gt;  optlist-options-ne = 'X'.&lt;/P&gt;&lt;P&gt;  APPEND optlist TO restrict-opt_list_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ass-kind = 'S'.&lt;/P&gt;&lt;P&gt;  ass-name = 'S_WERKS'.&lt;/P&gt;&lt;P&gt;  ass-sg_main = 'I'.&lt;/P&gt;&lt;P&gt;  ass-sg_addy = space.&lt;/P&gt;&lt;P&gt;  ass-op_main = 'OBJECTKEY2'.&lt;/P&gt;&lt;P&gt;  APPEND ass TO restrict-ass_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'SELECT_OPTIONS_RESTRICT'&lt;/P&gt;&lt;P&gt;   EXPORTING&lt;/P&gt;&lt;P&gt;    restriction                  = restrict&lt;/P&gt;&lt;P&gt;   EXCEPTIONS&lt;/P&gt;&lt;P&gt;     TOO_LATE                     = 1&lt;/P&gt;&lt;P&gt;     REPEATED                     = 2&lt;/P&gt;&lt;P&gt;     SELOPT_WITHOUT_OPTIONS       = 3&lt;/P&gt;&lt;P&gt;     SELOPT_WITHOUT_SIGNS         = 4&lt;/P&gt;&lt;P&gt;     INVALID_SIGN                 = 5&lt;/P&gt;&lt;P&gt;     EMPTY_OPTION_LIST            = 6&lt;/P&gt;&lt;P&gt;     INVALID_KIND                 = 7&lt;/P&gt;&lt;P&gt;     REPEATED_KIND_A              = 8&lt;/P&gt;&lt;P&gt;     OTHERS                       = 9&lt;/P&gt;&lt;P&gt;            .&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt; MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Mohit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jun 2009 06:40:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-selection-screen-in-dialog-programing/m-p/5725687#M1298970</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-08T06:40:02Z</dc:date>
    </item>
    <item>
      <title>Re: Reg- Selection screen in Dialog Programing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-selection-screen-in-dialog-programing/m-p/5725688#M1298971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="blue" __jive_macro_name="color"&gt;Hi Prabu,

It is possible to achieve what you are looking for in dialog programming.

Steps to get SELECT-OPTIONS in module pool programs.
1. Start one dialog program with SAPZ_TEST.
2. Place the below code in the TOP include of the dialog program.
&lt;PRE&gt;&lt;CODE&gt;TABLES mara.
SELECTION-SCREEN BEGIN OF SCREEN 2100 AS SUBSCREEN.
SELECT-OPTIONS: matnr FOR mara-matnr.
SELECTION-SCREEN END OF SCREEN 2100.&lt;/CODE&gt;&lt;/PRE&gt;
3. Create one screen 2000 .
4. Go to Layout of the screen and Define subscreen area on the screen and Name it as g_subscreen.
5. Place the below code in the Flow logic of the screen.
&lt;PRE&gt;&lt;CODE&gt;PROCESS BEFORE OUTPUT.
  CALL SUBSCREEN g_subscreen INCLUDING 'SAPMZ_TEST' '2100'.

PROCESS AFTER INPUT.
  CALL SUBSCREEN g_subscreen.&lt;/CODE&gt;&lt;/PRE&gt;.
6. Activate all.
7. Create Transaction code for the dialog program SAPZ_TEST.
8. Execute the transaction code. You will see the select-option like we see on Selection-screen.

I hope that you can understand. 
Let me know if you have any problem.

Thanks
Venkat.O
&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jun 2009 07:45:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-selection-screen-in-dialog-programing/m-p/5725688#M1298971</guid>
      <dc:creator>venkat_o</dc:creator>
      <dc:date>2009-06-08T07:45:00Z</dc:date>
    </item>
    <item>
      <title>Re: Reg- Selection screen in Dialog Programing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-selection-screen-in-dialog-programing/m-p/5725689#M1298972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Solved&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Dec 2010 13:29:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-selection-screen-in-dialog-programing/m-p/5725689#M1298972</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-01T13:29:14Z</dc:date>
    </item>
  </channel>
</rss>

