Zebra background - sap script

Hi Everyone,
Can anybody say how to create zebra background in sap script. Eg:- line number one the background is blank and line number 2 is shaded with grey background and line number 3 is blank and so forth.....
The numbers of lines are dynamic data (repeating) and the numbers are unknown.

Hi Arun,
Yes, it is possible to make a bank ground picture in SAPscript also. For this you have to do is create a new window and see the dimensions fit the entire page. Now creat vertical frames in that window at equal gap and fill the alternative blocks of it.
This will give you zebra background in SAP Script.
Note: all other windows that contains data/ text will not be effected. it will be displayed on the image.
Hope this will help.
Regards,
Nitin.

Similar Messages

  • How do we enable cutter option in the SAP Script for Zebra Label Printer

    Hi Gurus,
    We use Zebra Label(ZM400) printers to print the material documents(SAP Script). Could someone please tell me how do we enable the cutter option in the Zebra printer for the SAP Script?
    Your vaulable answers will be highly appreciated.
    Thanks in advance.
    Regards,
    Manoj.

    Hi Manoj,
         In Script you dont want to add any logic for Label Cutter, It should be in the Zebra printer settings if the printing is over it should cut the paper. If the print area is predefined for your material label then you can make use of standard label papers (Like 2"x4", 3"x4"....)
    Regards
    GK.

  • Is it possible to a coloured background in sap script Form.

    Hi all,
    Is it possible to a coloured background in sap script Form.
    Point is guranted

    Hi,
    In Sap Scripts Colouring is not Possible.
    But We Can do Colouring  In Smartforms.

  • SAP Script : Control Commands for printing Label (barcode) by Zebra Printer

    Hello,
    I would like to know the control commands in sap script for Zebra Printer. The purpose of task is to print a field in barcode format in Right Bottom of the label.
    The sample code is placed below. Kindly have a look at it. The problem now i am facing is, the barcode for Customer PO is printing on the wrong place (Left Bottom, the text & barcode are overwriting). Can anyone suggest a possible way or can any one send the document for Barcode commands in SAP Script for Zebra Printer.
    Sample script code:
    Initialization and reset Barcode
    XAMCY^XZ
    Start
    ^XA
    Barcode setup
    ^BY3,2.7,2.2
    Set label home position
    ^LH
    ^FWN
    FO385,025A0R,40,50FDPN: &VBAP-MATNR&FS
    FO385,725A0R,40,50FD&VBAP-ARKTX&FS
    FO385,1710A0R,40,50FDRtns: &zsntsc-contr&FS
    FO345,025A0R,40,50FDService Order# &AUFK-AUFNR&FS
    FO345,725A0R,40,50FDSerial# &EQUI-SERNR&FS
    FO345,1710A0R,40,50FDRepair Order# &VBAP-VBELN&FS
    FO245,025B3R,N,90,N,NFD&AUFK-AUFNR&FS
    FO245,725B3R,N,90,N,NFD&EQUI-SERNR&FS
    FO245,1710B3R,N,90,N,NFD&VBAP-VBELN&FS
    FO138,1710A0R,40,35FDCustomer PO# &VBKD-BSTKD&FS
    FO98,025A0R,40,50FDWrnty: &W_WARRANTY&FS
    FO98,605A0R,40,50FDRoute: &W_ROUTE&FS
    FO58,025A0R,40,35FDShip-to-name: &W_NAME1&FS
    FO58,1325A0R,40,35FDMinor Group/Nr: &TVM5T-BEZEI&FS
    FO58,1325A0R,40,35FDMinor Group/Nr: &TVM5T-BEZEI&FS
    FO18,885A0R,40,35FDReported By: &QMEL-QMNAM&FS
    FO18,1710B3R,N,90,N,NFD&VBKD-BSTKD&FS
    ^XZ
    Thanks in Advance,
    Ramasamy

    HI
    GOOD
    GO THROUGH THIS
    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.
    The next part of the equation can be a bit tricky as you will need to get a printer to print that barcode font. Regular laser printers does not normally print barcode fonts, only specialized industrial printers that is specifically designed to support that protocol and that uses specialized label media and heat transfer (resin) ribbon to create the sharp image required for barcodes.
    Not to fear though, there are two ways to get around this:
    - You can have your IT department do some research - 
    most laser printers can accept a font cartridge/dimm chip (similar to computer memory), called a BarDIMM that will allow a laser printer to support the printing of barcodes.
    - Secondly, you can buy software that you can upload in your SAP print Server that will convert the barcode symbology as an image that will print on a regular laser printer. I found that this option results in less sharper barcodes. This option is really if you need to convert a large quantity of printers (>10) to support barcodes. 
    - Thirdly, you can buy a third party software like Barcode.dll and install on your frontend PC connected to the laser printer.
    Now you have a barcode printed - what next?
    Well there are two options, depending on your business requirements:
    - You can use an existing SAP transaction on a regular workstation and get a barcode wedge reader to hook up between the keyboard and the PC. These wedge readers comes in a wand or scanner format. There are even wireless wedge scanners available that allows you to roam a few yards from the workstation to scan a label. This approach is mostly used where you want to prevent human errors in typing in long material, batch or serial numbers in receiving or issuing of material. The problem is that it's just replacing the keyboard input and you are basically locked down in one location and have to bring all the material to that location to process.
    - Another solution is to use SAPConsole transactions
    or write your own ABAP Dialog programs that will fit onto a barcode enabled wireless handheld terminal and that will follow the business logic as executed on the shop floor. 
    These programs are highly complex exercises in industrial engineering and ergonomics because of the limited screen sizes and limited ability to accept keyboard input. The user is instructed step-by-step and only scan and push F-keys to interact with the SAP system. Scan, scan, beep, beep, enter - highly automated.
    GO THROUGH THESE LINKS
    http://www.sap-img.com/abap/details-information-about-sap-barcodes.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/68/4a0d5b74110d44b1b88d9b6aa1315b/content.htm
    THANKS
    MRUTYUN

  • How to make SAP Script/Macro run in background like xl macros

    Hi,
    I have a recorded sap script to run, but I can see all  the steps visible in the screen. Is there a  solution in SAP to set displayalerts or screenupdate as false like excel. I do not want the viewers to see the macro running in all steps. I tried iconify, but it works only for main screen, the child screen are still visible. Please help.
    Thanks
    Mercy

    Hello.
    In my knowledge there is no Option from SAP GUI Scripting.
    When you run this from VBA you can use USER32-API function
    Public Declare Function LockWindowUpdate Lib "user32" _
      (ByVal hwndLock As Long) As Long
    Call function via public Sub:
    Public Sub DisableScreenUpdating(xhWnd&)
      If xhWnd <> 0 Then LockWindowUpdate xhWnd
    End Sub
    Public Sub EnableScreenUpdating()
      LockWindowUpdate 0&
    End Sub
    And call this whenever you have a new handle during your script:
            Session.FindById("wnd[0]/usr/btn%_STAE1_%_APP_%-VALU_PUSH").Press
            DisableScreenUpdating Session.FindById("wnd[1]").Handle
            Session.FindById("wnd[1]/usr/tabsTAB_STRIP/tabpSIVA/ssubSCREEN_HEADER:SAPLALDB:3010/tblSAPLALDBSINGLE/ctxtRSCSEL_255-SLOW_I[1,0]").Text = "DLFL"
            Session.FindById("wnd[1]/usr/tabsTAB_STRIP/tabpSIVA/ssubSCREEN_HEADER:SAPLALDB:3010/tblSAPLALDBSINGLE/ctxtRSCSEL_255-SLOW_I[1,1]").Text = "INAC"
            Session.FindById("wnd[1]/tbar[0]/btn[8]").Press
            DisableScreenUpdating Session.FindById("wnd[0]").Handle
            Session.FindById("wnd[0]/usr/btn%_STRNO_%_APP_%-VALU_PUSH").Press
            DisableScreenUpdating Session.FindById("wnd[1]").Handle
            Session.FindById("wnd[1]/tbar[0]/btn[24]").Press
            Session.FindById("wnd[1]/tbar[0]/btn[8]").Press
    When your script is completed call
    EnableScreenUpdating
    Of course People can get nervous at it seems like nothing happen. May they kill this session as they think it´s crashed.
    Hope this help.
    Br, Holger

  • How to generate a Spool based on output type in SAP Script

    Hi all,
    Is it possible to generate a spool based on output type for a SAP Script (without explicitly trigger in Tcode VF02 and selecting output type from there )
    Actually a background job will be scheduled to process output types selected in VF01 / VF02
    When output type is ZABC in the background a work flow is called pdf is generated

    Any suggestions please

  • Sap script '' how to create table frame in sap script"""

    i have some problem in sap script''  how to create table frame in sap script"""

    Hi,
    you can use BOX command..
    Syntax
    /: BOX [XPOS] [YPOS] [WIDTH] [HEIGHT] [FRAME] [INTENSITY]
    Effect: draws a box of the specified size at the specified position.
    Parameters: For each of XPOS, YPOS, WIDTH, HEIGHT and FRAME both a measurement and a unit of measurement must be specified. The INTENSITY parameter should be specified as a percentage between 0 and 100.
    1. XPOS, YPOS: Upper left corner of the box, relative to the values of the POSITION command.
    Default: Values specified in the POSITION command.
    The following calculation is performed internally to determine the absolute output position of a box on the page:
    X(abs) = XORIGIN + XPOS
    Y(abs) = YORIGIN + YPOS
    2. WIDTH: Width of the box. Default: WIDTH value of the SIZE command.
    3. HEIGHT: Height of the box. Default: HEIGHT value of the SIZE command.
    4. FRAME: Thickness of frame.
    Default: 0 (no frame).
    5. INTENSITY: Grayscale of box contents as % .
    Default: 100 (full black)
    Measurements: Decimal numbers must be specified as literal values (like ABAP numeric constants) by being enclosed in inverted commas. The period should be used as the decimal point character. See also the examples listed below.
    Units of measurement: The following units of measurement may be used:
    • TW (twip)
    • PT (point)
    • IN (inch)
    • MM (millimeter)
    • CM (centimeter)
    • LN (line)
    • CH (character).
    The following conversion factors apply:
    • 1 TW = 1/20 PT
    • 1 PT = 1/72 IN
    • 1 IN = 2.54 CM
    • 1 CM = 10 MM
    • 1 CH = height of a character relative to the CPI specification in the layout set header
    • 1 LN = height of a line relative to the LPI specification in the layout set header
    /: BOX FRAME 10 TW
    Draws a frame around the current window with a frame thickness of 10 TW (= 0.5 PT).
    /: BOX INTENSITY 10
    Fills the window background with shadowing having a gray scale of 10 %.
    /: BOX HEIGHT 0 TW FRAME 10 TW
    Draws a horizontal line across the complete top edge of the window.
    /: BOX WIDTH 0 TW FRAME 10 TW
    Draws a vertical line along the complete height of the left hand edge of the window.
    /: BOX WIDTH '17.5' CM HEIGHT 1 CM FRAME 10 TW INTENSITY 15
    /: BOX WIDTH '17.5' CM HEIGHT '13.5' CM FRAME 10 TW
    /: BOX XPOS '10.0' CM WIDTH 0 TW HEIGHT '13.5' CM FRAME 10 TW
    /: BOX XPOS '13.5' CM WIDTH 0 TW HEIGHT '13.5' CM FRAME 10 TW
    Draws two rectangles and two lines to construct a table of three columns with a highlighted heading section.
    check the fallowing link also
    http://help.sap.com/saphelp_40b/helpdata/en/d1/803293454211d189710000e8322d00/content.htm
    Mark the points if u find it useful...
    Regards,
    Omkar.

  • Payment Advice Sap Script 'F110_IN_AVIS' T-code F110

    Hi,
    I am using the standard SAP Script form 'F110_IN_AVIS' for generating Payment Advice through transaction code F110. F110 generates a spool request for the Payment Advice.
    Now since a SAP Script output is coming in spool request. It means the whole process is running in background and I am not able to debug the SAP Script 'F110_IN_AVIS'.
    Please tell me is their any way by which I can generate a direct printout without a Spool Request so that I can debug the SAP Script.
    Regards,
    Nitin

    if you want the print out,
    you have to modify the OPTIONS...values...maybe as of now the program is not issuing the printout they passing the parametes only for spool.
    wht u can do is set the "Print parameters, print immediately" to X..
    ITCPO-TDIMMED = 'X'.
    CALL FUNCTION 'OPEN_FORM'
      EXPORTING
        DEVICE   = 'PRINTER'
        DIALOG   = ''
        FORM     = '............'
        LANGUAGE = SY-LANGU
        <b>OPTIONS  = ITCPO</b>
      EXCEPTIONS
        CANCELED = 1
        DEVICE   = 2
        FORM     = 3
        OPTIONS  = 4
        UNCLOSED = 5
        OTHERS   = 6.
    I hope it helps you

  • Where do we find a box command in sap script

    Hai,
    where do we find a box command in sap script, how to create box command ,
    its urgent help out

    Hi
    SAPScripts
    POSITION WINDOW
    SIZE WIDTH '160' MM HEIGHT '140' MM
    BOX FRAME 10 TW
    Box
    BOX HEIGHT '11' MM WIDTH '160' MM FRAME 10 TW INTENSITY 35
    linessssssss
    BOX XPOS '20' MM WIDTH 0 TW HEIGHT '140' MM FRAME 10 TW
    BOX XPOS '45' MM WIDTH 0 TW HEIGHT '140' MM FRAME 10 TW
    BOX XPOS '80' MM WIDTH 0 TW HEIGHT '140' MM FRAME 10 TW
    BOX XPOS '120' MM WIDTH 0 TW HEIGHT '140' MM FRAME 10 TW
    Boxes, Lines, Shading: BOX, POSITION, SIZE
    Use the BOX, POSITION, and SIZE commands for drawing boxes, lines, and shading to print particular windows within a form or passages of text within a window in a frame or with shading.
    The SAP printer drivers that are based on page-oriented printers (the HP LaserJet driver HPL2, the Postscript driver POST, the Kyocera Prescribe driver PRES) employ these commands when printing. Line printers and page-oriented printers not supported in the standard ignore these commands. You can view the resulting printer output in the SAPscript print preview.
    Syntax:
    /: BOX [XPOS] [YPOS] [WIDTH] [HEIGHT] [FRAME] [INTENSITY]
    /: POSITION [XORIGIN] [YORIGIN] [WINDOW] [PAGE]
    /: SIZE [WIDTH] [HEIGHT] [WINDOW] [PAGE]
    BOX Command
    Syntax
    /: BOX [XPOS] [YPOS] [WIDTH] [HEIGHT] [FRAME] [INTENSITY]
    Effect: draws a box of the specified size at the specified position.
    Parameters: For each of XPOS, YPOS, WIDTH, HEIGHT, and FRAME, you must specify both a measurement and a unit of measurement. Specify the INTENSITY parameter as a percentage between 0 and 100.
    XPOS, YPOS
    Upper left corner of the box, relative to the values of the POSITION command.
    Default: Values specified in the POSITION command.
    The following calculation is performed internally to determine the absolute output position of a box on the page:
    X(abs) = XORIGIN + XPOS
    Y(abs) = YORIGIN + YPOS
    WIDTH
    Width of the box. Default: WIDTH value of the SIZE command.
    HEIGHT
    Height of the box. Default: HEIGHT value of the SIZE command.
    FRAME
    Thickness of frame.
    Default: 0 (no frame).
    INTENSITY
    Grayscale of box contents as %.
    Default: 100 (full black)
    Measurements: You must specify decimal numbers as literal values (like ABAP numeric constants) by enclosing them in inverted commas. Use the period as the decimal point character. See also the examples listed below.
    Units of measurement: The following units of measurement may be used:
    TW (twip)
    PT (point)
    IN (inch)
    MM (millimeter)
    CM (centimeter)
    LN (line)
    CH (character).
    The following conversion factors apply:
    1 TW = 1/20 PT
    1 PT = 1/72 IN
    1 IN = 2.54 CM
    1 CM = 10 MM
    1 CH = height of a character relative to the CPI specification in the form header
    1 LN = height of a line relative to the LPI specification in the form header
    /: BOX FRAME 10 TW
    Draws a frame around the current window with a frame thickness of 10 TW (= 0.5 PT).
    /: BOX INTENSITY 10
    Fills the window background with shading having a gray scale of 10 %.
    /: BOX HEIGHT 0 TW FRAME 10 TW
    Draws a horizontal line across the complete top edge of the window.
    /: BOX WIDTH 0 TW FRAME 10 TW
    Draws a vertical line along the complete height of the left hand edge of the window.
    /: BOX WIDTH '17.5' CM HEIGHT 1 CM FRAME 10 TW INTENSITY 15
    /: BOX WIDTH '17.5' CM HEIGHT '13.5' CM FRAME 10 TW
    /: BOX XPOS '10.0' CM WIDTH 0 TW HEIGHT '13.5' CM FRAME 10 TW
    /: BOX XPOS '13.5' CM WIDTH 0 TW HEIGHT '13.5' CM FRAME 10 TW
    Draws two rectangles and two lines to construct a table of three columns with a highlighted heading section.
    POSITION Command
    Syntax
    /: POSITION [XORIGIN] [YORIGIN] [WINDOW] [PAGE]
    Effect: Sets the origin for the coordinate system used by the XPOS and YPOS parameters of the BOX command. When a window is first started, the POSITION value is set to refer to the upper left corner of the window (default setting).
    Parameters: If a parameter value does not have a leading sign, then its value is interpreted as an absolute value, in other words, as a value that specifies an offset from the upper left corner of the output page. If a parameter value is specified with a leading sign, then the new value of the parameter is calculated relative to the old value. If one of the parameter specifications is missing, then no change is made to this parameter.
    XORIGIN, YORIGIN
    Origin of the coordinate system.
    WINDOW
    Sets the values for the left and upper edges to match those of the current window (default setting).
    PAGE
    Sets the values for the left and upper edges to match those of the current output page (XORIGIN = 0 cm, YORIGIN = 0 cm).
    /: POSITION WINDOW
    Sets the origin for the coordinate system to the upper left corner of the window.
    /: POSITION XORIGIN 2 CM YORIGIN '2.5 CM'
    Sets the origin for the coordinate system to a point 2 cm from the left edge and 2.5 cm from the upper edge of the output page.
    /: POSITION XORIGIN '-1.5' CM YORIGIN -1 CM
    Shifts the origin for the coordinates 1.5 cm to the left and 1 cm up.
    SIZE Command
    Syntax
    /: SIZE [WIDTH] [HEIGHT] [WINDOW] [PAGE]
    Effect: Sets the values of the WIDTH and HEIGHT parameters used in the BOX command. When a window is first started, the SIZE value is set to the same values as the window itself (default setting).
    Parameters: If one of the parameter specifications is missing, then no change is made to the current value of this parameter. If a parameter value does not have a leading sign, then its value is interpreted as an absolute value. If a parameter value is specified with a leading sign, then the new value of the parameter is calculated relative to the old value.
    WIDTH, HEIGHT
    Dimensions of the rectangle or line.
    WINDOW
    Sets the values for the width and height to the values of the current window (default setting).
    PAGE
    Sets the values for the width and height to the values of the current output page.
    /: SIZE WINDOW
    Sets WIDTH and HEIGHT to the current window dimensions.
    /: SIZE WIDTH '3.5' CM HEIGHT '7.6' CM
    Sets WIDTH to 3.5 cm and HEIGHT to 7.6 cm.
    /: POSITION WINDOW
    /: POSITION XORIGIN -20 TW YORIGIN -20 TW
    /: SIZE WIDTH +40 TW HEIGHT +40 TW
    /: BOX FRAME 10 TW
    A frame is added to the current window. The edges of the frame extend beyond the edges of the window itself, so as to avoid obscuring the leading and trailing text characters.
    http://esnips.com/doc/1ff9f8e8-0a4c-42a7-8819-6e3ff9e7ab44/sapscripts.pdf
    http://esnips.com/doc/1e487f0c-8009-4ae1-9f9c-c07bd953dbfa/script-command.pdf
    http://esnips.com/doc/64d4eccb-e09b-48e1-9be9-e2818d73f074/faqss.pdf
    http://esnips.com/doc/cb7e39b4-3161-437f-bfc6-21e6a50e1b39/sscript.pdf
    http://esnips.com/doc/fced4d36-ba52-4df9-ab35-b3d194830bbf/symbols-in-scripts.pdf
    http://esnips.com/doc/b57e8989-ccf0-40d0-8992-8183be831030/sapscript-how-to-calculate-totals-and-subtotals.htm
    Regards
    anji

  • How to deal with Print Controls in SAP SCRIPT

    Hello All...
    I have two requirement in SAP SCRIPT for which I will need to use PRINT CONTROLS.
    1) To print a window with 90 degree rotation
    2) In the same window I wanted to have black background and white text printed on it.
    For rotating the text,
    Primary basis I created two Z print controls using SPAD.
    One to rotate with 90 and another to rotate with 0.
    In SPAD I assigned \e&a90P and \e&a0P respectivaly in device type.
    Now in sap script window I specified below commands...
    /:  PRINT-CONTROL Z90
    =  TEST
    /:  PRINT-CONTROL Z00
    but in the SP01 the text is still printing Horizontally...
    Also Is there any standard print controls which set backgroud to black for specific window.
    and how to use that?
    Please help me to resolve this issue.
    Thanks in advance,
    Shweta

    Hi,
    Occassionally, when you make frequent changes to your SAPScript, the system can get out of sync.
    When you view the form, the old data get display without your changes. 
    This can be fixed by deleting the SAPScript LOAD with program RSTXDELL. 
    Hope it helps.
    Reward if helpful.
    Regards,
    Sipra

  • To find the Calling Program of an sap script

    Hi All,
    Can any body please let me know how to find the calling program ( main program ) of an SAP Script Form.
    Thanks and Regards,
    Rupesh

    Hi,
    if it's possible to create the form online (no background job), this works:
    From SE71 (Form painter), use menu Utilities-->activate debugger.
    Then start the program creating the SAPscript form.
    As soon as form processing starts, you are inside the SAPscript debugger. At this point, enter /h in command line to activate ABAP debugger. Continue to get into abap debugging. In ABAP debugger, use button 'calls' to see the call stack. The program at the bottom is the starting point, this or one of the more upwards program triggers the form.
    Hope this helps.
    regards,
    C.

  • Vertical Printing in SAP Script,

    Dear Friends,
    I have one requirement in SAP Script.
    I need to print Fixed Text in SAPScript but Vertical .
    Could anybody help me on this issue.
    Regrads
    Vijay

    hI
    PCL5 commands are specific to HP printers. So you need to find out the exact printer control language for your Datamax printer becoz even if you follow exactly the same as the steps below, you may not be able to get your desired output, becoz your printer may not understand PCL5 commmands.
    Note: The steps illustrated below are what I did for the HP printer that I used. Caution: If you try to use it on other printers, be prepared for cases like infinite loop- the printer may keep on churning out pages of unreadable characters. Also,you won't be able to see the effect in Print Preview because print commands will only be effected during the actual printing.
    I have used the PCL5 commands from this document: http://h20000.www2.hp.com/bc/docs/support/SupportManual/bpl13210/bpl13210.pdf (refer to P79)
    1/ Go to T-code: SPAD > Full administration > Device Type tab > Display Print controls
    2/ Change to Edit mode > Click on Create icon > create a Print Control say ZR090, add the Comment > Check 'Use in SAPscript Drivers', 'Use by SAP' > Save it
    3/ Go to T-code: SPAD > Full administration > Device Type tab > Choose your Device Type: say HPLJ4 (it is recommended that you copy the Standard Device Type to a new Device Type ZHPLJ4 so that future upgrades will not affect your Device Type.) > Display. (Do select the Device Type of your printer, since I am using HP 4000 series, I chose HPLJ4)
    4/ Change to Edit Mode > Print Control tab > Click the Standard Print Controls button on the Application toolbar > Put cursor on the newly created Print Control name in Step 1 and hit the Choose icon on the Application toolbar. The name should appear right at the bottom of the Print Control list. For that Print Control name, select radiobutton for 'Direct', and 'Converted' and the control character sequence is: \e&a90P (if you need a 90 degrees rotation), \e&a0P (for 0 degree), \e&a180P (for 180 degrees), and \e&a270P (for 270 degrees) > Save it. (These are the PCL5 commands specific to HP prnters)
    5/ Note: You need to create another Print Control for a 0 degrees rotation to switch back to the normal printing orientation after printing your rotated text. So repeat Step 2 and Step 4 for a 0 degrees rotation
    6/ In your smartform, Create a Command before the Text you want to rotate (Right Click on the Node > Create > Flow Logic > Command > Under Generate Attributes tab > Output Options > Include Printer Control > click the Search Help and find the Print Control ZR090 which will rotate everything after this Command to 90 degrees.
    7/ After rotating the part of text, if you want to rotate it back to the normal printing direction, insert another Command as in Step 6, but choose the Print Control for the 0 degrees.
    8/ Print your smartform to see if that is your desired output.
    Note: from my trial-and-errors, exploration and testing, I feel in my opinion, it might not really be worth the while to work on this. Because it needs alot of trials-and-errors and print commands are very specific to the printers (so if client changes the printer, your smartform may be rendered useless unless it uses the same Printer Control Language). Further, I have another problem with this. Even if you manage to rotate the text successfully, the position of the text may not be want you want (becoz of what the command tries to do) . Then you have to take into account the position in the designing of the form.
    So here is what I suggest, if you really want to use Printer Controls, search the internet for equivalent Printer Control Language for your Datamax printer (Note that even if you find, the way to use may be different from the above Steps. For eg. for Zebra Printers, the way to rotate text is different as shown in OSS Note 750772).
    Alternatives:
    1/ Or you could create a bitmap picture with the rotated text, like wat many have suggested
    2/ Find a font type that is able to change the words into a vertical orientation (there are upside-down fonts for a 180 degrees rotation, so you might want to do a search for a font that meets your requirement) and then upload to SAP.
    3/ The last one which might be more viable is to use Adobe Interactive Forms. A colleague told me that one is able to change orientation of text in it (I have not tried it before) but you can do some exploration b4 commiting to using it. You don't have to output to PDF to use it. Normal printing is also possible. The T-Code for this is: SFP (type 'S*' for SAP examples, do an exploration on Layout tab, maybe it can provide a new alternative).

  • Disadvantage of Smartform and Advantages of SAP script

    Good day Gurus.,,
    Can anyone please tell me the Advantages of SAP Script over Smartforms and
    Disadvantages of Smartforms over SAP script.
    Also is there any special scenario where only sapscript could be used but not Smartforms.
    Please enlighten me....
    Many thanks

    hi,
    Smartforms are came into picture in 4.6 version to overcome the disadvantages of scripts.
    Disadvantages of Scripts
    1.scripts are client dependent.
    2.we can't add colors in scripts.
    3.It is paragraph dependent.
    4.In this  main window is compulsory.
    5.mutiple page formats are not availble.
    6.we can't add background pictures.
    Adavantages of smartforms
    smartforms are advanced versions of sap scripts,
    1.smartforms are client independent.
    2.we can add colors in smartforms.
    3.It is not a paragraph dependent.
    4.In this  main window is not compulsory.
    5.mutiple page formats are possible.
    6.we can add background pictures.
    7. it will generate one function module when activating it.
    8. total code can be written in smartforms itself.
    sap scripts used to use in previous versions if they dont upgrate current version of sap then they have to use sap scripts because smartforms are not available in the previous versions.

  • SAP Script link to TIFF

    Hi All
    I need to find out where the link lies between SAP Script Form HR_ES_I190_0031 and the background TIFF image? I need the TIFF image name. Currently we have the form nicely printed in DEV, but in QA it has incorrect background image?
    If I understand correct, program RSTXLDMC can be used to upload a TIFF image, but I don't find the link between this and the SAP Script Form. Now I have to reverse the process, so I need the link and then I need to retransport the TIFF and link to fix the "wrong background image" for my form.
    Please advise. Thank you and best regards,
    Adrian

    Usually, I think this would be in a macro.  These are stored in standard texts (SO10), named like: ZHEX-MACRO-xxxxx ID ST LANGUAGE EN, etc.  We can transport standard texts via a standard SAP program, but I don't know if these can be transported (one would expect that they can be).

  • Question concerning sap script

    Hi all experts! I have a question concerning sap script
    First some background information:
    I’ve created a sap script  that is called from a function module and from an executable program,  when I run the executable program the sap script work fine, but when I run the function module, all the variables in the sap script don’t have value
    In the function module the variables are defined in the top include
    I don’t know why these variables don’t take his value from the function module
    Any ideas?
    Thanks in advance.
    Message was edited by: Gerardo hernandez

    I think that sapscript expects its variables to be in the program which calls the fm <b>by default</b>. When you test via SE37 the framework itself is the calling program and it's unlikely that it will have a variable named kunnr-name1.
    To over-ride this default, inside your fm pass the 'options' parameter(type itcpo) to 'open_form' and set the 'tdprogram' value to sy-repid in the function module.
    I have tested this in my own environemnt and initially got the same error as you. When I set the tdprogram variable it started working!

Maybe you are looking for

  • Error 1003 when building exe

    Hi all, I saw a couple of thread of other people here having the same "1003 error" when trying to build an exe with LV 7.1.1 The exact text error is : Error 1003 occurred at Open VI Reference in Dist Copy Non-VI Files.vi->Dist Build LLB Image.vi->Dis

  • Who you going to call????

    51 hours later...still waiting... I am an At&T customer for 5 years trying still to get activiated..in a series of phone calls.. the second csr (idiot) asked me for my order #, i stated i didn't have one because I am already a customer..he informed m

  • Error to IDOC Sender

    Dear Experts, I have a requirement to send error information back to the IDOC Sender. The scenario is IDOC --> PI --> TargetSystem (ASYNCHRONOUS). If there is an error in processing within SAP PI, then the error should be propagated to the SAP system

  • Uploading data in to info cube.

    Hi I am new to APO. I was able to create infocube and all that stuff. but was not able to upload data in to info cube, Can some one explain me the process of uploading data in to info cube. Regards Deepu

  • HR Professional Landing Page not appearing

    Hi, We have three system : 1. ECC Backend System 2. Separate Gateway System 3. Web Dispatcher 1. Backend System : Activate all the services as mentioned in various forumns and HR Renewal Administrative Guide. 2. Gateway : Activate OData Services in G