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 reading multiple records into a single internal table..

Former Member
0 Likes
718

hi experts,

Need your help, i have a requirement like this.

i will have a input file like this

D 123 Suresh 12/01/2008

E ven sha 5432

E ven sha 5432

D 153 Sachin 11/01/2008

E ven sha 5432

Now all i need to consider from D to E (i.e., before next D) as a single record and i need to preare a separate excel,

So that E records can be max 9. So we cant expect this will be always 2 or 3 or 4.

So how can i do this upload and process..

give some idea.

Thanks,

Suresh

hi experts,

Need your help, i have a requirement like this.

i will have a input file like this

D 123 Suresh 12/01/2008

E ven sha 5432

E ven sha 5432

D 153 Sachin 11/01/2008

E ven sha 5432

Now all i need to consider from D to E (i.e., before next D) as a single record and i need to preare a separate excel,

So that E records can be max 9. So we cant expect this will be always 2 or 3 or 4.

So how can i do this upload and process..

give some idea.

Thanks,

Suresh

2 REPLIES 2
Read only

rahul_kamble2
Participant
0 Likes
483

Hi,

Once you transfer the values from input file to internal table.

loop through all records of internal table .

check the first letter using offset

e.g if Itab-field+0(1) = 'D'

elseif Itab-field+0(1) = 'E'.

endif.

Populate the work area of internal table until you find the next 'D' once you find 'D' again ...append the work area to internal table......clear work area.

Regards,

Rahul

Read only

anub
Participant
0 Likes
483

Can you be more clear suresh and pls can you give some valid data it would be useful.

Thanks

Anu.