New Line using Transfer Statement

I need to write data to a text file in a particular format. I am not passing records of an internal table to the text file. I need to pass fields of a single row in a tabular format. For this, I need to use the new line character...I want fields of a single row to be displayed one below the other.
Any idea on how we could do this?

Hi vidya,
1. For application server,
   we have to use open dataset, transfer, close dataset,
   (and take care of the spacing between the fields)
2. For presentation server,
   we have to use the fm GUI_DOWNLOAD
   and do not pass the parameter
   WRITE_FIELD_SEPARATOR = 'X'
  (when we do not pass this parameter,
   the data is written in FIXED-LENGTH
   including spaces)
  (So when we view the data in notepad,
   the fields will be very much aligned,
    one below the other)
regards,
amit m.

Similar Messages

  • How to print new line using DBMS_OUTPUT package

    Hi,
    I am trying to print a new line using DBMS_OUTPUT package. but it do not print the new line.
    set serveroutput on size 200000
    set feedback on
    BEGIN
    DBMS_OUTPUT.PUT_LINE('First Line');
    DBMS_OUTPUT.PUT_LINE('');
    DBMS_OUTPUT.PUT_LINE('Second Line');
    END;
    I expect following output ...
    First Line
    Second Line
    but i got following output....
    First Line
    Second Line
    why DBMS_OUTPUT.PUT_LINE( '); is not printing a new line ?

    You can try the following:
    SQL> ED
    Wrote file afiedt.buf
      1  BEGIN
      2  DBMS_OUTPUT.PUT('ONE LINE...');
      3  DBMS_OUTPUT.PUT('SECOND LINE...');
      4  DBMS_OUTPUT.NEW_LINE;
      5  DBMS_OUTPUT.PUT_LINE('THIRD LINE WITH NEW LINE...');
      6  DBMS_OUTPUT.PUT('TEST');
      7  DBMS_OUTPUT.NEW_LINE;
      8  DBMS_OUTPUT.PUT_LINE('FOURTH LINE'||CHR(10)||'EXAMPLE');
      9  DBMS_OUTPUT.PUT_LINE(CHR(10));
    10  DBMS_OUTPUT.PUT_LINE('FIFTH LINE');
    11* END;
    SQL> /
    ONE LINE...SECOND LINE...
    THIRD LINE WITH NEW LINE...
    TEST
    FOURTH LINE
    EXAMPLE
    FIFTH LINE
    PL/SQL procedure successfully completed.Documentation:
    http://download-east.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_output.htm#i1000062

  • Cannot Add new line using BI IP query

    Hi All,
    We have created a planning application (BI IP Query) and used it in VC 7.1 model using BI Query Wizard service. Now we are able to customize existing rows ( existing rows are using flat file upload)... we can able to change the existing record values and save it.
    But we are not able to add new line... its going to dump... We are able to add new line using WAD with same query but not in VC 7.1
    This issue is same as below 2 threads...
    Re: How to create new records through a VC form in an input-ready query??
    Re: Cannot add new records through VC form when consuming IP write back query?
    Thanks,
    PradeeP

    Its working now... SAP has given the fix (patch) for this issue when we deployed it, everything is working fine... I think they will release this fix (patch)soon...
    Raise an Sap OSS message for solution

  • Add a new line using an old verizon phone

    want to add a new line to existing contract using a previously purchased Verizon smartphone.

    currently have a newly purchased verizon smart phone that was given to me and i want to know if it is possible to activate this phone with a new line uner my pre exsisting contract so i dont have to buy another phone would just have to pay activation fee and upgrade my plan as well

  • Concatanate new line using concat function in BPEL process

    Hi,
    Anyone please tell me how can i concatenate new line at the end of a string in concat function?

    If using xsl you can use this one:
    <xsl:value-of select='concat("First Name :: ",/ns1:ProcessRequest/ns1:firstName)'/>
    <xsl:text> &hashxD; &hashxA;</xsl:text>
    <xsl:value-of select='concat("Last Name :: ",/ns1:ProcessRequest/ns1:lastName)'/>
    give # in place of hash

  • Insert new line using rule in InfoPath 2010

    Hi All,
    How to insert new line on the multiline textbox using rules. I followed the below article. But it didnt help to resolve the issue.
    http://blogs.msdn.com/b/infopath/archive/2005/03/04/385577.aspx
    Any help would be appreciated.
    Rajasekar A.C

    Hi,
    I followed the above link and it worked for me. Can you please make sure if the formulae is verified by clicking on "Verify" after entering following lines?
    concat(field1, @crlf,
    "Hello, world!")
    You can even try this link
    http://www.sharepointmaestra.com/Blog/Post/4/InfoPath---Appending-Text-in-Multiline-Field-with-Line-Feed
    Thanks,
    Avni Bhatt 
    If this helped you resolve your issue, please mark it Answered

  • Insert of new lines using BDC

    I am trying to insert/default some values from custom transaction using BDC into standard SAP transaction tab as a  new line .
    it works fine when there are NO previous existing lines.
    need to know how to get index of the current line ..& add logic in BDC FM to add new line after that.
    thanks in advance

    If all of your form fields have the same name then it will
    create a comma
    delimited list, which you can loop through. I have some CF
    code to do
    exactly what you want, but not where I am at present. Send me
    an email to
    [email protected] and I will mail it to you.
    Paul Whitham
    Certified Dreamweaver MX2004 Professional
    Adobe Community Expert - Dreamweaver
    Valleybiz Internet Design
    www.valleybiz.net
    "Simonbullen" <[email protected]> wrote in
    message
    news:e3piv5$9s2$[email protected]..
    > Hi, I have a form with rows of text fields for data
    insertion, is it
    > possible
    > to insert records into my db, but creating a new row for
    each row in my
    > form...?
    > I know I can buy packages to do this, but is there a
    free extension or
    > coding
    > solution please?
    >
    > many thanks in advance, using DMx2004, SQL, CF7
    >

  • I have an old and new mac and used transfer manager to put the old mac on the new so that i have both users on one computer but now I can only log in as the new and as guest so cant access my old computer docs on this newer mac.  Help!

    Hello I have just sold my old macbook and so transfered all my data to my newer macbook using transfer manager.  This allowed my to login on the newer computer under either the old or new username so I could access both computers' data on my newer computer.  Last night that worked but today I can only access my newer user and a guest user.  Where did my old user name and all the data go after the transfer?  Help please! I have to give the buyer the old computer today!
    Aminah

    I am not familiar with "transfer manager." Did you perhaps use the Migration Assistant? What operating system is installed on your new computer?
    If you look in your hard drive, in the Users folder, do you see a folder with the name from your user on your old computer?
    Best of luck.

  • CLIENT_TEXT_IO : cannot insert new line into a text file

    Facts:
    Developer 10g
    AS 10g
    Web utility
    Problem:
    i am traying to
    Open a text file. using CLIENT_TEXT_IO.FOPEN
    insert a record in to a text file using CLIENT_TEXT_IO.PUTF
    insert a new line using chr(10) or CLIENT_TEXT_IO.NEW_LINE
    or CLIENT_TEXT_IO.put_line
    insert the next record
    Close the file.
    all work except insert a new line
    Why !!!
    it was Working fine in 6i, but now in 10g and Webutil is not working
    plz help

    Hi you can put a new line in a text file using System.getProperty("line.separator"). This implementation will work for every OS.
    import java.io.*;
    class Demo{
    public static void main(String args[]) throws Exception {
    FileWriter fr = new FileWriter("FileDemo.txt");
         fr.write("AAAAAAAAAA");
    fr.write(System.getProperty("line.separator"));
    fr.write("AAAAAAAAAAA");
    fr.close();
    }

  • Performance of Transfer Statement

    Hi,
      I'm working in a MDMP - Unicode Conversion Project. My job primarily is to enable Custom ABAP code for Unicode syntax.
        I have a generic program which takes the names of tables and fields and the destination path from a file and extracts those table fields to the destination share using transfer statement.
       It is found that this program extracts characters of multiple languages to single file. In the original program there is a single select - endselect loop within which there is a transfer statement.
       Now to accomadate different languages in the same file. I'm collating the data belonging to one language in internal tables and writing the content to the file with a different codepage each time opening and appending to the same file. The approach works good but i face performance issues.
       In the modified version the transfer statement is taking more time than what the transfer statement in the original program is taking. I have no clue of this behaviour. Can someone tell why this change in behaviour of the transfer statement?

    Hi Vijay,
       Let me explain you in detail.
      if i have a transfer statement like this, it is taking approximately 12 seconds to download nearly 50 MB content.
       select * from (extract_info-table) into <tblwa>
       where (where_clause).
       move <tblwa> to o_string.
       transfer o_string to file.
       endselect.
    if i code it this way.
      select * into table <table> from
      (extract_info-table) where (where_clause).
      perform download_file tables <table>
                            using file.
      form download_file tables data_tab
                         using file.
         loop at data_tab.
            transfer data_tab to file.
         endloop.
      endform.
    it is taking 10 times more time ~ 120 secs to download the same content.

  • Problem saving "space" in ABAP TRANSFER statement

    Hello all,
          I have an internal table that I loop through and write that data to a file using TRANSFER statement. Here is an exmaple of my code:
    data: l_xml_out type string.
    BEGIN OF itab_out OCCURS 0,
                record(some length) TYPE c,
             END OF itab_out,
    Here is an example Itab_out data
    RECORD1:
    " Bon Appetit "
    RECORD2:
    "Managment Co"
    LOOP AT itab_out
                  INTO l_xml_out.
            TRANSFER l_xml_out TO "somefile".
          ENDLOOP.
    When I transfer to file record1 is appended to record2 which i sfine but I am losing space for example I want "Bon Apetite Management Co" but I get "Bon ApetiteManagementCo"! (Space is gone). How do I preserve the space? I did reserach on SDN but could not get my problem resolved. Please provice any feedback if you can.
    Thanks.
    Mithun

    >
    Mithun Dha wrote:
    > Sorry, I might not have provided you all information. I know concatenate but my internaltable has like 20000 records and we are looping through those records into "string" type data variable and transferring to file. The internal table records I gave in my posting was just an example. Thanks for your quick feedback.
    >
    > Mithun.
    So, Can't you concatenate to string type? Yes, you have to concatenate before transfer for 20000 records.
    data: l_text(20) type c,
          l_text1(20) type c,
          l_string type string.
    l_text = 'This is text'.
    l_text1 = 'This is text1'.
    CONCATENATE l_text l_text1 into l_string SEPARATED BY space.
    write the concatenate within the loop and then transfer the string to data set.
    Edited by: Sampath Kumar on Nov 10, 2009 8:04 AM

  • New line in Big Endian format

    How do I represent a new line character in Big-Endian format ? I have a third party utility which reads a text file in Big Endian format. I am creating this text file with one word per line kind of format. When I try to add a new line
    using
    FileOutputStream fs = new FileOutputStream(fileName);
    PrintStream pos = new PrintStream(fs, true,"UTF-16BE");
    inside a while loop(
    // get each word and write to file
    pos.print(word);
    ********* I want to add a new line to this file after every word.
    If I use a '\n' its creating wierd characater inside the file
    If I use the property line.seperator, its causing the same as above
    println also gives the trouble
    I am looking for the new line string or char in Big Endian format
    Any ideas ? Thanks in advance

    In ANSI, if I'm not mistaken a \n is represented by
    Carriage Return(CR) as a character.
    While in unicode \n is a combination of a Carriage
    Return(CR) and Line Feed(LF) which
    shows up as a rectangle.I'm afraid you are mistaken: '\n' is the line feed character (LF) and '\r' is the carriage return character (CR). They are single characters, neither is a combination of two other characters. There is no difference between Unicode and ANSI ASCII here.
    And besides, it is the line feed character that appears as a block in MS Notepad if a carriage return character doesn't precede it. The only line separator that MS Notepad accepts is "\r\n".

  • Separeted enter key / new line Txt File

    Hi Experts;
    I want to send mail with attach file (xxx.txt).
    xxx.txt file's source itab.
    I'm seeing xxx.txt file at mail.. But It's not separeted enter key / new line.
    I'want to see line-by-line my itab at the xxx.txt file.
    How can I make?
    Best regards.

    Hi, Melih.
    Try to insert new lines using cl_abap_char_utilities=>newline.
    Like this:
    DATA:
      BEGIN OF gs_tab,
        string TYPE string,
      END OF gs_tab,
      gt_tab LIKE TABLE OF gs_tab WITH HEADER LINE.
    gt_tab-string = 'first row'.
    APPEND gt_tab.
    CONCATENATE 'second row' cl_abap_char_utilities=>newline INTO gt_tab-string.
    APPEND gt_tab.
    gt_tab-string = 'third row'.
    APPEND gt_tab.
    Best regards,
    George Shlyahov.

  • Replace B2BUA with a new one, without loosing transfer states

    I'm having some issues with replacing my B2BUA for transfer purpose.
    I have a link between 2 participant by using a B2BUA. I want to transfer one of these participants into another B2BUA, and that new B2BUA will repaces the previous one. I can accomplish this succesfully without any troubles, by using self-transfer and B2BUA
    utilitize.
    But when the link is established in B2BUA between two participants, when creating a new B2BUA, the participants can still talk untill the new B2BUA is established (this is the issue).
    I doesn't loose the link of participant in Call leg 1, since I'm using a Self-transfer leaving the call state as incoming. But if I call BeginTerminate() of the 1st B2BUA while establishing the 2nd B2BUA, then I'll loose my transfer states of the first Call,
    and I'm using this event state to tell me when a transfer is succesfully done.
    How can I cancel the stream between the two participants in the first B2BUA, as soon as I begin to establish the second B2BUA??

    If either leg of the B2B is terminated, the B2B call is terminated. In a transfer scenario the leg of the participating in the self transfer will end before the transfer itself is completed, leading to an OperationFailureException on the EndTransfer. 
    There is really no way to avoid this, so you should just expect it.
    Here is a snip from one of my test programs:
    private void InitiateSelfTransfer()
    Console.WriteLine("Initiating self-transfer on p2p call...");
    //Copy inCall since we will replace it with the new inCall prior to the completion of the transfer.
    AudioVideoCall p2pOldInCall = (AudioVideoCall)inCall;
    //Pass a reference to this instance in the Context so the new inbound call can reattach to this session.
    p2pOldInCall.ApplicationContext = this;
    p2pOldInCall.TransferStateChanged += new EventHandler<TransferStateChangedEventArgs>(oldInCall_TransferStateChanged);
    CallTransferOptions cto = new CallTransferOptions(CallTransferType.Attended);
    //Execute the transfer.
    Console.WriteLine("Beginning Self-Transfer...");
    try
    p2pOldInCall.BeginTransfer(p2pOldInCall, cto,
    ar =>
    Console.WriteLine("Self-Transfer Completed...");
    try
    p2pOldInCall.EndTransfer(ar);
    Console.WriteLine("Self-Transfer was successful!");
    SendTransferNotification(200, "Succeeded at self-transfer");
    //In this scenario the BackToBackCall seems to always terminate the call before we are made aware the transfer is complete.
    //This operation has to execute as Attended, so we simply catch the exception generated, it doesn't seem to cause us any problems.
    catch (OperationFailureException)
    Console.WriteLine("Exception ignored on self-transfer...");
    SendTransferNotification(487, "Call already terminated...");
    catch (RealTimeException ex)
    SendTransferNotification(503, "Failed on self-transfer of inbound leg");
    Console.WriteLine(ex);
    , null);
    catch (InvalidOperationException iOpEx)
    Console.WriteLine("Invalid Operation Exception: " + iOpEx.ToString());

  • Cancelling a line and and adding new lines to existing PO using API

    Hi,
    Can any one please help me know how I can cancel a line and insert new lines into a existing PO using any API.
    Many Thanks,
    Srinivas.

    VanessaC_VZW wrote:
      However, if you do not want a contract on the new lines, (since you will have your own equipment), the activation fee will be $35.00 per line.  If you agree to a 2-year contract for the share lines, the activation fees will be $25.00 per line.   
    You can add the new lines by calling our Telesales Department at 800-256-4646.  
    Thank you,
    Really?!  I didn't know that made a difference...I thought secondary lines were $25 - well, ya learn something new every day!
    And a side note - we added a line for my 75+ yr old mother with one of our old flip phones and CS was extremely kind in waiving the activation fee (I could have sworn it was $25 charged and credited on the bill), PLUS they boxed up the flip phone after activating it (with an out of state number to boot) and shipped it to my Mom, all at no additional cost to me.  I'm not saying that will be everyone's experience, and I was amazed the service rep offered to ship it for me - but I smiled and said "THANK YOU!" and accepted it!

Maybe you are looking for

  • HT4437 AirPlay enabled Pioneer receiver, do I still need Apple TV?

    I just picked up a Pioneer VSX 1023 receiver that is AirPlay enabled. The directions are terrible and I can't seem to figure out how to sync with my iPhone music library. I have an iPhone 5 with ios7. Do I have to use Apple TV with this device? I was

  • Transport of Jobs in FIM 10.0

    Hello All, Can someone please let me know if there any mechanism to transport the Jobs in FIM 10.0 from DEV to QA to PRD? I am aware that I can import the jobs and Export in the other system. However does this work properly? As the web service link c

  • Safari slow to connect

    As a new iMac user, I have been using Safari frequently. However, ever since it was shut down due to vacation, and re-booted, whenever it goes into sleep mode I have difficulty getting Safari back. It will state: "you are not connected to the interne

  • Can't install PS CS5

    When I get to the end of the install process it tells me to close bridge and adobe installer. I don't have them open. Can anyone help me with this?  I even restarted the computer to see if this would help and nothing.

  • BIF movement problem

    Hello, I wrote my first blog and placed it to my own blog space. And I did not received any badge for "I blogged!". Since it was Blog It Forward blog, I moved it to About SCN space, but still no badges were awarded. By the way, I see in point history