Getting # instead of new line - in smartform

Hello,
I am displaying a PDF in popup window, in which I am getting '#' instead of enter (Keyboard enter i.e. new line).
Details -
I have some text boxes, in which I can put the comments where user can press the enter on keyboard (new line character). When I look that comment on browser, I can see the enter pressed i.e. text is displayed on next line.
But when I open a smartform, it shows me '#' instead on new line. FYI - If I look in infotype value, there also it shows '#', but I am able to get new line in browser (it doesn't show '#' in browser i.e. it works fine in browser).
Only issue is with PDF or smartform.
Thanks & Regards,
Bhushan

Hi BhuShaan,
I understood your problem.
I faced similar issue in smartforms while printing Longtext text with #(enter). I found a solution for the same.
I got Text with # into ET_LONGTEXT Internal table. I have done below code
data : ET_LONGTEXT     TYPE TABLE OF     BBP_PDS_LONGTEXT,
          ES_LONGTEXT     TYPE     BBP_PDS_LONGTEXT,
          ET_TDLINE     TYPE TABLE OF     TDLINE,
          ET_TDLINEF     TYPE TABLE OF     TDLINE.
LOOP AT ET_LONGTEXT INTO ES_LONGTEXT.
  SPLIT ES_LONGTEXT-TDLINE AT cl_abap_char_utilities=>newline INTO TABLE ET_TDLINE .
  APPEND LINES OF ET_TDLINE TO ET_TDLINEF .
ENDLOOP.
You can try above logic. Good Luck.

Similar Messages

  • New line in smartforms after the enter command .

    Hello experts ,
    I get text from a text box , and i need to display it in table field on my form.
    After the user push the 'ENTER' button during inserting the text , i need to display this text in a new line
    How can i  do this ?
    Thanks for your help.
    AVI.

    Hello Sakkthiss.R ,
    For example , the user write the following text :
    Hello world
    today is
    a nice
    day
    After every line in this text the user push the enter button, in the table filed which will be display in the form, the text should be display as it is written below.
    I hope it is clear now.
    Thanks for your help,
    Avi.

  • Long commands in bash terminal overwrites my prompt, instead of new line

    When I'm in Terminal and I type a long command or something, instead of the Terminal continuing the command onto the next line, it starts overwriting my username@host prompt. Does anyone know how to fix this?

    Does it happen in all user accounts? You may have altered your bash shell profiles in some way. To check this, run the following commands, and then post the results of each here (the results should open in a TextEdit window):
    cat ~/.bash_profile | open -fe
    cat ~/.bashrc | open -fe
    cat /etc/profile | open -fe

  • New Line in Text File

    Hi -
    Im using the FileWriter and BufferedWriter classes to output text into a .txt file.
    The text I am writing is taken from another text file using the FileReader and BufferedReader classes.
    The text is reading from the file, and will also output to the new text file, however it won't insert a new line, it only inserts an 'unprintable' character i.e. an empty square
    My code is below - its only starting out so its farily simple at the moment, just reading from one file and outputting to another.
    Is there a way i can get the actual new line/carriage return inserted instead of the empty square. (im running Windows XP)
    Thanks in advance
    import java.io.*;
    public class Pad {
    private String inputPath;
    private String outputPath;
    /** Creates a new instance of Pad */
    public Pad() {
    inputPath = "C:\\OUTBOUND.TXT";
    outputPath = "C:\\04'06.txt";
    * @param args the command line arguments
    public static void main(String[] args) {
    // TODO code application logic here
    System.out.println("PAD File");
    //Read PAD File
    Pad p = new Pad();
    p.readPADFile(p.inputPath, p.outputPath);
    public void readPADFile(String inputPath, String outputPath)
    inputPath = this.inputPath;
    outputPath = this.outputPath;
    //System.out.println(inputPath);
    int recordCount = 0;
    String record = null;
    try
    FileReader fr = new FileReader(inputPath);
    FileWriter fw = new FileWriter(outputPath);
    BufferedReader br = new BufferedReader(fr);
    BufferedWriter bw = new BufferedWriter(fw);
    record = new String();
    while((record = br.readLine())!=null)
    recordCount++;
    //System.out.println(recordCount + ": " + record);
    bw.write(record + "\n");
    bw.close();
    br.close();
    fw.close();
    fr.close();
    }catch(IOException e)
    System.out.println("IOException Error");
    e.printStackTrace();
    System.out.println(e.toString());
    }

    I assume by using the
    System.getProperty("line.separator") that this will
    work independent of platform.Yes. And using bw.println() instead of bw.print() will already do it for you. So all you need to change in your program are two letters.

  • New line character in cipher text?

    Friends,
    I am encrypting a text in Triple DES/CBC mode/Nopadding mode. the length of text is 6500 bytes. in the cipher text that i get, it has new-line character(\n) & carriage return characters. As a result of this i m unable to read the cipher text from a C program(as it is not fully reading the cipher text). is there any methodology to overcome this problem. is there any way to avoid the new-line & carriage return characters in cipher text.
    Also is there any criteria like, the plaintext can be only max of this much bytes?
    Thanks in Advance

    The result of your encryption is bytes and not characters so your C program should process it as bytes and not as characters then bytes '\r' and '\n' will not be interpretted.
    It would be interresting to see your C code.

  • How to add new line item using BAPI BAPI_CONTRACT_CHANGE for contract-ME32K

    HI Experts,
    how to add new line item using BAPI: BAPI_CONTRACT_CHANGE for existing contract.
    Requirement:
    Already the contract having two line items using ME31K.
    Custom program has to add new line items in existing contract.
    Thanks,
    Sendil

    I got the solution:
    We can do like this:
    1. Get all details using details, BAPI_CONTRACT_GETDETAIL.
    2. After getting results, append new line item. Then use your BAPI.
    Check this posting program.. where this bapi is used, use the same coding technique.
    IDOC_INPUT_PURCONTRACT_CHANGE

  • Add a new line to get Iphone 4s instead of ETF?

    Could I add a line to our family share plan to get the Iphone 4S, and after activation on the same day switch the Iphone to my current phone line # on the same plan, and then add an old non data phone to the new line added to buy the iphone? That way I get the Iphone at the 2 year price and not have to pay a early termination fee, plus I get to keep my current phone # and unlimited data? Will this work? Help please!

    I would be buying this from a verizon store. I went tonight to buy the iphone 4s and I was told I couldn't because last May I decided to pay the difference for a new phone instead of getting the same phone they had replaced many times and I kept having issues with having poor reception quality. So I bought my current Droid X for $199.99 plus $20 more for the early upgrade fee, so I got no discount. I am told today that I used my upgrade in May so I have to wait until January of 2012 to upgrade to Iphone 4S or any other phone unless I pay retail price of $649.99. So my husband and I decided to see if it would be worth just adding a new line and switching the phones around. Do you see me getting any grief for doing this?

  • I'm having problem with text boxes.  Whenever i hit the enter button to start a new line or paragraph, the cursor doesn't drop down to the next line.  Instead i get this little red + sign in the box.

    I'm having problem with text boxes.  Whenever i hit the enter button to start a new line or paragraph, the cursor doesn't drop down to the next line.  Instead i get this little red + sign in the box.

    You are absolutely right.  Thought Enter meant Enter.  I was wrong.  Thank you for the help.
    Rod Rogers, Broker
    Accredited Land Consultant (ALC)
    Metcalf Land Company, Inc.
    Office: 864-585-0444
    Mobile: 864-316-0297
    Fax: 864-583-6000
    <http://www.metcalfland.com> www.metcalfland.com

  • Insert new line type at ctrl break in Smartforms

    Hi Guys
    I am developing a timesheet in smartforms.
    In the Smartform my table contains data for two weeks, but I need to bifurcate it on a weekly basis. So when the form starts I print e.g Weekly record:- 01.01.08 to 01.07.08
    Now I want that as soon as the control reaches 01.08.08 A new line type should get inserted saying
                  Weekly record:- 01.08.08 to 01.14.08
    Please guide me how this can be done.
    Thanks a lot.

    Create your internal table in such a way that it contains the data as per your printing requirement.
    E.g.
    01.01.08   01.07.08    XXX.XX   123.45
    01.08.08   01.14.08    XXX.XX   123.45
    Now, if your smartform just create a table node under the MAIN window and prints this values.
    Regards,
    Naimesh Patel

  • How can I get a pdf. to open in Safari, all i'm getting is a new window with a black, blank page, instead of the pdf., and I don't want to save the file to the desktop, Safari didn't use to do that, and I don't have Adobe in the internet plug in folder.

    How can I get a pdf. to open in Safari, all i'm getting is a new window with a black, blank page, instead of the pdf., and I don't want to save the file to the desktop, Safari didn't use to do that, and I don't have Adobe in the internet plug in folder.

    Hi
    Please take a look to this thread Re: Can I refresh the browser rather than open a new tab?

  • A new line is showing up on messages I receive. It's seems to be a row of links, including a URL to (maybe) the msg source. How do I get rid of it?

    On my incoming messages, under my toolbars & above the msg header, is a new line. It sort-of looks like another toolbar, but different. It reads from left to right and each word is highlighted white:
    Back Forward Refresh URL: ___________________ Go
    Each of these words except for "URL:" are in boxes as if they are links but they don't work like links.
    What is this and how do I get it off my incoming messages?
    Thanks, nanciewanda

    I have no idea. Perhaps you could post the troubleshooting information so we can have a better look at what is going on.
    Click the Help menu (Alt+H) and select ''Troubleshooting Information'' from the menu.
    Now, a new tab containing your troubleshooting information should open.
    *At the top of the page, you should see a button that says "Copy text to clipboard". Click it.
    *Now, go back to your forum post and click inside the reply box. Press Ctrl+V to paste all the information you copied into the forum post.

  • How do you get a new line in a description of an iCal event?

    I need to be able to create multiple lines in a description of an iCal event.  In the past, I used control return to get a new line.  In Mountain Lion, this does not show up as a new line, once the event has been saved.  It merges all of the text onto one line and creates new lines as the space dictates.  How can I force new lines in the event description between the words that I have chosen?

    I'm interested too.
    Please help, I had own method to management  iCal's event – new line, of 10.7 worked great – now is a little terrible for me :/

  • How to get 2nd line in smartforms using template

    how to get 2nd line in smartforms main window using template. i have also defined loop .

    if possible can you try with the TABLES..
    Put one TABLE in your MAIN window
    create table lines as per your requirment...consider all lines like 6 for header, 1 for main, 1 for total
    Now, you will find three section under the tables: header, main, footer...
    in header section, create a table line, assign one of the proper lines from the line types.. repeat for your all lines.
    in main section, you can access your data form the loop.
    the footer secion will be called, just after the main will be finished.
    Regards,
    Naimesh Patel

  • Create a new line in the smartforms

    Hi Guys,
    Please let me know to create a new line in the smartforms.
    I tried creating a window with the height length is 0 cms.
    It is allowing to create a line.

    Hi,
    First I need to include the LOGO and next line I need to make a line.
    What do you mean by 'making a line '?
    Is it an empty line?
    If it is just a blank line, while creating the text below the logo just give one line space and then type in your text.
    Regards,
    Shailaja

  • Pressing Enter inserts new line break instead of "executing" command

    I have noticed a rather strange behavior on my new TPT2. This occurs ONLY when I am using the Windows 8 touch keyboard in the "Metro" environment.
    Whenever I press the Enter key on said keyboard (for example when sending an instant message on Skype), the keyboard inserts a new line in the text box instead of acting like a "normal" Enter key and execute the default command (send the message in this example).
    I have connected an external keyboard and this problem does not show up. Everything works as expected. I also brought up the regular on-screen keyboard (launched from the Ease of Access menu) and it works the way it should. The problem is only with the Metro touch keyboard.
    It seems that for some reason, the Metro touch keyboard interprets the Enter key pressing as "insert a line break".
    Does anyone know how to fix this? It is extremely annoying.

    Just checked that, you are right, Photoshop doesn't recognize Shift-Enter as a line break and treat it as a Return which is a problem with paragraph formatting. Obviously a bug.
    Good news workaround is that it recognizes the line break character if you paste it from another program like Microsoft Word. If you don't have a program that allows you to copy just that character and use paste instead of Shift-Return, you have to type your entire text in some other program and copy paste to Photoshop.

Maybe you are looking for

  • [SOLVED] Error with the php5 module for apache

    Hi! I've installed Apache 2.0.55-1 and PHP5 5.1.4-4. When I try to run the apache server it fails. Then I do httpd -k start and I get: Syntax error on line 262 of /etc/httpd/conf/httpd.conf: API module structure `php5_module' in file /usr/lib/apache/

  • Tecra M1: F12 boot menu doesn't start

    Hi. I have a big problem. After I formated the harddrive for reinstalling XP. I can not enter the Toshiba HW Setup and change the boot-priorities. If I start the Notebook, it first try to boot the empty HDD, exit with the error-message: "can t find N

  • Duplicate file detection

    No matter what import settings I select when I import files from the card reader the importer re-names the file to "filename +#" and imports it again. I eliminated all copies of the "new" pictures from the organizer and hard drive. I then imported th

  • Download old iPod touch date into new iPod touch through iTunes

      How do you download old iPod data into new a new iPod?

  • T.code FEBC: the repport list doesn't contain the report RFEBIT00

    Hi All, when I launch the t.code FEBC, SAP provides me a list of report among which I've to choose the one I need. But the list doesn't contain the report RFEBIT00..... How to add it to the list? Thanks Gandalf