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

doubt on BDC field seperator

Hello ,

I am working on the BDC .....

And my upload file is

Nat11 W VKHM Nat 000

its working fine....

CALL FUNCTION 'GUI_UPLOAD'

EXPORTING

FILENAME = 'c:\bdc1.TXT'

FILETYPE = 'ASC'

HAS_FIELD_SEPARATOR = '#'

But I want to remove tab and want to place the "#" as field separator

what I have to do ....

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Jun 14, 2008 at 06:48 PM

    Hi Sunil

    gui_upload will not work in background.. so make sure with ur FC will this program be run in background...if so you need to change the FM..

          CALL FUNCTION 'GUI_UPLOAD'
               EXPORTING
                    FILENAME            = l_file
                    HAS_FIELD_SEPARATOR = 'X'
               TABLES
                    DATA_TAB            = input_tab
               EXCEPTIONS
                    CONVERSION_ERROR    = 1
                    INVALID_TABLE_WIDTH = 4
                    INVALID_TYPE        = 5
                    NO_BATCH            = 6
                    UNKNOWN_ERROR       = 7
                    OTHERS              = 8.
          IF SY-SUBRC <> 0.
            SKIP.
    *        FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
            WRITE: /1 '-> Error occured during upload process of file:',
                   /1 '->', IFILE,
                   /1 '-> Program terminated'.
            FORMAT RESET.
            STOP.
          ENDIF.
        endif.

    also check this [PDF doc|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/80928174-0a01-0010-42aa-a88b3fedb648] for more details

    Edited by: Jackandjay on Jun 14, 2008 11:53 AM

    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.