Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Search dump using range table

Hi Guys,

When I use the following code, it creates dump. I wonder any body can help me how to solve it.

regards.

Ling

data: t_range type range of string with HEADER LINE,

s_range like line of t_range.

s_range-sign = 'I'.

s_range-option = 'CP'.

s_range-low = '*'.

append s_range to t_range.

types: BEGIN OF typ_stru,

ch type c,

in type i,

end of typ_stru.

data: lt_ids type table of typ_stru,

ls_ids type typ_stru.

do 3 times.

ls_ids-ch = sy-index.

ls_ids-in = sy-index.

append ls_ids to lt_ids.

enddo.

clear ls_ids.

loop at lt_ids into ls_ids.

if ls_ids-ch in t_range.

write:/ ls_ids-in.

endif.

endloop.

Tags:
Former Member
Not what you were looking for? View more on this topic or Ask a question