Print text vertically in SAPScript

Hi,
How to print text vertically in SAPScript?
Can we use controls for it?
Please help its urgent.
Thanks,
Madhura

You can print horizantally. using the following code
You know the total length of your text right.
You need to have conditions to avoid unnecessary spaces.
If &v_text(1)& is not initial.
ph &v_text(1)&
endif.
if &v_text+1(1) is not initial.
ph &v_text+1(1)
enddif.
if &v_text+2(1) is not initial.
ph &v_text+2(1)
enddif.
But we cant rotate letters to left . Not sure . Will explore on it and let you know.
Reward points if useful.
Regards,
Nageswar

Similar Messages

  • How to print text vertically in smart forms

    hi,
    Can any one tell how to print text vertically in smartforms
    ADVANCE THANKS
    GUHAPRIYAN

    HI,
    Chk out  this thread.Maybe it proves helpful.
    Re: vertical writing in smartforms
    Regards,
    Gayathri

  • How to display TEXT vertically in SMART FORM

    Hai,
    I need to display the column name of a table vertically (readable from bottom to top) in smart form.
    Could any one please tell me how to do this?
    Thanks & Best Regards,
    Maniyam Bhaskar.

    Hi,
    Go through these threads for the discussions happened on similar issue... hope it helps you..
    how to print text vertically in smart forms
    vertical and horizontal printing in same page with smartforms or sapscript
    Good luck
    Narin

  • Printing text verticallyin smartform

    Hi all,
    How can we print text vertically.(INVERTED ) IN SMARTFORM.
    Tnks in Advance.

    The only way to print text vertically in SMARTFORMS is to place each character on it's own line or in a specific window or template that has been created to hold one character--as in the following example:
    E
    x
    a
    m
    p
    l
    e
    Adobe printforms on SAP (t-code SFP) can rotate your text if you're on a system that has been setup for that.
    If, by "inverted", you mean upside-down then the only way to do this in SMARTFORMS, that I know of, is to create an image of your information upside-down and include that as an image in your SMARTFORM where needed (not recommended).  If you have to pull the information in dynamically for this issue then this approach will not work.  There are bar codes that can be inverted (upside-down) in SMARTFORMS but that was not your question--just thought I would mention that.

  • SAPScript: Is it possible to print text on an angle?

    Hello,
    Is it possible to print text from the lower left corner to the upper right corner using SAPScript?
    Thx.
    Andy Jacobs

    Hi Andrews,
    it is possible to print by placing each characters in different line.
    for example:
                 A
                  N
                   G
                    L
                     E
                      P
                       R
                        I
                         N
                          T
    by using tabs and each character will be placed in an angular fashion using tabs
    Cheers
    VJ
    Message was edited by: Vijayendra  Rao

  • Printing text at particular position in SAPscript

    Hi All,
    I want to print text at particular position, I used Command POSITION but it is not working .
    As I am using counter as Y position for a box and i want to print lines of text in that box. since I am able to position box according to counter but, texts which I want to display in box is not comming inside the box according to the counter.
    Please suggest what command to use for this.
    Thanks & Regards
    Shweta

    Yes Bernsen ,
    You are right. POSITION works only with BOX not with text.
    And also I can not create text in the another window  as there are two headers of main window in my form . one is for the line Items and after completion of it tis another header which is for the another lineitems say for withholding taxes of the vendor. so I need both the headers in the main window.
    Any way finally I got answer of my question. I will want to share with you all what I did:
    For the first box headre no y coordinate was required as height was the main thing here.
    Then came the line items . I set counter for this line item.
    This counter I used as ypos for the box. then for displaying heared text I made some adjustement with this counter as if line item is 2 then I gave one line space .
    whereas for multiple lines i.e. if no. of line is more than 2 then I gave 2 line space above the text to fit it into box. as my text was always appearing below drawn box.
    Thanks.
    Shweta

  • Printing Text between boxes in sapscript

    Hi Friend ,
    I have a invoice form . There is the adddress window , info window and the main window . I need to insert some text between the space between the MAIN window and the INFO window . Is there a way we can directly print text between Window or Do i need to create a new window ?? How can I go about this . I have already defined the text in SO10 transaction . I am using this command but dont know how to put it in the space between the infowindow and the main window . Please suggest .
    INCLUDE Z_text_insert  OBJECT TEXT ID ST LANGUAGE SP PARAGRAPH HP.
    Thank you ,
    Hari
    Message was edited by:
            Hari G Krishna

    Ya u have to insert a  window between the two windows.Any text to be printed should be in window.
    Check and let me know if u face any problem.
    Regards

  • How to Print text in two main windows

    For printing label have created two main windows on a page. calling function write_form In ABAP Program under do loop for two times. 
    but program prints only one window. why is it so? how can i print text on two windows.
    do 2 times.
      COUNT = COUNT + 1.
    loop at itab WHERE DEPTT LT 200.
        CALL FUNCTION 'WRITE_FORM'
          EXPORTING
            ELEMENT  = 'TEST'
            FUNCTION = 'SET'
            TYPE     = 'BODY'
          WINDOW   = 'MAIN'
          EXCEPTIONS
           ELEMENT   = 1
           FUNCTION  = 2
           TYPE      = 3
           UNOPENED  = 4
           UNSTARTED = 5
           WINDOW    = 6
           OTHERS    = 7.
      endloop.
    enddo.
    Please guide.

    Since the information is variable and coming out of the print program, I can assume you want to print many labels but two to a page. Also, any page numbering, etc will need to be updated. This is easily accomplished with SAPScript but a feature people rarely use I believe. Here are the simple steps:
    1) On the Windows Screen: Creat a main window for the size of the label, etc knowing that you will be putting multiple windows on a page. For example, if page size is 8.5 x 11, maybe your window size is 6 X 4 or something similar. You only need one main window defined.
    2) Now go to Page Windows Screen. Add a window MAIN and down at the bottom where it says Window Type put in MAIN. Next to this field is a little field about two characters long. In here put in '01'.
    3) Now Add another window MAIN and down at the bottom put in '02'.
    Hopefully this gives you the idea. I've done this with up to 30 small windows in order to print variable window for labels on label stock such as Avery 8167, etc. 
    Good Luck!
    Tim Stadler
    Menasha Corporation

  • Text problem in SAPScript

    Hello,
    i have a problem i need to print one recepit with sapscript.
    I have to made a changes in displaying the text in o/p but it is in different language i.e PT
    text to display is
    IVA NÃO REGULARIZADO – ARTº 71 CIVA
    Now if you see above in sentence we have some special characters which are not present in keyboard itself.
    Origanal language of form is DE
    Can anyone help me out in this.
    Regards,
    Vikrant

    Hi,
    Goto SE63 and translate the TEXT from one language to other.
    regards,
    Shiva

  • To print text in sapscrpit.

    I want to print text maintained in standard tcode QM03 in sapscript .
    I have a y-report as driver program and want to print the text maintained for a notification number in the script. I have used "read_text". But i get only partial text.
    In the debugger all the text comes in the variable but only prt of it gets printed in the actual script . Please help

    Hi
    Check the Window size where you are printing the Text from the Variable
    from the read text you will get into the internal table lines
    so format those internal table line field as per the space available for that field and do
    Regards
    ANji

  • Is it possible to print barcodes from LT31 (SAPScript) on a Zebra?

    Hi
    We have a factory that would like to print their picking lists/transfer orders using transaction LT31 to a Zebra ZM600 printer. The transaction appears to create a spool in the SAPScript format.
    We have tried pretty much all of the Zebra drivers (ZEB), a standard HP driver and a ASCII line printer driver (in SPAD) but nothing works - barcodes are not printed. For some drivers the format of the spool looks good in SP01, but then nothing is printed at all at the printer! In other cases the text is okay but barcodes are not, in other cases the text is complete gibberish.
    The user has been informed that SmartForms should be used instead of SAPScript but we believe this would involve changes at ABAP level and our ABAP support is by a third party company which we are trying to avoid using.
    I have seen SAP Note 179534 - Label printing with Zebra printers (SAPscript) but it seems this would also involve Application Support/ABAP teams etc.
    Is there anything we (SAP Basis) or the end user can do to be able to print barcodes from LT31 to the Zebra printer without involving Application/ABAP support?
    Thanks
    Ross

    Tried but get an error:
    SAP spool error log
          =====================
    Print request processing log
    The host spool is reporting errors
    Unintelligible response received from assumed SAPLPD ("#")
    (SAP)LPD cannot accept request (Queue LDSP0092 disabled?)
    Unable to connect to output processor
    Any ideas?

  • Sap Script - Printing text

    Hi Experts,
    In a classical ABAP report we make use of
    write:/20 'Text'.
    to print text from the 20th column. Can we do something similar in a SAP Script Page Window. I have a box and lines drawn. Now I want the text to start exactly after the vertical line(column). Is there a way to do in SAP Script.
    Regards
    Abdullah.

    Hi
    You can do one thing. you can straight away write the field
    &BSEG-SGTXT&
    in two lines straight with offset.
    in the first line T1 &BSEG-SGTXT+0(25)&
    In second line T1 &BSEG-SGTXT+25(25)&
    first write like this and see, is it printing or not.
    Reward all helpfull answers
    Regards
    Pavan

  • SMARTFORM print in Vertical. Why????

    Hi!
    I've created a smartform. When i print with local printer, local printer print in vertical an begin in right corner high.
    Smartform has much secondary windows in one page.
    In SPAD the format page ad others elements are correctly setted.
    If I print only one text,the printer print correctly: in the left corner high.
    My english it's very not so good... excuse me in advance.
    Luigi

    Hi Luigi,
    Sounds your like the print is set up for Landscape.  Did you figure this one out already?  See PAGE, options.
    All the best,
    Olivier

  • Print Text File in NW 3.12?

    I have to admit some ignorance regarding NetWare printing, so my
    apologies in advance...
    I work for a document management company, and am trying to find a
    solution for a customer running a fairly archaic, DOS 6.22-based
    application that utilizes a NetWare 3.12 server for file and print
    services. My need is to retrieve print output from their application,
    in the form of a text file, and then reprocess it for automated faxing
    through a fax server device.
    My problem is this: their application seems to print directly to a
    printer by defining what it calls a "network port" (which seems to map
    to a spooler, 0 through 5) or LPT1, and by referencing a printer
    definition. As far as I can tell, the files that are deposited in the
    print queue are byte streams, i.e., they're not human-readable (they
    have extra characters that I'm assuming are control characters). They
    therefore aren't usable by my print distribution software.
    I've tried using CAPTURE to send to a text file, but the application
    seems to conflict with the command. If I set CAPTURE, then start the
    application and send a job to LPT1, the application returns an error
    that the printer is unavailable. Upon exiting the application the port
    is no longer being captured (although I've tried all of the options I
    can think of to keep it so). Oddly enough, the application does
    successfully print a text file to LPT2 (for a barcode printer), which
    is CAPTUREd via a command in the system autoexec.bat. This is done a
    different part of the application.
    If anyone can help me figure out a way to generate a text file in this
    environment, or to work with the print file that's currently being sent
    to the queue (e.g, can it be translated somehow to a simple text file?),
    that would be much, much appreciated. This customer is in a tight spot,
    with an unsupported application that they can't presently afford to
    upgrade. My solution would save them enough money over time to replace
    the system.
    Again, thanks in advance for any help!
    wynand32

    If the Dos app has no print drivers included, then indeed it is relying
    on NW and PRINTDEF/PRINTCON to do the formatting stuff. That must have
    already been set up for it to be successfully printing now, it's just a
    matter of adding a definition that doesn't do anything to the print text.
    >In fact, given my ignorance of the NetWare environment, I'm not sure
    how the term "driver" even applies, unless it would refer to the
    printer definition.
    I was referring to a driver within the Dos app, nothing to do with
    NetWare. For instance Word Perfect for Dos came with Dos drivers for all
    sorts of printers, one of which was a generic text driver.
    >I wonder: is there a setting in PRINTDEF that could be changed for one
    of the printer configs that would influence the output? Or, would
    PRINTCON apply in this environment?
    Not supplied, AFAICS, but either one of the simpler print drivers
    supplied such as Diablo will do, or you'd need to set one up. Hopefully
    http://www.novell.com/documentation/...a/fm19724.html
    will help you enough as it's been too long since I did it to remember
    the details.
    Andrew C Taubman
    Novell Support Forums Volunteer SysOp
    http://support.novell.com/forums
    (Sorry, support is not provided via e-mail)
    Opinions expressed above are not
    necessarily those of Novell Inc.

  • How to print text/data in flex 3 using printer???Plz help...

       Hi,
              plz tell me the way to print text/data using printer in flex.  I tried the FlexPrintJob class. but it takes object of a container to be printed & prints the visible content of that container(along with scrollbars), bt i want to print all contents of the container(including invisible).
          I have tried to print bitmap image through FlexPrintJob but it takes lot of time for spooling... So plz help me out in printing(fast with all content) in flash
    I am using flex 3 (flex Builder 3 IDE).
      Thanks in advance!!!

    Hi Sagar,
    Don't worry You can use the below work around to print all the contents of the Container including the invisible contents under scrolll with out scroll bar..
    So what the idea here is we are seeting the container height to full size with out scrolls before sending the container object to printer and as soon as you print the object you are restoring it to the original height with scrolls...so that you can print the full contents without scrolls...
    You may have doubt that by chnaging and restoring the size the user may see momentary resize of the container but it is not so as it is a fraction of a second and user cannot notice this change... Give it a try ..I had already run into this problem recently and I have found a work around for this which is as below:
    // Here mainContainer is the container or box id the contents of which you want to print
       private function doPrintContainer():void
        var printJob:FlexPrintJob = new FlexPrintJob();
        if(printJob.start() != true) return;
        try
         var mainContainerHeight:int = mainContainer.height;
         //Increasing the height of the desired component to be printed.
         mainContainer.height = mainContainer.measuredMinHeight;
         mainContainer.verticalScrollPolicy = "off";
         //Adding the resized Component to our FlexPrintjob and then sending the print request
         printJob.addObject(this,FlexPrintJobScaleType.MATCH_WIDTH);    
         printJob.send();
         //Resizing the component back to normal size
         mainContainer.height = mainContainerHeight;
         mainContainer.verticalScrollPolicy = "auto";    
        catch(error:Error)
                     trace("Error : " + error.message);
    If this post answers your question or helps, please kindly mark it as such.
    Thanks,
    Bhasker Chari

Maybe you are looking for

  • Sales Order Status "Being Processed"  after completion for Free Goods Sales

    Hello All, This problem is related to Free Goods Sales which is as follows. The process-flow for free goods sales is first we raise a sales order, then we do outbound delivery for the sales order and then finally PGI of the goods.We don't raise any i

  • ITunes and Quicktime conspire against me!!

    I can't get itunes to work at all and now quicktime's stopped functioning! I get the usual "Sorry for the inconvenience but itunes has encounted a problem and needs to close" every time I try and start it. I've installed quicktime from the main apple

  • Asset aquisition date ????

    Hi All, Previously at the time of asset acquisition, it was picking the document date as asset value date & capitalisation date and calculates the depreciation accordingly. But now with the same process, it is picking the posting date as asset value

  • Problem in SOAP Client Handler configuration

    Hi all, I am working on a webservice project where i have to send SOAP headers in the SOPA Request from Client and retrive the same at webservice end. I have configured server Handler in webservices.xml of the Webservice and it is working fine. (It i

  • Billing is not created

    Hi Experts I have scenario for third party sales there are two line items in Po ine item is billed and second line item whenn creating the billing 20 The item is not relevant for billing, for the second line item the schedule line item the delivery d