Export file from unix to windows

hi,
i need your suggestions about an issue.
my problem is that i have a oracle db on unix machine. i will create a procedure on that database which will produce a text file. however, i need to place this file to a windows machine and want to make it with pl/sql code no other tool or something. is this achievable?

hi again, let me clarify my problem.
the procedure will run in unix and create the file on windows.
the pl/sql code will generate an xml output , i want to save this output to windows.
is this achievable, if so, how?

Similar Messages

  • Transfer file from UNIX to windows application server G:\ drive

    Dear Expert,
    Really need some help on this, very urgent !
    The download program schedule in background to allow file store in unix.
    Can we do a unix command in abap program to transfer the file from unix to windows application server G:\ drive.
    The gateway for that application server is ukblmqg02.emea.astrazeneca.net .
    Anyone have the sample source code ?
    Thanks&regards
    Nislina

    Hi,
    1.
    There is  a FM 'ARCHIVFILE_SERVER_TO_CLIENT'.
    If the requirement need not necessarily require a FM to transfer a file, then you can also use transaction 'CG3Y' to transfer a file
    from application server to presentation server.
    2.
    Try to use FM  DOCFILE_SERVER_TO_CLIENT. I am using it to download a file from SAP application server to desktop.
    Source path should be application server file path along with file name i.e. /tmp/sample.xls.
    Target path should be something like c:\file.xls.
    Best regards,
    Prashant

  • DATA TRANSFER - How to get a SINGLE SPACE in downloaded txt file from UNIX?

    Hi Experts,
    Am sending data from SAP to UNIX/ Application server and text file on desk top as well.
    So, I am keeping a single character just SPACE at the END of each record.
    Then, When I see the downloaded text file, I found a SINGLE SPACE at the end of each record, fine.
    Then, by using CG3Y t code, I downloaded the UNIX file to my desk top.
    But, When I see this UNIX downloaded file from UNIX, I did NOT find any SPACE at the end of each record!!!
    Am doing every thing same in both cases.
    So,
    1 - Why its happening in case of UNIX file?
    2 - How to get a SINGLE SPACE  at the END in the downloaded file from UNIX?
    thanq

    Its there, I am talking abut this -
    OPEN DATASET - linefeed
    Syntax
    ... WITH { NATIVE
             | SMART
             | UNIX
             | WINDOWS } LINEFEED ... .
    Alternatives:
    1. ... WITH NATIVE LINEFEED
    2. ... WITH SMART LINEFEED
    3. ... WITH UNIX LINEFEED
    4. ... WITH WINDOWS LINEFEED
    Effect
    : These additions determine which line end marker is used for text files or legacy text files. If these additions are used, the profile parameter abap/NTfmode is ignored. Simultaneous specification of the values "UNIX" or "NT" in the addition TYPE is not permitted.
    If these additions are not used, the line end marker is determined as follows, depending on the operating system of the current application server:
    The line end marker for Unix is "LF". Under Unix, OS390 and OS400, only "LF" is used for reading and writing.
    The line end marker for MS Windows is "CRLF". Under MS Windows, however, the values of the profile parameter abap/NTfmode can also be used to set whether new files are handled according to Unix conventions or Windows conventions. If the profile parameter has the value "b", the Unix line end marker "LF" is used. If the profile parameter has the value "t" or is initial, the Windows line end marker "CRLF" is used. The setting using the profile parameter can be overridden with the addition TYPE and the value "UNIX" or "NT". If an existing file is opened without the addition TYPE, this is searched for the first line end marker ("LF" or "CRLF"), and this is used for the whole file. If no line end marker is found, the profile parameter is used. This applies particularly if an existing file is completely overwritten with FOR OUTPUT.
    If an addition WITH NATIVE|SMART|UNIX|WINDOWS LINEFEED is used, this setting can be changed for the open file using the statement SET DATASET. If neither of the additions is used, the line end marker also cannot be changed using SET DATASET.
    Notes
    : Without the use of an addition WITH LINEFEED, the line end marker is dependent on diverse implicit factors such as the operating system of the application server, a profile parameter, and line end markings that are already used. For this reason, the explicit use of WITH LINEFEED is recommended, which renders the use of the addition TYPE for setting the line end marker obsolete.
    The line end marker that is currently used can be determined for every open file using GET DATASET.
    Alternative 1
    ... WITH NATIVE LINEFEED
    Effect
    : This addition defines the line end marker independently of the access type according to the operating system of the application server, i.e. "LF" for Unix OS390 or OS400, and "CRLF" for MS Windows.
    The line end marker is interpreted according to the current codepage. If a code page is explicitly specified using the addition CODE PAGE, the characters of the line end marker must exist be available or be written in accordance with this code page.
    Note
    : The addition WITH NATIVE LINEFEED is intended for editing files on an application server that can also be accessed by other means. The addition receives the appropriate line end marker without the program needing to know the operating system.
    Alternative 2
    ... WITH SMART LINEFEED
    Effect
    : This addition depends on the access type:
    In files that are opened for reading using FOR INPUT, both "LF" and "CRLF are interpreted as a line end marker. When opening an EBCDIC file with the addition CODEPAGE, in addition to "LF", "CRLF", and the EBCDIC character strings, the corresponding ASCII character strings are also recognized. In addition, the EBCDIC character "NL" (line separator) is also interpreted as a line end marker.
    In files opened for appending or changing with FOR APPENDING or FOR UPDATE, the program searches for a line end marker that is already used in the file. In this process, first the end of the file is identified. If no line end marker is found there, a certain number of characters at the beginning is analyzed. If a line end marker is found, this is used when writing to the file. This is also affected by the addition CODE PAGE. For example, ASCII line end markers are recognized and used in a file opened with EBCDIC, but not the other way round. If no line end marker is found or no search is possible (for example, if the file is opened with the addition FILTER), the line end marker is determined according to the operating system of the application server, as with the addition WITH NATIVE LINEFEED.
    In files opened for writing using FOR OUTPUT, the line end marker is determined according the operating system of the application server, as with the addition WITH NATIVE LINEFEED.
    Note
    : The addition WITH SMART LINEFEED is intended for the generic editing of files in heterogeneous environments. The line end marker is recognized and set for different formats. The use of this addition is the best solution for most application cases.
    Alternative 3
    ... WITH UNIX LINEFEED
    Effect
    : The line end marker is set to "LF" regardless of the access type and operating system of the application server.
    The line end marker is interpreted according to the current code page. If a code page is specified explicitly using the addition CODE PAGE, the characters of the line end marker must be available or be written according to this code page.
    Note
    : The addition WITH UNIX LINEFEED is intended for editing Unix files in which the specific line end markers are to be retained, even if the operating system of the current application server is MS Windows.
    Alternative 4
    ... WITH WINDOWS LINEFEED
    Effect
    : The line end marker is set to "CRLF" regardless of the access type and operating system of the application server.
    The line end marker is interpreted according to the current code page. If a code page is specified explicitly using the addition CODE PAGE, the characters of the line end marker must be available and be written according to this code page.
    Note
    : The addition WITH WINDOWS LINEFEED is intended for use with MS Windows files in which the specific line end marker is to be retained, even if the operating system of the current application server is Unix, OS390 or OS400.

  • Download file from UNIX to EXCEL problem

    Hi,
    I am trying to download file from UNIX server to excel file, there is one column which is messing up and that is number 100000000000000002 (18 in length) it is writing as 1E+17, funny thing is when I click on that cell it is showing as
    100000000000000000.
    I am using GUI_DOWNLOAD to download to excel, below is the output excel format, I am talking about 4th value from left
    GUID    leg_reg     lic_type     lic_num     ex_lic_num     vali_from     valid_to     created_by
    3E633B85C05E6F28E100     EAR     ENC     1E+17     ENC     20030305     20930305     VANRIJ
    below is the program I am using to download the output from UNIX to excel
    FORM get_data_file.
      OPEN DATASET p_unxfil FOR INPUT IN TEXT MODE ENCODING DEFAULT.
      IF sy-subrc = 0.
        DO.
          READ DATASET p_unxfil INTO input_file_tab-line_string.
          IF sy-subrc <> 0.
            EXIT.
          ENDIF.
          APPEND input_file_tab.
          CLEAR  input_file_tab.
        ENDDO.
      ELSE.
        PERFORM write_message USING 'ZZ' 'E' '000'
          'Unable to find file' p_unxfil
          '  Press Enter key to exit.' ''.
      ENDIF.
      CLOSE DATASET p_unxfil.
      DESCRIBE TABLE input_file_tab LINES record_cnt.
    ENDFORM.                    " get_data_file
    FORM create_pc_file.
      DATA: l_file TYPE string.
      MOVE p_pcfile TO l_file.
    Save the file
      CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
          filename                = l_file
        TABLES
          data_tab                = input_file_tab
        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 NE 0.
        WRITE: / 'Error creating pc file', p_pcfile.
        EXIT.
    endif.
    I will assure of points.
    Thanks for your help
    Sarath

    It is not the problem of your program. This happens becuase of the "nature" of the excel. You need to retain the text property of that column.
    Try like this:
    1. Download the file in .txt
    2. Open Excel .. blank sheet
    3. Now, click on Open. Select your .txt file
    4. One pop up will come ..."Text Import Wizard"
    5. Select the fixed width or Delimited ... Press Next ...
    6. Select appropriate delimitors or fixed length .. press Next
    7. Select your coulumn (which has the problem), Select the "Text" radiobutton on the upper-right corner and finish.
    Regards,
    Naimesh Patel

  • Sample code to read a text file from UNIX directory.

    I am using 9i Developer Suite, application server is 9.0.4. I want some help on how to read a flat file from UNIX environment. A sample code could be very helpful.
    In windows, i use this kind of code:-
    I declare an object & then write to a file using these sample staements:-
    file_handle text_io.file_type;
    filename := 'd:\ran\egs\uninvoiced.txt';
    file_handle:=text_io.fopen(filename,'w');
    text_io.put_line(file_handle, 'MOBILE NO '||'COUPON NO ' || 'DATE');
    I hope, my question is clear. Please help in solving the doubt.
    Regards.

    filename := 'd:\ran\egs\uninvoiced.txt';This is a Windows directory, so it won't work on Unix.
    For the rest of the code: see examples in the Forms Builder Online Help.

  • How to change Syntax group and physical path in SARA from unix to windows.

    Our customer migrate current current archiving server from Unix to windows
    How to change Syntax group and physical path in SARA from unix to windows.

    http://help.sap.com/saphelp_nw70/helpdata/EN/8d/3e4ec2462a11d189000000e8323d3a/frameset.htm
    you have to change
    Logical Path Names
    Logical file  Names
    Note 35992 - File name/directory for application archiving
    hope this will help you
    cheers
    dEE

  • Printing of PDF files from Unix and Linux

    Hi
    I am looking for a product (free or commercial) that can print PDF files from Unix (HP-UX, AIX) and Linux system. It must have similar features to the Windows Adobe print driver like setting margins, re-sizing, size to fit, etc.
    Thanks
    Gil

    Hi Gil,
    For HPUX and AIX Adobe Reader 7.0.9 is available for download.
    For Linux and Solaris, the latest version available is Adobe Reader 8.1.2.
    You can download the installers from :
    http://www.adobe.com/products/acrobat/readstep2_allversions.html
    Regards,
    Rishi

  • Concurrent program to FTP from Unix to windows

    Hi,
    I am trying to FTP files from UNIX to a windows machine. I tried to do it through a shell script but it did not work , so i tried at the command prompt.
    I am able to login and get files from windows to UNIX but I am not able to PUT files.
    I spoke to the admin and he says all permissions are granted on teh remote host. I am able to put files with the same userid from windows to windows but not from UNIX to windows.
    Any ideas why? User id has read/write permissions.
    thanks

    are you sure its a path issue i face the same issue before and find out it was a windwos premission issue
    fadi hasweh
    http://oracle-magic.blogspot.com/
    Oracle is not Magic, it just takes years of experience

  • DATA TRANSFER - How to get a SINGLE SPACE in the downloaded file from UNIX?

    Hi Experts,
    Am sending data from SAP to UNIX/ Application server and text file on desk top as well.
    So, I am keeping a single character just SPACE at the END of each record.
    Then, When I see the downloaded text file, I found a SINGLE SPACE at the end of each record, fine.
    Then, by using CG3Y t code, I downloaded the UNIX file to my desk top.
    But, When I see this UNIX downloaded file from UNIX, I did NOT find any SPACE at the end of each record!!!
    Am doing every thing same in both cases.
    So,
    1 - Why its happening in case of UNIX file?
    2 - How to get a SINGLE SPACE  at the END in the downloaded file from UNIX?
    thanq

    Hi,
    I don't know if this works:
    perform SET_TRAIL_BLANKS(saplgrap) using 'X'.  
    perform SET_FIXLEN(saplgrap) using '0' '060'.   "put length of your line from-to
    ... download ...
    It will put space at the end of your line, according to the length.
    Hope it works,
    Chang

  • Reading XML file from UNIX

    I am reading XML file from unix using :
    FORM read_file USING p_name.
      DO.
        READ DATASET p_name INTO WXML_LINE LENGTH LENG.
      ENDDO.
    Then I am using subroutine below where I get a short dump at
      case X_NODE->get_type( ).
    FORM get_data tables   Y_CAPXML   structure GV_CAPXML
                  using value(x_node) type ref to if_ixml_node.
      data: INDENT      type i.
      data: PTEXT       type ref to if_ixml_text.
      data: STRING      type string.
      data: TEMP_STRING(100).
      case X_NODE->get_type( ).
        when if_ixml_node=>co_node_element.
          STRING = X_NODE->get_name( ).
          GV_NODETEXT = STRING.
        when if_ixml_node=>co_node_text.
          PTEXT ?= X_NODE->query_interface( IXML_IID_TEXT ).
          if PTEXT->ws_only( ) is initial.
            STRING = X_NODE->get_value( ).
            case GV_NODETEXT.
              when 'NIIN'.
                move STRING to GV_CAPXML-NIIN.
              when 'FED_x0020_STOCK_x0020_CLASS'.
                move STRING to GV_CAPXML-fed_stock_class.
              when 'DODIC'.
                move STRING to GV_CAPXML-dodic.
             endcase.
    The text for the short dump is : STACK_STATE_NO_ROLL_MEMORY
    Can someone please explain what is it mean.
    Thanks.

    May be this blog can help:
    <a href="/people/r.eijpe/blog/2005/11/21/xml-dom-processing-in-abap-part-ii--convert-an-xml-file-into-an-abap-table-using-sap-dom-approach for Blog</a>
    Sri

  • How do I transfer my files from Quicken 13 (Windows) to Lion Compatible Quicken 2007

    How do I transfer my files from Quicken 13 (Windows) to Lion compatbile Quicken 2007

    This discussion has selected links to "greatest hits" from the completely obtuse Quicken so-called "Help" database:
    https://discussions.apple.com/message/22063897#22063897

  • Exporting files from Final Cut Pro in Snow Leopard

    I am using Final Cut Studio 2. I recently upgraded to Snow Leopard. Before the upgrade when I would export files from Final Cut the dialog box would automatically go to the last used folder location. Now, each time it goes to the system hard drive. Is there a way to fix this?
    Thanks

    Fix what?
    Just choose the correct folder to which to export.

  • How do I export file from photoshop CC?

    How do I export file from Photoshop CC

    Good day!
    Export what as which file format?
    • jpg, png, gif can be created with File > Save for Web,
    • jpg, png, gif, tif, psd, psb, eps, … with File > Save As (check »As a Copy« if needed),
    • some video formats, Illustrator Paths, Data Sets with File > Export.
    Regards,
    Pfaffenbichler

  • Exporting files from iPod

    I have a lot of videos saved to my iPod that got deleted from my computer because I didn't have the space to store them. Now, my sister has an iPod, and I want to give them to her. I want to know if it's possible to export files from an iPod to a computer, but I'd welcome any other suggestions related to the situation.

    http://discussions.apple.com/thread.jspa?messageID=2647831&#2647831
    http://discussions.apple.com/thread.jspa?messageID=2647790&#2647790
    http://discussions.apple.com/thread.jspa?messageID=1660579&#1660579

  • Database shifting from UNIX to WINDOWS

    Hi,
    We have a production server located at Suse UNIX.
    We would like to move database from UNIX to WINDOWS.
    I would like to know what are the difficulties/scenarios which occures while moving the database?
    How difficult is it to import current oracle database to oracle on windows server ?
    Please explain in details.
    Thanks,

    hi what is your version of database?
    are you chaging the database version also or simply operating system?
    if you are only changing OS, then exp/imp is the best option. but to acheive this you need to do some groundwork like collecting all the tablespaces information and schemas and their privileges etc.
    also depends on database size also you can choose come other options.
    if your database version is 10g then you can best use the option of datapump exp/imp or network_link parameter of datapump.

Maybe you are looking for

  • Need to have a check to prevent GR reversal without doing IR reversal

    Hi, I need to know if there is any check in SAP which can prevent GR reversal without doing IR reversal. Regards Raghavendra

  • Unfortunately skype has stopped

    The above subject message is what I get when trying to open Skype on my Android tablet.  I have tried to uninstall and reinstall Skype again but continually get same message.  I have version 5.2.0.62296 which was suposedly revised a couple weeks ago.

  • INSTALL FAILED on Trial

    So I downloaded the Adobe Flash trial and began the install. The installation proceeded without a hitch until the very end. Right around 95% or when just below the progress bar it reads "Installing Adobe Flash CS4", the installation ceases and the se

  • Unable to start chat on BBM

    Hi all, I  only have  people I know on my BBM contacts and in the past I have chatted to all of them, I tried to start a chat with one of them last night and it is like my track pad wont allow me to select one of my contacts, I did SMS her to see if

  • How do I change my security questions without having to answer my security questions??

    Here's the deal. I'm a little drunk, just tryin to buy a good song I heard on The Voice (yeah whatever) and I can't remember my password, my email info, or my security questions. Ten minutes later and I remember my itunes password. Great right? Well,