Create Text Files as Unicode in SAP 4.5

Hi Experts
Is there any way to generate generate/save text files in SAP 4.5?
Thanks

Hi There.
I would like to suggest,
In ECC 4.5, The function modules -
>
WS_UPLOAD and WS_DOWNLOAD are not obsolete as like in ECC 4.7 onwards, but you can use them. CL_GUI_FRONTEND_SERVICES is used in the recent versions.
But, In case for Unicode conversions, It is not possible in ECC 4.5.
As an alternative,
I suggest, you use the transfer from Internal table to Application Server using OPEN DATASET and CLOSE DATASET as described by Chandralekha.
I suggest, Use transaction code: CG3Y for transfer of file from application to presentation server.
For retrieving back from presentation server to Application server you can use------>
Transaction code -
> CG3Z.
Direct Text conversions are possible, just select from the list.
Hope that's usefull.
Good Luck & Regards.
Harsh Dave

Similar Messages

  • How to copy/send text file from FTPS to SAP ECC File Port

    Hi Frdns,
    I am working on one design, actually my requirement as follows
    I am receiving financial information document from Banks, which is in the form of BIA2 message format, it looks like text file. This information needs to be sending to SAP ECC system.
    I identified some approaches to full fill the requirement
    1)Using Conversion agent/or third party tools to convert BIA2 message in to XML, then using PI I will pick up the XML message, convert it in to IDoc.
    2)Without any conversion I will copy the same file (original BIA2 message) in to SAP ECC file port, in this case no conversion required, calling some program I will schedule it.
    I am looking forward t implement the second approach because it saves lot of money to my client.
    Now I am wondering using File adapter can i copy to SAP ECC File Port or I required ABAP proxy?
    What is the best approach to copy the BIA message text file from FTPS to SAP ECC File Port.??
    Regards,
    Raj

    Hi Raja,
    >>Now I am wondering using File adapter can i copy to SAP ECC File Port or I required ABAP proxy?
    Yes you can do this copy, the only restriction that can happen is the file size.. If you are sure that the fiel will be of few MB at the max then you can use the Configuration part alone and copy it to ECC folder. For doing this you need the following:
    1. Sender agreement (mention the sender interface as anything XYZ)
    2. Sender communication channel. Pick the file in binary mode
    3. Receiver determination (keep both the sender and receiver service as same)
    4. Interface Detemiantion (dont specify any mapping and keep the receiver interface name as XYZ)
    5. Create receiver agreement (with same service and interface)
    6. Use file adapter here
    Regards
    Suraj

  • Creating text file from table

    Hi all
    I have a table LFA1 with headers LIFNR, MANDT, NAME1, NAME2, ...., . That table contains data and I need to create text file that collects all headers with all data, where each field is separated by TAB.
    thanks for your help.

    Here is program for KNA1.
    *"Table declarations...................................................
    tables:
      kna1.                              " General Data in Customer Master
    *"Selection screen elements............................................
    select-options:
      s_kunnr for kna1-kunnr.            " Customer Number 1
    *" Type declarations...................................................
    types:
      begin of type_s_customer_details,
        name        like kna1-kunnr,
        address     like kna1-adrnr,
        title       like kna1-anred,
        createdon   like kna1-erdat,
        createdby   like kna1-ernam,
      end of type_s_customer_details.
    Internal table to hold General Data in Customer Master data         *
    data:
      t_customer_details type table
                           of type_s_customer_details
                         with header line.
                          START-OF-SELECTION EVENT                      *
    start-of-selection.
      perform select.
    *&      Form  select
    This subroutine selects information from database and exports the    *
    data into presentation layer                                         *
    There are no interface parameters to be passed to this subroutine.  *
    form select .
      select kunnr
              adrnr
              anred
              erdat
              ernam
         into table t_customer_details
         from kna1
        where kunnr in s_kunnr.
      if sy-subrc ne 0.
        write : / 'DATABASE SELECTION FAILED'.
      else.
        call function 'GUI_DOWNLOAD'
          exporting
      BIN_FILESIZE                    =
           filename                        = 'd:\customer_details.txt'
           filetype                        = 'ASC'
      APPEND                          = ' '
      WRITE_FIELD_SEPARATOR           = ' '
      HEADER                          = '00'
      TRUNC_TRAILING_BLANKS           = ' '
      WRITE_LF                        = 'X'
      COL_SELECT                      = ' '
      COL_SELECT_MASK                 = ' '
      DAT_MODE                        = ' '
      CONFIRM_OVERWRITE               = ' '
      NO_AUTH_CHECK                   = ' '
      CODEPAGE                        = ' '
      IGNORE_CERR                     = ABAP_TRUE
      REPLACEMENT                     = '#'
      WRITE_BOM                       = ' '
      TRUNC_TRAILING_BLANKS_EOL       = 'X'
    IMPORTING
      FILELENGTH                      =
          tables
            data_tab                        = t_customer_details
      FIELDNAMES                      =
         exceptions
           file_write_error                = 1
           no_batch                        = 2
           gui_refuse_filetransfer         = 3
           invalid_type                    = 4
           no_authority                    = 5
           unknown_error                   = 6
           header_not_allowed              = 7
           separator_not_allowed           = 8
           filesize_not_allowed            = 9
           header_too_long                 = 10
           dp_error_create                 = 11
           dp_error_send                   = 12
           dp_error_write                  = 13
           unknown_dp_error                = 14
           access_denied                   = 15
           dp_out_of_memory                = 16
           disk_full                       = 17
           dp_timeout                      = 18
           file_not_found                  = 19
           dataprovider_exception          = 20
           control_flush_error             = 21
           others                          = 22
        if sy-subrc <> 0.
          write : / 'Upload Failed' , sy-subrc.
        else.
          write : / 'Upload Completed'.
        endif.
      endif.
    endform.                               " SELECT

  • Problem in creating text file from report file

    Hello Everybody...
    I have problem in creating text file.
    I had set System Parameter as below
    DESTYPE : File
    MODE : Character
    DESNAME : gayu.txt
    And ruler setting
    Units : Character Cells
    Character Cell Size : Horiziontal = 7
    Vertiacle =12
    GridSpacing : 1
    no of snap points per grid spacing : 1
    but when i run report it will give error
    "REP_1219 M_2 or R_2 has no size -- length or width zero"
    so is there any solution of that
    or another way to convert report into text file?....

    Hi Folks,
    Please don't go after that Error as its a very deceptive one. Please don't go for altering your design Or changing the size of items in your layout.
    Similar errors I have come across in reports. I think its due to file transfer type. You might have transferred the file in Binary and your File Mode I am seeing it as CHAR.
    This normally happens while making the Report Format as "Text". Either you change that format which I think is possible in your case as your basic requirement is making a report output of CHAR type.
    Please check for this error in Metalink and proceed accordingly. I could fix similar errors when I changed Format type to PDF(from text).
    Regards
    Shibu

  • How to create text file of report in 10g

    Hi,
    I want to create text file of report in character mode and print that text file, without view it on screen.
    i want to do this in Oracle developer 10g and run this report on web.
    what coading i required to do for this pls. help me.

    Hello,
    Execute the Reports with the parameters MODE=CHARACTER DESTYPE=PRINTER DESNAME=<printer name>
    Regards

  • How to create text file like this?

    I want to create text file like attached file. I thought to create 2 text file: First text file make the headers ( Position, value 0,value 1....) , Second file make the table of data. Then combine them to be third text file. Someone can post other solutions?
    Attachments:
    testdf.txt ‏1 KB
    try_textfile.vi ‏18 KB

    Hi ha noi,
    you don't need 2 intermediate textfiles!
    Just write the header line first, then attach lines containing values...
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • Create text file in Database Trigger

    Hello,
    How to create text file in the database trigger. I am working on Row level trigger which has select statement if statement fails I have to create text file and insert record in text file. I tried to use file1 TEXT_IO.FILE_TYPE package it does not works.
    Thanks,
    Atif

    TEXT_IO is not available on the database. It is only available if you are doing client-side PL/SQL development in Oracle Forms. On the database side, you can use the UTL_FILE package.
    Since writing to a file is not transactional, however, and because Oracle may have to call a trigger multiple times to ensure write consistency:
    http://tkyte.blogspot.com/2005/09/part-iii-why-is-restart-important-to.html
    http://tkyte.blogspot.com/2005/08/part-ii-seeing-restart.html
    http://tkyte.blogspot.com/2005/08/something-different-part-i-of-iii.html
    you aregenerally better off not writing to a file in a trigger. The better answer is generally to use Oracle Asynchronous Queues to send a message to another process that actually writes the file. That way, if the transaction rolls back, nothing gets written to the file.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Down load or create text file using bapi

    hi friends,
    My requirement is to create text file or down load text file in presentation server when the bapi runs in which the ip address is defined at the interface.
    plz sujjest me,
    points will be rewarded .
    prasad.

    Hi,
    The FM 'GUI_DOWNLOAD' should use the network path like '
    10.10.10.10\shared_file\PO.txt'. Pass this value to the file path parameter and execute the program.
    Thanks..
    Preetham S

  • Create text file (ASCII), tab separated and load in sap (transaction al11)

    hi..
    i need to create a text file (ASCII), tab separated in sap which can be viewed in transaction AL11.
    thank you.

    Hi kailashl,
    Do intend to create a tab delimited file through program. or is it that you wish to diretly place the file on the application server.
    PS: if you wish to place the file which you have on the application server from presentation you use the tcode CG3Z, you need to give the source file path on the front end and target path on the application.
    If you wish to write the file onto the app server using program that you can do using dataset. and for tab delimited u can use CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB.
    PS: Award points ONLY if the solution was useful to you.

  • Prob in transferring the chinese texts from the text file (UTF-8) into SAP

    Hello SAP Experts ,
    We are using 4.6 C version
    I created a ABAP to upload Chinese Chars from a text file to SAP Database. The coding that I use to read the text file is showed as following:
    CALL FUNCTION 'WS_UPLOAD'
           EXPORTING
                CODEPAGE                = '8400'
                FILENAME                  = P_FILE
                FILETYPE                   = 'DAT'
           TABLES
                DATA_TAB                = LT_FILE_ADD_DATA
           EXCEPTIONS
                CONVERSION_ERROR        = 1
                FILE_OPEN_ERROR         = 2
                FILE_READ_ERROR         = 3
                INVALID_TYPE            = 4
                NO_BATCH                = 5
                UNKNOWN_ERROR           = 6
                INVALID_TABLE_WIDTH     = 7
                GUI_REFUSE_FILETRANSFER = 8
                CUSTOMER_ERROR          = 9
                OTHERS                  = 10.
      IF SY-SUBRC NE 0 .
      ENDIF.
    I use ABAP debugger to check the field values of the internal table .  But, the values of the internal table which contains chinese chars are changed to some other Chinese characters . How to fix this problem?
    I have used ASC filedatatype , but it doesn't work .
    Thanks for your reply . 
    Regards,
    Chopra

    Hi
    Not sure it will help. Please  check the link below.
    [http://www.sapfans.com/forums/viewtopic.php?f=23&t=40365]
    ~~~Ganesh Kumar K.

  • Create text file from form data

    I need to create a form using dreamweaver and coldfusion. We
    do not have coldfusion server. just Dreamweaver 8. Until we decide
    what application server we will use, I need to create a text file
    each time a user submits data from a form and put the data into a
    text file. What would be the best way to handle this?

    if you do not have an application server like CF or PHP or
    ASP (or
    other) to process your form submissions, you should look for
    a perl/cgi
    script that can do it for you. i remember from awhile ago a
    script
    called bnbform from bignosebird.com ... it is used for
    emailing form
    submissions to a designated email address, but if i remember
    correctly
    it also stored form data in a text file....
    Azadi

  • Seeking simple example pl/sql to create text file from table data

    hello,
    I am hoping someone can provide very simple example of creating a file on my local harddrive using a pl/sql program. The basic steps are as follows:
    First, I store some text in a varchar2 variable like this:
    1. select sometext into otextvar from mytable where recordid = 1;
    Second, I want this text to become a file in my data directory:
    2. c:\data\sometext.txt
    The second step is where I need help.
    Any suggestions are greatly appreciated.

    Use this function
    It will create for you a file in your /home/oracle directory with sysdate name and will insert all table names in it
    CREATE OR REPLACE PROCEDURE my_proc AS
    CURSOR cursor1 IS
    SELECT table_name from all_tables;
    CURSOR cursor2 IS
    SELECT sysdate from dual;
    rec1 cursor1%ROWTYPE;
    rec2 cursor2%ROWTYPE;
    created_file_name VARCHAR2(100);
    file_name utl_file.file_type;
    BEGIN
    OPEN cursor2;
    LOOP
    FETCH cursor2 INTO rec2;
    EXIT WHEN cursor2%NOTFOUND;
    created_file_name:=rec2.sysdate;
    file_name := utl_file.fopen('/home/oracle', created_file_name,'W');
    OPEN cursor1;
    LOOP
    FETCH cursor1 INTO rec1;
    EXIT WHEN cursor1%NOTFOUND;
    utl_file.putf(file_name, '%s\n',rec1.TABLE_NAME);
    END LOOP;
    utl_file.fclose(file_name);
    END LOOP;
    END my_proc;
    SQL>exec my_proc;

  • Email a created text file by the click of a button

    Hi
    What I am trying to do it that: In the Front Panels, All the data is collected via String Control and other Control, then when a press saved, a text file is created and stored in the path that I specified.
    It is possible in LabView to using a Button called 'Email Created File' to then e-mail that file as an attachment.
    What VIs or example does such a thing?
    P.S. I'm deploying it to a PDA.
    Cheers

    VI below
    Attachments:
    email.vi ‏36 KB

  • Cannot create text file acrobat reader X

    Hi,
    I am trying to create a text file for logging purposes. The creation of the text file works fine in Reader 8 & 9, but not in Reader X. I am just putting the file in the current directory of the pdf (for now on the Desktop), so it should have access/privileges to create the file.
          ASFile pFile;
       ASPathName volatile PathName = NULL;
       PathName = ASFileSysCreatePathName(ASGetDefaultFileSys(), ASAtomFromString("Cstring"), "testA.txt", 0);
       if (!PathName)
         ASRaise (ASFileError(fileErrOpenFailed));
       AVAlertNote("A");
       ASInt32  ret1 = ASFileSysOpenFile(NULL, PathName, ASFILE_CREATE|ASFILE_WRITE, (ASFile*)&pFile);
       if (ret1 != 0)
          AVAlertNote("A1");
          char  buf[33];
          sprintf(buf,"error %d",ret1);
          AVAlertNote(buf);
          return 0;
       AVAlertNote("B");
    In reader X the alert sequence is:
    "A" -> "A1" -> "error 1074593797"
    Instead of just "A" -> "B"
    Any help would be appreciated.
    Regards,
    Magda

    You need to read up on the new Sandbox in Reader X.

  • Create text files-very urgent

    how can i create a text file using 'comma' as delimiter.moreover table is having
    around million records,i want to create a sy for eg.about 10 thousansd.is it a
    time consuming process.Pls help me

    Using SQL*Plus to format the output is easiest way
    set colsep ,
    set lines 1000
    set pages 1000 -- or you can use pages 0 to suppress the column headings
    spool output.txt
    select * from emp where rownum < 10
    spool off
    EMPNO,ENAME ,JOB , MGR,HIREDATE , SAL, COMM, DEPTNO
    7369,SMITH ,CLERK , 7902,17-DEC-80, 800, , 20
    7499,ALLEN ,SALESMAN , 7698,20-FEB-81, 1600, 300, 30
    7521,WARD ,SALESMAN , 7698,22-FEB-81, 1250, 500, 30
    7566,JONES ,MANAGER , 7839,02-APR-81, 2975, , 20
    7654,MARTIN ,SALESMAN , 7698,28-SEP-81, 1250, 1400, 30
    7698,BLAKE ,MANAGER , 7839,01-MAY-81, 2850, , 30
    7782,CLARK ,MANAGER , 7839,09-JUN-81, 2450, , 10
    7788,SCOTT ,ANALYST , 7566,19-APR-87, 3000, , 20
    7839,KING ,PRESIDENT, ,17-NOV-81, 5000, , 10
    You can play around with your SQL and column data format to how you want
    Cheers
    Dave

Maybe you are looking for

  • How does one force an image to a defined color palette?

    I'm trying to limit the colors displayed in an RGB image but I'm not sure how to go about doing. I have a palette of 454 colors (so indexed color is not an option) and I would like to force my image to that color space. This may seem like an odd requ

  • With clause query issue in oracle cloud script editor

    When I am running this query in SQL Workshop > SQL Commands window then its working fine with cte as (select * from emp) select * from cte where deptno = (select deptno from dept where loc = 'DALLAS') but its give me error in SQL Workshop > Script Ed

  • PO item serial No

    Hi, PO item serial number  will come as 10,20,30 etc. Can we change it into 1,2,3 etc  ? Because in PO print I need serial number as 1,2 ,3 etc. Kindly advise. regards,

  • LMS not tracking quiz completion or interaction data

    I have created two identical assessments (apart from the questions). When users exit the POST assessment on the Quiz Reporting slide, the LMS tracks their completion and interaction data. However, when users exit the PRE assessment on the Quic Report

  • Document updates in HA configuration

    I have developed an application with an HTTP trigger that is generically used to upload documents to the repository.  It's pretty simple...you send it the file name and the xml data as parameters and it uploads the document using the overwrite option