<?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: Data selection based on select option's value in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-selection-based-on-select-option-s-value/m-p/7286161#M1532194</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; But the requirement is fixed, cant use radio buttons. &lt;STRONG&gt;And 2 radio button cannot be selected at a time&lt;/STRONG&gt;. Is there any solution about using the field of the select option's field (the low-high field) as it is a structure itself?&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; You' ll actually have 3 radio buttons, 0L, Z1 and Both....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Sep 2010 19:03:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-09-13T19:03:56Z</dc:date>
    <item>
      <title>Data selection based on select option's value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-selection-based-on-select-option-s-value/m-p/7286157#M1532190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;                                       I have a requirement for data selections from 2 different Item table based on select option's value. Its based on the value of Select option LEDGER which may have multiple value. If it contains '0L' then data will be selected from  BSEG table, else if it contains 'Z1' then from BSEG_ADD table and if contains both value then from both table. Please tell me how can I approach.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Amit Biswas on Sep 14, 2010 12:06 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Sep 2010 18:35:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-selection-based-on-select-option-s-value/m-p/7286157#M1532190</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-13T18:35:55Z</dc:date>
    </item>
    <item>
      <title>Re: Data selection based on select option's value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-selection-based-on-select-option-s-value/m-p/7286158#M1532191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can design radio-buttons instead of select-options....&lt;/P&gt;&lt;P&gt;when user selects 0L -&amp;gt; FETCH FROM BSEG.&lt;/P&gt;&lt;P&gt;when user selects Z1 -&amp;gt; FETH FROM BSEG_ADD.&lt;/P&gt;&lt;P&gt;when user select both -&amp;gt; FETCH FROM BSEG /BSEG_ADD..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Sep 2010 18:39:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-selection-based-on-select-option-s-value/m-p/7286158#M1532191</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-13T18:39:41Z</dc:date>
    </item>
    <item>
      <title>Re: Data selection based on select option's value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-selection-based-on-select-option-s-value/m-p/7286159#M1532192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But the requirement is fixed, cant use radio buttons. And 2 radio button cannot be selected at a time. Is there any solution about using the field of the select option's field (the low-high field) as it is a structure itself?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Sep 2010 18:59:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-selection-based-on-select-option-s-value/m-p/7286159#M1532192</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-13T18:59:00Z</dc:date>
    </item>
    <item>
      <title>Re: Data selection based on select option's value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-selection-based-on-select-option-s-value/m-p/7286160#M1532193</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;Create 3 diff itab's; Read the select options table based on the entries execute that particular select statement &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As stated above you might use the check box instead of radio buttons&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;Edited by: Anesht on Sep 13, 2010 9:02 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Sep 2010 19:02:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-selection-based-on-select-option-s-value/m-p/7286160#M1532193</guid>
      <dc:creator>anesh_kumar</dc:creator>
      <dc:date>2010-09-13T19:02:06Z</dc:date>
    </item>
    <item>
      <title>Re: Data selection based on select option's value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-selection-based-on-select-option-s-value/m-p/7286161#M1532194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; But the requirement is fixed, cant use radio buttons. &lt;STRONG&gt;And 2 radio button cannot be selected at a time&lt;/STRONG&gt;. Is there any solution about using the field of the select option's field (the low-high field) as it is a structure itself?&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; You' ll actually have 3 radio buttons, 0L, Z1 and Both....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Sep 2010 19:03:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-selection-based-on-select-option-s-value/m-p/7286161#M1532194</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-13T19:03:56Z</dc:date>
    </item>
    <item>
      <title>Re: Data selection based on select option's value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-selection-based-on-select-option-s-value/m-p/7286162#M1532195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;data: R_LEDGER type range of VBAK-LEDGER,
      R_TYPE like line of R_LEDGER,
      L_LINES type I.

selection-screen begin of block BLK1 with frame title TEXT-S01.
select-options S_LEDGER for TABLE-LEDGER no intervals.
selection-screen end of block BLK1.

start-of-selection.

  describe table S_LEDGER lines L_LINES.

  if L_LINES gt 1.
    read table S_LEDGER into R_TYPE with key S_LEDGER-LOW = '0L'.
    if SY-SUBRC eq 0.
      read table S_LEDGER into R_TYPE with key S_LEDGER-LOW = 'Z1'.
      if SY-SUBRC eq 0.
        perform READ_BOTH.
      else.
        perform READ_BSEG.
      endif.
    else.
      read table S_LEDGER into R_TYPE with key S_LEDGER-LOW = 'Z1'.
      if SY-SUBRC eq 0.
        perform READ_BSEG_ADD.
      endif.
    endif.
  else.
    read table S_LEDGER into R_TYPE with key S_LEDGER-LOW = '0L'.
    if SY-SUBRC eq 0.
      perform READ_BSEG.
    else.
      read table S_LEDGER into R_TYPE with key S_LEDGER-LOW = 'Z1'.
      if SY-SUBRC eq 0.
        perform READ_BSEG_ADD.
      endif.
    endif.
  endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Sep 2010 19:16:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-selection-based-on-select-option-s-value/m-p/7286162#M1532195</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-13T19:16:29Z</dc:date>
    </item>
  </channel>
</rss>

