Rotating text with smartforms

I want to print text rotated 90 degrees. Does anyone know if this is possible (with standaard smartform commands).

The way to roatate text in smartforms is using the COMMAND node.  The rotation of text takes place at the printer and cannot be viewed in the print preview.
Using the COMMAND node, Attribute to change the orientation to 90deg needs to be passed to the printer.
The Attributes are printer dependant.
e.g.
In the ZPL-II printer control language the attribute is S_LZPL_SETUP.
In this command node, enter the following under "spool control", "free attributes":
Attribute name:  Attribute value:
S_LZPL_SETUP     '^FWR'
For the particular printer you are using u would need to find the appropriate attibute and the value to set it to.
Neeraja.

Similar Messages

  • Rotate/rotating text in SmartForms

    Need to rotate text 90 degrees in a SmartForm.
    The printers are all PCL based.
    New print-controls cannot be created.
    In PCL, the following command sets rotation:
    <ESC>&a#P
    where # is the number of degrees
    To rotate 90 degrees, the PCL command would be:
    <ESC>&a90P
    In SAPscript, I can use the print-control for <ESC>.
    /:  PRINT-CONTROL SESCP
    =  &a90P
    Another method that works involves standard texts.
    Define standard texts named ZPCLROTATE90 and ZPCLROTATE0.
    They willl set the rotation to 90 and reset to 0 degrees.
    /: PRINT-CONTROL SESCP
    ( &a90P
    /: PRINT-CONTROL SESCP
    ( &a0P
    The SAPscript uses the new standard text objects:
    AS  horizontal text
    /:  INCLUDE ZZPCLROTATE90 OBJECT TEXT ID ST
    AS  rotated text
    /:  INCLUDE ZZPCLROTATE0 OBJECT TEXT ID ST
    AS  horizontal again
    This also works in SAPscript.
    None of this seems to work in SmartForms.  I thought the INCLUDE text would work the same in SmartForms.  It does not.
    Tried the first method shown; SmartForms converts the "=" or "(" paragraph symbol to "*".  This separates the escape sequence and it becomes invalid.
    Any ideas?  They do not want to use SAPscript.  Cannot create a Z print-control.
    Thanks,
    Norm

    Hi,
       Try to follow the steps givenbelow in your SMARTFORM.
    1. Create a template and keep the text alone inside that you wanted to rotate.
    2. Above and Below your text, In the text element that you wanted to rotate give the Print control.
    Ex PRINT CONTROL 'SF201'
         &variable text&
        PRINT CONTROL'SF202'
    2. Create a command inside the window and enter the attribute name and the attribute value.
        Ex. Use Attribute name as S_LZPL_HR1
                     Attribute value as 'BC_CD39'
    3 Create another command above the template and enter the value "SF200" in Include Printer control.
    4.Create another command above the template and enter the value "SF202" in Include Printer control.
    I followed the above procedure for rotation of texts, and it worked.
    Thanks
    Narasingam

  • Handling texts with SMARTFORMS and SE63

    Hi all
    I am having a strange situation I cannot understand: I am working on a form on two side:
    1) changing aspects with smartforms
    2) handling texts translations with se63
    The problem is that now if I made some change on text in smartform, I cannot see on output. Say I put a text in the middle of the form with "Hello world!" in, I cannot see in its output. why? Is this because I am working also with se63? I tried to leave transaction se63 to avoid eventual conflict, but still ... if now I go in smartforms transaction and try to change the form I cannot see any changes and till yesterday I did not have this kind of problem.
    Any idea ?
    thanks
    Gabriele

    The problem was that modifying form modifies were not visible .. I don't know if was because I was using also se63 on same form ... Now I solved and all is turned normal and change are visible: I closed and restart everything handling in different moment se63 and smartforms .. very strange ...
    thank you anyway
    Gabriele

  • Smartforms: new barcodetechnology - additional (rotated) Text

    Dear community,
    I've a small problem while designing a new smartform form. I want to print a code 128 and I already created it with SE73 as a "system barcode" and I also chose the "new barcode technology" and  as alignment "rotated".
    In my form I defined the data for the barcode and formated them with the barcode data (deined in a smartstyle). When printing the form I get the barcode as defined.
    But here comes my problem: I just get the barcode without any text. Is it possible to print a rotated text among the barcode? Is it a configuration in the barcode definition, or have I got to set some printcontrols?
    Please help me to solve this problem!
    Many thanks in anticipition...
    Christian

    Please help me! is there nobody with an idea?
    Hope for answers...
    Christian

  • Problem printing horizontal text in smartform with zebra Z6M label printer

    hello,
    The situation is this:
    There is a Z smartform wich prints a label to a zebra Z6M label printer with the text and barcodes vertically.
    The form have a command in the main windows with the parameter: S_LZPL_SETUP     '^FWR'
    This label works fine, but the client want to change the form, they have told me to create a new smartform and print the info horizontally, using the same printer.
    The tests i have done are the following:
    create a smartform from ground and write a template text and a barcode with a new font of system barcodes. the bardoce is shown ok(it is shown horizontally), the problem is that the template text is shown vertically, as in the original smartform.
    then i tried on another zebra ZM600 label printer, similar model, but not the same, and the smartform printed was ok (text and barcodes shown horizontally). So i think is a configuration setting problem, but i dont know where to search.
    i have checked the label printer parameters in SPAD, but didnt find anything souspicios.
    have you any idea?
    thanks in advance.

    See these if they be of any help.....
    BARCODE:
    goto smartform styles-> create a style-->
    create a character format.
    under standard settings give the bar code name
    use this style in ur smartform. select the data field which u want to barcode print and assign the character format
    Similarly
    SAPSCRIPT
    open the form and click the character format button and
    repeat the step as above....
    http://help.sap.com/saphelp_nw04/helpdata/en/68/4a0d5b74110d44b1b88d9b6aa1315b/frameset.htm
    Go to Character formate in your form.
    create a new char formate with enable BAR code AND
    you can give its type too.
    To Create a Bar code prefix:
    1) Go to T-code - SPAD -> Full Administration -> Click on Device Type -> Double click the device for which you wish to create the print control -> Click on Print Control tab ->Click on change mode -> Click the plus sign to add a row or prefix say SBP99 (Prefix must start with SBP) -> save you changes , it will ask for request -> create request and save
    2) Now when you go to SE73 if you enter SBP00 for you device it will add the newly created Prefix
    Create a character format C1.Assign a barcode to the character format.Check the check box for the barcode.
    The place where you are using the field value use like this
    <C1> &itab-field& </C1>.
    You will get the field value in the form of barcode.
    Which barcode printer are you using ? Can you download this file and see.
    http://www.servopack.de/Files/HB/ZPLcommands.pdf.
    It will give an idea about barcode commands.
    Check this link:
    http://www.sap-img.com/abap/questions-about-bar-code-printing-in-sap.htm
    Check this link:
    http://help.sap.com/saphelp_nw04/helpdata/en/d9/4a94c851ea11d189570000e829fbbd/content.htm
    Hope this link ll be useful..
    http://help.sap.com/saphelp_nw04/helpdata/en/66/1b45c136639542a83663072a74a21c/content.htm
    go through these links and cose u r previous threads,
    http://www.sap-img.com/abap/questions-about-bar-code-printing-in-sap.htm
    smartform - barcode
    http://www.erpgenie.com/abap/smartforms.htm
    http://sap.ittoolbox.com/groups/technical-functional/sap-basis/print-barcode-with-smartform-634396
    http://sap.ittoolbox.com/groups/technical-functional/sap-dev/printing-barcode-733550
    Detailed information about SAP Barcodes
    A barcode solution consists of the following:
    a barcode printer
    a barcode reader
    a mobile data collection application/program
    A barcode label is a special symbology to represent human readable information such as a material number or batch number
    in machine readable format.
    There are different symbologies for different applications and different industries. Luckily, you need not worry to much about that as the logistics supply chain has mostly standardized on 3 of 9 and 128 barcode symbologies - which all barcode readers support and which SAP support natively in it's printing protocols.
    You can print barcodes from SAP by modifying an existing output form.
    Behind every output form is a print program that collects all the data and then pass it to the form. The form contains the layout as well as the font, line and paragraph formats. These forms are designed using SAPScript (a very easy but frustratingly simplistic form format language) or SmartForms that is more of a graphical form design tool.
    Barcodes are nothing more than a font definition and is part of the style sheet associated with a particular SAPScript form. The most important aspect is to place a parameter in the line of the form that points to the data element that you want to represent as barcode on the form, i.e. material number. Next you need to set the font for that parameter value to one of the supported barcode symbologies.
    Creating Bar code:
    ) Go to T-code - SPAD -> Full Administration -> Click on Device Type -> Double click the device for which you wish to create the print control -> Click on Print Control tab ->Click on change mode -> Click the plus sign to add a row or prefix say SBP99 (Prefix must start with SBP) -> save you changes , it will ask for request -> create request and save
    2) Now when you go to SE73 if you enter SBP00 for you device it will add the newly created Prefix
    Create a character format C1.Assign a barcode to the character format.Check the check box for the barcode.
    The place where you are using the field value use like this
    <C1> &itab-field& </C1>.
    You will get the field value in the form of barcode.
    Check this thread for detail information.
    How to print Barcode in te SAP SCRIPTS?

  • 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

  • Rotating text label with complex fonts (arabic)

    i got the next problem:
    rotating dynamically created TextField with any angle (using
    embedded fonts of course). if i use standard fonts, latin sybmols -
    everything works excellent. but if i use arabic fonts - text labels
    behave very strange - complex arabic symbols are not shown.
    for example, 2 symbols "lj" give 1 complex arabian symbol to
    show. but when using in rotating mode with embedded fonts those
    "lj" are just shown separately, not as one.
    did anyone have such experience? how this could be solved?
    maybe the same behavior with japan?
    thanks in advance
    p.s. i used different modes and arabic fonts. everything
    works fine in usual way until the text label starts being
    rotated...

    shimontornia,
    > I'm trying to rotate a dynamic text field that is using
    > system font.
    > Any ideas ?
    The only idea possible is to omit one of those
    characteristics: either
    the text field must not be rotated, or it must not use a
    system font.
    David Stiller
    Adobe Community Expert
    Dev blog,
    http://www.quip.net/blog/
    "Luck is the residue of good design."

  • Text and Fonts: rotate a text with characters like áéíúó

    I´m spanish and i need to rotate a text wich contains characters like áéíúó.
    Any ideas on how could it be done?
    thanks,

    You can use [localization |http://jfx.wikia.com/wiki/Proposal_for_the_string_literal_translation] and animation.
    Main_sp.fxproperties
    "Text"="áéíúó"
    Main.fx
    import javafx.animation.*;
    import javafx.stage.*;
    import javafx.scene.*;
    import javafx.scene.text.*;
    import javafx.scene.transform.*;
    import java.util.Locale;
    Locale.setDefault(new Locale("sp"));
    var angle = 0.0;
    Timeline {
        repeatCount: Timeline.INDEFINITE
        keyFrames: at(3s) { angle => 360 tween Interpolator.LINEAR
    }.play();
    Stage {
        title: "Rotated text"
        width: 200
        height: 200
        scene: Scene {
            content: Text {
                transforms: [
                    Translate{ x: 50 y: 50},
                    Rotate { pivotX: 30 pivotY: 3 angle: bind angle }
                font: Font { size: 24 }
                content: ##"Text"
    }

  • Help needed regarding 'Address Text' in Smartforms

    hi guys,
    To display the address text in Smartforms, we include an 'Address' component and provide the respective address number to it. I just want to know which is the table where the complete address text corresponding to the address number is saved. I have checked the 'ADRC' & 'ADRCT' tables but in vain. Help me out.
    With regards,
    Sandeep Panja.

    Hi Panja,
                 In smartform u have to pass the address no and it's give the full address by FM ADDRESS_INTO_PRINTFORM .plz check this fm and for address check the master table like vendor the table is LFA1 to get the address for it
    tarak

  • Printing Form Header Text in Smartforms

    Hi,
    I have created smartform for SD module.I am printing Form header text in a window by using loop.I am getting the text with the help of READ_TEXT  function module.It comes as we type in Form header.But the problem is if they type more than 15 lines it is not printing.I want to print the rest of the lines in next page.How to do this?

    Hi,
    In smartforms, only the main window is a dynamically varying one.
    So give your include text concept in the main window..
    so that if your text increases more than a page, it will be printed in the next line..
    You can maintain your text in so10 transaction.. with text id and text name..
    using include text u can simply give the Id and text name in forms, you will get the enetered text.
    regards,
    vijay.R

  • Missing rotated text in PDF created via FPDF

    Hi guys,
    I have a weird problem which is preventing some rotated text to be viewed in adobe reader, while every other reader like foxit, google pdf viewer and scrib are doing just fine!
    if you create a flyer using following link
    http://www.erupert.ca/classifieds/create_flyer/ad/32_1306248214
    the generated PDF displays just fine in google document viewer but if I download and open the same in Adobe reader the pull tab text (text rorated 90 degrees) vanish, again the PDF is just fine in foxit reader as well!
    What am I doing wrong, any ideas would be much appriciated.
    Also here is the code to rotate text I'm using by extending the FPDF class
    function Rotate($angle,$x=-1,$y=-1)
    if($x==-1) $x=$this->x;
            if($y==-1) $y=$this->y; //echo "{$this->x} - {$this->y}";die();
            if($angle!=0) $this->_out('Q');
            $angle=$angle;
            if($angle!=0)
    $angle*=M_PI/180;
    $c=cos($angle);
    $s=sin($angle);
    $cx=$x*$this->k;
    $cy=($this->h-$y)*$this->k;
    $this->_out(sprintf('q %.5f %.5f %.5f %.5f %.2f %.2f cm 1 0 0 1 %.2f %.2f cm',$c,$s,-$s,$c,$cx,$cy,-$cx,-$cy));
    OS: Windows Any ( >= XP)
    Adobe version X (latest updates)
    Thanks,
    Anupam

    Hello anupam,
    I know this is a particularly old thread, however i thought i'd post the solution here for others who may have been searching around for a solution to this very same problem and come across this thread.
    As George has correctly stated it is an issue with the unbalanced q and Q operators. I recognise the provided piece of code, it is of course a snippet from a generation class such as FPDF or TCPDF or HTML2PDF, the error occurs when the rotation is not returned to 0 before finalising the document.
    i.e. You would have used something like $pdf -> Rotate(270,60,50) or $this -> Rotate(270,60,50) where 270=the degree of rotation , 60=the x coordinate , 50=the y coordinate.
    Once you've completed writing all your text, lines, images, cells you need to make sure to reset the rotate i.e. $pdf -> Rotate(0) prior to Outputting the pdf to screen or saving it as a file.

  • Rotating text without embedding fonts - how?

    No doubt same or similar question was asked and most likely answered but I could not
    find anything that would match...
    I want to draw column headers of my ADG vertically. So, I need rotate column text 90 degree
    and adjust position.
    Is it true that it can be achieved with embedded font only? If it is true how can it be done for
    Unicode code, which includes ranges for Japanese, Chinese, etc characters. The size of
    swf is going to be huge. Several sites like this
    http://www.forestandthetrees.com/2009/06/29/rotating-text-without-embedding-fonts/
    claims that they have a solution for the problem without embedding fonts.
    Note: I am still using Flex 3.3 SDK with no TLF. By the way, do TLF libraries work with
    3.3 SDK.?
    Thanks in advance

    Draw your text onto a bitmap image (or take an ImageSnapshot of a Label), then rotate the image.

  • How to add package text to smartform

    Hi,
    i'm new to SAP and I have a question. We have smartform with material number and material text output. We also have package number - in what this material gets packed (palette, case etc.) Now we want to add also package text to smartform.
    How to include package text from table?
    Thanks

    Hi,
    i'm new to SAP and I have a question. We have smartform with material number and material text output. We also have package number - in what this material gets packed (palette, case etc.) Now we want to add also package text to smartform.
    How to include package text from table?
    Thanks

  • How to rotate text

    I was told to restate my number's problem as I want to rotate text within a single cell. This is for grade book so the column label can be hidden along with other data.

    ohsster,
    I was also excited by iWorks, and I was planning to adopt it and try to wean myself from Office even before Numbers was announced. I figured I'd just use the Tables within Pages to do my spreadsheet functions, since all the same calculations are available there. After a month of working in iWork, it's obvious that it would be premature to un-install Office for Mac, but I'm still determined to make the switch and I believe that Apple will address the serious issues, like the speed problem, in short order. So, I'm still excited about being closer to shaking the Microsoft dependency.
    Regarding your application, I don't know how large and complicated your design is, but I encourage you to try my suggestion just to get a feel for working with references that span sheets and tables. This, to me, is much easier in Numbers than in Excel. I tried cross-sheet referencing in Excel years ago and found it too complicated, but in Numbers it is as simple as pie. You can build your second table in the same sheet as your first table if you want to keep things close together for that phase, and then just drag the new table to a new sheet when you're done with it. To make a cell in the destination table mirror the entry in the source table, simply type an = sign in the destination cell and then click on the source cell. To replicate the reference in the first destination cell across the first row, highlight that cell and drag the fill handle across the row. Then, with the filled row highlighted, drag the fill handle down the sheet to populate as many rows as you need. This whole process takes only a few seconds. Now you have a copy of the source table that can be independently formatted, labeled and printed after you move it to it's own sheet. This is the Numbers equivalent of setting a Print Area in Excel, except on steroids.
    I hope you don't give up!
    Jerry

  • Vertical Text in Smartforms

    Hello,
    how can I get vertical texts in Smartforms? In need it for headings in a table, because of limited space.
    I only get things like that:
    e.g.
    P
    o
    s
    i
    t
    i
    o
    n
    But I need to rotate the whole word... Is there any solution?
    Thanks and regards!

    Hi,
    Check the below links.
    http://www.sapfans.com/forums/viewtopic.php?t=9972
    http://searchsap.discussions.techtarget.com/WebX?[email protected]@.ee83dd4/1576
    Thanks,
    ramakrishna

Maybe you are looking for