Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

regarding internal table processing...

Former Member
0 Likes
494

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

3 REPLIES 3
Read only

Former Member
0 Likes
458

On what basis you will know that it is a one block of data?

Can you explain in more detail.

Regards,

Atish

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
458

if all the block starts with same word then use

at new field+start_pos(endpos).

endat.

Read only

Former Member
0 Likes
458

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 .