Formating long text in smartforms

Hi,
I am receiving a long text in an internal table of lines.
But when i do the loop to the table to display the lines, i cant justify this same lines to the cell, even if the paragraph is defined as justify.
Thanks,
Bruno Pimenta

Hi,
check this...
CALL FUNCTION 'READ_TEXT'
    EXPORTING
     client                        = sy-mandt
      id                            = 'B01'
      language                      = sy-langu
      name                          = name
      object                        = 'EBANH'
*   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 <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.
  REFRESH c_tab[].
  CALL FUNCTION 'CONVERT_ITF_TO_ASCII'
   EXPORTING
*     CODEPAGE                = '0000'
     formatwidth             = 72
     language                = sy-langu
     tabletype               = 'ASC'
*     TAB_SUBSTITUTE          = ' '
*     LF_SUBSTITUTE           = ' '
     replace_symbols         = 'X'
     replace_sapchars        = 'X'
   IMPORTING
*     FORMATWIDTH_E           =
*     X_DATATAB               =
     c_datatab               = c_tab[]
*     X_SIZE                  =
    TABLES
      itf_lines               = it_lines
*   EXCEPTIONS
*     INVALID_TABLETYPE       = 1
*     OTHERS                  = 2
  IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.
  LOOP AT c_tab.
    CONCATENATE text c_tab INTO text  SEPARATED BY space.
  ENDLOOP.
Arunima

Similar Messages

  • How to display long text in smartforms

    Hi experts,
    Iam trying to display long text into smartforms.I got the long text into ITAB frm database
    in the abap program.In the form interface how to define the variable?In the long text i have 6 lines.
    points guaranteed
    cheers
    kaki

    Kaki,
    Delcare a table and getting the LONG TEXT is not the right way of doing this.
    You create a TEXT object and change the TYPE to INCLUDE TEXT. Once that is done all you have to do specify the parameters of your long text - TEXT ID, TEXT OBJECT and TEXT NAME. These are the same parameters that you use for READ_TEXT funciton. You don't have to fetch the text manually, it happens automatically.
    Make sure this is a part of the main window as this might run into multiple pages.
    Regards,
    Ravi
    Note : Please reward the posts that help you.

  • Formated long text in Adobe PrintForms

    I have a problem with the formatting of long texts in Adobe PrintForms.
    On certain documents, for example, the basic data text of the article must be given.
    This can contain words in UPPER CASE and then these must be given bold.
    Does somebody have a tip, how is this to be moved?
    Regards Andreas

    Hi,
    Yes you can include dynamic texte in your form . If your forms is based on DDIC interface on the context part you cann add node type Text . Fro each node of type Text you have to set if it's a dynamic text ( smartforms text ) , or include text ( sapscript's ) .
    If your form is based on a XML interface just add a node with the all value required .
    Hope this help you .
    Regards

  • Print the Long text in Smartform

    Hi all,
    I designed a Work order document using Smartform for the T-Code 'IW32'.
    I am able to print the Operation short text, but there is one more provision for the user to enter long text also.
    I am not getting where this text gets stored in the database.
    Any one can give me some solution to over come this problem.
    Regards,
    Ravi Shankar

    hi Ravi,
    check this link
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/abap/faq
    here in FAQ , you will know abiut how longtext is created and where it is stored
    it might be helpful to you.
    thanks
    Sachin

  • Formatting Long Text gets disturbed during Adobe form Printing

    Hi Guru's,
    I have developed Adobe Form for PM work Orders (IW32) printing using Code u2018SFPu2019. The Order Contains order Long Text or Operation Long Text.
    In my case the user maintains some table like structure in the Long text .e.g. ( Here the tab means the actual space and the text length can vary. So basically he will draw a table cells one below another by adjusting tab's)
    Text 2 Tab Tab   |___|___|
    Te TabTab Tab |___|___|
    I am reading this using READ_TEXT and it gets perfectly read.( I mean the tab positions will be intact. Also it will remain intact by the time ADS will get called)
    When i submit this for generating Adobe Form the formatting of the tab positions gets disturbed and it prints something like
    Text 2 |___|___|
    Te |___|___|
    How to keep the Tab positions intact while printing the Adobe Form? For SAP script printing it comes perfectly but for Adobe form printing it gets disturbed. Any idea how to handle this situation?
    Thanks
    Pradeep

    Tough request!
    You have to calculate the widths of texts so that to determine to which tab position refers each tab character.
    You might print the sapscript to OTF format, and read the OTF to get the exact positions (based on top left border of the page).
    But now comes the second big issue: how to position a text in Adobe form at a dynamic position. That, I don't know. You might ask a question about this 2nd issue in forum

  • Problem in formatting long text

    Hi Experts,
    I am printing quality notification using adobe forms.
    The problem is that if there is any <TAB> in the longtext , then it is being printed as ',,'.
    Ex. Test      1 is being printed as test,,1.
    I am using READ_TEXT to read the text and in that itself I am getting the above format of ',,'.
    Please suggest a way it could be printed as  Test    1.
    Many Thanks!
    Parul.

    Hi Parul,
    In the internal sapscript format the tab is represented as a ',,'. You should use function module CONVERT_ITF_TO_ASCII to convert the data returned by function READ_TEXT.
    Reards,
    Aidan

  • Display issue with Long Text in Smartform

    Hi All,
    We have a custom smartform, where we are displaying the Invoice Item level details.
    The Item description (InvoiceItemItem Text) is of about 1000 character length and a variable v_temp with 2000 length has been defined and saved.
    In debug mode, the complete text is saved in the variable v_temp.
    The same variable is placed in the smartform to display the complete text.
    But the complete Text is not getting displayed and only the system displays 256 char.
    How to resolve this issue?
    Regards
    Pavan

    Hi,
    Another workaround will be to define internal table with a field of lenght 256, and use the function module RKD_WORD_WRAP to split the string (v_temp) into 256 characters length. Now loop at this internal table and print the same.
    Regards,
    Swarna Munukoti.

  • Splitting long text in smartform

    Hi,
    I got a 'item description' field which is of 30 char wide.
    How split it into 2.

    Hi
    Try this function module :
    TR_SPLIT_TEXT.
    With Regards
    Nikunj Shah

  • Issue ith Long text in Quality Notification.

    Hi All,
    I have an Issue with Quality Notification long text change functionality.User reported that he can only append the additional text and can't edit the alaready entered screen. When I verified the config for the notification type it shows that 'Log line' check box have been checked and "No text" change Check Box Not checked. We need log lind and the same time user can edit the alkready entered screen. We are using Ecc 6.0 system.
    Please guide me to fix that Issue.
    Regards,
    Senthil

    Hi,
    you should check in configuration the part "Overview of Notification Type"  (Quality Management>>Quality Notifications>>Overview of Notification Type).
    When you select your notification type you go to "Format Long text" and there you can disable "No text change". This option is useful when you want to add text but don't want to allow modification of existing text.
    Hope this help,
    Serge

  • Editing long text in Quality notification

    I am not able to delete or change long text in quality notification since it is greyed out. Can anybody help ?

    Hi,
    you should check in configuration the part "Overview of Notification Type"  (Quality Management>>Quality Notifications>>Overview of Notification Type).
    When you select your notification type you go to "Format Long text" and there you can disable "No text change". This option is useful when you want to add text but don't want to allow modification of existing text.
    Hope this help,
    Serge

  • 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

  • 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

  • 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

  • Long text not appear in E-mail Notification (Smartform)

    Dear Gurus,
    Need your insight on this issue. I'm trying to insert long text (Response/Description/etc) from the message into body of e-mail notification. I use function module 'CRM_DNO_READ_ORDER_TEXT'  to get the text in the smartform and then use function module 'READ_TEXT'  to get the text lines but it returns exception 'not_found'.
    I try to debug and it seems like the smartform is executed before the long text is saved into the table (STXH), thus i can't get those text. I have set Action Processing Time to Processing when saving document.
    Anyone had this problem before? Need your help.
    Thanks and  Best Regards,
    Tresna

    I know I am late to this thread but yes you are right. Samrtform gets executed before the Logntext gets saved in Database.
    I just did the following and it's working perfectly fine
    Please go through the code below and this solution is working best for me and I just implemented that today.
    DATA iv_header_guid    TYPE crmt_object_guid.
    DATA et_textdata          TYPE comt_text_textdata_t.
    DATA ls_textdata          TYPE comt_text_textdata.
    DATA et_alltexts       TYPE comt_text_textdata_t.
    DATA et_error          TYPE comt_text_error_t.
    DATA ev_text_procedure TYPE comt_text_det_procedure.
    DATA et_text_cust      TYPE comt_text_cust_struc1_tab.
    DATA: stxh             TYPE stxh.
    DATA: lines            TYPE comt_text_lines_t.
    DATA: ls_lines         TYPE tline.
    iv_header_guid = wa_header-guid.
    CALL FUNCTION 'CRM_DNO_READ_ORDER_TEXT'
       EXPORTING
         iv_header_guid    = iv_header_guid
       IMPORTING
         et_textdata       = et_textdata
         et_alltexts       = et_alltexts
         et_error          = et_error
         ev_text_procedure = ev_text_procedure
         et_text_cust      = et_text_cust.
    LOOP AT et_alltexts INTO ls_textdata.
       stxh = ls_textdata-stxh.
       IF stxh-tdid = 'ZARD'.
         lines[] = ls_textdata-lines[].
         LOOP AT lines INTO ls_lines.
           CONCATENATE gv_comments ' ' ls_lines-tdline
                    INTO gv_comments SEPARATED BY space.
         ENDLOOP.
       ENDIF.
    ENDLOOP.
    Tresna Cahya wrote:
    Dear Gurus,
    Need your insight on this issue. I'm trying to insert long text (Response/Description/etc) from the message into body of e-mail notification. I use function module 'CRM_DNO_READ_ORDER_TEXT'  to get the text in the smartform and then use function module 'READ_TEXT'  to get the text lines but it returns exception 'not_found'.
    I try to debug and it seems like the smartform is executed before the long text is saved into the table (STXH), thus i can't get those text. I have set Action Processing Time to Processing when saving document.
    Anyone had this problem before? Need your help.
    Thanks and  Best Regards,
    Tresna
    No need for READ_TEXT.
    Message was edited by: Mansoor Ahmed

  • Using BSP text editor for long text formatting

    Hello,
    We are using CRM 7.0. We want to perform simple formatting for the long texts (bold, fonts etc.) We are considering to use thtmlbx <btf:btf> element for text editing. The question is how is it possible to save the formatted text as the long text? Is there any standard way to perform it?
    Thanks in advance,
    Sergey

    Hello,
    In the CRM system there are standard views that display long texts connected to the objects. They are stored in the standard tables and not in the ztables. I just want to enable formatting for this text, to store it formatted in the system and next time the user opens the object to show him the formatted text.
    Thanks in advance,
    Sergey

Maybe you are looking for

  • TPS Annual Return

    Hi, While executing TPS report hrgpbs_tps, we are getting a GREEN error The personnel numnber xxxx will be excluded from TPS Annual return as it is not recordable under TP regulations at any time during the return year. however dont seem to find any

  • Call transaction VA01 or VA03 and skip first screen using Web dynpro

    Hello Experts, I am calling the standard transactions using Web dynpro via ITS. I am able to reach to the initial screen of the standard transactions say VA03 and populate the sales order number through Web dynpro. My requirement is to skip the first

  • Aperture Thumbnails

    Hi All. After upgrading to 2.0 I'm not seeing thumbnails in about 80% of my pictures. I just see an empty box with an outline of where the thumbnail should be. This occurs with both my Mac Pro and my MacBook Pro using an external hard drive as the Ap

  • Can't find my aliases with iCloud.

    Had 5 aliases when I switched ti iCloud. Now my "accounts" indicate I have only three and even those three DON'T show on my accounts page. Since I moved my non-compatible MacBookPro to iCloud a couple weeks ago and received a validation eMail that my

  • Help BC win the CMS Critics Choice Awards!

    Hi everyone, Business Catalyst, the CMS you all love to use, has just been nominated in 2 different categories in the CMS Critics Choice awards. Voting for the competition has started yesterday, and will go on through September 30th. Help us win the