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

Similar Messages

  • 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

  • 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.

  • 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

  • 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

  • Printing Standard Text in Task List via IA17

    We currently use a lot of standard text in task list.  However when I run IA17 to display and print a task list, the standard text does not display as the actual text, only the standard text include is displayed.
    Is there a way to get the actual text from the standard text to display as well?

    Okay, I know I keep answering my own questions, but every answer leads to a new question.
    What I've discovered is that if the include statement for the standard text is not in all caps, then it does not print in IA17
    For example, we had the include as: Include Z0000438 OBJECT TEXT ID IPRT
    However it would appear that the statement needs to be like this: INCLUDE Z0000438 OBJECT TEXT ID IPRT
    Has any one else experienced this?
    Edited by: Darrell Dorsey on Sep 23, 2010 3:19 PM

  • 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

  • Prints Garbled Text with HP845C

    My Garbled Text problem:
    My MacBook is back from Applecare after it went dead, and the internal hard disk was wiped clean by them as I requested, and in checking completed print jobs, I see that they did try printing a document or two after reformatting and re-installing OS X.
    However, my MacBook STILL continues to print garbled text from every application when connected, either directly or via Airport, to my HP 845C, regardless of which hard disk I start up from, even the one reformatted by AppleCare. (I have three different 10.4.11 hard disks available to start up from.)I have tried this MacBook with other printers, and text prints just fine.
    In addition, I routinely send documents to this HP 845C from other computers, and it prints just fine from them.
    So how can it be a software problem?
    So, it seems that this particular printer no longer likes my MacBook. !? (They used to work together just fine.)
    How can this be and what can I do about it? Does anyone have a clue?
    Is there someway I can re-set this printer to come back into "like" with my MacBook? Resetting the Printer System through Printer Setup Utility does not help.
    I have found nothing on the HP website to help.
    Looking forward to advice from the geniuses here on the forum.
    In addition, Safari continues to quit unexpectedly on this MacBook after clicking on any link, regardless of which hard disk I start the MacBook from, even the one reformatted by AppleCare. This is very odd.

    Hi Nathan,
    I think we need to figure out the crashing first.
    Here's what I'd try...
    Safe Boot, (holding Shift key down at bootup), & use Disk Utility from there to Repair Permissions, reboot once more.
    PS. Safe boot may stay on the gray radian for a long time, let it go, it's trying to repair the Hard Drive.
    On the Printer side...
    Might try these two...
    Mac OS X: About the Reset Printing System feature ...
    http://support.apple.com/kb/HT1341?viewlocale=en_US
    Might try Printer Setup Repair 5.1...
    http://www.fixamac.net/software/index.html
    Reinstall the Latest Printer Driver.

  • How can I print a text with my comments in Pages 5.0?

    I have made comments on a text in Pages 5.0.  How can I now print the file and have my comments included in the hardcopy?

    I have found a round-about solution to my own problem:  with the file open, click file, export the file back into an earlier version of Pages, save the new file and then print it, but there has to be a better solution from within the new version of Pages.

  • Text variable + text with tabs to align away from spine

    Hello
    I need a document header that shows the chapter captions. So I created a text variable that picks the format of the caption.
    But the chapter captions have tabs:
    I.>Introduction
    So in the header, on the left pages it looks fine:
    alignment is "away from spine"
    I.>Introduction
    But on the right page the chapter number remains with the spine, only the text after the tabs aligns "away from the spine":
    I.                 >                                   Introduction
    I found it difficult to search for this on google and the forum (and no result) - and hope I made it clear in the text above I can't believe it's a rare problem and really hope I just oversee something and it can be solved..
    Thank you!!

    Some details about how the paragraph is constructed would help. I'm guessing here that the variable is a running head variable based on paragraph style, and that the nmber is manually typed, along with the tab, rather than being a numbered list.
    If that's the case, substituting one or more em spaces or other fixed-width spaces in combination for the tab should solve the problem in the headers, but may cause other issues in the body of the text if your intention by using the tab was to always have a variable space between the number and the words depening on how many characters there are in your number. With roman numerals and proportional fonts it would be difficult without the tab to always have the chapter title itself begin at the same x-coordinate in the frame regardless of the number.
    To overcome that issue, you can use two variables in the header, both designated as Running Header (character style), and separate them with an em-space or similar (not a tab). If there are not already nested styles in use for the titles, create two character styles that are nothing but names, then in the paragraph style for your chapter titles go to Drop Caps and Nested Styles and apply the first character syle up to 1 tab character, None through 1 tab character, and the second character style through 1 sentence. You two character style based variables in the header will pick up the two parts of the paragraph. It seems unlikely that anyone would notice or care that the spacing is fixed between number and text in the headers but not on the page, especially since the alignment shifts from page to page.

  • Importing a "texts table" from R3  to create standard texts with BAPI

    Hi,
    I'm mapping a custom structure to BAPI_SALESORDER_CHANGE.
    I need to read a table in R3 containing some text lines that I have to use to create a header text (structure ORDER_TEXT).
    Someone has already faced a similar problem? What is the best way to solve it ?
    Thanks for any help.
    Simona

    Hi,
    the best/standard way to do this is to implement it in an integration process(business process)
    inside it you can and call an RFC for instance which will read the table and return the data and then you can use the RFC response to map it (transformation step) elsewhere (to a new message). You do it all in one integration process.
    about calling (committing) the BAPI you can refer to my weblog:
    /people/michal.krawczyk2/blog/2005/05/09/how-to-call-a-bapi-asynchronously-from-xi--with-qrfc
    Regards,
    michal

  • Dynamic Standard text - Appending text with variable

    Dear All,
    We have a dynamic standard text. The text is being created based on sales order (I don't know how this has been created). Now I want to add text inside the standard text. That text will also contain variable.
    Example: "This is a valid sales order 100010000". This is a standard text where the sales order value is fed dynamically, I don't know how?
    Now the objective is to add another field "abcd" in the standard text with some other fixed texts. Eg. "I want to add my name sy-uname". So the entire text should be as:-
    "This is a valid sales order 100010000. I want to add my name sy-uname."
    1.  I am not sure how to identify the original standard text. I would like to add second line there.
    2.  I would like to pass variable value dynamically in the standard text.
    Please can you help me out in solving the issues.
    Best wishes,
    Atanu

    Hi
    Could you please be clear with your question so that some one can provide you with best solution quickly.
    I am assuming that when your sales order is being created at the same time ,your dynamic standard text is generated .So now you want to amend this standard text just after the sales order is saved.If so then
    Just go to the sales order text tab in change mode and click on the text eidtor window ,it will take to you sapscript editor ,Then from menu Goto-Header .From here you get the details of
    Text Name      
    Language       
    Text ID        
    Text Object  
    Now Find the userexit after save and their use a read_text function module and read the standard text which is alreday created and take down in it_lines table and modify the text by appending your sy-uname line as second line or you can concetante on the same line. Now then use the save_text function module and save the standard text.
    You can use the exit MV45AFZZ In that routine FORM userexit_save_document..
    Hope this help you to resolve the issue.
    Cheers
    Joginder

  • Standard text / Text module not printed correctly in Adobe forms

    Hi All,
    I need to print the dunning level text which is static. I have created text module and standard text with the same static text.
    In the content I have created the text with text module tyoe and given the text module name. Similarly I created the include text as well.
    But the text is getting printed continously, eventhough I have maintained as paragraphs.
    For Example: I have maintained text as    TEST1
                                                                       TEST2
                                                                       TEST3
    Now the same format shud be printed in the output. But  TEST1 TEST2 TEST3 is printed.
    Can anyone help me out how to print the text as in the above case and what is the reason for not printing in paragraphs.
    Thanks and Rewards,
    Karthik Ganti.
    Message was edited by: Dezso Pap - Moderator

    Hi Kartik,
    1. ead standard text by FM READ_TEXT.
    2. Read text lines content Read internal table LINES into wa_lines.
    Concat wa_lines-tdline into string separated by as CL_ABAP_CHAR_UTILITIES=>CR_LF.
    Bind that String to variable to text.
    That will display text as you create.
    Santosh

  • Call Standard Text by report replacing the variables with their values

    Hi,
    I have a requirement to call a standard text from a report.
    Following is the text present in standard text.
    &PTXT1-ENAME& will attend for interview
    on &MEMOACT-PLDAT& at &MEMOACT-PLTIM&.
    I am doing it by using READ_TEXT. But READ_TEXT reads the entire text as it is.
    Is there any way I could retrieve the standard texts with  &PTXT1-ENAME& replaced by the value of  PTXT1-ENAME in report. And similarly &MEMOACT-PLDAT& replcaed with its actual value.
    Any pointers in this regard would be helpful.
    Points will be awarded.
    Regards,
    Mayank Agarwal

    Hi,
    In the Text
    &PTXT1-ENAME& will attend for interview
    on &MEMOACT-PLDAT& at &MEMOACT-PLTIM&.
    do not use the * as a paragrapgh , use /: as the paragraph
    Regards
    Sudheer

Maybe you are looking for