<?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: Dialog programing in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programing/m-p/2629115#M604359</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the FM : COMPLEX_SELECTIONS_DIALOG&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see the usage below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: begin of RAN_SP occurs 0,
        SIGN   type C length 1,
        OPTION type C length 2,
        LOW    type KUNAG,
        HIGH   type KUNAG,
      end of RAN_SP.

  call function 'COMPLEX_SELECTIONS_DIALOG'
   exporting
     TITLE                   = 'Multiple Selection for Sold-to-Party'
*   TEXT                    =
*   SIGNED                  = 'X'
     LOWER_CASE              = 'X'
*   NO_INTERVAL_CHECK       = ' '
*   JUST_DISPLAY            = ' '
*   JUST_INCL               = ' '
*   EXCLUDED_OPTIONS        =
*   DESCRIPTION             =
*   HELP_FIELD              =
*   SEARCH_HELP             =
*   TAB_AND_FIELD           =
    tables
      RANGE                   = RAN_SP
   exceptions
*   NO_RANGE_TAB            = 1
*   CANCELLED               = 2
*   INTERNAL_ERROR          = 3
*   INVALID_FIELDNAME       = 4
     others                  = 5
            .
  if SY-SUBRC &amp;lt;&amp;gt; 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  endif.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Gopi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Jul 2007 07:00:48 GMT</pubDate>
    <dc:creator>gopi_narendra</dc:creator>
    <dc:date>2007-07-30T07:00:48Z</dc:date>
    <item>
      <title>Dialog programing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programing/m-p/2629114#M604358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;How to create a multiple selection field and assign 5 values to it in a dilog programming.&lt;/P&gt;&lt;P&gt;example.&lt;/P&gt;&lt;P&gt;in dialog progrming first screen i want to set default for storage location as 0001,0002,0003,0004,0005.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Madhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2007 06:59:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programing/m-p/2629114#M604358</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-30T06:59:24Z</dc:date>
    </item>
    <item>
      <title>Re: Dialog programing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programing/m-p/2629115#M604359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the FM : COMPLEX_SELECTIONS_DIALOG&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see the usage below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: begin of RAN_SP occurs 0,
        SIGN   type C length 1,
        OPTION type C length 2,
        LOW    type KUNAG,
        HIGH   type KUNAG,
      end of RAN_SP.

  call function 'COMPLEX_SELECTIONS_DIALOG'
   exporting
     TITLE                   = 'Multiple Selection for Sold-to-Party'
*   TEXT                    =
*   SIGNED                  = 'X'
     LOWER_CASE              = 'X'
*   NO_INTERVAL_CHECK       = ' '
*   JUST_DISPLAY            = ' '
*   JUST_INCL               = ' '
*   EXCLUDED_OPTIONS        =
*   DESCRIPTION             =
*   HELP_FIELD              =
*   SEARCH_HELP             =
*   TAB_AND_FIELD           =
    tables
      RANGE                   = RAN_SP
   exceptions
*   NO_RANGE_TAB            = 1
*   CANCELLED               = 2
*   INTERNAL_ERROR          = 3
*   INVALID_FIELDNAME       = 4
     others                  = 5
            .
  if SY-SUBRC &amp;lt;&amp;gt; 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  endif.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Gopi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2007 07:00:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programing/m-p/2629115#M604359</guid>
      <dc:creator>gopi_narendra</dc:creator>
      <dc:date>2007-07-30T07:00:48Z</dc:date>
    </item>
    <item>
      <title>Re: Dialog programing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programing/m-p/2629116#M604360</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;If you use programming of dynpros and you want a selection button so multriple for one of your fields (and as it happens making &amp;#147;SELECT-OPTION: p_field FOR table-field&amp;#148; in report standard), you can use this trick. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;


- First it creates a button in a screen and llámalo FCODE_RANGE. Pon the attribute like &amp;#147;Departure airfield&amp;#148;. Also asegurate that the visible length is of 17

- Your button Declares a global variable with he himself name that:

DATA: fcode_range (20).

- Also we needed to declare a rank to pass them detos.

   RANGES: FOR werks_ran komg-werks.
- Finally we created the routine that executes function COMPLEXE_SELECTIONS_DIALOG.


&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;   FORM call_func_multiple_select. &lt;/P&gt;&lt;P&gt;DATA: struc_tab_and_field TYPE rstabfield. &lt;/P&gt;&lt;P&gt;struc_tab_and_field-fieldname = &amp;#147;WERKS&amp;#148;. &lt;/P&gt;&lt;P&gt;struc_tab_and_field-tablename = &amp;#147;KOMG&amp;#148;.&lt;/P&gt;&lt;P&gt; CALL FUNCTION &amp;#147;COMPLEX_SELECTIONS_DIALOG&amp;#148; &lt;/P&gt;&lt;P&gt;EXPORTING * TITLE = &amp;#147;&amp;#147;text = &amp;#147;Plans&amp;#148; * SIGNED = &amp;#147;X&amp;#148; * LOWER_CASE =&amp;#148;&amp;#148; * NO_INTERVAL_CHECK = &amp;#147;&amp;#147;* JUST_DISPLAY =&amp;#148;&amp;#148; * JUST_INCL = ''* EXCLUDED_OPTIONS = * DESCRIPTION = * HELP_FIELD = * SEARCH_HELP = tab_and_field = struc_tab_and_field TABLES range = werks_ran 2 EXCEPTIONS no_range_tab = 1 cancelled = internal_error = 3 invalid_fieldname = 4 OTHERS = 5. IF sy-subrc &amp;lt;&amp;gt; 0. * MESSAGE YOU GO SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO * WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4. ENDIF. ENDFORM. &amp;#147;CALL_FUNC_MULTIPLE_SELECT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward all helpfull answers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pavan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2007 07:04:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programing/m-p/2629116#M604360</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-30T07:04:28Z</dc:date>
    </item>
    <item>
      <title>Re: Dialog programing</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programing/m-p/2629117#M604361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;u can use select-options and intialize those five values.&lt;/P&gt;&lt;P&gt;make use of below example&lt;/P&gt;&lt;P&gt;ex:&lt;/P&gt;&lt;P&gt;select-options : s_lifnr for lfa1-lifnr.&lt;/P&gt;&lt;P&gt;initialization.&lt;/P&gt;&lt;P&gt;*---Initializing sales organization&lt;/P&gt;&lt;P&gt;  S_lifnr-LOW = 'R100'.&lt;/P&gt;&lt;P&gt;  S_lifnr-OPTION = 'EQ'.&lt;/P&gt;&lt;P&gt;  S_lifnr-SIGN = 'I'.&lt;/P&gt;&lt;P&gt;  S_lifnr-HIGH = ' '.&lt;/P&gt;&lt;P&gt;  APPEND S_lifnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  S_lifnr-LOW = 'R200'.&lt;/P&gt;&lt;P&gt;  S_lifnr-OPTION = 'EQ' .&lt;/P&gt;&lt;P&gt;  S_lifnr-SIGN ='I'.&lt;/P&gt;&lt;P&gt;  S_lifnr-HIGH = ' '.&lt;/P&gt;&lt;P&gt;  APPEND S_lifnr.&lt;/P&gt;&lt;P&gt;  S_lifnr-LOW = 'R300'.&lt;/P&gt;&lt;P&gt;  S_lifnr-OPTION = 'EQ' .&lt;/P&gt;&lt;P&gt;  S_lifnr-SIGN ='I'.&lt;/P&gt;&lt;P&gt;  S_lifnr-HIGH = ' '.&lt;/P&gt;&lt;P&gt;  APPEND S_lifnr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  S_lifnr-LOW = 'R400'.&lt;/P&gt;&lt;P&gt;  S_lifnr-OPTION = 'EQ' .&lt;/P&gt;&lt;P&gt;  S_lifnr-SIGN ='I'.&lt;/P&gt;&lt;P&gt;  S_lifnr-HIGH = ' '.&lt;/P&gt;&lt;P&gt;  APPEND S_lifnr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  S_lifnr-LOW = 'R500'.&lt;/P&gt;&lt;P&gt;  S_lifnr-OPTION = 'EQ' .&lt;/P&gt;&lt;P&gt;  S_lifnr-SIGN ='I'.&lt;/P&gt;&lt;P&gt;  S_lifnr-HIGH = ' '.&lt;/P&gt;&lt;P&gt;  APPEND S_lifnr&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jul 2007 07:08:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dialog-programing/m-p/2629117#M604361</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-30T07:08:32Z</dc:date>
    </item>
  </channel>
</rss>

