Skip to Content
0
Former Member
Apr 21, 2008 at 05:12 PM

range and dump

10 Views

i had this code

RANGES r_clienti FOR kna1-kunnr.
START-OF-SELECTION.
  CLEAR ok_exit.
  CLEAR sti_knvp2.
  IF NOT s_vendi[] IS INITIAL.
  SELECT kunnr FROM knvp INTO r_clienti-low
                        WHERE kunn2 IN s_vendi
                          AND vkorg EQ 'IT07'
                        AND kunnr IN dd_kunnr
                        AND parvw = 'V2'.           "ae-modif 19.04.08
     r_clienti-option = 'EQ'.
      r_clienti-sign = 'I'.
     APPEND r_clienti.
    ENDSELECT.

    DESCRIBE TABLE r_clienti LINES n_cli.
    IF n_cli < 1000.
      dd_kunnr[] = r_clienti[].
      IF dd_kunnr[] IS INITIAL.
        EXIT.
      ENDIF.
    ENDIF.

i want to take off the select/end select and i made

SELECT kunnr FROM knvp APPENDING TABLE sti_knvp2
                        WHERE kunn2 IN s_vendi
                          AND vkorg EQ 'IT07'
                          AND kunnr IN dd_kunnr
                          AND parvw = 'V2'.           "ae-modif 19.04.08
    LOOP AT sti_knvp2.
      r_clienti-low = sti_knvp2-kunnr.
      r_clienti-option = 'EQ'.
      r_clienti-sign = 'I'.
      MODIFY r_clienti.
    ENDLOOP.
    DESCRIBE TABLE r_clienti LINES n_cli.
    IF n_cli < 1000.
      dd_kunnr[] = r_clienti[].
      IF dd_kunnr[] IS INITIAL.
        EXIT.
      ENDIF.
    ENDIF.

but the report goes in dump and i can't understand why.

who can help me please?