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

How to set encoding for FTP out text file

Hi experts,

i was not able to find a way to set encoding for the final text file uploaded throught FTP. It seems like B1iF automatically sets the encoding. In my case it should be utf-8 but B1iF decided ANSI as encoding for my text file.

Is there a way to set encoding for FTP out?

Thanks

Matthias

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Nov 06, 2014 at 04:13 PM

    Hi.

    The Problem

    It is generating a file on the SAP server, according to the procedure, with different options Encoding and Code-Page, then there is a procedure from the Mainframe takes the generated file via FTP, and the special characters "áéíóúÑñ" get changed to other values "ajioQ|", and are required to come with those special values and the names in Spanish use these special characters.


    We carried the file to a Windows server and the characters come right, but just to take the Mainframe get distorted.


    We passed it once, and can be solved.

    We have determined that it is problem with FTP communication between the two machines.

    Procedure

    * internal tables

    data: begin of estructura_in occurs 10,

    nombre(40),

    end of estructura_in.

    *The estructura_in table is filled with values infotypes,

    *not included here, or do not need that detail

    Perform fill_estructura_in.

    archivo = 'FILE.TXT'.

    * Values of CodePage

    *0120

    *0126

    *1103

    *1110

    *1133

    *1144

    *1145

    *1147

    *1160

    codepage = '1160'.

    * Values of encoding

    *NON-UNICODE

    *DEFAULT

    *UTF-8

    *CODEPAGE

    encoding = 'NON-UNICODE'.

    if encoding = 'NON-UNICODE'.

    open dataset archivo for output in text mode encoding non-unicode

    ignoring conversion errors replacement character space.

    elseif encoding = 'DEFAULT'.

    open dataset archivo for output in text mode encoding default

    ignoring conversion errors replacement character space.

    elseif encoding = 'UTF-8'.

    open dataset archivo for output in text mode encoding utf-8

    ignoring conversion errors replacement character space.

    elseif encoding = 'CODEPAGE'.

    open dataset archivo for output in

    legacy text mode code page codepage

    ignoring conversion errors replacement character space.

    endif.

    loop at estructura_in.

    transfer estructura_in to archivo.

    endloop.

    Information

    SAP

    Components Version: EHP4 FOR SAP ERP 6.0 / NW7.01

    Installation Number: 0020073368

    Expiration Date of License: 12.31.9999

    Unicode System: Yes

    Operating System: AIX

    Machine Type: 00F889B14C

    Server: bmsap8T_DES_00

    ID platform: 324

    Data base system: ORACLE

    Release: 11.2.0.3.0

    Name: DES

    Host: bmsap8T

    Owner: SAPSR3

    Installed software components

    Software Comp. Release Level Support pack.super.: Description of component software

    SAP_ABA 701 0007 SAPKA70107 Cross-Component

    SAP_BASIS 701 0007 SAPKB70107 SAP Basis System

    PI_BASIS. 701 0007 SAPK-70107INPIBASIS Plug-in Base

    ST-PI 2008_1_700 0003 SAPKITLRD3 SAP Solution Tools Plug-In

    SAP_BS_FND 701 0008 SAPK-70108INSAPBSFND SAP Business Suite Foundation

    SAP_BW 701 0007 SAPKW70107 SAP Business Warehouse

    SAP_AP 700 0021 SAPKNA7021 SAP Application Platform

    WEBCUIF 700 0008 SAPK-70008INWEBCUIF SAP WEBCUIF 700

    SAP_APPL 604 0008 SAPKH60408 Logistics and Finance

    SAP_HR 604 0026 SAPKE60426 Human Resources

    Mainframe

    Machine: IBM-2827704
    Model: EZ12
    Operating System: Z/OS
    Version: ZOS1.13

    Unicode System: No

    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.