Problem in formatting of long text -- line break not recognized.

Hi ,
We have a PO smartform in our SRM system and we are facing problem with formatting of long text on the smartform for long texts maintained for the PO.
for ex, we maintain the long text as --
"this is long text for item 1.
1. this is line 1.
2. this is line 2."
On the smartform it is displayed as --
this is long text for item 1. 1. this is line 1. 2. this is line 2.
So basically, the line breaks in the text are not considered in the smartform .
Any suggestions on how to fix this issue ??
Thanks.

Hello Harmeet,
Which Std. FM are you using to fetch the PO texts? If the PO doesn't exist in your system, i'm afraid you cannot use Include Texts as mentioned by Harsh.
As an alternative you'll have to create a table & pass the text lines to it! I don't think SmartForms are not smart enough to identify new-line character.
BR,
Suhas

Similar Messages

  • Does itunes u descriptions no longer support line breaks?

    Hi. I've got a faculty member that wants all of his course recordings available on itunes u. Previously, he would write a description for each session which I would post in the description field. Now, it appears that the description field no longer supports line breaks. Content generated prior to June is fine but all new content just runs on in one long paragraph. Anyone else seeing this problem?

    The collection is in the iTunes U directory. I'll have to breadcrumb you there since I don't know how to direct link. So, go to the University of Washington, Social Science, T536 Taxation of Trans-Pacific Transactions. In the description, you will see it is one giant paragraph, no formatting. Before we were converted to the new template (apple template, not our own) in April, this was formatted properly. I've created new collections and they also suffer from this same issue so it isn't simply a matter of the conversion. Thanks you for your help!

  • Line breaks not passing from flash to asp

    Hello,
    I've came up with a very anoying problem, and I need it fixed
    asap.
    The problem is as folows:
    I have a form in flash that contains a number of fields. One
    of those is a input field with the purpose of capturing the
    impressions of the user on a given subject. Needless to say that
    that impression may contain paragrafs, and line breaks. I'm using
    flash 7 publish settings and passing the values of the fields via
    LoadVars. The problem seems to be that no line breaks are passed to
    ASP. All the special characters are passed correctly, the HTML is
    coded as UTF-8 so that the portuguese characters are correctly
    decoded, but no line breaks are shown. I need a quick solution to
    solve this problem of the line breaks.
    Can someone give me a quick hand on this?
    Thx

    Thx kglad,
    Your solution is very simple... too bad I happened to create
    a solution on a much more complicated way... I ended up by escaping
    the string, detecting where the %0D was found, and replaced it with
    <br>. A much harder way to get to the same result... On
    future ocasions im gonna use your solution, which is way much
    simpler and doesn't require the number of coding lines that I had
    to create for the same purpose.
    Thx again m8

  • In CloverETL the Text Enrichment component not recognizing Indian Person Names

    Im using OEID Integrator ETL3.1.1.
    The component Text Enrichment is not recognizing Indian Person Names. Is there any lib files which needed to be added in Lexalytics?
    Please suggest.

    Holy S H ! T, I thought this was only me!
    SEVEN Months, and Apple has NOT addressed your issue.
    I was gonna say "I miss Steve", then I remembered he didn't answer user concerns either...

  • Problem with formatting the saved text to hard disk

    I use a modified code from Macromedia for saving the content of a text filed on hard disk. See code at the end.
    The code works fine and a text file is saved in the given location on the hard disk.
    The problem is that all of the content of the text field appears in a very long single line.
    The line breaks in the text field does not appear at all in the saved text file.
    for example:
    if the following is the the content of the text filed on the stage:
    abcdef
    jhijklm
    nopqrst
    uvxwyz 
    then the saved file is like: abcdefjhijklmnopqrstuvxwyz 
    No line break happens! How can this be fixed?
    Thanks for any suggestions.
    HR
    ******************* Here is the code *************************
    --this handler saves the contents of the field into a text file called 'output.txt'
    --it over writes anything that is in the 'output.txt' file.
    global myFile
    on mouseUp
      if objectP(myFile) then set myFile = 0  --Delete the instance if it already exists
      myFile = new(xtra "fileio")    -- Create an instance of FileIO
      openFile (myFile, the moviePath &"output.txt",0)--Open the file with R/W access
      delete(myFile) --deletes the file
      createFile (myFile, the moviePath &"output.txt) --creates the file again
      openFile(myFile,the moviePath &"output.txt,0) --Open the file with R/W access
      mySaveString = member("input").text --puts the contents of the field 'input' into the variable mySaveString
      writeString(myFile,mySaveString) --writes text to the file
      closeFile(myFile) -- Close the file
      myFile = 0 -- Dispose of the instance
    end

    You need to replace the carriage returns (that aren't followed by a line feed) with the CRLF combination. Feel free to place the following JavaScript handler into a movie script and call it prior to writing your string to disk:
    function jsStringToDOS (str) {
      return str.replace(/(\x0D)(?!\x0A)/g, "\x0D\x0A");
    global myFile
    on mouseUp
      if objectP(myFile) then set myFile = 0  --Delete the instance if it already exists
      myFile = new(xtra "fileio")    -- Create an instance of FileIO
      openFile (myFile, the moviePath &"output.txt",0)--Open the file with R/W access
      delete(myFile) --deletes the file
      createFile(myFile, the moviePath &"output.txt") --creates the file again
      openFile(myFile,the moviePath &"output.txt",0) --Open the file with R/W access
      mySaveString = member("input").text --puts the contents of the field 'input' into the variable mySaveString
      mySaveString = jsStringToDOS(mySaveString) -- convert to Windows CRLF characters
      writeString(myFile,mySaveString) --writes text to the file
      closeFile(myFile) -- Close the file
      myFile = 0 -- Dispose of the instance
    end

  • Problem in Reading  Material Long text in Sapscript

    Dear firends,
    I have written  following code in sapscrit to fetch the longtext of the material
    INCLUDE &MARA-MATNR(K)& OBJECT MATERIAL ID GURN LANGUAGE &NAST-SPRAS&
    Test name - material no(MARA-MATNR)
    object - MATERIAL
    text id - GURN
    LANGUAGE - EN
    but i am not table read the longtext by using above code, when i see in debug mode  ,i am getting warning message
    "data is not available for materil 0000013,GURN,MATERIAL" like that.
    i don't find any problem in code , long text also availble for material 0000013.
    i don't where is the problem , please give me solve this issue.
    Regards,
    D.prabhu

    Hi
    You have to fetch this Long text of this Material using READ_TEXT fun module by passing the 4 parameters as mentioned by you  by writing some code in the program or by writing the external subroutine using PERFORM statement
    Only Application HEADER and ITEM texts can be included in script using the INCLUDE command
    So write the code for the Read _Text fun module and fetch it into Internal table lines and pass/print those to script
    pass the same 4 parameters
    Test name - material no(MARA-MATNR)
    object - MATERIAL
    text id - GURN
    LANGUAGE - EN
    see the sample code
    data:begin of it_stxh occurs 0,
            tdobject type tdobject,
            tdname type tdobname,
            tdid type tdid,
            tdspras type spras,
          end of it_stxh.
    types:begin of ty_lines.
            include structure tline.
    types:end of ty_lines.
    data:it_lines type standard table of ty_lines with header line.
    it_stxh-tdid = 'GRUN'.
    it_stxh-tdspras = 'E'.
    it_stxh-tdobject = itab-matnr.
    CALL FUNCTION 'READ_TEXT'
      EXPORTING
      CLIENT                        = SY-MANDT
        ID                            = it_stxh-tdid
        LANGUAGE                      = it_stxh-tdspras
        NAME                          = it_stxh-tdname
        OBJECT                        =  it_stxh-tdobject
      ARCHIVE_HANDLE                = 0
      LOCAL_CAT                     = ' '
    IMPORTING
      HEADER                        =
      TABLES
        LINES                         = it_lines
    EXCEPTIONS
      ID                            = 1
      LANGUAGE                      = 2
      NAME                          = 3
      NOT_FOUND                     = 4
      OBJECT                        = 5
      REFERENCE_CHECK               = 6
      WRONG_ACCESS_TO_ARCHIVE       = 7
      OTHERS                        = 8
    IF SY-SUBRC eq  0.
    loop at it_lines.
    < Print these lines in script by passing to script>
    endloop.
    ENDIF.
    Regards
    Anji

  • Using paragraph format for long text...

    Hello,
    When I try to print the long text using include then
    it starts printing from the very first line.
    But I want to use some paragraph format for it. How can I use it because I am using
    /: INCLUDE '200007200000100' OBJECT AUFK ID KOPF
    So where do I mention the paragraph format in the tag column becaue I am already using /: controll command in font of the include ?

    Check this thread...
    SAPScript - Standard Text
    It looks like the PARAGRAPH P2 statement can do that declaration, on the subsequent line.
    This website also has some good examples:
    http://www.henrikfrank.dk/abapexamples/SapScript/symbols.htm
    Cheers,
    John

  • My group box is causing problems when searching for a text line in a text file.

    I am developing a booking system, so for this I need to ensure that no two clients can book the same appointment slot. So, on testing my code which prevents double booking, the system doesn't seem to find the text line being searched for in the text file
    when it (purposefully) should.
    I have tried isolating the problem using breakpoints, and I've found that when the 'SearchLine' (referring to my code below) does not include the 'TimeComboBox.text' piece and instead this value is written into the code, the system is able to find the SearchLine
    without any problems. But, when assigning the group box's value to a variable and using this in the SearchLine instead, or without even using a loop and just doing a simple line by line search, the program can't find this line of text in the file.
    I'm lost for ideas. I have tried everything I can think of. Could anyone make any suggestions as for what is the problem with my group box? (I'll explain the code beneath it).
    'Setting the value of the SearchLine (which is a String)
    SearchLine = String.Concat(DateTimePicker1.Value.Date & " " & TimeComboBox.text)
    Dim FoundApp As Boolean
    Dim objReader As New System.IO.StreamReader(basicfilepath & "Text Files\Client Booked Appointment DatesTimes.txt")
    FoundApp = False
    'Reading the file's contents and checking for the SearchLine
    Do While (objReader.Peek() <> -1) or (FoundApp = True)
    If (TextLine = SearchLine) Then
    'Line contains SearchLine. Appointment already exists.
    FoundApp = True
    Else
    'Line doesn't contain SearchLine. Carry on searching.
    Msgbox("Line not found.")
    End if
    Loop
    Explanation
    When the line is searched for, the 'FoundApp' value must be set to 'True' when it is found. If it is not found, it remains false.
    To isolate the problem, I've displayed the SearchLine in a message box in the past to make sure that the correct line of text is being searched for.
    In basic terms, my program is searching for the exact line of text which exists in the text file, but for some reason it is not coming up as 'Found'. The error occurs when the group box's value is used. The text file which is being read is
    definitely correct. Please help, any suggestions would be appreciated.
    Thank you

    Hi
    It would appear that your snippet doesn't actually read the file at all.
    Here is my test which works fine.
    Option Strict On
    Option Infer Off
    Option Explicit On
    Public Class Form1
    Private Sub Form1_Load(sender As Object, e As EventArgs) Handles Me.Load
    Dim SearchLine As String = "18:09:38 : XTaskSettings.Load PARAMS: begin"
    Dim FoundApp As Boolean = False
    Dim TextLine As String = Nothing
    Dim objReader As New IO.StreamReader(Application.StartupPath & "\Data\Report Q1.txt")
    FoundApp = False
    Do While (objReader.Peek() <> -1) Or (FoundApp = True)
    ' this was missing
    TextLine = objReader.ReadLine
    If (TextLine = SearchLine) Then
    'Line contains SearchLine. Appointment already exists.
    FoundApp = True
    MsgBox("Line found.")
    Else
    'Line doesn't contain SearchLine. Carry on searching.
    MsgBox("Line not found.")
    End If
    Loop
    End Sub
    End Class
    Regards Les, Livingston, Scotland

  • Problem in loading the long text in bdc.

    Hai Friends,
                  I am uploading the material master using bdc, Here i need to upload the long text field. so am using the separate report for upload the long text field using the create_text function module. but the problem is the long text field only accepting 132 charactors. but i need to upload the 500 charactors. what i want to do now ?
    Regards ,
    Sathis Kumar R

    Hi Sathis,
    What u do is that while recording the text part in bdc , click on the first delete button,  and then create button and after that double click on the editor or click on the text-editor change button, a window will get opened , then click go-to menu -> change editor.
    there u can use loop the text table and wirte it according .
    eg
    PERFORM bdc_dynpro      USING 'SAPMV45A' '4002'.
      PERFORM bdc_field       USING 'BDC_OKCODE'
                                    '=TP_DELETE'.            "first delete
      PERFORM bdc_dynpro      USING 'SAPMV45A' '4002'.
      PERFORM bdc_field       USING 'BDC_OKCODE'
                                    '=TP_CREATE'.             " then create
      PERFORM bdc_field       USING 'LV70T-SPRAS'
                                    sy-langu.
      PERFORM bdc_dynpro      USING 'SAPMV45A' '4002'.
      PERFORM bdc_field       USING 'BDC_OKCODE'
                                    '=TP_DETAIL'.             "if not double click then click on change button after the delete button and then click on the change-editor menu .
      PERFORM bdc_field       USING 'LV70T-SPRAS'
                                    sy-langu.
      PERFORM bdc_dynpro      USING 'SAPLSTXX' '1100'.
      PERFORM bdc_field       USING 'BDC_CURSOR'
                                    'RSTXT-TXLINE(02)'.
      PERFORM bdc_field       USING 'BDC_OKCODE'
                                    '=TXVB'.
      PERFORM bdc_field       USING 'RSTXT-TXPARGRAPH(02)'
      PERFORM bdc_field       USING 'RSTXT-TXPARGRAPH(03)'
      PERFORM bdc_field       USING 'RSTXT-TXLINE(02)'
                                    wa_itab-htext1.
      PERFORM bdc_field       USING 'RSTXT-TXLINE(03)'
                                    wa_itab-htext2.
      PERFORM bdc_dynpro      USING 'SAPLSTXX' '1100'.
      PERFORM bdc_field       USING 'BDC_CURSOR'
                                    'RSTXT-TXLINE(02)'.
      PERFORM bdc_field       USING 'BDC_OKCODE'
                                    '=TXBA'.
      PERFORM bdc_dynpro      USING 'SAPMV45A' '4002'.
      PERFORM bdc_field       USING 'BDC_OKCODE'
                                    '/EBACK'.
    regards,
    Santosh Thorat

  • Simple dynamic text line break question

    I have a simple file that loads text dynamically inside a symbol.. How do I put line breaks in? My code is below. If I leave the text as is it skips a line inbetween.
    (actionscript in flash file)
    loadVariables("pacific.txt", "_root.pacific");
    txt file
    data=CANADIAN PACIFIC DISTRICT
    Steve Foster
    [email protected]
    1-877-850-2664
    Cell: 250-667-4827
    thanks,
    Frank

    NOT
    /n
    use:
    \n

  • Need to find table/field behind "Item long text" field in Notes tab in FB70

    Hello,
    To print a custom FI invoice, I need to access the data entered in the "Item long text" field of the Notes tab in FB70. To test, I used 5000 characters in that field to make sure it stood out from the rest of the data. F1 help does nothing on that field, and even running an SQL trace (ST05) doesn't show the text in that field being entered into any table. I tried F1 on a nearby field and got a structure instead of a table, so I investigated the structure through SE11 but found no character field with such a large capacity. How else can I find where that field is stored?

    Thanks! It took a while, but with your help and a few other pages I managed to piece together an answer.
    Vinod helpfully explained that the text name is a concatenation of various fields, but didn't specify how to find the line item ID. If you go to table STXH (as hinted by Brad and confirmed [here|http://fuller.mit.edu/SAPWebDocs/LongComment.html]) and search for texts created today (or whenever you were testing), you'll see the text name ends in '001' after GJAHR, so the line item ID is '001' regardless of how many line items you enter in the invoice.
    Armed with that info, you can call READ_TEXT and loop through the results to concatenate the contents of each TDLINE field. (FB70 automatically breaks the user-entered text into different lines even if the user didn't press Enter, and each line gets its own record in the results.)
    Thanks again,
    Pedro

  • Formatting Critical Tasks (Text in Table) not applying across all columns

    All,
    I am working on creating a schedule from multiple smaller schedules.  A few of these schedules had manual text formatting which I overwrote manually (selecting cells and changing text color).  Now when attempting to apply text styles to the critical
    path the text styles will not apply to all Critical tasks or all columns visible.  I'm guessing I caused problems by manually changing the text color but I don't know how to fix it.  Please help!

    All of the manual text formatting and re-formatting in cells has changed the default formatting in the Gantt Chart View.
    Rather than fiddling with it, the best way is to recover the original formatting of the Gantt Chart View, and then if you want to modify it make a copy of that view, name the copy something like "AA Gantt Chart 01", and then format the text and bar
    styles (not individual bits and pieces of cells and bars) of your new view. Include the "AA" or an underscore or something similar as part of the name so that your new views always go to the top of the list and you can always distinguish them
    from the original ones that came out of the box.
    Use the organiser to recover the original Gantt Chart View by pulling the Gantt Chart View from the global template. Now, MSP will not allow you to over-write the Gantt Chart View in your file while that view is the active view, so you will have to switch
    to another view while you do it. Switch to the Tracking Gantt View, then File, Organiser. You see all of the clean stuff on the left hand side and all of the stuff in your file on the right.
    In the future, leave the original views as they are. Also, leave the original tables, filters, groups, reports etc alone and if you need modified/customised versions of them make copies and change the copies. This is just good housekeeping. Also, do not
    copy modified/customised views from your file into the global template ((or you will poison the well).
    Hope this helps. Please mark as answer.

  • Problem in sending mails from SAP-line breaks in lotus

    Hi Gurus,
    I have a very peculiar issue with external mail send from SAP to Lotus Notes.
    Issue: When a PO is created in SAP a automatic mail will be sent to vendor to his
    Lotus Notes from SAP. Here we are a using a subroutine where the FM
    'SO_NEW_DOCUMENT_SEND_API1' and the content of  the mail is stored in text symbols
    and  then populated to a internal table which will be passed to the above said FM.
    So this is very simple case.
    My problem is now, even though it looks fine in the SOST, when mail is seen in lotus,
    lines of  the mail contents are breaking around 79th or 80th character, eventhough it is more  than
    that while appending to the internal table. I don't understand this at all, why it  is happening?
    Ex: in SOST if we see a line looks like this.
    aaaaaaaaaaaaaaaaaaaaaaaaaabbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbnnnnnnnnnn
    but in lotus it breaks and looks like  below:
    aaaaaaaaaaaaaaaaaaaaaaaaaabbbbbbbbbbbbbbbbbbbbbbbbbbbb
    bbbbbbbbbbbnnnnnnnnnn
    Any light can be thrown on this!!!
    Reward is guaranteed for helpful answers!!!!
    -B S B

    How do you connect SAP to the lotus notes email database?  In some installations I have seen this done using Unix Sendmail functionality and this may be causing this result?
    Andrew

  • Problems exporting PDF in CS5, text missing, images not transparent....

    I am using InDesign CS5 v7.04 on a Mac running 10.8.1.
    (This exact problem has happened to me in previous versions of ID as well though?)
    When I export a document to PDF and view in Preview OR place into another ID document, every other page has an issue where some or all of the text is missing and images that should be transparent are not or are missing as well.  Actually, the first two pages in my current document are OK, the rest, every other page is missing text, images, has non-transparent images that should be transparent... The font I am using is Avenir and the imaages are .png created in PS. The images are in the master.
    WHY is this happening? What do I need to do to fix?
    Thanks in advance for your assistance. I am a mostly self-taught ID user since version 1, just getting back into using it after a long break.

    pixelpusher_mama wrote:
    OK, sorry, yes, it looks the same in Acrobat as it does in Preview as it does when placed into ID. 
    I was able to save as a non-current version of PDF (Acrobat 4) and it shows correctly. (???) What am I missing, here? I mean, I have a work around, but?
    So the original PDF is bad, rather than there being a problem with the file after placing. That implicates the original document, and since Acrobat 4 compatibility works it's probably either a transparency or layer issue.
    Try trashin g your prefs and export again and see if it works. See Replace Your Preferences

  • Number format mask of text item is not applied

    Hello all,
    I want to format a number like 999G999G999G999G990D00
    Is specify the format mask under source of the item. But it is not applied and I don't understand why.
    See http://apex.oracle.com/pls/otn/f?p=53873:2 for example
    Btw. is it possible to set the format for all numbers in the application at once? I want to have a thousand separator in most cases.
    Message was edited by:
    Jacob_B

    Hello Jacob,
    Btw. is it possible to set the format for all numbers
    in the application at once? I want to have a thousand
    separator in most cases.I am using substitution strings for things like that. You can define some "global" substitution strings on page application definition.
    So you just have to put in the format (999G999G999G999G990D00 ) in there once and give it a name. Let's say NUMBER_THOUSAND.
    Afterwards you can reference it wherever you need the format e.g. this way:
    to_char(10000,'&NUMBER_THOUSAND.').
    This way you just have one place where to change the format model.
    Regards,
    Tine

Maybe you are looking for

  • Using OS command

    Hi , I am doing file to idoc scenario. I am getting the file in zip format. File adaptor poll the file in zip format, Now my requirement is to extract the file in text format before content conversion .... can we use the OS command option in sender f

  • JOptionPane and JDialog

    Hi guys, I've been scooting around the net trying to find an answer to this problem. Basically I have a JDialog that users enter registration details. If they haven't completed all fields or if the password confirmation is wrong then a JOptionPane.sh

  • Using standard PO Printing Program for Smartforms

    Hi Experts, I am some hiccups coding my print program for a PO Smartform that am currently working on.The requirement was to use the standard print program to trigger my Smartform PO. I have read alot of threads on this, but am still clueless. Some s

  • Missing EXS samples despite full install

    I appear to be missing a few EXS samples for instrument channel strip settings such as all the Bosendorfer variations (Club, Hall, Room and Studio) and some of the Pop Strings amongst others. Most of the others are there but if I happen to click on a

  • Call abap commands from oracle enviorment

    Hello experts, i have quite no experience with SAP but i have this problem: in oracle db we have datas which are in variables to one ABAP function. And we need call this func with this parameters. From our SAP experts i get information that our SAP s