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

fields not in table structure - program crashes

Former Member
0 Likes
511

hi guys!

I am loading a file and I want to know how can I ignore the fields in the file that is not in the table structure the program crashes everytime there is unnecessary fields in the file... hope you can help me out... thanks guys!

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
490

write simple query ,get the data from file(all data) using gu_upload function module or any other one,now you have one internal table and this internal table has all file data. build one more internal table what ever field you need.

move the data file internal table data to new internal table data.

Reward Points if it is helpful

Thanks

Seshu

4 REPLIES 4
Read only

Former Member
0 Likes
491

write simple query ,get the data from file(all data) using gu_upload function module or any other one,now you have one internal table and this internal table has all file data. build one more internal table what ever field you need.

move the data file internal table data to new internal table data.

Reward Points if it is helpful

Thanks

Seshu

Read only

Former Member
0 Likes
490

Hi Michael,

If there are not sufficient fields in the internal table to store the data coming from the file then it will definately crash.

There is no alternative to this. You need to define all the fields which are coming through the file. Later on you can just ignore those fields in your program.

Reward points if useful.

Regards,

Atish

Read only

Former Member
0 Likes
490

I'll try it out guys..

more reward points if it works.. thanks!

Read only

Former Member
0 Likes
490

Solved.