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.

Similar Messages

  • How to position text in an existing PDF document with X,Y coordinates

    There used to be a CFX PDF tag that could do this.  the company (www.easel2.com) does not appear to exist any more.
    This is what i want to do.  I have an existing PDF file that is uploaded by a user.  I want to receive the file, then put a registration number (some text) in the lower left corner of the 2nd page (I don't know the exact x,y coordinate but I can figure that out later).
    Does anyone know how I can do this?

    Unfortunately, I can not create the PDF.  It is uploaded by the user, and I have to open the PDF, insert the text and save it.  BUT, I did find the solution in a slight roundabout way.
    1) Create an image file containing the text I need
    2) Use that image file as a watermark with 10 opacity and use the tag's x,y coordinate setting.
    Below is the code I found to work:
    <!--- Create a blank image that is 500 pixels square. --->
    <cfset myImage=ImageNew("",500,500)>
    <!--- Set the background color for the image to white. --->
    <cfset ImageSetBackgroundColor(myImage,"white")>
    <!---Clear the rectangle specified on myImage and apply the background color. --->
    <cfset ImageClearRect(myImage,0,0,500,500)>
    <!--- Turn on antialiasing. --->
    <cfset ImageSetAntialiasing(myImage)>
    <!--- Draw the text. ---> 
    <cfset attr=StructNew()>
    <cfset attr.size=50>
    <cfset attr.style="bold">
    <cfset attr.font="Verdana">
    <cfset ImageSetDrawingColor(myImage,"blue")>
    <cfset ImageDrawText(myImage,"PROOF",100,250,attr)>
    <!--- Write the text image to a file. --->
    <cfimage action="write" source="#myImage#" destination="text.tiff" overwrite ="yes">
    <!--- Use the text image as a watermark in the PDF document. --->
    <cfpdf action="addwatermark" source="c:/book/1.pdf" image="text.tiff"
        destination="watermarked.pdf" overwrite="yes">

  • Can I print the last page of a PDF document using command line?

    Hi
    I am in a situation in which I constantly have to deal with multiple PDF documents and I need to print the last page in each of these, and ONLY the last page. The total number of pages will vary for each file, so the page number for the last page will also vary.
    I would really prefer to not do this manually, by opening up each file in the visible Adobe Reader window and then print.
    Question:
    Is there a way with Adobe Reader (maybe with the help of some other Adobe product) to print only the last page of a PDF document using some kind of command line without opening up the PDF file in the visible Adobe Reader window?
    I'm using Windows.
    Thanks in advance,
    Regards,
    Emil

    Thank you for taking the time to reply.
    I tried both ways and neither works.  It gives me a prompt box that I have to click "next" for every page but after going thru all pages, nothing is sent to the printer.
    Also, all directions I've read indicate it will print to the default printer.  If my default printer is on a network, will that cause problems....
    and...
    should I be getting a prompt box on every page?  I thought all this would happen behind the scenes and not force me to interact with every page.
    dc

  • Cannot print document with added barcode text boxes

    G'day
    I'm adding two text boxes to an illustrator document with Applescript, but when I go to print, ?I get an error 'Cannot print the illustration. The Color Management settings are inconsistent.'
    The error message is not error trappable.
    I have to barcode thousands of documents a year, and this is a big deal breaker. Is there any fix, please?
    Regards
    Brian Christmas
    try
      set printerName to my theLargePagePrinter as string
      set paperOptions to {class:paper options, name:largePaperSize}
      set jobOptions to {class:job options, designation:all layers} # , print options:printOptions}
      set colorOptions to {class:color management options, profile kind:printer profile}
      set flatOpts to {class:flattening options, clip complex regions:true, gradient resolution:360, rasterization resolution:360}
      set printOptions to {class:print options, printer name:printerName, paper settings:paperOptions, flattener settings:flatOpts, job settings:jobOptions, color management settings:colorOptions}
      try
      set p to 17
      tell application "System Events" to tell process "Adobe Illustrator"
      click menu item "Fit to Artwork Bounds" of menu 1 of menu item "Artboards" of menu 1 of menu bar item "Object" of menu bar 1
      end tell
      end try
      set p to 18
      say 7
      print document 1 options printOptions
      say 8
      on error errmsg number errnum
      tell application "System Events" to display dialog "Error in printing illustrator document. " & errmsg & " number " & errnum giving up after 40
      end try

    G'day Owen, & W_J_T.
    Unfortunately your suggestions did not work for me.
    I've tried using the GUI to access the print dialog box, but as usual with Adobe, they've stuffed that up too. What I did find however, that the print dialog box recognised keystrokes, and always defaults to the Printer box when opening.
    Also, the Printer box sets itself to a matching item of whatever key is pressed, and so does the Printer Preset box.
    So, even tho I can't select any given box, provided I have a Printer Preset set, I can access it by the following (slower) method...
    activate
      tell application "System Events" to tell process "Adobe Illustrator"
      keystroke "p" using command down
      keystroke (character 1 of (my theLargePagePrinter as text)) as text
      repeat 17 times
      keystroke tab
      tell current application to delay 0.1
      end repeat
      keystroke (character 1 of (my theLargePagePrinter as text)) as text
      keystroke return
      end tell
    Note that if you have more than one printer or Printer Preset starting with the same letter, then you'll have to use more than just the first character of your printer name.
    Regards
    Brian Christmas

  • How to print GL document with correspondence?

    Hello,
    I would like to know about if below request is possible or not.
    1. FB03  to create correspondence request for GL accounting document.
    2. F.61  to print out the document with a customized form (by correspondence).
    *The correspondence configuration is working for Vendor and Customer payment document, but no output for the GL accounting document(Created by F-02).
    The printing program is ZRFKORD00 copied from RFKORD00 .
    My question is: Can we change the printing program to print out the GL accounting document in the same approach(vendor and customer payment document)?
    Or, is there any other solution?
    Thanks&Regards,
    Don

    Hi,
    Can you share the coding part which to be changed  in 'RFKORD00'?  That is which can generates the output request for the correspondence request.
    For the coding part for  print out (RFKORI10), should be no problem for me.
    Thanks&Regards,
    Don

  • 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

  • To Include Standard Text in TEXT Field of SMARTFORM

    Hi,
             I  have a requirement to include a Standard text inside a TEXT field. The name of standard text is ZSD_CMR_&VSTEL&_STATISTICAL  where for VSTEL we should put the respective work area field like ZSD_CMR_&W_LIKP-VSTEL&_STATISTICAL .
    But while executing the Form its giving Error that STD text does not exist.
    The Requirment is like - shipping point (LIKP_VSTEL) of the delivery to identify the standard text. So, if a doucument for a delivery for shipping point 3114 is printed, it should come with the contents of ZSD_CMR_3114 STATISTICAL  In case the shipping point is 3112 it shoukd be ZSDCMR_3112 _STATISTICAL.
    Can you please let me know how to include Std Text inside the TEXT, I mean SYNTAX .
    Regards
    Avi

    Hi Avi,
    Lets take the example the standard text <b>'ZSD_CMR_3114 _STATISTICAL'</b> then with this standard text get the TDOBJECT,TDNAME,TDID and TDPRAS from <b>STXH</b> table.
    In the Smartform, goto <b>TEXT->General Attributes Tab</b>.
    Select <b>Type</b> to be I<b>nclude Text</b> from the drop down list.
    Then give the Text Name, Text Object, Text ID and Language.
    Your Standard Text whcih you maintain in S010 will be displayed in the smartform window.
    Regards,
    Tushar
    Message was edited by:
            Tushar  Marshall Dass

  • Printing text in text area in so10(standard text)

    Dear all,
    I need to print a text in text area.i mean i need a box in which i can fill text in standard text (tcode-so10).Using box command we will be doing in script.
    But is there any possibility that i can solve the issue in so10 itself as i am generating offer letter in pb60 it takes my standard text there itself.So is there any solution for this issue?
    This issue is very urgent.
    Thank you,
    bhavani.

    Hi
    KEEP a BREAK-POINT and debug the internal table lines how it is coming
    some overlap must be happening ..check.
    Also check the code where you are getting this text into internal table.
    1) One way to debug smartform is to debug the Function Module of that smartforms.
    If you want to debug particular smartform node that the solution would be,
    insert a "Program Line" just above the node you want to debug and this program line write a normal abap breakpoint.
    So whenever you call the smartforms, it will stop at this breakpoint and you can debug onwards.
    2) SFTRACE can be used for debugging SMARTFORMS.
    Read More here.
    http://help.sap.com/saphelp_erp2004/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm
    Reward points for useful Answers
    Regards
    Anji

  • How to attach logos in smartforms using standard text??

    logos in smartforms using standard text

    Hi,
    After going into SO10>Menu Bar->Include->Graphics-->Select the logo you have to include that in the standard text. ->save->Activate.
    IN the smartform.
    Create a Logo Node and fill the information in the right side under general attributes.
    Name---Standard text name.
    Object
    Id.
    You can upload the logo using SE78.
    Thanks,
    Sree.

  • SmartForm - Processing Standard text

    Hi,
    I want to read a Standard text and put it in the SmartForm footer based on Bill-to Country. I am not sure hwo to read the Standard text. Can you please provide me with a solution? Appreciate Your Help in Advance.
    Thanks,
    Kannan.
    <MOVED BY MODERATOR TO THE CORRECT FORUM>
    Edited by: Alvaro Tejada Galindo on Oct 9, 2008 3:26 PM

    for this there is no coding required..follow the steps
    if you created the standard text using SO10 then take the textname, text id will be ST , textobject TEXT
    language it depends on your requirement.
    Go to smartform , if you want the text to be in footer then open the footerwindow, if you already created the text element then Go to general attributes of the Text, there you need to change the Type of the Text to include text from the dropdown list box. once you change it you have options to specify the Textid, Textname, TextObject etc.
    if you don't understand let me know.

  • Standard report center text in table

    Hello,
    I am new to LabVIEW 2011 running Windows 7. 
    I am trying to run and print standard report in LabVIEW but I couldn't figure out how to make text or data to center in the table.
    See pic below.
    Please help.
    Thank you so much in advance.
    Marlin12

    Certainly,
    Please see the attachments.
    marlin12
    Attachments:
    front.GIF ‏37 KB
    back.GIF ‏27 KB

  • How do I print all of the text in a scrollable form field?

    How do I print all of the text in a scrollable form field?  When I print the form, the text becomes cut off based on the size of the field and displays a little plus sign in the lower right hand corner indicating more text.  I want to print all of the text.

    The form is HTML which means what you see in your browser window is what you will see in your print out.  You can, as the form author, view the submitted data in the View Responses tab and print that out.  You can also export the responses to Excel, CSV, or PDF and print that out.

  • Printing document with Notes/Comments and underlined/highlighted text

    Dear all,
    I have been reading a document and highlighted & underlined parts of it.
    In addition I also inserted notes.
    Now when trying to print the document with the "summarize comments function" (I translate this from the
    german version so there it might be called somewhat differently in english) in the print menue, I receive a the
    original document plus attached several pages including my notes (now numbered) PLUS entries for every line I highlighted, underlined etc.
    Evidently I only want the text of my comments, not empty entries for each line I have highlighted.
    To be clear, I would like to keep the text highlighted / underlined - but I don't need the
    entries for that in the appended section. A document of 18 pages otherwise suddently gets 48 pages...(with only
    a few added notes).
    I have to say I am somewhat puzzled how difficult it is to sort this out. Thought that must be
    something rather trival (or am I blind and make a silly mistake)?
    To make it more clear here screenshot from what I refer to
    Many thanks for any help.
    r

    Dear Lori,
    many thanks for your swift response. Did I understand you correctly - there is no way to keep all the comments (underlined/highlighted/stick notes) in the text and only inlcude the content of the sticky notes at the end of the document? If I filter, as suggested by you, then the underlined/highlighted parts will not show up in the appended pages (that's good) - but they are also not longer visible in the main text (that's bad...).
    I would have thought what I am trying is rather ordinary - Highlighting/underlining text and adding comments. And when I print the document, i would like to get the edited text plus the content of the comments (sticky notes). (And not an empty entry for all highlighted/underlined words). I am somewhat puzzled.
    Many thanks again.
    r

  • How to Change behavior of standard text object&text ID (SE75)?

    Hello there!!
    I'm struggling with this:
    For standard text object C_SHES_ACH & ID 0001 (EHS: IHS Safety Measures) wichs is used as a description for safety measures (CBIH82/CBIH02..) need that when the user create or edit the text, already appears a "Fill in the blanks"  form.
    For example, in CBIH82, editing an accident log, I go to Safety measures Button, then create a safety meassure, and when i click for long text description something like this should appear:
    TEXT 1 (1st Title)
    user line
    user line
    user line
    user line
    (free amount of user lines)
    TEXT 2 (2nd Title)
    user line
    user line
    user line
    user line
    (free amount of user lines)
    Thanks a lot for your feedback!
    Rgds!!

    Hii,
    I am unable to understand exactly wat you want.
    But for free amount of lines : Keep that text under LOOP. Right click on template or window and create a loop and under that loop keep the text ,you can get many lines. or the given below point plzz follow.
    1,Use SO10 Tcode to write standard text in Smartform.
    2.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
    3.
    1. take function module name of the smartform.
    2. goto se37 and type that fm name.
    3. goto attributes tab
    4. double click on either program or include .
    5. There u can find all the subroutines used inside smartform.
    6. search for "perform %move using %textkey-name".
    4.Standard Texts are created in SO10 Tcode and stored in STXH table with OBject ,ID and NAME parameters. We can use Read_Text FM to read the text.
    check the tables STXH & STXL.
    5.
    How to CAll Standard Text in Smart Forms
    In SFs you can insert the standard tests using the TEXT node. Create a TEXT NODE. Then in the GENERAL ATTRIBUTES of this TEXT node select INCLUDE TEXT in the TYPE option. Then you have to enter the text name, object , ID and language in the provided fields. Then if you dont want any error if there is no text in the corresponding text then CHECK the check box "No errors if no text available.

  • I am converting a .docx file to a pdf and the text is coming out blurry

    I am trying to convert a .docx file to a pdf and the text keeps coming out blurry. Some sentences seem to be bolded in the pdf as well. All the colored text seems like there's a shadow behind it and all the text in bold seems extra blurry. I am saving the file as a pdf. I tried to print the file as a pdf but it kept crashing. I have adobe acrobat pro and distiller, but I'm not savy about which program does what.
    Thanks for any help!

    If you are trying to convert a Word file, ensure the text is in 100% black only.
    To create PDF's there are hundreds of different combinations that can be used, but only a few will give you a good 'print ready' file, which is what I think you may be after.
    You may have font issues that are stopping the text looking sharp.
    If you have Distiller, you can try to print as .ps (save as postscript), load distiller up and choose one of the high quality settings in the pop down menu.
    If you are working on a Mac you can drag and drop the .ps file direcetly on the dock icon for distiller, or if you are running Windows you will need to navigate to the file via the menu bar (you will need to know where you have saved your .ps file).
    There may be other issues with the original file format that is causing problems with your PDF creation.
    Let me know how you get on.
    Cheers

Maybe you are looking for