How to show long text in TextView control in formatted form?

Hi,
I have requirement to show long text from backend text edit control to WD application. I am using READ_TEXT Fm to read the long text and passing it to text view UI element.
The text is shown in simply one long line but I want it to show in the same format as stored in backend textedit control.
If I take textedit UI control then it shows the text in formatted form.
Could you please let me know how to achieve these for TextView control? My requirement is that I have to use only TextView control.
Thanks,
Chandra

Hi,
The Problem solved to some extend but still the exact formatting is not happening though i am using cl_abap_char_utilities=>newline.
for eg. if the long text is as below.
"To display the external component, you can now embed an interface view of any window of this component in a window of your current embedding a view of oneu2019s own component. By setting up navigation from one outbound plug of a view of your inbound plug of the inter external component, you enable the external component to be displayed. New line ."
and if in backend the Last line " New line ." is on next line, on WD it is not displayed on next line.
Thanks,
Chandra

Similar Messages

  • How to create Long Text in Module Pool Program

    Hi all,
    I want to develop a new module pool program and I want to use Long text screen in this program and also want this text will store in table.I never develop such type of module pool before.This long text will like sales order long text.Please let me know the steps how I can develop such type of program and how I save long text huge data in table.
    Thanks & Regards
    Nirmal

    Hai ,
    here you have to use custom control, for this
    DATA: line(256) TYPE c,
          text_tab LIKE STANDARD TABLE OF line,
          field LIKE line.
    1)  Create custom control in your screen
    2)   CREATE OBJECT: container EXPORTING container_name = 'TEXTEDIT',   "--> (this is custom control name in screen)
                       editor    EXPORTING parent = container.
    3)  CALL METHOD editor->get_text_as_stream  "This method reads data from custom control , inserts into itab 'text_tab' 
             IMPORTING       
              text = text_tab.                                       "
          READ TABLE text_tab  INTO line INDEX 1. read the text into wa 'line'
    if you want more clarity , see  'ABAPDOCU' >ABAP USER DIALOGS>    COMPLEXSCREEN ELEMENTS-->  DEMO CUSTOM_CONTROL

  • Need to assign char in o12c to show long text of the char in PI sheet

    Hi, Trying to learn PP-PI.  in o12c t-code, created instruction category u201Ctextu201D under instruction cattype (0) and trying to assign a characteristic (test) which is having char group as u201Cprocess instruction characteristicsu201D and willing to select u201Clong text indictor- Tu201D against this characteristic, but getting the error that u201Cthis characteristic is not supported for long textu201D. Please advise how to set long text indicator so that we can show long text in the pi sheet. Thank you.

    Hi,
    To Maintain Long text for characteristic in O12C , you need to
    1) create the Char in T-code O25C with Data type character and click on Proc.Mgmt tab
    2) Tick unlimited field situated right of Length and SAVE the char
    3) Assign this char in O12C under instruction cattype (0). You can see the indicator in the field Text. Now it will allow to main long text for that char in O12C.
    Hope this will help
    Regards
    Brahmaji D

  • How to print long text in scripts

    plzzzzzzzzz answer this qestion
    how to print long text in scripts

    Hi Kranthi,
    You can create Text Id and include that in your script.
    For example:
    /E TEXT
    /: INCLUDE ZTEXT OBJECT TEXT ID ST
    Hope this helps.
    Please reward if useful.
    Thanks,
    Srinivasa

  • Urgent : ALV , how to display long text in colum field

    Dear All,
                  Have mada an ALV report, but in some column have to show long text like.
    "Qty of Processed Finished Goods receive with wt/length/pieces / units "
    but while display of ALV it's showing only :
    " Qty of Processed Finished Goods receive with wt/length/p "
    Plz tell is it possible to show all the contents in that field, even in multiple row. like :
    "Qty of Processed Finished
    Goods  receive with wt/length/pieces
    / units  "
    Looking forward to your earliest response.
    Regards,
    Gulrez Alam

    Hi,
      In your field catelog
    w_fieldcat-tabname   = 'Internal table name'.
      w_fieldcat-fieldname = 'Field of the internal table'.
      w_fieldcat-outputlen = '90'.----Here you have to increse the length
      w_fieldcat-col_pos   = '1'.
      w_fieldcat-row_pos   = '1'.
      w_fieldcat-seltext_l = 'Qty of Processed Finished Goods receive
                                       with wt/length/pieces / units '.
    APPEND w_fieldcat TO i_fieldcat.
      CLEAR w_fieldcat.
    Pls. reward if useful...

  • Tcode FV50: How to find long text in FI Document line item Before Saving.

    Hi,
    How to find long text in FI Document line item.
    During Parking of the FI document through Tcode FV50 i m giving the some text in the long text not in the text field.
    I would like to validate the Long Text Before Saving in user exit "U300" under  the  "Sunstitution" .
    Please anybody can be help me out where exactly this long text is going to be stored or in which internal table or memory id.
    Please give me the answer as soon as possible .
    Note:- Read_Text function module is not useful. Because Read_text useful after saving document.

    Hi Amit,
    In application area FINANCIAL ACCOUNTING , go for node LINE ITEM. Here create a step & maintain the prerequisite as per your requirement & in the check you can mention the code or you can direct it to a custom program like ZFI_RGGBR000.
    Here while maintaining the check you will get structures BKPF & BSEG in which you will get the desired field you are looking for.
    Just try to explore in your system how the other validations are maintained.
    After you are done with all your code, you have to run the regeneration program RGUGBR00.
    Here utmost care should be taken while running regeneration program, you should select all the checkboxes in the selection screen except  GENERATE SETS, GEN SUBSTN ROUTNS IN ALL CLNTS  & TRACE PROG. GENERATE CALLS .
    Hope this make your doubt clear.
    Regards
    Abhii

  • How to read long text in Document line item

    Hi,
    How to read long text in FI Document line item.

    Use Read_text function module.
    you need to pass
    ID
    LANGUAGE
    NAME
    OBJECT   to the function moduel
    To find the Text id name language and object these are the following steps. Example: FB02
    1. goto FB02, Enter Document number
    2. from menuselect Goto>Header-->header Text..... New window will be displayed 
    3. select the Header Text. here you can see all the text. 
    4. click on the TEXT (which you want to know the Text id) , then press log ICON (you can find in bottom right of the text window) it looks like a rolled paper. 
    5. in the Next window you will find Text Name. Text ID, Language. etc...
    Regards,
    Lalit Mohan Gupta.

  • How to use long texts in explanation tool tip?

    Hi ,
         Can anyone tell me how to add long text in Explanation tool tip?
    I am able to use short OTR texts in explanation tool tip but not able to use long OTR texts.
    Thanks and regards,
    Vivek Shetty.

    For long text
    method1
    Create TEXT node- general attributes change text type to include text
    then you can input text name/text object/text id/language
    method2
    create PROGRAM LINE node - use FM READ_TEXT to read it to a internal table
    then use LOOP or TABLE node to display it
    For TEXT module(For foreign language)
    Tr-code:smartforms -- choose Text module(not choose form)--create a text module object
    then enter smartform Create TEXT node- general attributes change text type to text module
    input the text module name which created by above
    btw SO10 is just for Scriptform, in smartforms we use text module to replace SO10

  • How to encrypt the text in password field in Oracle Forms version 6i

    Need help!
    How to encrypt the text in password field in Oracle Forms version 6i?
    one way is to change the settings in the property palette. Can somebody provide me some script to be run while the form is running which will enable the password to be encrypted?
    Thanks!

    Hello,
    Do you mean "hidden" (replaced with stars) or encrypted (that needs to be decrypted ?
    Francois

  • Why can I no longer text message on the larger format by turning my phone?

    Why can I no longer text message on the larger format by turning my phone on its side?

    Hi,
    Since iChat 6 the SMS option in the Menus has disappeared.
    However if you add the number to a Buddy List as if it were  Screen Name but with the leading +1 (as in +1234567890) it will work over AIM.
    It only works to US phones on some Carriers.
    9:44 pm      Wednesday; January 8, 2014
      iMac 2.5Ghz 5i 2011 (Mavericks 10.9)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad

  • How to display long text in SAP Query ALV layout? It only show 129 char now

    I have a SAP Query which show a remark field(Max length more than 500 char), but it only show max length 129 char now. In fact, the lenght of remark field text is more than 300, and i had debug the source code, the field text value do is correct, its length do is 376.
    Do anybody can help me solve the issue, let the query ALV layout can show the long text field value?
    thanks very much in addvance.

    Hi,
    ALV can show only a restrict value length around 128 characters, many experts said that we can not extend. many suggestions is split text into some column.
    Regards,

  • How to display Long text in alv output

    Hi,
    I have developed an ALV report.It is displaying the output.
    There is another requirment for alv output text field as below
    From the long text fields show only the first 20 characters and afterwards the long text icon. If the icon is clicked open the long text display screen.
    Please give your suggestion how to work on this requirement.
    Thanks in advance

    Hi,
    Create a hotspot for the long text column of ALV.
    When user clicks on the hotspot, handle the event to display long text screen.
    You may refer sample program of hotspot ALV :
    Goto SE38
    Type BCALV*
    Click F4
    search for HOTSPOT or EVENTS & you will get a sample program.
    Best regards,
    Prashant

  • Long text in table control lines

    If i put long text  buttons on the  table control coulum, when the line  is deleted  from the table, the text for tha line  are permenantly deleted before the screen is saved in the user command. how do i correct the problem ?
    regards
    Rendani

    Use the FM for text delete when u press save button and not at table control delete command.
    physically delete the line from table control and put it in internal table which can be used for deletion purpose at time of actual deletion...

  • How to call "long text" of master inspection characteristic in ALV

    Dear All,
    we have created customized QM report in ALV which shows Result, Valuation and Short text for each MIC against each inspection lot. Can we call long text also in the ALV.
    Please guide how to call it in ALV?

    just implement some function on the ALV toolbar, read the long with FM READ_TEXT and show it to the user e.g. using CATSXT_SIMPLE_TEXT_EDITOR.

  • How to display Long text information in my view

    Hi
    I have a long text of static information , which i need to show in my view. its like agreement information. The user must be able to read it . It has some 20 lines of text. Which is the appropriate control to be used to show the information ?

    Hi Naresh
    I had some options of displaying the long text in the view.
    option 1 - The long text in sap table was in multiple rows in terms of having each line as one record and when displayed looks like  a paragraph statement. So I used a webdynpro table to populate the rows and made invisible the row/column lines. So When you run it on the browser it will display like a long text. By default, SAP table will have column some length of 72 characters, which I changed to 140 charcs, to get a long sentence formation.
    option 2 - If the long text is not from SAP table and its kind of direct information, then just keep on pasting the text in the text view by providing spaces appropriately, so that the display will be a continous form of paragraph. This is a trial and error way and providing the spaces between the lines.
    option 3 - Store the long text in a text file and call a import parameter, which will read the whole text and store it in string (node) and display it text view. ( alignment cannot be gauranteed)
    option 4 - Last one, is to call a office (msword) or a pdf control , which will display the long text through the word editor or a pdf form.
    If you have any specific issues do write back to the forum.
    thanks
    sathya

Maybe you are looking for

  • SCCM 2012 SP1 CAS - Unable to sync to Microsoft Updates Sites

    Good Day SCCM Experts.  I would like to seek your help in resolving my issue in MY SCCM CAS, the problem is that CAS is unable to sync to microsoft update. The last good sync was on July 16, we have previously encountered an error and ended up reinst

  • Web service creation using the wizard

    Hi Friends, I am new to creation of web services. I am creating a web service for a FM which I have created using the wizard. In SE80, under Enterprise Solutions for my package, I am able to see the servicedefinitions . But when I open the serdefinit

  • Movie Clip Actionscript....

    For my online gallery, I'm using movie clips as buttons to navigate. I was having the movie clip play when you scrolled over it and off of it. Now i have it so when you click on it, it stops at the mid-way point. What I need help on is to get it to g

  • HT4199 I am having the problem of "connection timed out" suddenly after almost two years of use of the same internet connection.

    I had left my apple to download an update on OS Lion overnight and found that the Mac had been disconnected from the internet with a window showing the words 'Connection timed out".  I have tried all sort of stuff including turning off and switching

  • Cannot Find Servlet class Error

    Hello Everybody, i have written a simple servlet and compiled it using j2sdk1.4 version and jsdk.jar.But when i try to load the servlet on the javawebserver2.0 it says it is unable to find servlet class though i have put the class file in the servlet