Application Development 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: 

File upload

Former Member
0 Kudos

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

Former Member
0 Kudos

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

former_member761936
Active Participant
0 Kudos

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

0 Kudos

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