Box in a main window in sapscript

Hello Forum!
In my sapscript there's a window MAIN with BOX FRAME. This window is in a first and next page, but the box only appears in the first page, not in the others.
Anybody knows what I shound be change? I need the box always appears (in all pages).
Thanks in advance!!!
Edited by: Pablo Ariel Vicente on Feb 14, 2008 3:57 PM

Hi!
Try specifying all the parameters (XPOS, YPOS, HEIGHT, WIDTH) in the BOX command. This may resolve the problem.
Cheers!

Similar Messages

  • Box in a main window  with a header text in it

    Hi Abapers,
    I am new to sapscripts and have got an issue where a box  in the main window of the first page is not getting printed in the next page when the data is flowing to the next page .
    below is the code in the main window.
    BOX FRAME 10 TW HEIGHT 7 MM
    BOX YPOS 142 MM FRAME 10 TW HEIGHT 0 MM
    *BOX YPOS 26 MM FRAME 10 TW HEIGHT 10 MM
    *HEADING_TEXT
        Description                                              Value in &bkpf-waers&
    i have the same code in the main  window of the next page also
    what may be the problem here ?
    Thanks in advance .

    Hi Sai Ram,
    There is no condition palced before the box statement.
    The next page also has a main window designed similar to the first page and an additional address window and a footer .
    This page is printed as the last page and contains the page  as required , the problem is that all the other  pages which contain the data flowing from the first page donot contain the box header as desired .
    Please let me know if the requirement is not clear ,  i will try and put it in a better way .

  • Printing digital signature in main window of sapscript at some location

    Hi,
    I want to print graphics in main window in sapscript. I want to position the graphic ( signature) at some position (preferably right aligned ). How to do that? Can we do that in .bmp graphics. In case we use .tiff format , how to do it. Tell me the steps involved as I have never used RSTXLDMC to upload .tiff files.
    Regards,
    D.Mallick

    Hi
    Just open rstxldmc in se38 and execute.
    It will gve you a screen. You need to fill the first two blocks only. Remaining are optional.
    File Name :  Give pathe+name of your .tiff file
    Type         : Bcol for colour     and bmon for mono
    Resolution      : say 75 (as you wish)
    Second block
       Text name :   only replace astrick by your name ZHEX-MACRO- has to be there.
    Actually  this program will convert .tiff file into text file.
    you can include this text file in any window. Text name is the name of the text file generated
    no more changes
    Now execute.
    Now you can use this text file  ZHEX-MACRO-name   in any windoow
    If useful, give me points
    cheers
    vamshi

  • Box in MAIN window of sapscript keeps misaligning...

    Hello Experts,
    I am currently modifying a sapscript and inside the MAIN window, there is a box command that 'boxes' a
    static text. But the problem is, the box misaligns since the number of line items is dynamic.
    So, how can I make the box command to just 'box' the static text correctly even though the line item is
    dynamic?

    HI,
    Declare the Box and Static text in the main window with a new text element after the text element of the line items . so it will print it in the end when all of the Line items are printed..
    (or)
    Just create another script with the BOX and the text you want inside the BOX. i.e. this becomes another script which is separate from the line items you are printing there.
    call this script in your driver program with start_form FM.
    REPORT  YTEST_SCRIPT.
    DATA:
      ITAB TYPE TABLE OF SFLIGHT,
      FS TYPE SFLIGHT.
    SELECT * FROM SFLIGHT INTO TABLE ITAB.
    CALL FUNCTION 'OPEN_FORM'
      EXPORTING
        FORM                              = 'ZSCRIPT_TEST'.
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    LOOP AT ITAB INTO FS.
      CALL FUNCTION 'WRITE_FORM'
        EXPORTING
          ELEMENT                        = 'TEST'
          WINDOW                         = 'MAIN'.
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDLOOP.
    CALL FUNCTION 'END_FORM'.      "---------->Ends the previous form
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL FUNCTION 'START_FORM'    "------------> Starts your new script with BOX and Static text
      EXPORTING
        FORM                   = 'ZSCRIPT_TEST1'.
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
        ELEMENT                        = 'TEST'
        WINDOW                         = 'MAIN'.
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL FUNCTION 'CLOSE_FORM'.
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    This will print the BOX and the Static text in a new page after the line items got printed..
    This will solve your issue...
    Thanks&Regards
    Sarves

  • Printing of Boxes dynamically in main window

    Is it possible to provide some conditions in SAPScript (form) to add boxes depending on the presence of different number of document numbers?i.e if there are 10 document numbers 10 boxes to be provided.Can this be handled in Main window of the script?

    Hi,
    You can hnadle this,
    You need to write a perform in the Script. and get the No of records which are printed in the main window according to that maintain 2 variables in that whcih we use the window size in the layout.
    in the Main windoe element, write as
    BOX WIDTH '1.2' CM HEIGHT <b>&HEIGHT&</b> CM FRAME 10 TW
    BOX WIDTH '9.5' CM HEIGHT &HEIGHT& CM FRAME 10 TW
    BOX WIDTH '11.5' CM HEIGHT &HEIGHT& CM FRAME 10 TW
    BOX WIDTH '13.5' CM HEIGHT &HEIGHT& CM FRAME 10 TW
    BOX WIDTH '15.9' CM HEIGHT &HEIGHT& CM FRAME 10 TW
    BOX WIDTH '19.1' CM HEIGHT &HEIGHT& CM FRAME 10 TW
    Height field should be in the TOP of the Driver program , i mean it should be a global field. and maintain this Height according to your requirment.

  • How to print text into different boxes in a main window

    Hi,
         I divided the main window into 5 windows using boxes.
         Now how can I print different data into each of these boxes.
         The data comes from a print program .
      Please suggest.

    Hi
    In smartforms you can create a template object or a table object and set the boxes.
    after you'll create the text object into the templeate and set on which box the data will write.
    best regards
    Marco

  • Drawing Boxes in Script - main window

    hi,
    In script, in main window <u>after table line item datas</u>, i want to draw a box in which i will place some text. On drawing box, it appears on top of that window which i dont want, since it should be placed after item details.
    kapil.

    I do not know this is still relevant for You or not but here is the solution what I did:
    First of all I have to mention this requires SAP standard object modification. !!!
    1.Start SE80 and get into STXC function group.
    2.Select COP_RELATIVE_NUMBER subroutines and double click on that.
    3.Click on Edit button and Get SSCR  Object number from SAP.
    4.Change interface of the COP_RELATIVE_NUMBER subroutines extending it with TYPE parameters
    5.Change the first if Statement.
    6.Extend the Relative case section with a new WHEN '#'.
    7. Cange All COP_RELATIVE_NUMBER calls with new input parameter in CO_BOX, In CO_POSITION, In CO_SIZE.
    From now in Your SAP script You can call BOX statement like this:
    BOX XPOS ‘#10’ TW YPOS ‘#10’ TW  …..
    Will start drowing BOX from cursor current position plus 10 twip.
    Numbers after the # sign are optional.
    Solution works only with TW.
    form co_box.
    data: begin of bx,
            x    type i,
            y    type i,
            w    type i,
            h    type i,
            f    type i,
            i(3) type n,
          end of bx,
          next(10),
          xpos         type i,
          ypos         type i,
          is_relative like boolean.
      bx-x = ft-wpx.
      bx-y = ft-wpy.
      bx-w = ft-wpw.
      bx-h = ft-wph.
      while co-endline = false.
        perform cop_next using next 10.
        case next.
          when 'XPOS'.
    *{   REPLACE        ED1K902054                                        1
    *        perform cop_relative_number using is_relative xpos.
            perform cop_relative_number using is_relative xpos 'X'.
    *}   REPLACE
            add xpos to bx-x.
          when 'YPOS'.
    *{   REPLACE        ED1K902054                                        2
    *        perform cop_relative_number using is_relative ypos.
            perform cop_relative_number using is_relative ypos 'Y'.
    *}   REPLACE
            add ypos to bx-y.
          when 'WIDTH'.
            perform cop_number_value using bx-w.
          when 'HEIGHT'.
            perform cop_number_value using bx-h.
          when 'FRAME'.
            perform cop_number_value using bx-f.
          when 'INTENSITY'.
            perform cop_next using next 3.
            bx-i = next.
          when space. exit.
          when '.'.   exit.
          when others.
            perform cop_warning using subrc_param_unknown next.
        endcase.
      endwhile.
      perform cop_end.
      check co-error = false.
      perform pc_box using bx-x bx-y bx-w bx-h bx-f bx-i.
    endform.
    form co_position.
    data: begin of pos,
            x type i,
            y type i,
          end of pos,
          next(10),
          relative like boolean,
          xpos     type i,
          ypos     type i.
      pos-x = ft-wpx.
      pos-y = ft-wpy.
      while co-endline = false.
        perform cop_next using next 10.
        case next.
          when 'XORIGIN'.
    *{   REPLACE        ED1K902054                                        1
    *        perform cop_relative_number using relative xpos.
            perform cop_relative_number using relative xpos 'X'.
    *}   REPLACE
            if relative = true.
              add xpos to pos-x.
            else.
              pos-x = xpos.
            endif.
          when 'YORIGIN'.
    *{   REPLACE        ED1K902054                                        2
    *        perform cop_relative_number using relative ypos.
            perform cop_relative_number using relative ypos 'Y'.
    *}   REPLACE
            if relative = true.
              add ypos to pos-y.
            else.
              pos-y = ypos.
            endif.
          when 'WINDOW'.
            pos-x = ft-tdwlefts.
            pos-y = ft-tdwtops.
          when 'PAGE'.
            pos-x = 0.
            pos-y = 0.
          when space. exit.
          when '.'.   exit.
          when others.
            perform cop_warning using subrc_param_unknown next.
        endcase.
      endwhile.
      perform cop_end.
      check co-error = false.
      ft-wpx = pos-x.
      ft-wpy = pos-y.
    endform.
    form co_size.
    data: begin of dim,
            w type i,
            h type i,
          end of dim,
          next(10),
          relative     like boolean,
          width        type i,
          height       type i.
      dim-w = ft-wpw.
      dim-h = ft-wph.
      while co-endline = false.
        perform cop_next using next 10.
        case next.
          when 'WIDTH'.
    *{   REPLACE        ED1K902054                                        1
    *        perform cop_relative_number using relative width.
            perform cop_relative_number using relative width 'X'.
    *}   REPLACE
            if relative = true.
              add width to dim-w.
            else.
              dim-w = width.
            endif.
          when 'HEIGHT'.
    *{   REPLACE        ED1K902054                                        2
    *        perform cop_relative_number using relative height.
            perform cop_relative_number using relative height 'Y'.
    *}   REPLACE
            if relative = true.
              add height to dim-h.
            else.
              dim-h = height.
            endif.
          when 'WINDOW'.
            dim-w = ft-tdwwidths.
            dim-h = ft-tdwheights.
          when 'PAGE'.
            dim-w = form_header-tdpagwidth.
            dim-h = form_header-tdpagheigh.
          when space. exit.
          when '.'.   exit.
          when others.
            perform cop_warning using subrc_param_unknown next.
        endcase.
      endwhile.
      perform cop_end.
      check co-error = false.
      ft-wpw = dim-w.
      ft-wph = dim-h.
    endform.
    *{   REPLACE        ED1K902054                                        3
    *form cop_relative_number using is_relative like boolean
    *                               val         type i.
    form cop_relative_number using is_relative like boolean
                                   val         type i
                                   type        type c.
    *}   REPLACE
    data: num type f,
          next(10).
      clear is_relative.
      perform cop_next using next 10.
    *{   REPLACE        ED1K902054                                        1
    *  if next(1) cn '+-.0123456789 '.
      if next(1) cn '#+-.0123456789 '.
    *}   REPLACE
        perform cop_warning using subrc_param_unknown next.
        clear: is_relative, val.
        exit.
      else.
        if next+1(9) cn '.0123456789 '.
          perform cop_warning using subrc_param_unknown next.
          clear: is_relative, val.
          exit.
        else.
          case next(1).
            when '+'.
              is_relative = true.
              num = next+1(9).
            when '-'.
              is_relative = true.
              num = next+1(9).
              num = -1 * num.
    *{   INSERT         ED1K902054                                        2
            when '#'.
              is_relative = true.
              num = next+1(9).
              case type.
                when 'X'.
                  num = ( ft-line_width  - ft-rem_width ) + num.
                when 'Y'.
                  num = ( ft-fill_height - ft-rem_height ) + num.
              endcase.
    *}   INSERT
            when others.
              num = next.
          endcase.
        endif.
      endif.
      perform cop_num_val using num.
      val = num.
    endform.

  • How to do SUBTOTAL AND TOTAL in Main Window of SAPSCRIPT.

    Hello Friends,
    I am modifying standard SAPSCRIPT of packing slip. My client wants a subtotal and total in Main Window of Script for Eg. (They want Material Number wise Subtotal and finally Grandtotal at bottom in Main Window)
    Now i got stucked up here how to do it ?
    here is my sample code.
    LOOP AT XVBPLP WHERE VENUM = SHENR.
    IF XVBPLP-POSNR IS INITIAL.
        Versandelement
          PERFORM PACKING_TREE USING XVBPLP-UNVEL.
        ELSE.
        Lieferposition (Anteil)
          VBPLP = XVBPLP.
      CALL FUNCTION 'WRITE_FORM'
          EXPORTING
            ELEMENT = 'DELPOS'.                     "Main Window call
    clear vbplp.
    ENDLOOP.
    Pls guide me for the same.

    HI,
    For the Line items, put a ELEMENT in the Smartform, and you will call this with in the LOOP and ENDLOOP, so here with in the LOOP count the TOTAL value.
    then create new element after the Line item Element, and call this Element after the Line items prints,
    /E  LINE_ITEM
      &1& &2 & &3&     " This will be in the loop and you need to caliculate the totla here
    /E SUB_TOTAL.
    &SUb_TOTAL&  " After all the line items pritns then call this Element
    Regards
    Sudheer

  • How to get watermark in main window of SAPSCRIPT FORM

    can anyone help me to get watermark in a SAPSCRIPT FORMS
    in all pages

    Hi vinod,
    Thanks for reply I have tried but its not working.
    I have 2 main window one "main" and other "Main01". In the main 01 I have insert Bitmap command. I have other values to display  main.
    watermark is not coming second page.
    As u said I have given New-window the bitmap was not displaying.
    Please can u give details idea in this regards
    Thanks
    Regards
    Prashanth.

  • Main window of SAPScript versus Main window of smartform

    Hi,
    In case of Smartform we have one main window per page but in case of SAP Script we can have 0 to 99 Main window on one page.
    In case of smartform if the main window on one page gets filled then the remaining long text will jump on main window of second page.
    Following are my doubts:
    If I define three MAIN windows for three different kind of long texts on page one in SAP Script as follows:
    MAIN Window 1 -  Long text1
    Main Window 2 -  Long text2
    Main Window 3 -  Long text3
    1) If the long text 1 on MAIN window 1 of first page gets full does it automatically jump to Main Window 2 of first page ?
    2) If I don't want the long text on Main Window 1 to jump on Main window 2 on first page but on Main winodw 1 of next page , is it possible ? How do I do it ?
    Answers will be rewarded..
    Tushar.

    In SAPScripts if the long text is filled in the Main Window it will spill over into the same Main Window if it is defined in the next page. Text from one Main Window will nt spill over onto the text to different Main window.
    So as far as you questions are concerned:
    1. Not it does not automatically jump over into Main Window 2 from Main Window 1 on same page or next page.
    2. You just need to define the Same Main Window on the next page so that text gets jumped over to the next page. If it is possible just define the next page as the same page, so that you do not have to create a separate page and attach all the windows.
    Hope this helps you...
    Shashi Reddy

  • How to include a main window in sapscript

    hi all ,
        i just create a sapscript , and i found on sap online help that i could include main window up to 99 times ,  but i don't know how to include another main window.
    regards

    Hi Kevin,
    first Goto T-code SE71 create one test script in that design the layout in the normal method once your design is complete than there one option called EDIT
    in that EDIT-> window>creat-> vraible
                                                          main
    select the option main window placed this window according to u r requriment it will displayed as per logic.
    one imporatant point whn u place scond main window it take diffrent higt but it will not take differnt width so u can place scond main wiindow with differnt hight but not not in width.
    reward is usefull.
    thanks.

  • Drawing box in main window of sapscript form

    Hi all,
    I am developing a script for vendor balance confirmation report, in which I have to provide check boxes to allow the user to select an option.
    My problem is if I use the BOX statement to draw the box the alignment keeps changing when the size of vendor address changes.
    i.e the boxes moves up and down
    I have another reference script in which they used the following statement to draw the box <527>.
    Please suggest a way to use statement like this <527>
    Thanks,
    Rajan

    Try it as shown below for drawing dynamic boxes.
    Here the code works this way the YORIGIN is incremented by 0.6CM each time it is in the loop thus drawing tables dynamically.
    /E TAB
    /: POSITION XORIGIN '0.9' CM YORIGIN '+0.6' CM
    /: SIZE WIDTH '3.0' CM HEIGHT '0.6' CM
    /: BOX FRAME 10 TW.
    /: POSITION XORIGIN '3.9' CM
    /: SIZE WIDTH '7.3' CM HEIGHT '0.6' CM
    /: BOX FRAME 10 TW.
    /: POSITION XORIGIN '11.2' CM
    /: SIZE WIDTH '2.8' CM HEIGHT '0.6' CM
    /: BOX FRAME 10 TW.
    /: POSITION XORIGIN '14' CM
    /: SIZE WIDTH '2.6' CM HEIGHT '0.6' CM
    /: BOX FRAME 10 TW.
    /: POSITION XORIGIN '16.6' CM
    /: SIZE WIDTH '3.2' CM HEIGHT '0.6' CM
    /: BOX FRAME 10 TW
    P4 &X_VBAP-KWMENG(C)&,,&X_VBAP- ARKTX&,,&V_TOTALa&,,&V_TOTALb&,,&V_TOTALc&
    the driver program's piece of code.
    LOOP AT it_vbap INTO x_vbap.
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
    element = 'TAB'
    window = 'MAIN'
    EXCEPTIONS
    element = 1
    function = 2
    type = 3
    unopened = 4
    unstarted = 5
    window = 6
    bad_pageformat_for_print = 7
    spool_error = 8
    codepage = 9
    OTHERS = 10.
    IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    ENDLOOP.
    Regards,
    SaiRam

  • How to draw a box before Line Item in the Main Window  In SapScript

    Hi guys,
    I am trying to draw a box before Line items to be printed but it overwriting the Line Item can anyone help me in this.
    Thanks,
    Ramesh

    Hi ramesh,
    check this:
    /E   TOP
       plant,,status,,GROUP,,Profit,,Min.Size,,Max.Size
    /:   BOX FRAME 10 TW
    /:   BOX YPOS 2 CH HEIGHT 0 CM FRAME 10 TW
    /*   BOX XPOS 15 CH WIDTH 0 CM FRAME 10 TW
    /*   BOX XPOS 28 CH WIDTH 0 CM FRAME 10 TW
    /*   BOX XPOS 35 CH WIDTH 0 CM FRAME 10 TW
    /*   BOX XPOS 42 CH WIDTH 0 CM FRAME 10 TW
    /*   BOX XPOS 55 CH WIDTH 0 CM FRAME 10 TW
    /E   NEW
       &IT_SCRIPT-pstat(C)&,,&IT_SCRIPT-werks(C)&,,
    =    &IT_SCRIPT-EKGRP(C)&,,&IT_SCRIPT-PRCTR(C)&,,
    =    &IT_SCRIPT-MINLS(C)&,,&IT_SCRIPT-MAXLS(C)&
    /:   BOX FRAME 10 TW
    /:   BOX YPOS 2 CH HEIGHT 0 CM FRAME 10 TW
    /:   BOX XPOS 15 CH WIDTH 0 CM FRAME 10 TW
    /:   BOX XPOS 28 CH WIDTH 0 CM FRAME 10 TW
    /:   BOX XPOS 35 CH WIDTH 0 CM FRAME 10 TW
    /:   BOX XPOS 42 CH WIDTH 0 CM FRAME 10 TW
    /:   BOX XPOS 55 CH WIDTH 0 CM FRAME 10 TW
    the corresponding code in abap editor:
    CALL FUNCTION 'OPEN_FORM'
      EXPORTING
       APPLICATION                       = 'TX'
       ARCHIVE_INDEX                     =
       ARCHIVE_PARAMS                    =
       DEVICE                            = 'PRINTER'
       DIALOG                            = 'X'
        FORM                              = 'ZFINAL_13688'
        LANGUAGE                          = SY-LANGU
      EXCEPTIONS
        CANCELED                          = 1
        DEVICE                            = 2
        FORM                              = 3
        OPTIONS                           = 4
        UNCLOSED                          = 5
        MAIL_OPTIONS                      = 6
        ARCHIVE_ERROR                     = 7
        INVALID_FAX_NUMBER                = 8
        MORE_PARAMS_NEEDED_IN_BATCH       = 9
        SPOOL_ERROR                       = 10
        CODEPAGE                          = 11
        OTHERS                            = 12
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL FUNCTION 'WRITE_FORM'
                        EXPORTING
                          ELEMENT                        = 'TOP'
                        FUNCTION                       = 'SET'
                          TYPE                           = 'TOP'
                          WINDOW                         = 'MAIN'
                        EXCEPTIONS
                          ELEMENT                        = 1
                          FUNCTION                       = 2
                          TYPE                           = 3
                          UNOPENED                       = 4
                          UNSTARTED                      = 5
                          WINDOW                         = 6
                          BAD_PAGEFORMAT_FOR_PRINT       = 7
                          SPOOL_ERROR                    = 8
                          CODEPAGE                       = 9
                          OTHERS                         = 10
                       IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
                       ENDIF.
    LOOP AT IT_SCRIPT.
      CALL FUNCTION 'WRITE_FORM'
       EXPORTING
         ELEMENT                        = 'NEW'
        FUNCTION                       = 'SET'
         TYPE                           = 'BODY'
         WINDOW                         = 'MAIN'
       EXCEPTIONS
         ELEMENT                        = 1
         FUNCTION                       = 2
         TYPE                           = 3
         UNOPENED                       = 4
         UNSTARTED                      = 5
         WINDOW                         = 6
         BAD_PAGEFORMAT_FOR_PRINT       = 7
         SPOOL_ERROR                    = 8
         CODEPAGE                       = 9
         OTHERS                         = 10
      IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      ENDLOOP.
    CALL FUNCTION 'CLOSE_FORM'
    IMPORTING
      RESULT                         =
      RDI_RESULT                     =
    TABLES
      OTFDATA                        =
    EXCEPTIONS
       UNOPENED                       = 1
       BAD_PAGEFORMAT_FOR_PRINT       = 2
       SEND_ERROR                     = 3
       SPOOL_ERROR                    = 4
       CODEPAGE                       = 5
       OTHERS                         = 6
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    regards,
    keerthi.

  • Display of total in Main window in Sapscript

    Hello guys,
    can you please help me with the following?
    Working with Standard transaction F.2c standard program RFDUZI00 whereby I have to make a copy of the standard Sapscript F_DUZI_01 for a specific company code and modify its layout. Requirement is that:
    On the 1st page, the table should contain a maximum of 12 lines.
    On the following page (if several pages are required), the subtotals and the sum total cannot be displayed alone on the last page. If so, the 2 last lines of the previous page should be reported on the last page (and, of course, deleted from the page before the last page)
    Can  please anyone who's done smething similar help me to implement the above?

    Hi
    U can create a secondary window tyoe VAR placed in the footer of the oages when u print the subtotal or the total
    Max

  • Box in main window (sapscript) problem.

    Hi, all.
    I meet a weird problem....
    I have 2 pages form which have 2 same MAIN window and of course their source code is same one. But when I run the output form, I found that one of the page which main window's box is disappear, while the other page no problem.
    How come like this? Should be the box appear in both MAIN window, right? Hope someone can guide me.
    Thanks in advance.

    Boxes in the main window only get printed in the first page, unless you include them in an element and explicitly call the, But of course that's not the way to go.
    Every other window in the same page which has content that's not inside one element gets printed every page. So to solve your problem, declare another window (perhaps called BOXES) with the appropiate dimmensions and define in it the boxes you need. Replicate this BOXES in the other pages (if you use different page formats inside the sapscript) or leave it in the First page (if it's the only one in the sapscript). The boxes will now print in every page.

Maybe you are looking for

  • Adding/removing columns in jtable

    Hello everyone, i was looking for a way to add/remove columns from a jtable. The way i envision it working is... Initially have a predefined number of columns, of these only show the user say 5 of those on startup. but then provide a drop down (or li

  • In Planning Book ICON - Demand Planning

    Dear Expert In Planning book in DP There is a ICOn  Load Data (FOLDER) what for it is used , when i press the button the forecast data appear in the display which mean does it pulling the data from Live cache to planning book or from BI There is one

  • Name of the database tables where the error log (SM35) values are present

    Hi, I want to know the database tables which contains the values of the error log present in SM35. Plz help me out.

  • OBIEE 11G [nQSError: 17001] ERROR

    Hi Experts, I've installes OBIEE 11g & upgraded the existing OBIEE 10g RPD & WebCat to the 11g but when i try to see the dashboards & reports i get the following error. State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A genera

  • Homesharing library shows up on one computer but not the other

    So tonight I just connected my two computers, a Windows Vista and a Windows 7, with homesharing.  Although it worked at first, I turned off the computers, then returned to them, wanting to homeshare again.  I noticed the Vista connected but the 7 did