07-30-2008 3:02 PM
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.
07-30-2008 4:52 PM
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
07-31-2008 5:57 AM
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
08-04-2008 6:04 AM
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