<?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 select option looping in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-looping/m-p/3344799#M801964</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i have 5 select options on the screen. i want to take each select option .e.g one to one correpondence... I have to use a select query looping on the select option and send mails depending on the select query. also i have to concatenate the select option values in a variable&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Feb 2008 06:57:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-01T06:57:36Z</dc:date>
    <item>
      <title>select option looping</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-looping/m-p/3344799#M801964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i have 5 select options on the screen. i want to take each select option .e.g one to one correpondence... I have to use a select query looping on the select option and send mails depending on the select query. also i have to concatenate the select option values in a variable&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2008 06:57:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-looping/m-p/3344799#M801964</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-01T06:57:36Z</dc:date>
    </item>
    <item>
      <title>Re: select option looping</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-looping/m-p/3344800#M801965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&g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ECT * FROM EKKO INTO LW_EKKO &lt;/P&gt;&lt;P&gt;WHERE ( EBELN IN EBELN ) AND &lt;/P&gt;&lt;P&gt;( BEDAT IN BEDAT ). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR: INT. &lt;/P&gt;&lt;P&gt;IF SY-SUBRC = 0. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE-CORRESPONDING LW_EKKO TO INT. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM EKPO INTO LW_EKPO &lt;/P&gt;&lt;P&gt;WHERE ( EBELN = LW_EKKO-EBELN ) AND &lt;/P&gt;&lt;P&gt;( MATNR IN MATNR ) AND &lt;/P&gt;&lt;P&gt;( EREKZ IN EREKZ ). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR: INT. &lt;/P&gt;&lt;P&gt;MOVE-CORRESPONDING LW_EKKO TO INT. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SY-SUBRC = 0. &lt;/P&gt;&lt;P&gt;MOVE-CORRESPONDING LW_EKPO TO INT. &lt;/P&gt;&lt;P&gt;ENDIF. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*SELEKCIJSKI EKRAN ZA CC IN ORDER &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR: EKKN. &lt;/P&gt;&lt;P&gt;SELECT SINGLE * FROM EKKN WHERE ( EBELN = LW_EKPO-EBELN ) AND &lt;/P&gt;&lt;P&gt;( EBELP = LW_EKPO-EBELP ) AND &lt;/P&gt;&lt;P&gt;( KOSTL IN KOSTL ) and &lt;/P&gt;&lt;P&gt;( AUFNR IN AUFNR ). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE EKKN-KOSTL TO INT-KOSTL. &lt;/P&gt;&lt;P&gt;MOVE EKKN-AUFNR TO INT-AUFNR. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'ME_READ_HISTORY' &lt;/P&gt;&lt;P&gt;EXPORTING &lt;/P&gt;&lt;P&gt;EBELN = LW_EKPO-EBELN &lt;/P&gt;&lt;P&gt;EBELP = LW_EKPO-EBELP &lt;/P&gt;&lt;P&gt;WEBRE = ' ' &lt;/P&gt;&lt;P&gt;TABLES &lt;/P&gt;&lt;P&gt;XEKBES = BETS. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT BETS WHERE ZEKKN EQ SPACE. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE-CORRESPONDING BETS TO INT. &lt;/P&gt;&lt;P&gt;APPEND INT. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP. &lt;/P&gt;&lt;P&gt;IF SY-SUBRC NE 0. &lt;/P&gt;&lt;P&gt;APPEND INT. &lt;/P&gt;&lt;P&gt;ENDIF. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REFRESH BETS. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLEAR: LW_EKPO. &lt;/P&gt;&lt;P&gt;ENDSELECT. &lt;/P&gt;&lt;P&gt;CLEAR: LW_EKKO. &lt;/P&gt;&lt;P&gt;ENDSELECT.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2008 07:02:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-looping/m-p/3344800#M801965</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-01T07:02:17Z</dc:date>
    </item>
    <item>
      <title>Re: select option looping</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-looping/m-p/3344801#M801966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Am presuming below characteristics for your select-options:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. No Intervals&lt;/P&gt;&lt;P&gt;2. Only accepts sign EQ.&lt;/P&gt;&lt;P&gt;3. One to One correspondence in the sense all select-options have equal number of records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If so try as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DO.
  READ TABLE so_sel1.
  IF SY-SUBRC NE 0.
     EXIT.
  ELSE.
     READ TABLE so_sel2.
     READ TABLE so_sel3.
     ...
     ...
     
     CONCATENATE so_sel1-low so_sel2-low ....
        INTO l_string.
        
     perform process ...
  ENDIF.
ENDDO.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Eswar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2008 07:12:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-looping/m-p/3344801#M801966</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-01T07:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: select option looping</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-looping/m-p/3344802#M801967</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;Pls refer to the document:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw70/helpdata/en/9f/dba71235c111d1829f0000e829fbfe/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw70/helpdata/en/9f/dba71235c111d1829f0000e829fbfe/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Renjith Michael.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2008 07:13:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-option-looping/m-p/3344802#M801967</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-01T07:13:15Z</dc:date>
    </item>
  </channel>
</rss>

