Problem in printing the box in scripts

Hi all,
         I have created a box in main window. i have to create one horizontal line and four vertical lines in that box. for that on i have written the code as given below.But here the problem is it draw only one vertical line but i need four lines.pls check the below code and help me out.............
POSITION WINDOW
POSITION XORIGIN '8.5' MM YORIGIN '5' MM
BOX WIDTH '17' CM HEIGHT '2' CM FRAME 20 TW INTENSITY 20
BOX WIDTH '17' CM HEIGHT '10' CM FRAME 20 TW
BOX XPOS '0' CM  WIDTH 0 TW HEIGHT '12' CM
BOX XPOS '4.25' CM WIDTH 0 TW HEIGHT '10' CM FRAME 10 TW
BOX XPOS '8.5' CM WIDHT 0 TW HEIGHT '10' CM FRAME 10 TW
BOX XPOS '12.75' CM  WIDHT 0 TW HEIGHT '10' CM FRAME 10 TW
BOX XPOS '17' CM WIDHT 0 TW HEIGHT '10' CM FRAME 10 TW
Thanks & Regards.
Laxman.P
B'lore

Hi,
POSITION WINDOW
POSITION XORIGIN '8.5' MM YORIGIN '5' MM
BOX WIDTH '17' CM HEIGHT '2' CM FRAME 20 TW INTENSITY 20
BOX WIDTH '17' CM HEIGHT '10' CM FRAME 20 TW
BOX XPOS '0' CM WIDTH 0 TW HEIGHT '12' CM
BOX XPOS '4.25' CM WIDTH 0 TW HEIGHT '10' CM FRAME 10 TW
BOX XPOS '8.5' CM <b>WIDHT</b> 0 TW HEIGHT '10' CM FRAME 10 TW
BOX XPOS '12.75' CM <b>WIDHT</b> 0 TW HEIGHT '10' CM FRAME 10 TW
BOX XPOS '17' CM <b>WIDHT</b> 0 TW HEIGHT '10' CM FRAME 10 TW
u entered the width spell wrongly.check it.
reward points if helpful.
Regards,
sudheer.

Similar Messages

  • Problem  in Printing the ALV list

    Hi,
       I have one problem with printing the ALV list. While printing the ALV list(thro Print Icon on application Tool bar) ,Fist page of my print out contains some other inforamtion.
      inforamtions included two tables
      first table  contains Sort Criteria, Ascdg, Descnd, Subtotal  columns.
      And second table contains Data statistics , number of
    columns.
    But from Second page onwards , my alv list printed correctly .
      How can i avoid the First page inforamtion and
          what is the Reason of coming like this?
    Thanks,
    Neptune.M

    I assume you are using function module Reuse_alv_grid_display or reuse_alv_list_display for ALV.
    If this is the case, there is a parameter called IS_PRINT that you need to supply while calling the function module.
    you can for exapmle declare
    data:
    printstruc type SLIS_PRINT_ALV.
    printstruc-NO_PRINT_LISTINFOS = 'X'.
    call function 'REUSE_ALV_GRID_DISPLAY'
      EXPORTING
    IS_PRINT = printstruc
    There are many other flags in is_print structures that you can use to manipulate the printing.
    Cheers!

  • Problem with Printing the Billing date...

    Hi Experts...
    Here im facing the problem in printing the billing date.
    The scenario is as follows.
    The posting date of Billing is 10.10.2008
      The document date of Billing is also 10.10.2008.
    At the time of printing the Billing document it is taking another date otherthan 10.10.2008,where it should be 10.10.2008.
    What modifications should i do to rectify the problem.
    Please advice.
    Regards,
    Y P.

    Prasad,
    Ask your ABAPer do debug and find out what date (Table-Field) is used in the Invoice Output program. You will know the reason and if you think that the date being used is incorrect, you can ask your ABAPer to change it to VBRK-FKDAT which is the billing date.
    Chandan

  • I have a Problem in print the long description data through EDI.

    I have a Problem in print the long description data through EDI:Actually we want to print the long description data through EDI, but it not handling our huge long description data. Here is the example of that>We can print the first two lines into EDI output, but it is failing to print the below text: 
    <B>EPSON, TM-U590 Series: </B> Reliable 88 column slip printer. Operator friendly dot matrix impact printing. Ideal for hotel, bank, restaurant and many more applications .<br><BR> Includes: Printer, Black ribbon & a Connect-It Interface. Power Supply & interface cable sold separately. All printers are RoHS compliant & have a standard 1 year depot warranty. <BR> <BR>
       -------------------------------------Failing to print this lines------------------------------------------------------------------
    <b>COLORS:</b> Epson Cool White (ECW) Only<BR><BR><B><FONT COLOR=#FF0000#>Click links below for helpful Information</FONT><b><br><table border="0" bordercolor="" style="" width="100%" cellpadding="5" cellspacing="5"><tr><td><FONT SIZE="2"><CENTER><A HREF="www.sample.com"f.2605" target="_blank"><b>Spec Sheet</b></a></CENTER></FONT></td><td><FONT SIZE="2"><CENTER><A HREF="www.sample.com"f.2606" target="_blank"><b>MSRP Price List</b></a></CENTER></FONT></td><TD><FONT SIZE="2"><CENTER><A HREF="www.sample.com"f.2868" target="_blank"><b>Product Information Guide</b></a></CENTER></FONT></TD></TR><TR><td><FONT SIZE="2" COLOR=#0000FF><B>Warranty Information</B></FONT></td></tr><Tr><td><FONT SIZE="2"><CENTER><A HREF="www.sample.com"f.2554" target="_blank"><b>Depot Warranty</b></a></CENTER></FONT></td><td><FONT SIZE="2"><CENTER><A HREF="www.sample.com"f.2555" target="_blank"><b>Spare In the Air Warranty</b></a></CENTER></FONT></td><td></td></tr></table><br>
    Please provide some useful thoughts on this EDI issue.
    Thanks
    Ameer

    Try using the FM:
    ENQUE_READ2
    Passing the follwing values:
    GNAME --> VBAK (Sales Order header table)
    GARG   --> The lock argument
                       (This will be a combination of client number anb Sales Order No.
                        Eg: '3001210000054' where the first three digit i,e 300 is the client No
                       and 1210000054 is the sales order no.)
    Regards,
    Firoz.

  • Problem in Printing the values in SAP Script

    Hi,
    I have to print the material, description, quantity and value in the invoice.. the problem i face is.. the variables which is of size 40 characters. only prints the data and gets trimmed because of which the data displayed in the invoice not in order.
    can any one tell me how to find the length of the variable or is there any way to protect the variable from getting trimmed.
    Advance Thanks..
    Guhapriyan S

    Hi again,
    1. what problem are u facing ?
      (there is no sapscript symbol / system symbol
       for finding out the length )
      (In abap u can use strlen)
    2.  data and gets trimmed
       what is the meaning of it ?
    3. do u mean to say that  !
      ABCDEF                     123 45
      GEF                        123 45
      is getting pritned like
      ABCDEF 123 45  ?
      GEF  123 45
    4. If so , then use TABS
    5. This happens because SPACE
       is different in different varlues of
       ABCDEF and GEF !
    regards,
    amit m.
    Message was edited by: Amit Mittal

  • Problem in printing the output of a script.

    dear friends,
    I have a script program which is running fine and the it has generated the desired output in one page on the screen. But when i am transfering the output to the printer the same output is splitting into 3 pages and special character is printing in begining and ending of every line. In the first page It is printing the special character, in the second it is printing the first line output and in the third page rest of the output.
    In my script i have only the main window. i want the script output to be printed only in one page on the printer . Please help me with your suggestions.

    Sravan,
    Check ur printer as sometimes it so happens that the printers act up and spoil output...

  • Problem in printing the selected labels value in smartform-SD_PACKING.....

    Dear all,
    Iam trying to print the packing list using smarforms,
    T.Code - VL74 - After providing the input for the selection screen,
    eg. output_type - 0001.
         outbound.deliv - 80000834.
    In the "OUTPUT FROM HANDLING UNITS" screen, im getting the list of labels available for that selection.
    say for eg.
      HU         Ob Object key Out. Med Role Name 1        City            PkMtT PackMatls
    1000004002 01 0080000834 0001 1   WE   CALCADOS LTDA BENTO GONCALVES Z001  300026
      1000004003 01 0080000834 0001 1   WE   CALCADOS LTDA BENTO GONCALVES Z001  300026
    1000004005 01 0080000834 0001 1   WE   CALCADOS LTDA BENTO GONCALVES Z001  300026
    1000004006 01 0080000834 0001 1   WE   CALCADOS LTDA BENTO GONCALVES Z001  300026
    with the Selection check box attached to the first field, when i
    select the first and second HUs, it should be passed to the
    driver program, but im getting only one HU value passed into the driver program.
    In the driver program my code goes like below,
    REPORT ZSDPACKDR LINE-COUNT 100 MESSAGE-ID VV.
    TABLES: VBCO3, TVST.
    INCLUDE ZPALIDATA_PL.
    INCLUDE RVADTABL.
    DATA: RETCODE LIKE SY-SUBRC,             "Returncode
           XSCREEN(1) TYPE C.                 "Ausgabe Printer/Screen
    Internal table for lips
    DATA: lips_wa TYPE lips.
    DATA: int_lips LIKE lips_wa OCCURS 0 WITH HEADER LINE.
    *&      Form  ENTRY
          text
         -->RETURN_CODE  text
         -->US_SCREEN    text
    FORM ENTRY USING RETURN_CODE US_SCREEN.
       CLEAR RETCODE.
       XSCREEN = US_SCREEN.
       PERFORM PROCESSING USING XSCREEN.
       IF RETCODE NE 0.
         RETURN_CODE = 1.
       ELSE.
         RETURN_CODE = 0.
       ENDIF.
    ENDFORM.                    "ENTRY
    FORM PROCESSING USING PROC_SCREEN.
       PERFORM GET_DATA.
       CHECK RETCODE = 0.
    ENDFORM.                    "PROCESSING
    FORM GET_DATA.
      REFRESH: LVBPLK, LVBPLA, int_lips.
      CLEAR: LVBPLK, LVBPLA, int_lips.
       DATA: FM_NAME TYPE RS38L_FNAM.
       VBCO3-VENUM = NAST-OBJKY.                                "00000.....
       VBCO3-SPRAS = NAST-SPRAS.      "D
       VBCO3-KUNDE = NAST-PARNR.      "KUNDE
       VBCO3-PARVW = NAST-PARVW.      "WE
       VBCO3-PACKD = 'X'.
       CALL FUNCTION 'SD_PACKING_PRINT_VIEW_SINGLE'
         EXPORTING
           COMWA                    = VBCO3
         IMPORTING
           VBPLK_WA                 = LVBPLK
           VBPLA_WA                 = LVBPLA
           VBADR_TVST               = LVBADR                    "n_916660
         TABLES
           VBPLP_TAB                = LVBPLP
         EXCEPTIONS
           SHIPPING_UNIT_NOT_UNIQUE = 1
           SHIPPING_UNIT_NOT_FOUND  = 2
           OTHERS                   = 3.
       IF SY-SUBRC NE 0.
         RETCODE = 1.
         PERFORM PROTOCOL_UPDATE.
       ENDIF.
    in the above coding, i used SD_PACKING_PRINT_VIEW_SINGLE', but i tried with SD_PACKING_PRINT_VIEW also, but no values getting loaded in the importing structures. if im doing anything wrong, pls correct me.
    *CALL FUNCTION 'SD_PACKING_PRINT_VIEW'
    EXPORTING
       COMWA                         = VBCO3
      AUFTRAG_NICHT_LESEN           = ' '
      EXPORTDATEN_NICHT_LESEN       = ' '
    IMPORTING
      VBPLA_WA                      =
    TABLES
       VBPLK_TAB                     = LVBPLK
       VBPLP_TAB                     = LVBPLP
       VBPLS_TAB                     = LVBPLS
    EXCEPTIONS
      OBJECT_NOT_FOUND              = 1
      OTHERS                        = 2
    *IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    *ENDIF.
    The problem is:
    For any of the above function call,
    The VBCO3 itself im getting only one label number, hence it is processing for only one, i want to know how to pass on the multiple
    label number to this function call ie, in VBC03.
    meaning i would like to know, in which internal table , i can get the list of all the selected HUs, so that i shall loop this function call inorder get the appropriate output.
    kindly help me to sort this issues.
    Points assured.
    regs,
    Raja

    Dear Srihari,
    I wrote above code in first label(now i deleted do-enddo) only.
    first i  am moving seven lebels data into seven wa's.
    after that reading the first record and moving another itab(for printing at main window i.e. 8 label).
    clearly, there is no space problem..because instead puttting all the required field i put only customer name.
    Now it is printing well in first page with 8 labels(main window) also.
    But in the second Page it displays only 7 labels and not printing rest of the labels.
    for example my itab has 20 records it displays 8 labels in first page &
    next 7 labels in second page and not print the rest of the 5 labels i.e. it is not calling third page(?).
    code..
    CLEAR : WA1, WA2, WA3, WA4, WA5, WA6, WA7.
    loop at it_final into wa_final FROM 1 TO 7.
      if sy-tabix = '1'.
        wa1 = wa_final.
      elseif sy-tabix = '2'.
        wa2 = wa_final.
      elseif sy-tabix = '3'.
        wa3 = wa_final.
      elseif sy-tabix = '4'.
        wa4 = wa_final.
      elseif sy-tabix = '5'.
        wa5 = wa_final.
      elseif sy-tabix = '6'.
        wa6 = wa_final.
      elseif sy-tabix = '7'.
        wa7 = wa_final.
      endif.
      endloop.
       delete it_final from 1 to 7. 
    **Push every 8th row if it_final in it_main
        read table it_final into wa_final index 1.  "deleting 8th, 16th,... records
        if sy-subrc = 0.
          append wa_final to it_main.
         else.
          exit.
        endif.
    *Delete the rows from it_main which are present in it_final
      loop at it_main into wa_final.
        delete table it_final from wa_final.  "deleting 8 th row from it_final.
      endloop.
    Edited by: anurag.radha on Jan 6, 2012 1:09 PM

  • Problem in printing the JTable values

    Dear Friends,
    I have to print the JTable values (on paper using print dialogue box).
    I'm using jtableObj.print to print the table values. But jtableObj.print takes more time to print the table values because it prints the values as a image(approximately 5 mins to print 10 pages).
    My code is ,
    boolean complete = tableObj.print(mode, header, footer, showPrintDialog, null, interactive,
                                  null);Could anyone please tell me how to reduce the time?
    Thanks in advance

    Hi again,
    1. what problem are u facing ?
      (there is no sapscript symbol / system symbol
       for finding out the length )
      (In abap u can use strlen)
    2.  data and gets trimmed
       what is the meaning of it ?
    3. do u mean to say that  !
      ABCDEF                     123 45
      GEF                        123 45
      is getting pritned like
      ABCDEF 123 45  ?
      GEF  123 45
    4. If so , then use TABS
    5. This happens because SPACE
       is different in different varlues of
       ABCDEF and GEF !
    regards,
    amit m.
    Message was edited by: Amit Mittal

  • Problem in Printing the work area

    Hi Everybody,
    I'm working in upgrade project.
    in 4.7 version, directly trying to print the work area and assign to some other fields.
    Eg: write: Mara.
    text = mara.
    but in 6.0, its not allowing to assign directly like this.
    Plz help me urgently. B'coz, we struck in middle.
    Thanks in advance.
    Regards,
    JaganMohan.

    Hi,
    basically the problem might be in the ecc 6.0 for the attributes of the program where u r writing it might be u checked the unicode check box if it so remove it and then try or else it is proiblem with the unicode in the ecc 6.0 system where u r working
    plzz reward if it is usefull
    plzz dont forget to reward...

  • Problem in printing the notification long text in tocde iw53.

    Hi All,
    When i try to print the notification long text through tcode "iw53", i get the following message
    "The margins of section 1 are set outside the printable area. Do you want to continue?"
    and if i give yes then, only the right side of the page gets printed.
    This happens only in the Quality and Production system, whereas in development system its working fine, so i think there is no problem with the printer settings.
    Do anyone have an idea why this happens only in quality and production system, and what might be the solution to overcome this?
    Thanks & Regards,
    Haritha.

    Hi ,
    Please  check your settings  on machine  which is set for printer  .
    Most printers cannot print all the way to the edge of the paper, because of physical limitations in the way that the printer handles paper.
    If you set your document margins or section margins closer to the edge of the paper than your printer is capable of printing
    1.Note the section number that is indicated in the error message.
    2.On the Edit menu, click Go To.
    3.In the Go to what box, click Section.
    4.In the Enter section number box, type the number of the section that appeared in the error message, click Go To, and then click Close.
    5.On the File menu, click Page Setup.
    6.On the Margins tab, click OK. Word displays the following message:
    One or more margins are set outside the printable area of the page. Choose the Fix button to have Word set the page margins within the appropriate range.
    7.Click Fix. This increases any margin in the nonprintable region to the minimum margin setting.
    Note If you are familiar with your printer's nonprintable regions, you can manually increase the Top, Bottom, Left, and Right margins to the minimum that is required.
    8.Click OK to close the Page Setup dialog box.
    regards
    Deepak.

  • Problem with printing graphics in SAP Script

    Hi,
    I am facing problem with printing of graphics in SAP Script. I uploaded a bitmap file from pc to se78. Then I inserted it in SAP script.
    I am able to view it in the printpreview as well as in the spool number. But it is not getting printed.
    Plese tell me the solution.
    Thanks,
    Srinivas

    You need to check your printer settings.Might be drivers are missing.

  • Printing check box in script side by side

    Hi All,
    I have a requirement like i have to print the check box in SAP script side by side like this
    1) check box   2) checkbox2
    3) check box3.
    And i have checked the sap symbols and character formats i am getting only the marked check boxes.
    how to get the unmarked one and how to place the check boxes side by side in SAP Script.
    Thanks in advance,
    Joe

    Check the following thread.
    link: [Checkbox in sap scripts;
    [check boxes in SAP SCRIPT  layout;

  • Problems with printing the text in JTextPane

    Hello
    I need to print the text in a text pane. It prints the first page of the text pane and it doesn't print the rest of the text. I don't know what the problem is.
    The code I am using, is below. I
    Thank you.
    LilyLay
    import java.awt.*;
    import javax.swing.*;
    import java.awt.print.*;
    public class PrintUtilities implements Printable {
    private Component componentToBePrinted;
    public static void printComponent(Component c) {
    new PrintUtilities(c).print();
    public PrintUtilities(Component componentToBePrinted) {
    this.componentToBePrinted = componentToBePrinted;
    public void print() {
    PrinterJob printJob = PrinterJob.getPrinterJob();
    printJob.setPrintable(this);
    if (printJob.printDialog())
    try {
    printJob.print();
    } catch(PrinterException pe) {
    System.out.println("Error printing: " + pe);
    public int print(Graphics g, PageFormat pageFormat, int pageIndex) {
    if (pageIndex > 0) {
    return(NO_SUCH_PAGE);
    } else {
    Graphics2D g2d = (Graphics2D)g;
    g2d.translate(pageFormat.getImageableX(), pageFormat.getImageableY());
    disableDoubleBuffering(componentToBePrinted);
    componentToBePrinted.paint(g2d);
    enableDoubleBuffering(componentToBePrinted);
    return(PAGE_EXISTS);
    public static void disableDoubleBuffering(Component c) {
    RepaintManager currentManager = RepaintManager.currentManager(c);
    currentManager.setDoubleBufferingEnabled(false);
    public static void enableDoubleBuffering(Component c) {
    RepaintManager currentManager = RepaintManager.currentManager(c);
    currentManager.setDoubleBufferingEnabled(true);

    public int print(Graphics g, PageFormat pageFormat, int pageIndex) {
    if (pageIndex > 0) {
    return(NO_SUCH_PAGE);
    } else {if (pageIndex > 0) return (NO_SUCH_PAGE)
    prevents printing any more than the first page.
    change >0 to >= numPages
    Howard Amos

  • Problem with printing the code

    Hi ,
    I m having problems in printing my source code . I use emacs as a text editor. Is there any settings that need to be made before printing . Because when i try to print it didn't print my whole code. And when i try to print it from some where else it gives me error saying printer not found on LPT1. Is it something about the port or what. Plz tell me about it ASAP , because i need to submit my project.
    Bye
    Waiting for reply

    Hello gotchya11,
    If you are using a Unix environment, you can use the "lp" print command to send a document to printer. The "-d <device name>" flag is where you specify which printer to sent the document to. You can do a
    "man lp"
    from the command line to get more info on how to print. Perhaps you need to specify the destination where the file is to be printed. What you can do if you need to print the doc is to just copy and paste your code into a text editor and print from some other program if you are running Solaris CDE or Windows.
    Hope this helps,
    Ming
    Developer Technical Support
    http://www.sun.com/developers/support

  • Problem with printing the sub totals

    Hi,
    I am having a problem with smart forms in printing the line items of invoice.
    I need to print the sub total of each page and need to display the sub total in the footer, with the caption 'Balance C f/w'. It works fine in some cases.
    In some cases, the sub total is getting printed wrongly, because its adding the amount of the next page's first line item also. I checked the form page by printing SFSY-PAGE along with the line item's text. It's observed that, the vlaue of SFSY-PAGE for the first line item's  displayed in the second page is '1'. Due to this, the amount for this line item also is getting calculated with the sub total of the previous page.
    Could you please suggest a solution for this problem?
    Thanks & Regards,
    John

    Hi,
    In smartforms, in the general attributes of the FIRST page the Mode for the page counter should be 'Initialize counter' and for the NEXT page it should be 'Increase counter'.
    Please check this in your smartform.
    Regards,
    Ram

Maybe you are looking for

  • Is my ipod 1st generation? and reset utility

    Hi, I don't know much about ipods so i don't know which board to post this message in.. My ipod is a small shuffle, it's bright green and 1gig. Right, now on to the problem. When i connect my ipod to the computer to update, it says i need to download

  • Return order with reference to the Billing Document

    Hi All, This is with reference to issue that when I create a Return order with reference to the Billing document I had one line item in the billing document say xxx of quantity  4  I had done the setting in the system messages V4 229 to convert the w

  • Trouble connecting wirelessly to existing non-Apple router

    Existing home wireless router (Motorola WR850G) is configured with "WPA-PSK" as Enabled, WPA Encryption set as "TKIP" and there is a WPA Pass Phrase (password) set that I know. I can connect just fine w/ my MacBook running Mac OS 10.4.x, but just got

  • Bitwise shift in ABAP?

    Hi all, How can I shif data bitwise in SAP? Is it possible? Best Regards Marcin Cholewczuk

  • Database is UP- But OEM says DATABASE status is currently unavailable

    If anybody can help me why this message occurs when i open oem. although the database is up and running and i am making changes to it through sqlplus