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

Seqential download

Hi,

I am trying to download from internal table to application error.

in my open data set i am getting an syntax error.

error - in text mode the encoding addition must be specified.

below is part of my code.

START-OF-SELECTION.

SELECT lifnr

name1

land1 FROM lfa1 INTO TABLE i_lfa1.

  • Open the file

OPEN DATASET v_file FOR OUTPUT IN TEXT MODE.

CHECK sy-subrc EQ 0.

LOOP AT i_lfa1.

TRANSFER i_lfa1 TO v_file.

CLEAR : i_lfa1.

ENDLOOP.

Thanks in advance,

Shejal.

Add comment
10|10000 characters needed characters exceeded

2 Answers

  • Best Answer
    Posted on Aug 03, 2006 at 05:37 PM

    Since you are in a new version of SAP, you need the extension ENCODING.

    OPEN DATASET v_file FOR OUTPUT IN TEXT MODE <b>encoding DEFAULT</b>.

    Regards,

    Rich Heilman

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 03, 2006 at 05:39 PM

    hi shejal,

    in unicode system u need to specify ENCODING DEFAULT.

    OPEN DATASET v_file FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.

    Add comment
    10|10000 characters needed characters exceeded