Skip to Content

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

How to copy data from one itab1 to itab2 based on a range of values

Hi frnds,

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>

regards,

Shano

Edited by: Alvaro Tejada Galindo on Sep 19, 2008 5:07 PM

Tags:
replied

Hi

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.

Thanks,

Naveen.I

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question