2008 Jan 02 10:15 PM
Hi friends,
one of requirements is like this.
I need to scan a text file which is there in an internal table. It contains many blocks of data. Let us think each block contains 100-120 lines of data. If the block begins with some code like if 48th column of the block contains code AB00 then only next lines of the internal are to be transfered to another internal table until next block begins. Same check should be done for next blocks also. Please extend your help in this.
Thanks in advance.
Suresh...
Edited by: SURESH KUMAR on Jan 3, 2008 3:47 AM
2008 Jan 03 1:15 AM
On what basis you will know that it is a one block of data?
Can you explain in more detail.
Regards,
Atish
2008 Jan 03 2:55 AM
if all the block starts with same word then use
at new field+start_pos(endpos).
endat.
2008 Jan 03 5:07 AM
Hi,
I think
Loop at itab into workarea.
V_index = sy-index.
Search workarea for string AB00.
If sy-subrc = 0.
V_indexnext = V_index + 1.
Read table itab into workarea1 index V_indexnext.
Append itab2 from workarea1.
Endif.
Endloop.
Note :- check perfet syntax .