<?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 having wrong value from F4 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-having-wrong-value-from-f4/m-p/7674013#M1575370</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Kallu&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you tried already the following approach::&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
...
  loop at lt_return_tab .
    s_id-low = lt_return_tab-fieldval.
    s_id-option = 'EQ'.
    s_id-sign = 'I'.
    s_id-high = space.
    append s_id.
  endloop.

READ TABLE s_id INDEX 1.  " &amp;lt;&amp;lt;&amp;lt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Feb 2011 14:20:27 GMT</pubDate>
    <dc:creator>uwe_schieferstein</dc:creator>
    <dc:date>2011-02-14T14:20:27Z</dc:date>
    <item>
      <title>Select options having wrong value from F4</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-having-wrong-value-from-f4/m-p/7674012#M1575369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Halo Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am doing a selection screen select options  parameter s_id .The f4 value help for s_id should return multiple values to it&lt;/P&gt;&lt;P&gt;So I am doing the following code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
tables: zscct.
data lt_scct type table of  zscct.

selection-screen begin of block b0k with frame title text-k01.
select-options : s_id  for zscct-id.
selection-screen end of block b0k.

at selection-screen on value-request for s_id-low.

  data lt_return_tab like ddshretval occurs 0 with header line.
  refresh: lt_return_tab.

  select * from zscct into table lt_scct.

  call function 'F4IF_INT_TABLE_VALUE_REQUEST'
  exporting
*   DDIC_STRUCTURE         = ' '
    retfield               = 'ID'
*   PVALKEY                = ' '
    dynpprog               = sy-repid
    dynpnr                 = sy-dynnr
 dynprofield            = 'S_ID'
*   STEPL                  = 0
*   WINDOW_TITLE           =
*   VALUE                  = ' '
   value_org              = 'S'
    multiple_choice        = 'X'
*    DISPLAY                = 'X'
*   CALLBACK_PROGRAM       = ' '
*   CALLBACK_FORM          = ' '
*   MARK_TAB               =
* IMPORTING
*   USER_RESET             =
  tables
    value_tab              = lt_scct
*   FIELD_TAB              =
return_tab             = lt_return_tab
*   DYNPFLD_MAPPING        =
* EXCEPTIONS
*   PARAMETER_ERROR        = 1
*   NO_VALUES_FOUND        = 2
*   OTHERS                 = 3
          .
  break-point.

  loop at lt_return_tab .
    s_id-low = lt_return_tab-fieldval.
    s_id-option = 'EQ'.
    s_id-sign = 'I'.
    s_id-high = space.
    append s_id.
  endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i selected ids 0001 0002 0003 from the value_tab and return_tab is having those fieldval and s_id is filled accordingly.&lt;/P&gt;&lt;P&gt;But when the screen is being displayed , s_id values are 0003 0002 0003 and not 0001 0002 0003.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here the first value is getting replaced by the last value . May be this is because the s_id header line is clearing off the first line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any solution so that I get the correct values in select option s_id.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Kallu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Feb 2011 13:56:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-having-wrong-value-from-f4/m-p/7674012#M1575369</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-14T13:56:32Z</dc:date>
    </item>
    <item>
      <title>Re: Select options having wrong value from F4</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-having-wrong-value-from-f4/m-p/7674013#M1575370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Kallu&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you tried already the following approach::&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
...
  loop at lt_return_tab .
    s_id-low = lt_return_tab-fieldval.
    s_id-option = 'EQ'.
    s_id-sign = 'I'.
    s_id-high = space.
    append s_id.
  endloop.

READ TABLE s_id INDEX 1.  " &amp;lt;&amp;lt;&amp;lt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Feb 2011 14:20:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-having-wrong-value-from-f4/m-p/7674013#M1575370</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2011-02-14T14:20:27Z</dc:date>
    </item>
    <item>
      <title>Re: Select options having wrong value from F4</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-having-wrong-value-from-f4/m-p/7674014#M1575371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Halo Uwe,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It solved my problem . But dont understand why the problems occur .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are a real genius boss  . You always provide straight forward answers and I am worried why I am not able to think in that simple and straight forward manner . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If given a chance , I would love to accept you as a Mentor in SAP. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Kallu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Feb 2011 15:24:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-having-wrong-value-from-f4/m-p/7674014#M1575371</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-14T15:24:51Z</dc:date>
    </item>
    <item>
      <title>Re: Select options having wrong value from F4</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-having-wrong-value-from-f4/m-p/7674015#M1575372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Kallu&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perhaps one explanation might be that I am NOT an IT guy but a &lt;STRONG&gt;scientist&lt;/STRONG&gt; (to be more precise: Biochemist) and that is the way how I try to solve problem: &lt;/P&gt;&lt;P&gt;Developing a hypothesis, challenge it by systematic "experiments" (sometimes extended to "trial &amp;amp; error"), and, if required, dismiss my original idea and find a new one which fits to the available observations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Feb 2011 20:03:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-options-having-wrong-value-from-f4/m-p/7674015#M1575372</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2011-02-14T20:03:43Z</dc:date>
    </item>
  </channel>
</rss>

