<?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: Dump on SELECT-OPTIONS in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-on-select-options/m-p/2948515#M695162</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;&lt;/P&gt;&lt;P&gt;Just use &lt;/P&gt;&lt;P&gt;REFRESH:&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  &amp;lt;b&amp;gt;  s_vkorg[],&lt;/P&gt;&lt;P&gt;                  s_vtweg[] ,&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;like this&lt;/P&gt;&lt;P&gt;                  s_spart ,&lt;/P&gt;&lt;P&gt;                  s_erdat  ,&lt;/P&gt;&lt;P&gt;                  s_vbeln  ,&lt;/P&gt;&lt;P&gt;                  s_mbdat ,&lt;/P&gt;&lt;P&gt;                  s_pernr  ,&lt;/P&gt;&lt;P&gt;                  s_hkunnr ,&lt;/P&gt;&lt;P&gt;                  s_klabc ,&lt;/P&gt;&lt;P&gt;                  s_kunnr ,&lt;/P&gt;&lt;P&gt;                  s_kunag  ,&lt;/P&gt;&lt;P&gt;                  s_cntry  ,&lt;/P&gt;&lt;P&gt;                  s_auart  ,&lt;/P&gt;&lt;P&gt;                  s_pstyv ,&lt;/P&gt;&lt;P&gt;                  s_werks ,&lt;/P&gt;&lt;P&gt;                  s_matnr ,&lt;/P&gt;&lt;P&gt;                  s_charg ,&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;   s_lifsk,&lt;/P&gt;&lt;P&gt;                  s_faksk ,&lt;/P&gt;&lt;P&gt;                  s_dfaksk  ,&lt;/P&gt;&lt;P&gt;                  s_cmgst ,&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  s_augru,&lt;/P&gt;&lt;P&gt;                  s_uvals.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Oct 2007 15:30:04 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-17T15:30:04Z</dc:date>
    <item>
      <title>Dump on SELECT-OPTIONS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-on-select-options/m-p/2948506#M695153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am getting this dump for the second time that I execute the program. I am executing a program which contains a selection screen with lots of select - options. When I execute the program the first time, it runs fine. But if I go back and execute the program again for the same input, it gives me a dump saying &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;The current ABAP program attempted to execute an OPEN SQL statement in which the WHERE condition contains an IN itab operator
The OPTION column should only contain EQ LE GE .... 
The value " " is not allowed here&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to resolve this. Thanks &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FORM filter_vbak.
* Extract all Sales Order Header Data for header criteria
  SELECT vbeln vbtyp auart augru lifsk faksk vkorg vtweg spart vsbed kunnr
    FROM vbak
    INTO TABLE i_vbak
   WHERE vkorg IN s_vkorg
     AND vtweg IN s_vtweg
     AND spart IN s_spart
     AND erdat IN s_erdat
     AND vbeln IN s_vbeln
     AND kunnr IN s_kunnr
     AND auart IN s_auart
     AND lifsk IN s_lifsk
     AND faksk IN s_faksk
     AND augru IN s_augru.
ENDFORM.                    "filter_vbak&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2007 12:45:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-on-select-options/m-p/2948506#M695153</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-17T12:45:09Z</dc:date>
    </item>
    <item>
      <title>Re: Dump on SELECT-OPTIONS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-on-select-options/m-p/2948507#M695154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;In the END-OF-SELECTION, clear all the Selection screen fieds, and run this report&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; Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2007 12:47:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-on-select-options/m-p/2948507#M695154</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-17T12:47:34Z</dc:date>
    </item>
    <item>
      <title>Re: Dump on SELECT-OPTIONS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-on-select-options/m-p/2948508#M695155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;Can u just paste ur complete code here as there might be a place where the select-option is getting cleared but not properly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Himanshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2007 12:49:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-on-select-options/m-p/2948508#M695155</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-17T12:49:06Z</dc:date>
    </item>
    <item>
      <title>Re: Dump on SELECT-OPTIONS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-on-select-options/m-p/2948509#M695156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;can u paste complete code.&lt;/P&gt;&lt;P&gt;ranges should have sign and option values filled in.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;similar is for select options.&lt;/P&gt;&lt;P&gt;here is sample code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;s_matnr-sign = 'EQ'.&lt;/P&gt;&lt;P&gt;s_matnr-option = 'I'.&lt;/P&gt;&lt;P&gt;s_matnr-low = l_matnr.&lt;/P&gt;&lt;P&gt;append s_matnr.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2007 12:50:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-on-select-options/m-p/2948509#M695156</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-17T12:50:07Z</dc:date>
    </item>
    <item>
      <title>Re: Dump on SELECT-OPTIONS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-on-select-options/m-p/2948510#M695157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;do you fill the select-options in your abap,&lt;/P&gt;&lt;P&gt;and if yes can you show how and where you do it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Dieter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2007 12:50:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-on-select-options/m-p/2948510#M695157</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-17T12:50:37Z</dc:date>
    </item>
    <item>
      <title>Re: Dump on SELECT-OPTIONS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-on-select-options/m-p/2948511#M695158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried clearing and refreshing all select-options in endofselection but that did not fix the problem. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is only one select-option that I fill and it is used in the query that gives me the dump. As you can see s_kunnr is been filled. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FORM filter_vbak.
* Extract all Sales Order Header Data for header criteria
  SELECT vbeln vbtyp auart augru lifsk faksk vkorg vtweg spart vsbed kunnr
    FROM vbak
    INTO TABLE i_vbak
   WHERE vkorg IN s_vkorg
     AND vtweg IN s_vtweg
     AND spart IN s_spart
     AND erdat IN s_erdat
     AND vbeln IN s_vbeln
     AND kunnr IN s_kunnr
     AND auart IN s_auart
     AND lifsk IN s_lifsk
     AND faksk IN s_faksk
     AND augru IN s_augru.
ENDFORM.                    "filter_vbak

FORM compute_range_hkunnr.

  CLEAR: cnt_hkunnr_i_eq, cnt_hkunnr_total.
*--------------------------------------------------------------------*
* Analyse the select option table for customer hierarchy to
* find out whether its a single value or a range
*--------------------------------------------------------------------*
  LOOP AT s_hkunnr.
    ADD 1 TO cnt_hkunnr_total.
    IF s_hkunnr-low IS NOT INITIAL  AND
       s_hkunnr-sign    =  'I'      AND
       s_hkunnr-option  =  'EQ'     AND
       s_hkunnr-high IS INITIAL.
      ADD 1 TO cnt_hkunnr_i_eq.
    ELSE.
      EXIT.
    ENDIF.
  ENDLOOP.

*--------------------------------------------------------------------*
* If only one customer hierarchy has been entered, go down 2 levels
* in customer hierarchy and get all sold to parties
*--------------------------------------------------------------------*
  IF cnt_hkunnr_total &amp;gt; 0 AND cnt_hkunnr_total = cnt_hkunnr_i_eq.
* Extract customers with validity date greater than current date
    SELECT kunnr hkunnr
      FROM knvh
      INTO TABLE i_knvh
     WHERE hityp  = 'A'
       AND hkunnr = s_hkunnr-low
       AND datbi &amp;gt;= sy-datum.
* Extract customers with valid hierarchy and criteria on sales org
    IF sy-subrc = 0.
      SELECT kunnr hkunnr
        FROM knvh
        INTO TABLE i_knvh
        FOR ALL ENTRIES IN i_knvh
        WHERE hityp = 'A'
        AND hkunnr  = i_knvh-kunnr
        AND datbi  &amp;gt;= sy-datum
        AND vkorg  IN s_vkorg.
      IF sy-subrc = 0.
        LOOP AT i_knvh INTO wa_knvh.
          MOVE 'I'  TO s_kunnr-sign.
          MOVE 'EQ' TO s_kunnr-option.
          MOVE wa_knvh-kunnr TO s_kunnr-low.
          APPEND s_kunnr.
          CLEAR s_kunnr.
        ENDLOOP.
      ENDIF.
    ENDIF.

*--------------------------------------------------------------------*
* If a range of customer hierarchies have been entered, go down 2 levels
* in customer hierarchy for each value and get all the sold to parties
*--------------------------------------------------------------------*
  ELSEIF cnt_hkunnr_total &amp;gt; 0.
* Extract customers with validity date greater than current date
    SELECT kunnr hkunnr
      FROM knvh
      INTO TABLE i_knvh
     WHERE hityp = 'A'
       AND hkunnr IN s_hkunnr
       AND datbi &amp;gt;= sy-datum.
* Extract customers with valid hierarchy and criteria on sales org
    IF sy-subrc = 0.
      SORT i_knvh BY kunnr DESCENDING.          "Sort before deleting duplicate rows
      DELETE ADJACENT DUPLICATES FROM i_knvh.   "Remove all duplicate customers
      SELECT kunnr hkunnr
        FROM knvh
        INTO TABLE i_knvh
        FOR ALL ENTRIES IN i_knvh
        WHERE hityp = 'A'
        AND hkunnr = i_knvh-kunnr
        AND datbi &amp;gt;= sy-datum
        AND vkorg IN s_vkorg.
      IF sy-subrc = 0.
        LOOP AT i_knvh INTO wa_knvh.
          MOVE 'I' TO s_kunnr-sign.
          MOVE 'EQ' TO s_kunnr-option.
          MOVE wa_knvh-kunnr TO s_kunnr-low.
          APPEND s_kunnr.
          CLEAR s_kunnr.
        ENDLOOP.
      ENDIF.
    ENDIF.
  ENDIF.

ENDFORM.                    "compute_range_hkunnr&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2007 13:20:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-on-select-options/m-p/2948511#M695158</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-17T13:20:56Z</dc:date>
    </item>
    <item>
      <title>Re: Dump on SELECT-OPTIONS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-on-select-options/m-p/2948512#M695159</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;Can you paste your whole code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2007 14:36:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-on-select-options/m-p/2948512#M695159</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-17T14:36:31Z</dc:date>
    </item>
    <item>
      <title>Re: Dump on SELECT-OPTIONS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-on-select-options/m-p/2948513#M695160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can we see how you are clearing the select-options?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2007 14:47:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-on-select-options/m-p/2948513#M695160</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-10-17T14:47:52Z</dc:date>
    </item>
    <item>
      <title>Re: Dump on SELECT-OPTIONS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-on-select-options/m-p/2948514#M695161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;END-OF-SELECTION.
  CLEAR:

  s_vkorg,
                  s_vtweg ,
                  s_spart ,
                  s_erdat  ,
                  s_vbeln  ,
                  s_mbdat ,
                  s_pernr  ,
                  s_hkunnr ,
                  s_klabc ,
                  s_kunnr ,
                  s_kunag  ,
                  s_cntry  ,
                  s_auart  ,
                  s_pstyv ,
                  s_werks ,
                  s_matnr ,
                  s_charg ,



   s_lifsk,
                  s_faksk ,
                  s_dfaksk  ,
                  s_cmgst ,



  s_augru,
                  s_uvals.


  REFRESH:

    s_vkorg,
                  s_vtweg ,
                  s_spart ,
                  s_erdat  ,
                  s_vbeln  ,
                  s_mbdat ,
                  s_pernr  ,
                  s_hkunnr ,
                  s_klabc ,
                  s_kunnr ,
                  s_kunag  ,
                  s_cntry  ,
                  s_auart  ,
                  s_pstyv ,
                  s_werks ,
                  s_matnr ,
                  s_charg ,



   s_lifsk,
                  s_faksk ,
                  s_dfaksk  ,
                  s_cmgst ,



  s_augru,
                  s_uvals.&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2007 15:27:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-on-select-options/m-p/2948514#M695161</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-17T15:27:29Z</dc:date>
    </item>
    <item>
      <title>Re: Dump on SELECT-OPTIONS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-on-select-options/m-p/2948515#M695162</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;&lt;/P&gt;&lt;P&gt;Just use &lt;/P&gt;&lt;P&gt;REFRESH:&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  &amp;lt;b&amp;gt;  s_vkorg[],&lt;/P&gt;&lt;P&gt;                  s_vtweg[] ,&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;like this&lt;/P&gt;&lt;P&gt;                  s_spart ,&lt;/P&gt;&lt;P&gt;                  s_erdat  ,&lt;/P&gt;&lt;P&gt;                  s_vbeln  ,&lt;/P&gt;&lt;P&gt;                  s_mbdat ,&lt;/P&gt;&lt;P&gt;                  s_pernr  ,&lt;/P&gt;&lt;P&gt;                  s_hkunnr ,&lt;/P&gt;&lt;P&gt;                  s_klabc ,&lt;/P&gt;&lt;P&gt;                  s_kunnr ,&lt;/P&gt;&lt;P&gt;                  s_kunag  ,&lt;/P&gt;&lt;P&gt;                  s_cntry  ,&lt;/P&gt;&lt;P&gt;                  s_auart  ,&lt;/P&gt;&lt;P&gt;                  s_pstyv ,&lt;/P&gt;&lt;P&gt;                  s_werks ,&lt;/P&gt;&lt;P&gt;                  s_matnr ,&lt;/P&gt;&lt;P&gt;                  s_charg ,&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;   s_lifsk,&lt;/P&gt;&lt;P&gt;                  s_faksk ,&lt;/P&gt;&lt;P&gt;                  s_dfaksk  ,&lt;/P&gt;&lt;P&gt;                  s_cmgst ,&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  s_augru,&lt;/P&gt;&lt;P&gt;                  s_uvals.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2007 15:30:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-on-select-options/m-p/2948515#M695162</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-17T15:30:04Z</dc:date>
    </item>
    <item>
      <title>Re: Dump on SELECT-OPTIONS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-on-select-options/m-p/2948516#M695163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Right,  clear will work fine, but you must specify the body of the internal table.  REFRESH will clear the body without referencing the body specifically.  If you wanted to use the CLEAR, you just remember the [].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; CLEAR:
 
  s_vkorg,
                  s_vtweg[] ,
                  s_spart[] ,
                  s_erdat[]  ,
                  s_vbeln[]  ,
                  s_mbdat[] ,
                  s_pernr[]  ,
                  s_hkunnr[] ,
                  s_klabc[] ,
                  s_kunnr[] ,
                  s_kunag[]  ,
                  s_cntry[]  ,
                  s_auart[]  ,
                  s_pstyv[] ,
                  s_werks[] ,
                  s_matnr[] ,
                  s_charg[] ,&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2007 15:52:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-on-select-options/m-p/2948516#M695163</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-10-17T15:52:47Z</dc:date>
    </item>
    <item>
      <title>Re: Dump on SELECT-OPTIONS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dump-on-select-options/m-p/2948517#M695164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Megan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sorry I don't know, but&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
* Extract customers with validity date greater than current date
    SELECT kunnr hkunnr
      FROM knvh
      INTO TABLE i_knvh
     WHERE hityp  = 'A'
       AND hkunnr = s_hkunnr-low
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will extract a maximum of 1 customer and it is very much by chance what the value will be; probably of the last line of selection table s_hkunnr or the first line of the range where the condition &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
IF s_hkunnr-low IS NOT INITIAL  AND
       s_hkunnr-sign    =  'I'      AND
       s_hkunnr-option  =  'EQ'     AND
       s_hkunnr-high IS INITIAL.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;is not true because then you exit the loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually, you should check what happens and where is used the range s_kunnr - something is missing here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please post the source code section of the dump where you can see the exact error position.&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;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2007 15:54:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dump-on-select-options/m-p/2948517#M695164</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2007-10-17T15:54:52Z</dc:date>
    </item>
  </channel>
</rss>

