Skip to Content
author's profile photo Former Member
Former Member

File upload

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jul 30, 2008 at 03: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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 31, 2008 at 04: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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.