UNIX files pc download (AL11, ...)

Hi,
I generate a unix file (output as file), for example for EC Sales List, and I want to know how to access such file with a user transaction or something similar. If I access to the file directly in the server the file is absolutely correct, but I want the user to be able to access the file. I am trying to use transaction AL11 to save such file in local pc unconverted, but I have problems because it includes a header and each line of the file end after the last character not blank and it should not do that. The file in the server do not end after the last character not blank, because it has characters '   ' at the end of each line. That is why I would like to know if there is another way to access to unix files.
Thanks,
Ariana

Thank you very much for your answers. Finally, using CG3Y I can obtain my file without problems.
Message was edited by:
        Ariana Landaluce

Similar Messages

  • Downloading Unix  File

    Hi ,
    I am downloading file in Unix in application as well as presentation server.
    could anybody pleade tell me how should I test these file .
    Regards.
    Kusum.

    Yes , you are right, but if you application server is unix, then AL11 will fetch data from Unix. However, if you wish to see the file on the unix OS and not AL11, you can ask your system administrator for the same.
    With respect to presentation server, it doesn't matter what operating system you are on because you will see the file on your local PC whereever you download the file to.
    regards,
    Advait

  • Download PDF spool to unix file system

    Does anyone know how to programatically download a PDF document spool to the unix file system?
    I am trying to find a method to send PDF documents that have gone to spool to a unix file system. If anyone had any ideas on how to do this, please let me know.
    Thanks.

    Hi,
    For this define a logical file while using transaction FILE.
    In your code you will get the complete path of the file while using FM FILE_GET_NAME.
    Then download your PDF while using instruction
    OPEN DATASET...
    TRANSFERT ...
    Hope this help you .
    Best regards

  • Unix file download

    An ABAP program is downloading a file and how do I see the file..There iis a transaction and a program which we need to exeucte...
    Please help.

    Hi,
    try this.
    report ztest no standard page heading.
    tables: z_mver.
    parameters: test(60) lower case default '/dir/judit.txt'.
    data: begin of unix_intab occurs 100,
    field(53),
    end of unix_intab.
    data: msg(60).
    ***open the unix file
    open dataset test for input in text mode message msg.
    if sy-subrc <> 0.
    write: / msg.
    exit.
    endif.
    ***load the unix file into an internal table
    do.
    read dataset test into unix_intab.
    if sy-subrc ne 0.
    exit.
    else.
    append unix_intab.
    endif.
    enddo.
    close dataset test.
    ***to process the data. load the database table
    loop at unix_intab.
    z_mver-mandt = sy-mandt.
    z_mver-matnr = unix_intab-field(10).
    translate z_mver-matnr to upper case.
    z_mver-werks = unix_intab-field+10(4).
    translate z_mver-werks to upper case.
    z_mver-gjahr = sy-datum(4).
    z_mver-perkz = 'M'.
    z_mver-mgv01 = unix_intab-field+14(13).
    z_mver-mgv02 = unix_intab-field+27(13).
    z_mver-mgv03 = unix_intab-field+40(13).
    to check the data on the screen (this is just for checking purpose)
    write: / z_mver-mandt, z_mver-matnr, z_mver-werks, z_mver-gjahr,
    z_mver-perkz, z_mver-mgv01,
    z_mver-mgv02, z_mver-mgv03.
    insert z_mver client specified.
    *if the data already had been in table z_mver then sy-subrc will not be
    *equal with zero. (this can be *interesting for you - (this list is
    *not necessary but it maybe useful for you)
    if sy-subrc ne 0.
    write:/ z_mver-matnr, z_mver-werks.
    endif.
    endloop.
    - Selvapandian Arunachalam

  • About download file into unix file

    Hi expert,
    i use the openset to write file into unix file server.
    but why there are some space at the end of every line.
    by the way, i works very well in windows server
       DATA: DATA_TRANSFER(70).
        Data: DATA_TRANSFER type string.
        data: fine_riga1(1) TYPE X VALUE '0D0A'.
        DATA: gt_data TYPE STANDARD TABLE OF ty_data.
        Constants: ascii_tab type x value ','.
        field-symbols: <f> type any, <delim> type any.
        "Assign delimiter field such as tab or comma.
        assign ASCII_tab to <delim>.
        CLEAR VN_CNT.
        concatenate DSNU 'employee' PN-BEGDA SY-UZEIT into P_UNIX.
        OPEN DATASET P_UNIX in legacy text MODE FOR OUTPUT. " IN TEXT MODE encoding UTF-8.
        IF SY-SUBRC <> 0.
          WRITE: / 'Error on file open:', P_UNIX.
        ELSE.
          LOOP AT TI_DATA .
            CLEAR DATA_TRANSFER.
            concatenate TI_DATA-TYPE
                              TI_DATA-PERNR
                              TI_DATA-ZAUSW
                              TI_DATA-ENAME
                              TI_DATA-TERID
                              INTO DATA_TRANSFER separated by cl_abap_char_utilities=>HORIZONTAL_TAB.
            CONDENSE DATA_TRANSFER NO-GAPS.
            TRANSFER DATA_TRANSFER TO P_UNIX.
            ADD 1 TO VN_CNT.
            CLEAR DATA_TRANSFER.
          ENDLOOP.
          CLOSE DATASET P_UNIX.
        ENDIF.
        WRITE: / P_UNIX,
               / 'Transfered', VN_CNT, 'records'.
    Best Regards,
    Kevin

    Hi,
    Try this way...
    TRANSFER dobj TO dset [LENGTH len]
                                          [NO END OF LINE].
    Addition 1
    ... LENGTH len
    Effect
    This addition determines how many characters or how many bytes of data object dobj are written to the file. len is expected to be a data object of type i that contains the number of characters or bytes. In text files, the content of len specifies the number of characters that are written from the storage. For binary files, legacy text file, and legacy binary files, len specifies the number of bytes that are written to the file. The first len characters or bytes are transferred and alignment gaps are included in the structures. If the addition LENGTH is not specified, all characters or bytes are transferred.
    If the value of len is less than or equal to 0, no characters or bytes are transferred. If the file is opened as a (legacy) text file, however, a line end marker is inserted into the file by default. If the value of len is greater than the number of characters or bytes in dobj, hexadecimal 0 or blank characters are transferred to the file instead of the missing bytes or characters, depending on whether the file was opened as a (legacy) text file or a (legacy) binary file.

  • Function Module - to download the Unix file to frontend

    I need one function module which will dwon load unix file to frontend.
    If anyone knows the Function module plz tell me.

    FORM popup_from_server .
    *           call a function to get the physical name of the directory from the server
    *           using the given logical name FILE_GET_NAME
      CALL FUNCTION 'FILE_GET_NAME'
        EXPORTING
    *              CLIENT                        = SY-MANDT
          logical_filename              = p_logi    "ZHOME
         operating_system              = sy-opsys
         eleminate_blanks              = 'X'
       IMPORTING
         file_name                     = v_file_name.
      v_dirname = v_file_name.
    *          call a function to get the list of the files
    *          into an internal table from the given directory
      CALL FUNCTION 'SUBST_GET_FILE_LIST'
        EXPORTING
          dirname      = v_dirname
          filenm       = '*'
          pattern      = '*.txt'
        TABLES
          file_list    = i_file_list
        EXCEPTIONS
          access_error = 1
          OTHERS       = 2.
      v_unixfield = 'P_UNIX'.
      v_dynpprog = sy-repid.
      v_dynpnr = sy-dynnr.
    *           now call F4 help function, and populate the file list into its value table
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          retfield               = 'NAME'
         dynpprog               = v_dynpprog
         dynpnr                 = v_dynpnr
         dynprofield            = v_unixfield
         value_org              = 'S'
        TABLES
          value_tab              = i_file_list .
    ENDFORM.                    " popup_from_server

  • Any program avilable to see the Unix file into PC

    Hi,
    Any program avilable to see the Unix file into PC ?
    Best Regards,
    Bansi
    Moderator message: please learn about [Asking Good Questions in the Forums to get Good Answers|/people/rob.burbank/blog/2010/05/12/asking-good-questions-in-the-forums-to-get-good-answers] before posting further.
    locked by: Thomas Zloch on Aug 6, 2010 2:10 PM

    Hi,
    For this you will have to get the FTP server acces...
    if you have that, then follow the below steps.
    run program RSFTP002 in SE38.
    here in the selection screen you will have to fill the details like  USER , PASSWORD , HOST , COMMAND and RFC DESTINATION as mandatory.
    Command is nothin but to get the file from there... if you know the file name, then fill the field as GET filename.
    once this has executed successfully, it will be placed in sap directory './' . To view this, go to AL11 and double click this directory. search for the filename that you had downloaded.
    Hope this helps you.
    Regards.

  • Problem with special character in Unix file

    Hi All,
    Need a help here. We have unicoded our system recently.
    It's regarding a special character (umlaut) that comes through a 3rd party system to an Unix file. This gets displayed in AL11 file as # instead of ö.
    As our program picks the file from Unix, it also has the # but we want ö.
    We could have done some fixes in our code to fix if AL11 file at least had ö and we got # in our program.
    But it's the other way round. So, how can we get rid of this issue? Please suggest.
    Regards,
    Sanj.

    How Al11 is reading file ? Look for
    OPEN DATASET "yourfilename" IN TEXT MODE ENCODING DEFAULT FOR INPUT
                                  IGNORING CONVERSION ERRORS.
    If the above code is there .. you might need to play with different 'OPEN DATASET " options .
    Also look for Note 1174468 - Non-7bit-ASCII characters used in ABAP Workbench
                       Note 1227961 - Names of text fields with non-7-bit ASCII characters
    Good Luck !
    ^Saquib

  • URGENT : Writing to UNIX file problem !

    Hi friends,
    I am stuck at a crucial point while uploading a UNIX file from ABAP program.
    I am using open dataset & then transfer to...the file path.
    But when I go and check the UNIX file it is split into 2 lines (it is supposed to be a
    record with 1 line with 1500 characters) ! It shows a maximum of 255 chars in one line.Moreover,while I download to a text file via Txn CG3Y,some data are missing or truncated etc.
    Please suggest how can I create a record with 1500 characters in UNIX and download it successfully with full data or how can I ensure proper data has been transferred as the record display is truncated.I checked the program its fine,only after transferring I get the problem.
    Thanks,
    Sandip.

    The files would not get truncated. The file actually exists in App. server but you will be able to see only uptil 255 characters. You can check the same by downloading it onto Pres. server by specifying  file type as BIN when you are downloading through CG3Y

  • Special characters in UTF-8 UNIX file

    We have a program which downloads data from certain info-types in to the UNIX file, Fields are written to the specific position in the UNIX file. Some of the fields contains "Special Characters" in them.
    When we download the file in UTF-8 mode (encoding default) then the file display special characters correctly but the all the characters in that record gets shifted to left.
    When we download the file in ANSI mode then the file display doesn't special characters correctly but the all the characters in that record do not get shifted from their place.
    How can i find the special character in the field and accordingly i will shift the field right so that in the final UNIX file field won't shift their positions.

    Hi Ramnivas.
    Have you tried to read the characters with class: CL_ABAP_CHAR_UTILITIES (transaction SE24, label Attributes)
    For example you can see # in ABAP but in the file will be a new line or a carriage return, you can detect that an adapt it with:
    CL_ABAP_CHAR_UTILITIES=>NEWLINE or CL_ABAP_CHAR_UTILITIES=>CR_LF
    Other hand, if you are using OPEN DATASET to download the file, look at the options of encoding
    See F1 of OPEN DATASET and then encoding..
    OPEN DATASET - encoding
    Syntax
    ... ENCODING { DEFAULT
                 | {UTF-8 [SKIPPING|WITH BYTE-ORDER MARK]}
                 | NON-UNICODE } ... .
    Hope it helps
    Regards.
    Alfonso.

  • Transfer string to unix file

    Hi Gurus,
    I am converting data in an internal table (consisting of 5000 records) into XML string using CALL TRANSFORMATION. All data is stored in XML format in a variable of type STRING.
    I am trying to write this data in a Unix file using TRANSFER statement.
    The problem is all data is not copied into the file!
    Can anyone suggest a suitable solution so that complete data in the string variable will be reflected in the file?
    Regards,
    Jack

    Hi,
    If you are opening the file in text mode, your itab fields have to be character type fields. So define another itab with fields of character type with lengths defined as per your output requirements.
    You have understand that if you have floating, decimal fields, currency or quantity fields in your itab, they are know to SAP only, once you try to download such records, converting them into character form needs to happen.
    Did you try the binary mode with your 'open dataset' statement?
    Srinivas

  • Unix file to be converted to proper excel format

    Hi Ima writing data to unix file but when i want to download from there in excel format i data is not not aligned in excel format
    please let me know the seperator to be used to upload to unix which can be converted to excel with good alignment.
    i tried  seperator '09'  but didn't work and my version is 4.6 c so i can not use the encoding command or the classes.
    pls guide
    OPEN DATASET p_unix FOR OUTPUT IN TEXT MODE MESSAGE v_message .
      IF NOT sy-subrc IS INITIAL.
        MESSAGE e398(00) WITH text-008 p_unix v_message space.
      ENDIF.
    ** Write header to unix file
      LOOP AT gt_fieldcat1 INTO st_fieldcat1.
        CONCATENATE st_rec st_fieldcat1-seltext_l
               INTO st_rec
               SEPARATED BY ','.
      ENDLOOP.
    CONDENSE st_rec.
      TRANSFER st_rec TO p_unix.
    ** Write data to unix file
      LOOP AT  <fs_table>  ASSIGNING <fs_struc>.
        CLEAR: st_rec.
        DO.
          ASSIGN COMPONENT sy-index OF STRUCTURE <fs_struc> TO
                                                 <field>.
          IF sy-subrc NE 0.
            EXIT.
          ENDIF.
          v_field = <field>.
          IF v_field IS INITIAL.
            CONCATENATE st_rec v_field ','
                INTO st_rec .
          ELSE.
            CONCATENATE st_rec v_field ','
                INTO st_rec.
          ENDIF.
        ENDDO.
        TRANSFER st_rec TO p_unix.
      ENDLOOP.
    Close unix file
      CLOSE DATASET p_unix.

    Although I dislike MPEG-1 because of the large file size those .mpg files are commonly used on the Web. They can be played by nearly any computer and are not "Player" dependent like WMP or QuickTime so each user can decide how to view them.
    As a bonus they are a "playback" format which makes editing and repurposing them a bit more difficult so your media is a bit more "secure".
    I'll stick to QuickTime formats (avoiding H.264 video codec) and force QuickTime down their WiMPy throats. Millions of PC's have QuickTime installed (because of iTunes) and others can easily download the free Player and browser plug-in. By avoiding H.264 my files can be viewed on Mac's and PC's that can't install QuickTime 7.

  • Trailing space issue in Unix File

    Hi All,
    I am facing an issue with the trailing space in Unix file content.
    When the file is being created in Unix server the trailing space is getting trimmed automatically.
    As per the requirement,this space should be retained in the Unix file as it is when the file is being downloaded to PC.
    Is there any solution for this issue? Request your help for resolving this.
    Thanks in Advance,
    Savitha

    Hi,
    When you're writing youd data to the file (assume you're using the TRANSFER command), you could try explicitly specifying the length of the data line to write, ie.
    TRANSFER data(200) TO DATASET filename.
    Regards,   Andy

  • Urgent : Doubt on Output in UNIX FIle

    HI Friends,
    I have downloaded the output from my program into a text file.
    In which i have 1matnr,1tab,1price.
    it coming perfectly. I am using constant
    constant: c_a type x value '09'.
    this is giving a tab in text file.When i checked the output in Unix file, In the place of Tab a
    Hash(#) is replaced there.
    Can anybody help me to get only a material numer one tab and then a Date.
    or Is it like a Hash is the denotion for a Tab in unix.

    Hi gokul
                 I think you need to change File type in FM: WS_DOWNLOAD as 'DAT' or 'ASC' .
    Regards
    wiboon

  • How to get the Attributes of the UNIX  file Directories  ?

    Hi Guru,
    How to find of the Attributes of the UNIX  file Directories in sap  TC  :-   u2018 *ZZWT*u2019   .
    The file attribute details need to show in the report.
    I try on FM : EPS_GET_FILE_ATTRIBUTES
                       /SDF/GET_FILE_INFO
    But not getting the attributes details.
    If any idea plz. Help me.
    Regards,
    Subash

    Which basis release do you use?
    From 7.0 you have [GET DATASET|http://help.sap.com/abapdocu_70/en/ABAPGET_DATASET.htm] statement
    Before, you may only get what you see in AL11 : mimic what is in program RSWATCH0
    Or you may register and use [UNIX commands (SM69 transaction / SXPG|http://help.sap.com/saphelp_nw70/helpdata/en/fa/0971e1543b11d1898e0000e8322d00/frameset.htm]) and get the results
    Edited by: Sandra Rossi on Aug 2, 2009 12:39 AM

Maybe you are looking for