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

Additional Record in custom table

Former Member
0 Likes
447

Hi Guys,

I am loading a flat file with 100 records, but when checked in the custom table i could c 101 reacords.

An additional blank record is getting created. Why is this happening?

I handled this blank record in the upload program. But why do we get this blank record?

Is it because the file has got a blank record? or SAP generates a blank record?

Regards

Anand

1 ACCEPTED SOLUTION
Read only

brad_bohn
Active Contributor
0 Likes
420

Well, we can't see your file, code or table so there's really no way to tell. My guess is that you've got an extra CRLF in the file and don't have the proper checking in your code to exclude it. SAP doesn't create blank records unless you tell it to...

2 REPLIES 2
Read only

brad_bohn
Active Contributor
0 Likes
421

Well, we can't see your file, code or table so there's really no way to tell. My guess is that you've got an extra CRLF in the file and don't have the proper checking in your code to exclude it. SAP doesn't create blank records unless you tell it to...

Read only

Former Member
0 Likes
420

Hi ,

Well you are uploading the file , so please see the internal table or field symbol or work area used in the loop statement after the file data is transferred to internal table .

May be the work area Header line is inserted with blank data as first or last record .

so every time you have clear you work area when it is used.