Transfer data in unix with tab-delimited

Hi,
How can we transfer data to unix with tab-delimited? I have incoming file with tab-delimited and want to copy as backup file in another folder in unix. When I read the incoming file, tab separator is translated into '#' so when I do transfer data to the backup folder, the file contains '#'.
Is there a way to transfer data in tab-delimited?
thank you
alia

try to use delimiter cl_abap_char_utilities=>HORIZONTAL_TAB.
here is a piece of code:
REPORT  ztestfile                               .
DATA: BEGIN OF gt_file_out OCCURS 0,
        filed(2000),
      END OF gt_file_out.
START-OF-SELECTION.
  DATA: lv_file_out LIKE filename-fileextern.
  CONCATENATE 'Hello' 'World' INTO gt_file_out SEPARATED
    BY cl_abap_char_utilities=>horizontal_tab.
  APPEND gt_file_out.
  lv_file_out = '
XXXX\XXXX\mytest1.txt'.
  OPEN DATASET lv_file_out FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.
  LOOP AT gt_file_out.
    TRANSFER gt_file_out TO lv_file_out.
  ENDLOOP.
  CLOSE DATASET lv_file_out.
Message was edited by: joseph fryda

Similar Messages

  • How do i transfer data from one internal tabe to another.

    Hi All,
             How do i transfer data from one internal tabe to another.
             Can i do it ebven if he tables are different in structure.
    Please Advice.
    Thanks in advance.

    Hi Saket Tiwari,
    I hope the earlier post by kashyap is good enough an answer. anywas in addition to it let me give a detailed
    explanation of how you can populate an internal table.
    1) Append data line by line.
         Syntax :  APPEND [<wa> TO / INITIAL LINE TO] <itab>.
    this appends new line to internal table <itab>.
    2) Using COLLECT statement.
                 COLLECT is another form of statement used for populating the internal tables.  Generally COLLECT is used while inserting lines into an internal table with unique standard key. The syntax for COLLECT statement is as shown
         Syntax : COLLECT [<wa> INTO] <itab>.
    3) Using INSERT statement
         Syntax  INSERT [<wa> INTO / INITIAL LINE INTO] <itab> [index <idx>].
    INSERT statement adds a line/work area to the internal table. You can specify the position at which the new line is to be added by using the INDEX clause with the INSERT statement.
    Now coming to your request..
    To append part or all of an internal table
         Syntax
                  APPEND LINES OF <itab1> [FROM <n1>] [TO <n2>] TO <itab2>.
    *     Note:
    Without the FROM and TO options, this statement appends the entire table <itab1> to <itab2>.*
    b) To insert part or all of an internal table into another internal table
         Syntax
              INSERT LINES OF <itab1> [FROM <n1>] [TO <n2>]
              INTO <itab2> [INDEX <idx>].
    c) Using Move statement.
    To copy entire contents of one table into another in one execution
         Syntax MOVE  <itab1> To <itab2>.
                   OR
              <itab1> = <itab2>.
    but u hav to be careful because he contents of itab2 will eb overwritten on the execution of this statement.
    These copy the contents of ITAB1 to ITAB2. Incase of internal tables with header line we have to use [] inorder to distinguish from work area. So, to copy contents of internal tables with header line  the syntax becomes,
    ITAB1[] = ITAB2[].
    Coming to the letter part of your question, Yes, we can copy values between tables having different structures.
    for this we use    
                                MOVE-CORRESPONDING <itab1> TO <itab2>
        this executes the statement for their header lines. Searches for the sub-fields which occur both in itab1 and itab2 and then generates, for all relevant field pairs which correspond to the
            sub-fields ni , statements of the form MOVE itab1-ni TO itab2-ni. The other fields remain unchanged.
    I hope the information provided has been of your help.
    Reward if useful.
    Regards,
    Jose

  • Download the file in Presentation server with TAB Delimited

    Hi,
    I have to download the data of the finla internal table in presentation servr.
    The oup put file should be TAB Delimited. I can do the same with using LOOP.
    Is there any class or FM to do the same so that the out put file can be TAB Delimited.
    Sandeep

    HI,
    you can use the fm
    GUI_DOWNLOAD
    in that if you see the
    WRITE_FIELD_SEPARATOR - the import parameter, you can use this
    so that the fille will be downloaded with tab delimited.
    Regards,
    Venkatesh

  • How t o make data in file as tab delimited..

    Hi frndz,
      How to make data in file as tab delimited.

    For tab delimiting pl use the following snippet..I guess you are aware of the rest of the stuff..
    data: w_tab type c value cl_abap_char_utilities=>horizontal_tab,
          rec_file type string.
    concatenate <fld1> <fld2> ...<fldn> into rec_file
                   separated by w_tab.
    ~Suresh

  • Concatenate with tab delimiter

    Hi,
    I need to put 3 fields in a Unix text file separating them with a tab delimiter.I know How to send it to unix but anyone tell me how I write the concatenate .
    I have another issue ...when I bring it back from unix to r/3...then how should I check for it to split the fields?
    anyone help ASAP
    Message was edited by:
            ramana peddu

    To split use something like this:
    Data: rec_str(180).
    data: F1(60),
            F2(60),
            F3(60)
    do.
      read dataset YourFile into rec_str.
      if sy-subrc <> 0.
         exit.
      endif.
      SPLIT rec_str AT cl_abap_char_utilities=>horizontal_tab INTO F1 F2 F3.
      write:/ F1, F2, F3.
    enddo.

  • Concatenate with 'tab' delimiter in Unicode system

    Hi All,
    In current system we have a program that creates a tab-delimited file with following code where wa1 and wa2 are character-type fields.
    data: delim type x value '09'.   (a tab in hex)
    concatenate wa1 delim wa2 into wm_lstfil.
    Unicode system won't allow char and hex fields to intermix.  Suggestions on how to replace this code so that we continue to create a tab-delimited output line?
    Thanks,
    Kirsten

    Hi
    You can use the following...
    CLASS cl_abap_char_utilities DEFINITION LOAD.
    DATA: text TYPE string.
    <b>Concatenate your data into variable text .... and then,</b>
    REPLACE cl_abap_char_utilites=>horizontal_tab WITH space INTO text.
    Regards,
    Raj

  • Output file as a text file with tab delimited and fixed length fields

    Hi all,
    I have developed a custom report which outputs an excel file on the user desktop who executes that report.Now i need to create an additional (second) excel file with almost the same data as the first file.
    Im using the FM GUI_DOWNLOAD to create the file.i need have the 2nd file as txt file(seperated by space/tab delimited) and also i want the fields to have fixed length.For this format of the file,what parameters do I need to pass to the FM ?
    BR,
    SRM Tech.

    Thanks for the prompt reply.
    Also in the sel screen,Im entering the path where  the o/p file needs to be downloadede.g. C:/Output_folder/Output.xls...Now if I need a text file,do I need to give the fielname as C:/Output_folder/Output.txt.?

  • Download data to unix with header column

    Hi,
    Can we download data to unix along together with the header column?
    thanks alots
    Alia

    Hi,
    Have a look at this help
    http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3d35358411d1829f0000e829fbfe/frameset.htm
    I normally add the header line manually, by doing it hardcoded.
    Another option is to do it via an ALV list:
    http://help.sap.com/saphelp_nw04/helpdata/en/66/bc7bfd43c211d182b30000e829fbfe/frameset.htm
    and
    "Transfer List to Local File" screen in ALV -> Function Module???
    Eddy

  • Building a CSV with TAB Delimited

    Apex 3.1.2
    Customer wants to build a Apex Report with CSV output, but have TAB delimited columns, not comma delimited. Any ideas on how to insert a TAB into the CSV "Separator" column?
    Thanks,
    Dwight

    Thanks Tony.
    Appears that in my version of Apex at least, only one character can be entered in the "Separator" column so putting "\t" doesn't work. Going to massage the file afterwards. Thanks for the help.
    Dwight

  • How  to transfer data using Lsmw with Recording...

    hi,
    Please let me know .How to use Lsmw to transfer data using recording.
    Thanks,
    Lawrence.

    Hi Lawrence,
    please go thru this link for LSMW data transfer techniques in PM, MM and SD modules.
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/90d90895-68dd-2a10-f096-bf8cf2e2f65b
    If u want to know in detail go thru this link
    http://help.sap.com/saphelp_nw04s/helpdata/en/87/f3ae74e68111d1b3ff006094b944c8/frameset.htm
    Hope this will be useful to u..
    Thanks
    Vijayasree

  • Date is not show up in correct format from excel with tab-delimited was generated from query

    Hi,
    My code below worked file and save file into txt file.  However, the date is the problem.  I have to open excel file and manulay change the format of the date to make it shows the correct date, other way, it alutomatic shows 00:00:00 when i first open the file.  How can i make the date automatic shows from the file i generated in excel?
    <cfset tab = chr(9)>
    <cfset Str = "">
    <cfloop query="q_report">
    <cfset Str = Str & q_report.purchasedNo & tab & q_report.desc & tab & q_report.Del_date & chr(13) & chr(10)>
    </cfloop>
    <cffile action="write" output="#Str#" file="#variables.file#">
    thanks

    Have you tried using DateFormat() on the date?
    ^_^

  • Transfer records to UNIX with different record length

    Hi all,
    I have the following problem. I have to transfer records to a UNIX file. The maximum length of a record is 2000. The records are TAB seperated. I also have records which have a length less then 2000. When i look at the file in Excel the last field is always very large. Isn't there a way to only transfer the real length of the record. I have tried to transfer the record in Binary an Text mode. I used the Length statement, but nothing worked for me.
    Hope anyone can help me.
    Greetings Maarten

    Hi Maarten,
    "Transfer" with "length" option should work. I am not sure what you passed as length to the "transfer" command. Did you used a fixed length of 2000 or did you actually found out the record length of each record and passed that value?
    Scenario 1.
    Here in this scenario, you will always have the last field set to maximum length.
    loop at itab.
    transfer itab-record to file length 2000.
    endloop.
    Scenario 2.
    In this second scenario, you should have your excel's last field set to the maximum occupied length of that field.
    loop at itab.
    v_len = strlen( itab-record ).
    transfer itab-record to file length v_len.
    endloop.
    Hope this helps.
    Srinivas

  • How do i transfer data from 3gs with IOS 5.0.1 to a 3g with ios 4.1.2

    my iphone 3gs with IOS 5.0.1 broke, and it was backed up on my itunes. i had to revert back to my iphone 3g with 4.1.2 until i can afford a newer phone, but the problem is... i cant transfer the backup of the 3gs because the 3g does not support 5.0.1. how can i format the backed up data to work on my 3g? or am i just out of luck until i buy a newer phone?

    Sorry, you can't do that. You won't be able to use that backup on your 3G.

  • Transfer data for text with BDC?

    why there isn't a field for me to assign text contents to realize inserting text into TEXT in S/O?
    perform bdc_field       using 'BDC_OKCODE'
                                  '=T\08'.
    perform bdc_field       using 'BDC_CURSOR'
                                  'VBAK-AUDAT'.
    perform bdc_field       using 'VBAK-AUDAT'
                                  record-audat_011.
    perform bdc_field       using 'VBAK-VKBUR'
                                  record-vkbur_012.
    perform bdc_field       using 'VBAK-VKGRP'
                                  record-vkgrp_013.
    perform bdc_field       using 'VBAK-WAERK'
                                  record-waerk_014.
    perform bdc_field       using 'VBKD-PRSDT'
                                  record-prsdt_015.
    perform bdc_field       using 'VBKD-BZIRK'
                                  record-bzirk_016.
    perform bdc_dynpro      using 'SAPMV45A' '4002'.
    perform bdc_field       using 'BDC_OKCODE'
                                  '=SICH'.
    perform bdc_transaction using 'VA02'.
    enddo.
    perform close_group.
    perform close_dataset using dataset.

    Hello.
    You can't insert TEXTS in bdc. Use FM SAVE_TEXT to insert TEXT after the BDC.
    As an alternative, you can use BAPI_SALESORDER_CREATEFROMDAT2 or BAPI_SALESORDER_CHANGE to insert texts.
    Best regards.
    Valter Oliveira.

  • Download Tab Delimited file from spool!

    Hi Experts,
    Is there any way to download tab delimited txt file from spool?
    Spool is created for Statements and Invoices from Sap Script and Smartform which is in OTF format.
    I am able to download this in Text file but I need this file in tab delimited format.

    I don't understand what you want to do as it seems impossible : the spool contains miscellaneous data, not compatible with tab delimited files which are used to store 2-dimensional tables (columns, rows).

Maybe you are looking for

  • Import job failes with ORA-01403: no data found ORA-06512: at "SYSMAN.MGMT

    Hello everyone, I need a help on importing data from a schema in server 1 to the same schema in server 2 via network link. I receive following error when I try to submit a job on Enterprise Manager: Import Submit Failed ORA-01403: no data found ORA-0

  • Content Repository sharing across domains

    Hello, Is it possible to share a bea content repository across domains? Thanks, -- Anant

  • No Way to disable audio from Video in Photoshop CS6

    I have a video clip that has an audio track that I want to remove, however it seems that the track specific "mute or unmute audio track" and "Disable Audio Playback" buttons only affect playback inside of Photoshop and do not affect the exported outp

  • Problem in Component Monitoring

    Hi All, I get the below error when I click on any component in component monitoring. <b>A runtime error has occured do you wish to debug Line 7968 Object doesn't support this property or method</b> Is this related to browser settings.. Kindly let me

  • Macbook advice/help

    Ok. Right now im using a Sony Vaio. Its a nice computer but it has very short battery life and has a few problems that I just cant stand. I am able to but a new computer and need to know from current macbook users if the macbook is the right option f