Printing Standard TEXT  with multiple paragraphs in smartform

Hello all,
I have a requirement that, there is a very long standard text stored in a notification of an order in SAP ISU system. The text contains multiple paragraphs with indentations. I want to print this text directly into the smartform WITH SAME INDENTATION AND PARAGRAPH FORMATTING.
First i am reading the entire text using FM READ_TEXT.
My first  problem is even if i read the text into a variable of type STRING , it just prints 255 characters of it.
And secondly if i try to printout it using LOOP AT node in smartforms, it prints the entire content but without any formatting .
Please let me know whether it is possible to print standard text in smartforms or not
Thanks
Nilesh Puranik

Hey ,
Well thanks for that but my replies got posted 2-3 times unknowingly, could'nt help it.
Coming to the problem, i  guess you did not get my point when i say dynamic texts for each service order.
In my Report i am using LOOP AT ITAB ..where in itab i  am storing a service order no i.e. ITAB-ORDER_NO
Now for every order there is standard text maintained in SO10 starting with order name
so my code goes like this.
LOOP AT ITAB.
CALL FUNCTION 'READ_TEXT'
  EXPORTING
    ID                            = 'LTXT'
    LANGUAGE            = 'E'
    NAME                      = ITAB-order_no
    OBJECT                   = 'QMSM'
  TABLES
    LINES                         = LINES .
CALL <SMART FORM Fm>
ENDLOOP.
Hence whatever Standard text maintained for that service order i  want to display it as it is in the smartform with same paragraphs formatting and indentation.
IF i use a variable in smartform and pass the entire text  after using READ_TEXT , it does not format the text  and it just prints only 255 characters even if i define it of type STRING .
Hence i am stuck in this scenario.
Appreciate ur help though.
Thanks
Nilesh

Similar Messages

  • Printing standard text with TAB

    Hi Folks,
    I am very new to SAP Scripts and need some help here. I am printing some text using Standard Text object (using INCLUDE statement in sapscript). But now I want to print the text after a TAB. I tried with below syntax but no luck.
    /: ,,INCLUDE ZTEXT OBJECT TEXT ID ST
    Request you to please suggest some approach.
    Thank you.
    Regards,
    Sud

    Thanks Christian !
    Yes, m using SO10 for creating this text.
    But as u suggested, I cannot use tab in ZTEXT, because this will affect the alignment for all the other scripts where I am using this ZTEXT.
    For every other script, I do not need this extra tab before the ZTEXT. Only for this one script I want to intorduce a Tab before printing this ZTEXT.
    Any other approach?
    Thanks
    Regards,
    Sud

  • STANDARD TEXT with BITMAP command in SMARTFORM

    Hello,
    I'd like to customize my smartform with picture defined by standard text.
    I defined standard text in SO10:
    /:   BITMAP 'xxx' OBJECT GRAPHICS ID BMAP TYPE BMON DPI xxx 
    .. and this standard text included to my smartform.
    But no picture appears.
    Best regards,
    Josef Motl

    Hi Josef!
    If you want to use the graphics from SO10 you have to change the syntax. Instead of "bitmap" you should use "include", the object should be text and you need the textid. If you use the bitmap-call you should upload the image with SE78. If you're transporting your syntax from one system to the other you have to include the image in your transport order or you have to upload it in each system.
    If you want good quality you should use SE78 and the BITMAP-call instead of SO10.
    Best regards,
    Ingo

  • Printing Text with multiple Lines

    Hello,
    i want to print a list and in that is text with multiple lines.
    In the PrintPreview and in the Printout i get only one line.
    How is the best way to do this?
    Thank you,
    Markus
    Private Function Print_Remarks_Control_Get(ByVal pstrText As String) As TextBox
    Dim TextBox_Out As New TextBox
    With TextBox_Out
    .Text = pstrText
    .HorizontalAlignment = Xaml.HorizontalAlignment.Left
    .VerticalAlignment = Xaml.VerticalAlignment.Top
    .FontSize = 16
    .Margin = New Thickness(15)
    .AcceptsReturn = True
    .MinWidth = 800
    .MinHeight = 600
    End With
    Return TextBox_Out
    End Function
    Sub PrintPageList_Prepare()
    Dim i As Integer
    Dim objVM As clsTextVM
    Dim lstText_List As ObservableCollection(Of clsText)
    Dim ctrPrint_StackPanel As StackPanel
    Dim ctrPrint_Title As TextBox
    Dim ctrPrint_Description As TextBox
    Dim ctrPrint_Remarks As TextBox
    Dim objText As clsText
    mPrintPageList.Clear()
    objVM = DirectCast(Me.DataContext, clsTextVM)
    lstText_List = objVM.CustomClass_List
    ctrPrint_StackPanel = Print_StackPanel_Get()
    For i = 0 To lstText_List.Count - 1
    objText = lstText_List.Item(i)
    If objText.Name.Length > 0 Then
    ctrPrint_Title = Print_Title_Control_Get(objText.Name)
    ctrPrint_StackPanel.Children.Add(ctrPrint_Title)
    End If
    If objText.Description.Length > 0 Then
    ctrPrint_Description = Print_Description_Control_Get(objText.Description)
    ctrPrint_StackPanel.Children.Add(ctrPrint_Description)
    End If
    If objText.Remarks.Length > 0 Then
    ctrPrint_Remarks = Print_Description_Control_Get(objText.Remarks)
    ctrPrint_StackPanel.Children.Add(ctrPrint_Remarks)
    End If
    Next
    mPrintPageList.Add(ctrPrint_StackPanel)
    End Sub
    Private Sub OnGetPreviewPage(sender As Object, e As GetPreviewPageEventArgs)
    ' Das ist die MessageBox
    ' Windows.UI.Popups.MessageDialog()
    PrintPageList_Prepare()
    mPrintDok.SetPreviewPage(e.PageNumber, Me.mPrintPageList(e.PageNumber - 1))
    End Sub

    Yes, not only RichEditBox but also RichTextBlock can also do this. Besides TextBox also have TextWrapping functionality.
    -James
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Standard Text with ' include' option doesn't work with order created by FM

    Hi ABAPers,
    Standard text with 'Include' Option does not work with all the Order created via the Function Module SD_ORDER_CREATE_WWW. Where as Order created via VA01 display the Standard text with 'Include'.
    On my analysis I found that, Order created via FM use  the '*' 'Comment' instead of ':/' 'Command' in the script editor. So the Standard text inserted was considered as a Text instead of command.
    Hence issuing print or print preview, the Script display the INCLUDE statement instead of the text.
    Can you please let me know the reason and the way to rectify it.
    Thanks & Regards
    N.Suresh Kumar

    Hi.
    Make that * command as /: and try in ur program..
    It works..
    Hope it helps...
    Cheers,
    Simha.

  • Report printing in excel with multiple sheets

    Hi Experts,
         I am working in Oracle Reports 10g.  I need to print the report in Excel....
    For this i have created .JSP file and now printing in Excel(Sheet1).
    My requirement is i need to print the report in multiple sheets.
    For example if i run the departments report then the generated excel file should be as below
    (Sheet1 - HR, Sheet2 - FINANCE, Sheet3 - MARKETING, etc.,)
    How can i do this?
    Thanks in Advance.

    Hi All,
       Is this possible  Report printing in excel with multiple sheets??
    Please give solution for my above post Report printing in excel with multiple sheets..
    Thanks,
    Su.gi

  • Smartforms : print standard texts or texts out of document with command in.

    We used to have an output via Sapscript (printout of a purchase order) and the output was containing standard texts or text out of the purchase order, which contains commands (a test in the standard text or an include of another standard text). This text was correctly printed via sapsript, command were taken into account.
    Now we have a new output for the purchase order which is working with smartforms. When working in the smartforms with a text type 'include text', commands in the text are not working.
    When working with smartforms, is it not possible to include texts (out of the STXH table) which contains commands? These commands are not taken into account.
    Thanks.

    Thanks for the answers!
    Example how they work here : in the material master, purchasing text => somtimes include of a 'standard' text. This to avoid typing the text in all materials which use this text. We can avoid this by instead of including the text, to 'append' the standard text.
    Also in some standard texts, some tests were done (on output type, purchasing organisation,.....) which we can change by reading the text in the print program and building those tests in the print program itself.
    I just wanted to be sure that there was a possibility or not in Smartforms to work like that because we worked like this using sapscripts and it worked fine.
    We will change this way of working and build the logic into the print program. We will inform the master data team not to use the 'include' command into a material master text but instead append the standard text directly into the material master text.
    Best regards,
    Ann.

  • Issue with printing Standard Text in Production Environment.

    Hi Peers,
    In my smartform,
    The Std Text  on back of page in Production System is getting truncated.But in Development system it is fully printed.
    I checked for the printers & language that are used in both the systems it is the same.
    Could you please let me know your views as to what might be the problem.
    Is it a basis issue or is there anything that  we can do on development side.
    Thanks in advance!
    Daniel

    Hi Phani,
    Thanks for your reply. In fact both me and user are doing the same. For user some times this text is not showing and some times it is. This is very strange.
    I can do this by keeping it in text element. But for some texts we need to add some other text in between dynamically.
    for example : for BE10 we need to show like,
    CONCATENATE 'This text is prepared on behalf of  (' <vendor name> ') ' some text' INTO w_title_text.
    In this case: I have tried preparing this text in the program lines node. Here the problem is I can able to mention single quote in prepare the text. In the above example it is bold.
    Basically I don't what's happening when printing report texts. But if there is a way to show single quote while prepare text that should be fine.
    Thank you
    Surya

  • How to call Subroutines,Standard Text  & using Internal Table in SmartForm

    Hi all,
    need help in the following areas.Its very urgent!
    1.How to CAll Subroutines in Smart Forms
    2.How to CAll Standard Text in Smart Forms
    Situation:
    We have an Internal Table T_SALES with all the data which am going to display in the smartform,How to retrive data from an internal table in Smart forms
    Any Help in this direction would be highly appreciated.
    Regards
    Ramu

    Hi,
      When you are using quantity or currency fields, you have to mentiong the reference fileds in a tab called CURRENCY/QUANTITY FILEDS in the GLOBAL DATA node.
    Specifying a Currency or Quantity Reference
    Use
    In the ABAP Dictionary, you can assign a currency or quantity field to a table field. In the output of these fields, the system can then insert the relevant currency or unit:
    ·        If the value field is in the same table as the corresponding currency or quantity field, the system recognizes the reference automatically, and formats the value field according to the currency or unit in the assigned field.
    ·        If the value field is in a different table from the currency or quantity field, the system cannot recognize this reference automatically.
    In the second case, you must indicate this reference to the system in the form, to ensure that the value field is formatted correctly.
    Procedure
    You want to assign a currency or quantity field in one table (for example, CURTAB) to a value field in another table (for example, VALTAB).
           1.      Create the reference to the currency field by entering the following values:
    -         Field Name: VALTAB-VALUE, if this is the value field of VALTAB that you want to display.
    -         Reference Field: CURTAB-CURRENCY, which is the currency field of CURTAB.
           2.      Under Data Type, specify whether the data type is a currency or quantity.
    Result
    In the output of the PDF-based print form, the system formats the value field VALTAB-VALUE according to the assigned value in the currency or quantity field of the global variable CURTAB-CURRENCY.
    Thanks and Regards,
    Bharat Kumar Reddy.V
    Message was Added by: Bharat Reddy V
    Message was Added by: Bharat Reddy V

  • Text with multiple lines limit each line to 10 digits

    Im trying to create a Numeric Field with multiple lines and limit the character per line to 10
    ideally I want the users to be able to paste in a 10 digit number similar to this:
    0001234567
    0001234568
    0001234569
    I can set my pattern to num{zzzzzzzzzz} but not sure how to allow multiple lines
    Im using Adobe LC ES2 Verison 9.0
    Thanks!

    better option is to use INCLUDE statement in SCRIPTS. its a script control command and you no need to use READ_TEXT and to loop it and send each line to script.
    if you use the above INCLUDE control command, SAP will take care of printing total text of that Object.
    here is the syntax :
    <b>/: INCLUDE name [OBJECT o] [ID i] [LANGUAGE l] [PARAGRAPH p] [NEW-PARAGRAPH np]</b>
    here /: indicates its an Control command.
    you have to use NAME, ID, LANGUAGE adn OBJECT here.
    if you give these details in the Text editor of script layout,automatically data will be printed on the screen.
    ex:
    /: INCLUDE &EKKO-EBELN& OBJECT EKKO ID X LANGUAGE E
    Hope you got the Idea.
    <b>here is brief help about INCLUDE:</b>
    Use INCLUDE to include the contents of another text into your text. The text to be included exists separately from yours and is only copied at the time of the output formatting. With INCLUDE, since the text is only read and inserted during the output formatting, the most current version of the required text is always available.
    and IF you are very specific about using READ_TEXT to display the contents,
    then you have to LOOP that table and call the WRITE_FORM to print the line on the layout.
    LOOP AT IT_TDLINES.
      CALL FUNCTION 'WRITE_FORM'
    ENDLOOP.
    Regards
    Srikanth
    Message was edited by: Srikanth Kidambi

  • Standard Text in Multiple Lang

    Hi all,
    I have a standard text in logon lang EN and iam using it in ascript and when i login in chinese and if print the output of script i need to see the standard text in chinese
    1) do i need to recreate the standard text in chinese logon lang  with language zh and same name
    or
    2) in the english logon language can i copy the english standard text  to chinese lang 
    3) can we convert the standard text from en to chinese using se 63
    Thanks

    First create standard text using SO10 Transaction,enter standard text name ,language is Chinese.
    You have to manually like copy and paste it.
    You can login into SAP using logon is EN.
    Now while calling the Standard text to Layout ,goto SE71 -> enter form name ,language chinese,now add your standard text here.
    Otherway..
    Goto SE71 -> form name -> enter langauge EN
    Within standard text window ,keep the condition
    /: IF SY-LANGU = 'EN'.
    /: CALL STANDARD TEXT USING EN
    /: ELSEIF SY-LANGU = 'CHINES'.
    /: CALL STANDARD TEXT USING CHINESE
    /: ENDIF.
    Please use first method alway rather than using condition
    Thanks
    Seshu

  • Print standard text in a sapscript

    hi,
    I have want to include standard text by ME32k in a sapscript. I need to include the text and the particular format. For example if I use FM READ_TEXT for text object EKKO id F02 for a particular EKKO-EBELN, the FM give me the table LINES with this text:
    TD   TDLINE
    C      K02:HAEDER NOTE
    I need to print the text "K02: HAEDER NOT" with the format C ( Centered).
    Can you help me, please?
    Thank's.

    Hi,
    Tcode SO10 can be used to attach standard text in sapscript.
    For formatting, plz check the below link
    Standard text editor SO10

  • Print a text on last page of smartform rpt

    Hi All
    I want to print a text on first and last page of report created in smartforms
    plz suggest..........

    Hi,
    In a Smart Form, you can use a similar MAIN window approach. For a secondary window, you might wish to use a conditional event such as <b>'Only After End of Main Window'</b>.
    Map page FIRST to NEXT and page NEXT to NEXT as you have done; page LAST does not need to be mapped to any other page. Make sure the MAIN window is contained on both page FIRST and page NEXT. Then add a command node within your MAIN window at the very end of this window (outside of any tables or loops). In its general attributes click on the 'Go to new page' and select the LAST page here.
    During form output, regardless of whether the MAIN window is completed within page FIRST or NEXT, page LAST will be triggered as your final page.
    Note: Any secondary windows on pages FIRST or NEXT with the condition 'only after end of MAIN window' may no longer print, as form output now will advance to the LAST page before this condition is satisfied.
    Regards
    Sudheer

  • Rearrange pages when printing adobe form with multiple master pages

    Hello!
    Good day to you all.
    I have an issue in regards with printing my adobe form with multiple Master pages. I have 4 master pages:
    1st master page: a
    2nd master page: b
    3rd master page: c
    4th master page: d
    all with different headers and footers all having the same contents (items). I don't have issue with one page content (it just prints 4 pages with different headers and footers). The issue comes out once the items exceed 1 page.
    What happens is that the preview/print shows (example: 3-page item)
    a1-a2-a3-b1-b2-b3-c1-c2-c3-d1-d2-d3.
    What i need is to print these such that all 1st pages of the 4 master page to be printed first, then all the 2nd pages, then all 3rd pages. Please see below:
    a1-b1-c1-d1-a2-b2-c2-d2-a3-b3-c3-d3
    This is because we will be using carbonless copy paper during printing and it's possible that it would be printed on batch jobs. Please suggest ways to do this.
    Thanks a lot in advance!
    Best Regards,
    abap_peer_dangs

    Hi,
    Is that requirement of multiple pages as groups only at the time of print or at print preview also...?
    Can you have a Print button on this screen or you should be using the Abobe toolbar's Print button..?
    Well if this on a click of a button in the form and the requirement is only at the time of print and not on print prieview I can have a JS script which does this...
    Let me know if this suffice, I can try with a local file and send you the script.
    @ Chris: I didn't understand what do you mean by reported, I was eager to hear and learn a solution from you may be a new approach which I am not aware of ...?
    Cheers,
    Sai.

  • Printing the text in vertical format in Smartforms?

    Hi,
       How to print a text in vertical format from bottom to top?
       just like this..........
                S
                M
                E
                T
                S
                Y
                S
    Thanks.

    Hi
    If u want to print data in vertical format, just create one style , in that create paragraph format as left justfied 0 and right justified as windowlength-1.use this paragraph format for u r text.
    OR
    Have to create command within a window (window would be containingtexts which you want to print vertically).Within Command on General Attributes you will have to specify appropriateprint control one which is useful for your requirement.
    Regards
    Raj

Maybe you are looking for

  • WebtopNaming - can not find server name for server ID

    We have a LB, and web servers in front of OpenSSO app servers in our environment. OpenSSO debug log CoreSystem fills up with lot of errors like these: ERROR: WebtopNaming.getServerFromID() can not find server name for server ID : 07 com.iplanet.servi

  • MTS compatibility - PAL & NTSC

    Hi, I've edited MTS footage, which was recorded on a PAL camcorder, in Premiere CS4. I will use Adobe Media Encoder to create NTSC m2v and ac3 files and then burn a DVD in Encore. Will this DVD be playable on US DVD players, please? Thanks for your h

  • Down loading photos.

    I generally use a 512MB SD card for photos. I routinely shot about 100 photos and then down load to iPhoto. I occasionally will save those photos on the SD card and the shot another 100 pics. When I down load the second batch of 100, iPhoto will ask

  • Tracks often displaying incorrect album art in playlist and podcast modes

    Strange one this, and not at all consistent. I'm often noticing that the album art for another unrelated album is being displayed when I am playing music from a playlist or playing a podcast. Any ideas how to stop my iPod Touch doing this, and to dis

  • How to disable adsx.greystrip on iphone5

    how to disable adsx.greystripe on iphone 5?