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

File upload

Former Member
0 Likes
438

Hi,

I am using the FM, GUI_UPLOAD. Data is getting uploaded if there are no fieldnames in the first row of file.

Getting an internal error(SY-SUBRC =8) if there are fieldnames at the start(separated with tab).

Is it possible to ignore first row of file as file has to be uploaded with header row?

Please suggest me a relevant solution.

Thanks.

3 REPLIES 3
Read only

Former Member
0 Likes
413

You can upload with the function module GUI_UPLOAD using the Header record in the exceptions deselect the header_not_allowed.This should work fine.

Regards

Somnath

Read only

former_member761936
Active Participant
0 Likes
413

Hi Abhinav,

You can do like this.

Take your internal table as

<code>

DATA:

Begin of ITAB,

value(300) TYPE C,

ENd of ITAB.

<code>

and Upload data to this internal table

after words delete the first line from Internal table.

then you split those records to your internal table

Read only

0 Likes
413

Yes, Narendra is right. What Somnath says is not correct. header length parameter and Header_not_allowed exception is only for BIN type files, not for any other type of files.

Ravi