Need a Blank line between Text field data

hello friends, Happy New Year..
i have a varchar2(200) size field and i am Entreing data into it like this;
Chairman  Name1
Member    Name2
Member    Name3
Member    Name4
Member    Name5
Member    Name6
Secretary Name7what to do is, insert an a blank line between all lines of this text field. The output to like this ;
Chairman  Name1
Member    Name2
Member    Name3
Member    Name4
Member    Name5
Member    Name6
Secretary Name7The names are separated by pressing Enterkey (i dont know its equivalent chr(10) or chr(13).
TYVM.

You can also try the below :
Assumption here is that you will always have data in that column in 7 lines.
rec.rowno in (2,4,6,8,10,12,14) is included to create empty row in between each row.
create table test(a varchar2(200));
insert into test values('Chairman  Name1
Member    Name2
Member    Name3
Member    Name4
Member    Name5
Member    Name6
Secretary Name7');
commit;
select
       case
         when rec.rowno = 1 then
               substr(a,1,instr(a,chr(10),1,1) - 1)
         when rec.rowno in (2,4,6,8,10,12,14) then
              null
         when rec.rowno = 3 then
               substr(a,(instr(a,chr(10),1,1)+1),instr(a,chr(10),1,2))  
         when rec.rowno = 5 then
               substr(a,(instr(a,chr(10),1,2)+1),instr(a,chr(10),1,3))                          
         when rec.rowno = 7 then
               substr(a,(instr(a,chr(10),1,3)+1),instr(a,chr(10),1,4))              
         when rec.rowno = 9 then
               substr(a,(instr(a,chr(10),1,4)+1),instr(a,chr(10),1,5))
         when rec.rowno = 11 then
               substr(a,(instr(a,chr(10),1,5)+1),instr(a,chr(10),1,6))
         when rec.rowno = 13 then
               substr(a,(instr(a,chr(10),1,6)+1))                                            
       end name1,
       null signature,
       null "DATE"
  from test, (select rownum rowno from dual connect by level <= 14) rec;Edited by: neel_s on Dec 31, 2009 1:07 PM

Similar Messages

  • Export Excel Data only causes blank line between 2 lines of records

    Hi,
    I wrote a complete winform application using CR2008.
    For information :
    C# Framework 3.5
    Windows XP SP2 or Windows Server 2003 SP1
    CR2008 SP1
    Application allow to preview report. In the preview window (CR activx) there is a "letter icon" to export report in several format.
    -RPT
    -PDF
    -DOC
    -XSL
    -XSL Data only
    When I export with "Excel Data only" format, I always have a blank line between 2 lines of records in Excel.
    Is there a way to supress them from VS2008 ?
    Thanks a lot for your reply,

    Hello, Jonik;
    Do you see the same blank lines when you export to Excel Data only in the Crystal Reports designer?
    Elaine

  • How to calcaulate the text field data

    hi frnds need help,
    how to find difference bet time if i taking  the data  from texts fields data i.e long text
    i called the FM & passed the parameters
    of text data but iam gettin answer as zero
    i hope ur gettin my point

    Hi
    You have to use READ_TEXT fun Module to fetch the Long text data by passing the correct paramters like OBJECT,ID,OBJECTNAME and LANGuage fields
    see the doc
    READ_TEXT
    READ_TEXT provides a text for the application program in the specified work areas.
    The function module reads the desired text from the text file, the text memory, or the archive. You must fully specify the text using OBJECT, NAME, ID, and LANGUAGE. An internal work area can hold only one text; therefore, generic specifications are not allowed with these options.
    After successful reading, the system places header information and text lines into the work areas specified with HEADER and LINES.
    If a reference text is used, SAPscript automatically processes the reference chain and provides the text lines found in the text at the end of the chain. If an error occurs, the system leaves the function module and triggers the exception REFERENCE_CHECK.
    Function call:
    CALL FUNCTION 'READ_TEXT'
    EXPORTING CLIENT = SY-MANDT
    OBJECT = ?...
    NAME = ?...
    ID = ?...
    LANGUAGE = ?...
    ARCHIVE_HANDLE = 0
    IMPORTING HEADER =
    TABLES LINES = ?...
    EXCEPTIONS ID =
    LANGUAGE =
    NAME =
    NOT_FOUND =
    OBJECT =
    REFERENCE_CHECK =
    WRONG_ACCESS_TO_ARCHIVE =
    Export parameters:
    CLIENT
    Specify the client under which the text is stored. If you omit this parameter, the system uses the current client as default.
    Reference field: SY-MANDT
    Default value: SY-MANDT
    OBJECT
    Enter the name of the text object to which the text is allocated. Table TTXOB contains the valid objects.
    Reference field: THEAD-TDOBJECT
    NAME
    Enter the name of the text module. The name may be up to 70 characters long. Its internal structure depends on the text object used.
    Reference field: THEAD-TDNAME
    ID
    Enter the text ID of the text module. Table TTXID contains the valid text IDs, depending on the text object.
    Reference field: THEAD-TDID
    LANGUAGE
    Enter the language key of the text module. The system accepts only languages that are defined in table T002.
    Reference field: THEAD-TDSPRAS
    ARCHIVE_HANDLE
    If you want to read the text from the archive, you must enter a handle here. The system uses it to access the archive. You can create the handle using the function module ACHIVE_OPEN_FOR_READ.
    The value '0' indicates that you do not want to read the text from the archive.
    Reference field: SY-TABIX
    Default value: 0
    Import parameters:
    HEADER
    If the system finds the desired text, it returns the text header in this parameter.
    Structure: THEAD
    Table parameters:
    LINES
    The table contains all text lines that belong to the text read.
    Structure: TLINE
    Exceptions:
    ID
    The text ID specified in the parameter ID does not exist in table TTXID. It must be defined there together with the object of the text module.
    LANGUAGE
    The parameter LANGUAGE contains a language key that does not exist in table T002.
    NAME
    The parameter NAME contains the name of a text module that does not correspond to the SAPscript conventions.
    Possible errors:
    The field contains only blanks.
    The field contains the invalid characters ‘*’ or ‘,’.
    OBJECT
    The parameter OBJECT contains the name of a text object that does not exist in table TTXOB.
    NOT_FOUND
    The system did not find the specified text module.
    REFERENCE_CHECK
    The text module to be read has no text lines of its own but refers to the lines of another text module. This reference chain can include several levels. For the current text, the chain is interrupted, that is, one of the text modules referred to in the chain no longer exists.
    WRONG_ACCESS_ TO_ARCHIVE
    The exception WRONG_ACCESS_TO_ARCHIVE is triggered if an archive is accessed using an incorrect or non-existing archive handle or an incorrect mode (that is, read if the archive is open for writing or vice versa).
    <b>Reward points for useful Answers</b>
    Regards
    Anji

  • Skipping Blank Lines in text File

    I am working on an assignment in which i have to read from a text file and store the strings individually. The problem i have is that the text file has blank line between each set of strings. So i figured to use "fin.nextLine();" to skip that blank line and continue with storing the values. but i get
    "Exception in thread "main" java.util.NoSuchElementException: No line found
         at java.util.Scanner.nextLine(Unknown Source)
         at processmsg.ProcessMessages.choice1(ProcessMessages.java:68)
         at processmsg.ProcessMessages.main(ProcessMessages.java:25)"
    which is where the fin.nexLine() is at. How can i just skip that blank line?
    System.out.println("Please enter the file location");
              Scanner stdin = new Scanner(System.in);
              String fileName = stdin.nextLine();
              // read the information from the file
              try {
                   Scanner fin = new Scanner(new File(fileName));
                   String tSendName = fin.nextLine();
                   while(tSendName != null)
                        String tRecieveName = fin.nextLine();
                        String tPhoneNumber = fin.nextLine();
                        String tDate = fin.nextLine();
                        String tTime = fin.nextLine();
                        String tStatus = fin.nextLine();
                        String tMessage = fin.nextLine();
                        PhoneMessage phonemessage = new PhoneMessage(tSendName, tRecieveName,
                                  tPhoneNumber, tDate, tTime, tStatus, tMessage);
                        fin.nextLine();
                        tSendName = fin.nextLine();

    don't know if you want the whole code, the whole code is kind of large and spread out over 3 different classes. and yes the text file is standard
    sender
    reciever
    phone number
    date
    time
    status
    message
    sender
    reciever
    phone number
    date
    time
    status
    message
    sender
    reciever
    phone number
    date
    time
    status
    message
    private static void choice()
              // scan the file location from the user
              System.out.println("Please enter the file location");
              Scanner stdin = new Scanner(System.in);
              String fileName = stdin.nextLine();
              // read the information from the file
              try {
                   Scanner fin = new Scanner(new File(fileName));
                   String tSendName = fin.nextLine();
                   while(tSendName != null)
                        String tRecieveName = fin.next();
                        String tPhoneNumber = fin.next();
                        String tDate = fin.nextLine();
                        String tTime = fin.nextLine();
                        String tStatus = fin.nextLine();
                        String tMessage = fin.nextLine();
                        PhoneMessage phonemessage = new PhoneMessage(tSendName, tRecieveName,
                                  tPhoneNumber, tDate, tTime, tStatus, tMessage);
                        // skip blank line between entries
                        fin.nextLine();
                        // test date string for correct format
                        int month = Integer.parseInt(tDate.substring(0,2));
                        int day = Integer.parseInt(tDate.substring(3,5));
                        int year = Integer.parseInt(tDate.substring(6,10));
                        // test time string for correct format
                        int hour = Integer.parseInt(tTime.substring(0,2));
                        int minute = Integer.parseInt(tTime.substring(3,5));
                        int second = Integer.parseInt(tTime.substring(6,8));
                        tSendName = fin.nextLine();
                        msgList.add(phonemessage);
                   fin.close();
              } catch (FileNotFoundException e) {
                   System.out.println("The file " + fileName + " was not found!");
              } catch (java.lang.NumberFormatException e) {
                   System.out.println("The date and/or time is not of the correct format");
         }

  • Fill BSEG-LIFNR and LFA1-NAME1 in line item text field of Bank GL line item

    Hi all,
    I need to develop a program to populate the Vendor Number (BSEG-LIFNR) and Vendor Name (LFA1-NAME1) in the line item text field of Bank GL line item.
    The UI design will have the input data as:
       - Company Code
       - Posting Dates (both from and to date)
       - Execute Icon
    Please let me know how to proceed on this.
    Thanks and regards,
    Anishur

    program a bdc to tcode fb09
    A.

  • TB 31.4 when compsing a message, has introduced a spurious blank line between the address boxes and subject box.

    When writing a new message I used to see two lines of address boxes followed by the subject line. So, when sending an email to a single recipient, that persons address would remain on screen as I composed the email.
    As of version 31.4 the initial "Write" window shows a single address line, the subject line, and a blank line between them. The consequence is that, upon entering the recipient's address, it immediately scrolls up and can no longer be seen. This happens regardless of how I enter the address i.e. start to type, select from address book and hit ENTER or TAB, or indeed if I choose an address from the address book sidebar. (See "capture1.png")
    If I increase the space available for the header data in the "Write" window I still get a blank line between the address lines and the subject line (see "capture2.png"). Furthermore, the next time I go to compose an email I am back with the original version of the "Write" window, as shown in "capture1.png".

    You might want to drop the author an email and let him know. It is not a major thing, but something that would probably require only a minor fix.
    I have found him helpful, but slow to reply. He is always on holidays when I email him.

  • Limiting amount of lines dynamic text field

    Dear Flash Forum
    I'm retrieving text content from an xml file and I need to
    limit the amount of lines. Basically if the content needs 10 lines
    to be displayed only the first 5 should show up. No scrolling.
    Can this be done?
    Any leads or ideas appreciated.
    Thanks
    Stephan

    The thing is, if there's only 2 lines, the text field should
    be only 2 lines high... (there are other elements around the
    textfield that adjust to the size of the textfield.)

  • Text field data in the Interactive adobe form to long text

    Hi Expert,
    I have a text field(allow multiple line) in the interactive adobe form which has been binded to table type(char132) field of the context element.
    Now I want the save text field data as a long text using SAVE_TEXT.
    When I enter some value in the text field and trigger SUBMIT event then it is going to dump.
    I am unable to trace out what is wrong, since control is not reaching to INIT method of the view.
    please help.
    Regards,
    Rajesh.

    Hi,
    what is in ST22 for this problem?
    Regards Jiri

  • No blank line between address node in smartform

    hi all ,
    customer want to delete the blank line between address , is there a way to solve this ? i just want to use the address node.
    regards
    Kevin

    For the paragraph format used with the ADDRESS command, indicate that you don't want blank lines.
    Eg.    /: ADDRESS PARAGRAPH ZD
    So for this Paragraph Format 'ZD'  check the checkbox 'No Blank Lines'.

  • From line item text field in Fi not posted to COPA characteristic field?

    How do you create the link from the Line item Text field in FI to a characteristic field in COPA?
    I tried to create a characteristic field Text. from the domain VBELN in COPA.
    Although I can post from CRM the contract number to the Line itemText field in FI posting,
    I can't get this contract number to post to a characteristic field in COPA.
    Thanks,
    Sony

    program a bdc to tcode fb09
    A.

  • Blank line in text file after download

    Hi  all,
    i am using the below code to get the 254 blank spaces at the end of the text file & it's comming correctly.
    generally i am downloading 2 lines in the original program  & i am getting one blank line in between these two lines.
    The main thing is that i am getting this blank line when i run this program in my office computer. But i am not getting this blank line when i run this same program in my home laptop. Please suggest why this blank line is appearing & any solution ?
    DATA: BEGIN OF OUTTAB OCCURS 100,
            PROD_CODE(3),
            LINE_DETL(2043),
          END OF OUTTAB.
    DATA:V_OUTPUT(2043).
    DATA: space_character type c.
    space_character  = CL_ABAP_CHAR_UTILITIES=>MINCHAR.
            DO 254 times.
               CONCATENATE V_OUTPUT space_character INTO V_OUTPUT.
               ENDDO.
               OUTTAB-LINE_DETL = V_OUTPUT.APPEND OUTTAB.
    call function 'GUI_DOWNLOAD'
       EXPORTING
          filename = OUTFILE1
          filetype = 'ASC'
          TABLES
          data_tab = OUTTAB

    I don't think this is issue of ABAP. Any way just to check download the file on laptop and open same file and office computer
    if file looks ok then it is OS or text editor issue.
    Thanks,
    AK.

  • Line item text field from MIGO are not copied into FI line item text field

    Hi all on SCN, please, I need a help.
    It was created as required by the user a field status group with the text field required.
    This field status group was assigned to some accounts, in order to make my unit tests.
    u2003
    In development envirionment was made some tests directly in FI area, and it works properly.
    u2003
    But the user made a test using MIGO transaction, choosing in this transaction an account that he changed its field status variant to the one created in development environment, that make the text fiels required. So, to start, he donu2019t fill the text item of MIGO, and a message error appear stating that he needs to enter values in this field.
    After fill in the text fiels, he can save his work.
    u2003
    But the FI document generated donu2019t receive the line item text typed in MIGO, but receives the values on Reference document and Document Header text entered in the header of MIGO, what is missing, donu2019t is automatically copied MIGO text line items to FI documents line Items, does there is some additional configuration missing?
    Hope someone help me with this issues.
    Thanks in advanced!

    Hi,
    Material document will get updated in reference field in FI by default.  If for any reason, want to get this updated in text field, you need to define a subsititution in GGB1.
    Best Regards,
    Madhu

  • JTextArea How do I add text on a new line from Text field

    I want to put each new input from the text field at the start of a new line and keep the previous entries at the start of their
    own line.
    I'm doing this but need help with the new line.
    jTextArea1.setLineWrap(true);
    jTextArea1.setWrapStyleWord(true);
    jTextArea1.setEditable(false);
    public void textProcess()
    System.out.println(sourceref1.getSourceText());
    jTextArea1.setText(jTextArea1.getText()+" "+source.getSourceText());
    The above just keeps adding on the new text until I reach the word wrap limit.
    Thanks

    Maybe you should use the escape character. Anyway, you can consider use append(text:String) instead of getText() everytime.
    Eg:
    jTextArea1.append("\n"+source.getSourceText());

  • Tab key no longer moves between text fields on a web page

    Since upgrading to Mac OS X 10.4.9, my Safari v. 2.0.4 (419.3) is suffering from a bizarre symptom: the tab key no longer moves the insertion point among the various single-line text-entry fields on a page, but rather inserts a tab character within the field! Shift-tab, which used to move the insertion point back one field, does nothing.
    Interestingly, when in a block-text field -- such as the one I'm using to compose this message topic -- the tab key takes me to the next field as expected. It also works when the insertion point is in the URL field or Google search field in the browser interface itself. It's only when I'm typing into a web page itself that it doesn't behave properly.
    Makes filling out long forms a real pain.
    Surely this isn't happening to everyone, or someone else would have mentioned it ... but can anyone reproduce it? Got any suggestions for clearing it up? I'm not running any exotic Safari add-ons, just the usual complement of plug-ins, none of which seem relevant to this problem, which involves normal HTML web pages.
    Thanks in advance for any help.
    G4 QuickSilver 1.467GHz   Mac OS X (10.4.9)  

    There were no file changes to Safari in the 10.4.9 update. There were a number of file changes to the System Library, however, these types of changes usually affect applications across-the-board. MacFixit has a special report and related issues and work-arounds on their site. Not sure if you need to be a subscribed member to see the information, however, it might be worth a look.
    FWIW, I haven't seen any mention about the problem you reported on their forum, or home page report.
    I suggested your marking the thread "answered" as I thought you were complete with the thread given the disappearance of the problem. I'll be curious to see who else posts a similar problem.

  • Multiple lines in text field will not print

    I have created several text fields in a form that was created to be filled in and then printed. The text fields allow for multiple lines but when they are printed they only print the text that has been displayed. Is there any way to get Adobe to print all of the text in the field? Thanks! Teri

    I am also having trouble with this. I am using LiveCycle Designer that came packaged with Adobe Pro. I have a form that has several one-line text fileds and checkboxes at the top and then the last field is a text field for comments. I need this text box to expand to a second page, if necessary. I am VERY new at this and I find the help features with the applicaiton hard to understand. I have the field set to "expand to fit" and I have checked the "allow multiple lines" and saved as dynamic form. It allows me to type as much as I want but it doesn't print. Just displays a + sign at the bottom. I looked at the sample purchase order form and that didn't help me. Can someone give me simple clear instruction on what to do?
    Nay hekp would be ver much appreciated.
    Thanks
    Kathy

Maybe you are looking for

  • Slide Titles not showing up in TOC

    Hello, I am building a project template and have placed a text placeholder in the spot where my slide titles would go. I then selected the system variable $$cpInfoCurrentSlideLabel$$ as the text thinking that it would then populate the "Label" for th

  • When will the next ISO be released?

    When will the next Arch ISO (based on 2.6.21) be released? The kernel in the 0.8 ISO (2.6.20.4 IIRC) has a problem with the nForce chipset in my laptop, therefore I have to use the 0.7.2 ISO, which is pretty outdated.

  • Help with a Kernel Oops that I don't understand

    I'm in the process of installing Arch on a new setup based on a Zotac-IONITX-b motherboard. I have pretty much come to the end of the initial set up of Arch but I am experiencing something that makes me clueless, A kernel Oops. This is the output fro

  • Export movie on iMovie lossless

    Anybody knows how to export AVCHD movies lossless, I mean without conversion when you are exporting movies. I am converting AVCHD (mts) to mov before import. The iMovie is the latest version, 11. Luiz

  • J2EE vs J2SE

    I have J2SE installed in my PC. Now I am starting to learn EJB and I will install J2EE. Should I install J2EE over J2SE or should I install it on a different directory? Thanks.