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

BDC dump

Hi All,

I am doning BDC on XD01. But getting dump. The error is type mismatch.

Also I tried with diff FILETYPE = 'ASC' " 'DAT'

But still dump is there.

With 'WS_UPLOAD' it is ok.

Is there any thing wrong I am doing?

Following is my code..

Regards,

Dilip

PARAMETERS : FILE LIKE RLGRAP-FILENAME OBLIGATORY.

CALL FUNCTION 'F4_FILENAME'

EXPORTING

PROGRAM_NAME = SYST-CPROG

DYNPRO_NUMBER = SYST-DYNNR

  • FIELD_NAME = ' '

IMPORTING

FILE_NAME = infile.

CALL FUNCTION 'GUI_UPLOAD'

EXPORTING

filename = INFILE

FILETYPE = 'ASC'

HAS_FIELD_SEPARATOR = 'X'

tables

data_tab = it_data.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    Posted on Jun 16, 2005 at 08:08 AM

    Hi,

    Just try the following.

    PARAMETERS : <b>inFILE</b> LIKE RLGRAP-FILENAME OBLIGATORY.

    data : begin of it_data occurs 0,

    line(255),

    end of it_data.

    <b>data str type string.</b>

    CALL FUNCTION 'F4_FILENAME'

    EXPORTING

    PROGRAM_NAME = SYST-CPROG

    DYNPRO_NUMBER = SYST-DYNNR

    • FIELD_NAME = ' '

    IMPORTING

    FILE_NAME = infile.

    <b>str = infile</b>.

    CALL FUNCTION 'GUI_UPLOAD'

    EXPORTING

    filename = str

    FILETYPE = 'ASC'

    HAS_FIELD_SEPARATOR = 'X'

    tables

    data_tab = it_data.

    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.