Inserting Line feed using PL/SQL at end of file

Hi,
I am creating a text file using TEXT_IO package in Developer Forms. The terminator for end of line should be line feed. but
when we use TEXT_IO.PUT package it inserts carriage return also along with line feed. This code is running on windows 2000 professional OS and forms version 6.
How do I insert only line feed character Chr (10).
thanks for any help

Hi,
This file will be mostly consumed in windows platform,but the requirement is that it shall end with a line feed during generation only.
thanks,
guru

Similar Messages

  • Line Feed within the cell in .CSV output file

    Hello Experts,
    I have created one z-report, and the output of the report is in .CSV file format separated by 'semi-colon' as separator.
    Their is one column "Product" in which data is in the format
    <b>"[Product1][Product2][Product3][Product4]"</b>
    My code looks something like this:
    LOOP AT product_new INTO wa_product. 
      CONCATENATE Prod_str
                  wa_product-tdline             
             INTO prod_str.
    ENDLOOP.
    Our requirment is to insert Line-feed between each product entries within the cell.Line-Feed between each product within the cell is possible with ALT+ENTER key
    The output required is
    "[Product1](ALT+ENTER)
    [Product2](ALT+ENTER)
    [Product3](ALT+ENTER) 
    [Product4]"
    I would appreciate if anybody can help me to solve this.. (urgent)
    Thanx.

    Hi
    Go thru these links
    Regarding line feed
    add line feed to string
    When you concatenate try using the abap char utility for newline as well.
    i.e CL_ABAP_CHAR_UTILITIES=>NEWLINE.
    LOOP AT product_new INTO wa_product.
    CONCATENATE Prod_str
    wa_product-tdline
    CL_ABAP_CHAR_UTILITIES=>NEWLINE.
    INTO prod_str.
    ENDLOOP.
    Regards,
    balaji
    **rewrds for helpful answers

  • How to insert line feed in the alert text

    HI,
    I am sending a message from BMP using alert.
    I need to insert a line feed in the error message because the message is a concatenation of multiple error messages.
    Regards
    Vijay.

    You already have the solution. The XML created by EDI disassembler does not have White Space and Indent enabled so what you see is unindented/non-whitepaced XML.
    However if you view it in IE then you will see it indented and properly formatted. I would assume that you want to do something with the disassembled message such as store it or process it as opposed to having someone read it in a browser or notepad++ ?
    because for processing the data whitespace or indentation is not really consequential.
    Regards.

  • Need a line feed after 120 characters in a text file

    Hi ,
    I am in the verge of developing a report program which generates a text file (space delimited) for a third party vendor -
    After 80 characters (name field) - I need to have space till 120th position in the record and then the cursor should navigate to the
    the next line (line feed)  in the text file-
    I used several techniques but couldn't succeed u2013 Since there is no characters after 80th position the cursor navigates to the next line or record in the text file u2013  Can anyone help on this regard?
    Thanks in advance.
    Regards
    Rajesh.

    Rajesh,
    Insteadof  differentiating the fields in the text file with SPACE use # or @ as separator and then check by defining a field with length 40 and leave it  blank.
    K.Kiran.

  • Email content line feeds using receiver mail adapter - HELP!

    Hi all,
    I have read the threads on how to download the XSD from SAP for creating a mail message type with dynamic To and From addresses and this is working fine. However, I am unable to create multiple lines in my mail message. I have the following parameters in my config:
    XML2Plain - Transform.Class - com.sap.aii.messaging.adapter.Conversion
    XML2Plain - Tansform.ContentType - text/plain;charset=utf-8
    XML2Plain - xml.conversionType - SimpleXML2Plain
    XML2Plain - xml.addHeaderLine - 0
    XML2Plain - xml.fieldFixedLengths - 12,150
    XML2Plain - xml.fixedLengthTooShortHandling - Cut
    XML2Plain - xml.fieldSeparator - '0x0D''0x0A'
    I have not changed the message type in the Design so the mapped Content field currently just contains one long line of 162 characters (as does the resulting email). I want 12 characters on the first line and 150 characters on the second line. Do I need to concatenate something between by 12-character and 150-character strings to achieve this? Do I need a line.Separator parameter in my module configuration?
    Many thanks,
    Stuart Richards

    Hi Sreeramulu,
    As mentioned by Lucas, you can use the UDF. Inn addition to that, you need to define the Variable Headers under Variable transport binding after enabling the Adapter Specific Message Attributes.
    For the Enabling ASMA, follow the below steps and check for the variable attributes.
    Select the Advanced  tab page.
       To save adapter-specific attributes in the message header of the XI message, select Use Adapter-Specific Message Attributes and Variable Transport Binding.
    The following attributes in the message header are then available for processing:
    ○       User: (technical name: TServerLocation)
    ○       Authentication key: (technical name: TAuthKey)
    The following mail header fields are available for processing:
    ○       From: (technical name: THeaderFROM)
    ○       To: (technical name: THeaderTO)
    ○       Cc: (technical name: THeaderCC)
    ○       Bcc: (technical name: THeaderBCC)
    ○       Subject: (technical name: THeaderSUBJECT)
    ○       Reference to the mail that is to be replied to: (technical name: THeaderIN-REPLY-TO)
    ○       Reply to: (technical name: THeaderREPLY-TO)
    ○       Mail client program: (technical name: THeaderX-MAILER)
    ○       Send confirmation of receipt: (technical name: THeaderDISPOSITION-NOTIFICATION-TO)
    ○       Priority: (technical name: THeaderPRIORITY)
    ○       Importance of message: (technical name: THeaderIMPORTANCE)
       To transfer further header fields, set the relevant indicator for Variable Header. The technical names for the fields are XHeaderName1, XHeaderName2, and XHeaderName3.
    The parameters are included in the mail header under the names specified here.
    The attribute namespace for the adapter is http://sap.com/xi/XI/System/Mail.
    Thanks,

  • Help - how to insert line feed in string

    Hello,
    I have a servlet that reads lines from a database and I must append them to build a document. There is a field for the data nad a field to tell how many lines to skip.
    // from database
    data String 198
    skip one character
    String doc = "";
    This is not working
    doc = doc + data + '\n';
    for (i=1; i < skip; i++) {
    doc = doc + '\n';
    doc ends up with no spaces between lines.
    Can someone help me with this?
    Thanks
    Frank

    not working = doc ends up with no spaces between lines.
    line1
    line2
    line3
    should be
    line1
    line2
    line3
    Thanks
    Frank

  • Utl_file.utl_raw adds a line feed at the end of the line. How to avoid it.

    utl_file.utl_raw adds a line feed at the end of the line. I have to send some binary files to my vendor and they do not want a line feed at the end of the line.
    When I execute the sample program below, it creates a file with a line feed(chr(10)) at the end of the line. When I do dump in hexa, it shows a character x0A
    How to avoid the line feed at end of line?
    We are using Oracle 9i on unix platform.
    declare
    l_output           utl_file.file_type;
    v_raw      raw(32767);
    v_trlr_rec_code      VARCHAR2(2);
    v_trlr_evnt_title      VARCHAR2(6);
    begin
    l_output := utl_file.fopen( 'RM_MHE_IN_DIR', 'abc.dat', 'w', 14 );
    v_trlr_rec_code      := '99';
    v_trlr_evnt_title      := 'STARTD';
    v_raw := HEXTORAW(v_trlr_rec_code) || utl_raw.cast_to_raw(v_trlr_evnt_title);
    utl_file.put_raw( l_output, v_raw );
    utl_file.fflush( l_output );
    utl_file.fclose( l_output );
    dbms_output.put_line( utl_raw.cast_to_varchar2( v_raw ) );
    EXCEPTION
    WHEN OTHERS THEN
         dbms_output.put_line( sqlerrm );
    end;
    /

    oops, sorry i overlooked the fact that the db is 9i; thanks for pointing it out Solomon.
    Not sure about this, but a workaround could be to remove the "\n" characters at the end of each line using one of the many Unix utilities after the file has been created.
    isotope

  • XI: Remove Carriage Return +Line Feed at end of XML

    Hi All,
    Scenario
    Currently, we have a JMS --> XI --> IDOC scenario. The Sender Service always sends a CRLF (Carriage Return & Line Feed+) without fail at the end of each xml file once this non-sap system finishes its transaction.
    Example
    <STARTOFXML>
    Data------
    </ENDOFXML>CR+LF
    Question
    Is it possible to remove this from XI JMS Sender Adapter? From the receiver Service (JMS) this is possible.
    Cheers!
    Sulaiman

    Why do you want to remove this? Does this lead to errors?
    Regards
    Stefan

  • Problems uploading a text file with line feed characters from Windows

    Hi,
    I am using the FM GUI_UPLOAD to load a text file in which at the end of each line there is a line feed character. When I upload the file, the FM interprets the entire file as ONE record; it does not recognize the line feed character at the end of each file line. I am using the parameter in the FM "HAS_FIELD_SEPARATOR" and it does not do anything to remidiate this issue.
    The funny thing is that  WS_upload works like a charm and it separates every line in the text file according to the line feed character at the end of each file line.
    Why a FM that is obsolete would work better and with  less effort than the new one? We are on 4.6c and will go to ECC6.0 May 2009.
    Can anybody recommenced a way to process this type of file using GUI_upload?
    The file to process is downloaded from a bank Website into a Windows PC. Sending the file to Unix first is not an option.
    Thanks,
    Pierre Martinez
    Edited by: Pierre Martinez on Aug 15, 2008 1:09 AM

    Hi,
    I have done that and Notepad does NOT interpret the line feed character. The file looks all messed up. Notepad does NOT split the data into records. The Hex character at the end of each file line is 0A.
    The user will download the file into a Windows desktop from the bank's website and from there an ABAP  program needs to read it and parse it. But the ABAP  program can not even catch the entire file with gui_upload. WS_upload can catch it with no issues.
    I tried catching the file into an internal table of data type string using GUI_upload, but it only catches two bytes of the file and nothing else.
    I will try catching the file in some other type of data type for the internal table in gui_upload.
    Once I catch it, I can split the file by the line feed character. I need to catch it  first, but "my glove" is not big enough. Defining the internal table for the gui_upload as character is a guessing game since I really do not know how big the text file is since GUI_upload will put it in a one record.
    Thanks.

  • File adapter and line feeds

    Hi,
    we need to produce a flat file using the content conversion of the file adapter without any line feed (the target structure is a complex one with several record types).
    Example
    What we get now:
    *AAheaderA
    *ABheaderB
    *BAItem1
    *CAsubitem1
    *BAItem2
    What we need:
    AAheaderAABheaderBBAItem1CAsubitem1*BAItem2
    It seems that with NameA.endSeparator parameter you can only add a new character, but I need to delete the line feed.
    Is it possible with standard file adapter or do we need do create our own module with java?
    Thank you.

    Hi Stefano,
    So you Basically want to do content conversion at the receiver end and that is basically to get the entire data in one line.For that please go through these links below.It clearly explains your requirement.
    <a href="/people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion Receiver with Content Conversion</a>
    <a href="http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/frameset.htm">Converting File Content in the Receiver Adapter</a>
    carefully make a note of the "The ‘endSeparator’ parameter.
    Regards,
    abhy

  • LabVIEW XML VIs omit Line feeds

    Hopefully I'm missing something really simple here... I am creating an XML file, adding a few nested child nodes, and saving the XML. This all works ok except for the fact that LabVIEW does not insert line feeds (or any whitespace for that matter) between my nodes. This makes the resulting document nearly unreadable by humans, which was the entire point of storing this data in XML to begin with. Any suggestions? Essentially, the output of LabVIEW's XML VIs is this:
    <InstrumentList><PS_VIN Version="1.0"><Data></Data></PS_VIN></INSTRUMENTList>
    And what I really want is this:
    <InstrumentList>
        <PS_VIN Version="1.0">
            <Data>
            </Data>
        </PS_VIN>
    </INSTRUMENTList>
    Charles Chickering
    Architecture is art with rules.
    ...and the rules are more like guidelines
    Solved!
    Go to Solution.

    Charles_CLA wrote:
     Thanks Darin, that works great! Any guesses as to why that isn't the default save method?
    <plug type="shameless">
    If we add this:
    http://forums.ni.com/t5/LabVIEW-Idea-Exchange/Add-LV-version-info-to-Help/idi-p/2324150
    Then we could look in the help file and see that the Pretty Print functionality for Get XML and Save XML was added in LV9 and was not there in the original VIs in LV8.6.
    </plug>
    My guess is that they never got around to updating the VIs in the palettes.

  • End of file in a .mid file

    Does anyone knows what command is used to get the end of file in a .mid file?
    Pls advise.
    Thanks.

    Anyone knows?

  • NQUDMLExec throws end of file reached error

    Hi,
    I have tried to execute the below command in windows command line .
    [code] nQUDMLExec -U user -P pass -I test.cfg -B test.rpd -O C:\test.rpd[/code]
    My test.cfg contains some db credentials as repositary variable.
    it throws the below error always:
    ---------------ERROR(s)---------------
    [nQSError: 28002] Near Line 12, Near <{>:  End of file has been reached.
    Please note that the test.cfg contains 12 lines totally. the error is reported in the last line always.
    Any thoughts on this?
    Thanks,
    Pandeeswaran

    28002 Near Line @1%d, Near <@2%ls>: End of file has been reached.
    Cause. The singly or doubly quoted string does not have a matching quote.
    Response. Add single or double quote at the end.

  • How to insert a carriage return/line feed in a TextEdit without using wrap

    Hi,
    The string that I want to pass to the textedit is
    "Order Notes : bla bla bla
    Shipping notes : bla bla bla"
    The length of Order notes and shipping notes can vary.
    I am using wrapping. But I need to insert a line feed just before Shipping Notes so it comes on a different line inside the textedit box.
    How do I achieve this?
    Thanks in advance,
    Sachin

    Good thinking, Craig
    I didn't think of this large textarea being present there, just waiting for a question like this ...
    To sum it up for the lazy ones (cause looking at the examples is always worth it, so go do as Craig told ya g!):
    CONCATENATE
    `Order Notes : bla bla bla`
    `Shipping notes : bla bla bla`
    INTO text SEPARATED BY cl_abap_char_utilities=>cr_lf.

  • Remove Line feed at the end of the file while using file adapter

    Hi All,
    I have a requirement. We are sending a file from SAP to FTP using file adapter. we are successful in sending the file to FTP but at the end of the file a extra blank line is created .
    Can anyone please suggest how to remove the extra line feed at the end of the file.
    Thanks and Regards,
    LRK.

    check this:
    http://help.sap.com/saphelp_nw04/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/frameset.htm
    To define an additional string as a separator after the last column in a row, specify it here. The system skips this string when it processes the last column (otherwise the system would treat it as part of the last column).
    Also there are solved threads which deal with same problem....you can even check them out...
    regards,
    Abhishek.

Maybe you are looking for

  • How do I get my contacts and calendars from Icloud to outlook?

    I am sure this question has been asked before, but I cannot find the answer. My hard drive on my PC crashed recently. I installed a new one and downloaded my files. I have my mail working fine, but cannot figure how to get my calendars and contacts f

  • Flex/Air and Web Services/Remote Objects

    If I'm calling a web service operation, either through the mx:webservice or mx:remoteobject tags, do I need to configure my Flex or Air project (I'm using the latest Flex Builder IDE) with the "use remote object access service" when creating the proj

  • Language find my phone email

    Hello, This is the first time google has not been able to answer my question. I live in Canada. I bought my phone in Quebec, a french speaking part of Canada. Even when I am not in Quebec the e-mail I receive from Apple is in french. How do you chang

  • My playlist is my printing right.will it be fixed soon

    my playlist for the jewel case wont print correctly will it be fixed soon?When might it be coreected?

  • How to laod Master Data using Flexible Update

    Hi, I have created 35 Characteristics and now i need to create a structure using 35 characteristics. I am unable to use the Direct Update because it is asking the Reference Object and Attributes But the 35 characteristics are not attributes. So how t