How to copy data from one itab1 to itab2 based on a range of values
I have an the internal table itab1 (vbak) with data. I want to move some data from itab1 to itab2 where vbeln = s_vbeln-low to s_vbeln-high. Here s_vbeln is a select-option on selection-screen.
Please suggest me an idea how we can implement this as I can't find any option in loop or read statements for this kind of requirement.
Thanks in advance.
<REMOVED BY MODERATOR - REQUEST OR OFFER POINTS ARE FORBIDDEN>
Edited by: Alvaro Tejada Galindo on Sep 19, 2008 5:07 PM
Maintain both internal table with same structure...also declare one work area like wa
After fetching the itab1.
loop at itab1 into wa where vebln between low and high. (or vbeln in s_vbeln) append wa to itab2. clear wa. endloop.