SAPscript MAIN Window ITEM TEXT Printing in NEXT PAGE

Hi,
I need to print the Item Text (Item Description or Column Description) if the Item Values (Lines) goes to the NEXT page in the Form. I have TEXT ELEMENTS defined for ITEM TEXT and ITEM VALUES in the MAIN Window. There is no issue with Printing the Item Text and Item Values in the FIRST Page. But in the NEXT page only when the Item values are printed (Item lines in excess of FIRST page), ITEM TEXT needs to be printed before printing the ITEM VALUES. If the FROM goes to NEXT page but not the Item values, then ITEM TEXT need not be printed in the NEXT page. The number of lines in the MAIN Window is different for both pages (FIRST & NEXT). I am not sure how to get this done. So, please provide me with a suitable solution to get this done. Appreciate your help in advance.
Thanks,
Kannan

Hi Kartik Tarla,
Thanks for your reply. Printing item lines between PROTECT / ENDPROTECT, will lead to Print all the line item together in one page. That is not I wanted. It the line items flows to NEXT page, I need to print the Item Header/Item Text. Otherwise, NEXT page should not have the Item Header.
Thanks.
Kannan

Similar Messages

  • Header window tiotle not printing on next page

    Hi !
    I have aa form in which I have a header table created inside the main window to print the titles of the line items, unit , unti price , Qty and totals. The next page has the similar format with the headerr table inside the main window, but unfortunately the header titles from the header title prints on the first page and when there are more items and the items are carried over to next page the titles dosent print on next page. Could nayone please tell me why the titles wouldnt be printing on the next page when the format is the same on teh next page also and it does have the texts to print there . Only the items are printing and not its titles.
    Thanks,

    Hi!
    Thanks for your reply. We are anyways getting the header in the first page its that I am not getting the header titles on second page and folowing pages only. I do have a next page in my smartforms and as per teh design both the pages has the header wondow but still it dosent print on second page but prints on first page. What I ahve done is created an extra window on my next page and created temp[late under that with the header titles and this prints it oin the second page now.
    Thanks

  • SapScript  'MAIN' Window without 'Text Element'

    Why is it, if we run 'MAIN' Window without defining 'Text Element'(/E), it displays the contents twice.. The same doesn't happens with other 'Variable' windows..

    Hi Main window is different from Var window.
    Var window will call only once .
    But main window it will call many times, it will go to Driver program and come back to populate the data.
    for Clear info debug and see.
    regards
    vijay

  • Smartform Error: Items not printed on next page

    Hi everyone,
    I am currently working on a Smartform for printing an Invoice. The problem is as follows:
    I have a First page and a Next Page. There is a Summary in the footer.
    If the items fit on the First page, then there is no problem. If there is space then the Summary is printed on the same page, if there is little space, then the Summary goes on to the Next page (Page Protection is applied).
    The problem arise when the items do no fit on the First Page. In this case, I get a weird error saying "Unexpected Error" and some Message 003. I can't understand what the problem is!
    I have various attachment pages as well and they are printed properly.
    Please help me crack this error at your own leisure!
    Thanks.
    Edited by: kishan P on Oct 13, 2010 9:44 AM

    Hi Ameya
    there might be syntax error. Try to get what exaclty is an error using following code.
    CALL FUNCTION <smartform>
        EXCEPTIONS
        IF SY-SUBRC  0.
           CALL FUNCTION 'SSF_READ_ERRORS'
                IMPORTING
                     ERRORTAB = IT_ERRORLIST.
         ENDIF.
    In IT_ERRORLIST you will get error message.
    Regards
    Sachin G Patil

  • Main Window display when line items are less in next page.

    Hi all,
           In the smartform,if the line items extend to second page, then to print complete main window in second page and if there are only few line items in second page, how to remove the empty spaces in the nmain window and to print other windows after the end of main window.?
    Nagesh

    design ur next page .....
    goto next page reduce the size of the main window and place the other window that u need....
    goto new window that is specified in nextpage , in condition tab check the checkbox(only at the end of main window).....
    here u will get the other windows only in the lage page....

  • Smartforms main window is not printing

    Hi,
    I would like to ask what to do with this problem.
    The smartform main window is not printing in all the pages.  All the other windows, even the window with the total data is printing.  The only problem is the contents of the main window is not printing.
    Also, the problem only happens when the I've changed printer.
    When I use LOCL as printer, the smartform is OK but when I change the printer, the problem is encountered.
    This also happens when I change environment from development server to production server.  In production server, even the LOCL printer is encountering the problem.
    thanks.

    Hi Mike,
    Have you checked the device type in transaction SPAD? Try to click on Full Admininstration from application toolbar and select device types.
    Hope the above helps.
    Cheers,
    Patrick

  • Records print on next page in samrtforms

    Hi all gurus and experts of sap ....
    I had created  P.O layout in smartforms .....when number of line items increased that time it breaks the page and footer area print on next page ....
    kindly suggest me how to print remaining lines on next subsquent page not fooetr only but with whole page content....
    thanx in advance i am in very crucial stage .....
    plz give some examples

    Hi Ateeque,
    Your problem is when 10 items are there 3 should print in the first page and remaining 7 items should print in the next page provided footers should display in their respective pages in the bottom.
    If your requirement is correct as i specified above,
    i like to know whether you have given the footer as a part of the main window or created a seperate window for the footer?
    If you have created as part of your main window, can you please try it creating with a seperate window for the footer.
    Thanks,
    Karthik
    Edited by: karthikeyan Thangavel on Feb 12, 2008 12:21 PM

  • Problem in sapscript Main Window Box command - Urgent

    Dear friends,
    Problem while showing boxes in multiple pages in sapscript. Box command is defined begining of the main window. But while printing showing in first page only not in other pages.
    Regards,
    Praveen Lobo

    This could be your problem why box command is not getting displayed in all pages, you might be using the box command in the element that is only called once and that to in the first page... so try to check your form and place you box command under element that is getting called in each and every page, it will solve your poblem.
    Note: for testing you can place your box command under element "/E" where you are displaying your line items... even though it is called multiple number of times it gets overlapped.
    close the thread once your question is answered.
    Regards,
    SaiRam

  • Urgent : SAPScript: Main Window

    HI Gurus,
    Can two Main windows be created in a single sapscript with the same text inputs.?
    If yes, how can we do so?
    Useful response will be surely rewarded.
    Thansk in advance

    Hi Himayan
    you can do tht.....
    as you have on main window.......
    u want to have one more main wondow in ur page..if i m rit...then
    u can do so..
    goto  'page window' >Edit>Create Element-->then select then main window....it ll be sub main window as '01'...and u have to write  text in main '00'...only
    it will come in main '01' automatically...
    u can place this window any where in the page...may have different dimensions....
    It will work man i did it...
    Thnx
    Rohit

  • Sapscript Main Window

    Hi All,
    I am using the standard print program & layout set of order confirmation for quotation.
    In the main window, i am defining a table using box commands & this is defined in the type-top of main window. the header text does get printed at the top of the window, but the table is printed starting from the top of page. I have modified the write form in print program to accomodate the printing at top of main window. Any suggestions how do i print the table/box in the main window.
    Thanks
    Amu

    Hi,
      Instead of using type TOP, define separate ELEMENT for printing header and table to be displayed. Then there will not be any problem of printing.
    Regards,
    Sailaja.
    Dont forget to reward points, if answer helps you.

  • SAPSCRIPT Main Window Issue

    I need to print the contents of the main window twice in the same page at different places.I searched the forum but I did not get any relevant thread with a solution.
    Can anyone help.
    Thanks
    Nancy

    I've put two main windows on the same page.
    Since it is  a main window we cannot rename it, so the name of both the main windows is "main".
    When i call it using the function module "write_form'  from the driver program only the first instance of the main window is called, if there is an overflow ( that is the data doesn't fit into the first main window ) it goes to the second instance of the main window and prints the rest of the data in the second instance of the main window.
    But this is not my requirement.
    I want the same data to be replicated in both the main windows.
    Not the first half of the data in the first main window and the second half in the second instance of the main window.
    I think I've made my requirement more clearer.
    Thanks
    Nancy

  • Sapscript MAIN window and character separation

    Hi all
    We have encountered two issues, when we create Form painter.
    How we want to create the form is below.
    Display 6 fileds below at the top of the paper and at the bottom of the paper with correct character separation.
    &REGUP-BELNR&      &REGUP-XBLNR&     &REGUP-BLDAT&      &REGUD-WRBTR&      &W_WSKTO(16T)&     &REGUD-WSKTO&
    <Ideal Form>
                                        Check
    *ACC doc#54321 Invoice#12345 Date2009/01/01 Amount in invoice1000 Discount30 Sum970*
    *ACC doc#54322  "blank"          Date2009/01/02 Amount in invoice1000 Discount00 Sum1000*
    *ACC doc#54323 Invoice#12347 Date2009/01/03 Amount in invoice1000 Discount00 Sum1000*
    ########CHECK DETAIL INFORMATION at the middle part##########
                                                                                    Total Check Amount
                                         MICR FONT
    *ACC doc#54321 Invoice#12345 Date2009/01/01 Amount in invoice1000 Discount30 Sum970*
    *ACC doc#54322  "blank"          Date2009/01/02 Amount in invoice1000 Discount00 Sum1000*
    *ACC doc#54323 Invoice#12347 Date2009/01/03 Amount in invoice1000 Discount00 Sum1000*
    <Issue>
    1. We cannot display two main windows.
    What we want to realize is
    print 6 fields 2 times in the same form like labels. but right
    ex)Display 6 fileds below at the top of the paper and at the bottom of the paper
    &REGUP-BELNR&      &REGUP-XBLNR&     &REGUP-BLDAT&      &REGUD-WRBTR&      &W_WSKTO(16T)&     &REGUD-WSKTO&
    <Issue 1>
    In below, the bottom part (MAIN01) is blank and nothing comes up
                                        Check
    MAIN00----
    *ACC doc#54321 Invoice#12345 Date2009/01/01 Amount in invoice1000 Discount30 Sum970*
    *ACC doc#54322 Date2009/01/02 Amount in invoice1000 Discount00 Sum1000*
    *ACC doc#54323 Invoice#12347 Date2009/01/03 Amount in invoice1000 Discount00 Sum1000*
    ########CHECK DETAIL INFORMATION at the middle part##########
                                                                                    Total Check Amount
                                         MICR FONT
    MAIN01----
    2.When one field is blank, the character separation become different in each row.
    ex) In below, doc#54322 has no Invoice# then character space for Invoice# is not blanked but the
    space between ACC doc# and Date got really tight
    <Issue 2>
    MAIN00----
    *ACC doc#54321 Invoice#12345 Date2009/01/01 Amount in invoice1000 Discount30 Sum970*
    *ACC doc#54322 Date2009/01/02 Amount in invoice1000 Discount00 Sum1000*
    *ACC doc#54323 Invoice#12347 Date2009/01/03 Amount in invoice1000 Discount00 Sum1000*
    ########CHECK DETAIL INFORMATION at the middle part##########
                                                                                    Total Check Amount
                                         MICR FONT
    MAIN01----
    If you know the solution, please let me know
    Best regard Masanobu Kubota
    Edited by: Koji Yamada on Jan 8, 2009 5:59 AM
    Edited by: Koji Yamada on Jan 8, 2009 6:00 AM
    Edited by: Koji Yamada on Jan 8, 2009 6:02 AM

    Hi,
    As per my understanding of the question,
    As u need two different pages, i.e. one with a single window n other with 2 windows:
    In script create 2 pages:
    1.Page1 have main window and sub window
    2.Page2 have only main window.
    Now in driver program,
    call function open-form.
       when scenario 1
          call function start-form for page1
               call function write-form etc.....
          call function end-form
       when scenario 2
          call function start-form for page2
               call function write-form etc.....
          call function end-form
    call function close-form.
    Hope its clear.
    Plz revert back if u get any doubts.

  • Sapscript  - Main window Frame

    Hi all,
    I am designing a form.I have three main windows in this form. I have the following code in the text editor for thre windows. /: box frame 10 tw
    when I check the layout of the form I can see the box only in the main window 00 but not in main window 01 and main window 02. Can anyone please help me with this.
    Reagrds,
    Varun

    Hi Varun,
    Please note that no need to create a window for each column.you can define Your X-coredinate to define Verical line or means to create a box:
    Sample Code :
    BOX YPOS '1.25' LN WIDTH '120' CH HEIGHT 4 LN FRAME 10 TW
    BOX XPOS '18.00' CH YPOS '1.25' LN WIDTH 0 CH HEIGHT '4.00' LN  FRAME 10 TW
    BOX XPOS '31.00' CH YPOS '1.25' LN WIDTH 0 CH HEIGHT '4.00' LN  FRAME 10 TW
    BOX XPOS '47.00' CH YPOS '1.25' LN WIDTH 0 CH HEIGHT '4.00' LN  FRAME 10 TW
    BOX XPOS '68.00' CH YPOS '1.25' LN WIDTH 0 CH HEIGHT '4.00' LN  FRAME 10 TW
    Lanka
    Message was edited by: Lanka Murthy

  • Cannot Print the continued text on to next page

    Hi Experts,
    I am facing a problem with the text not printing on the next page. The scenario is like this:
    I have created a template and i am calling a text which actually exceeds the template size, the remaining text should follow onto the next page. But the text that should move to a new page is not being displayed.

    Hi,
    What zamir told, Aboslutely correct.
    Here i am giving more info for Your better understanding between template and table use in smartforms.
    Might be useful.
    http://www.sapwings.com/guides-a-tutorials/doc_view/626-sap-smart-forms-overview.html
    difference between template and table in smartforms
    http://www.saptraininghub.com/smart-forms/

  • Table footer printed in next page without upper border line

    Hi Experts
    I am faceing a problem regarding printing of smartform. I have 2 tables under one LOOP control, TABLE2 and TABLE1 respectivelity. TABLE2 display the Header data and TABLE1 displays the Item data under Main window.
    TABLE2 has no ROWs  under table Footer section. TABLE1 has footer and I want to print the TABLE1 footer according to the page size, for that I have added a Folder under TABLE1 footer section and then create the line type under that Footer, also check the Page Protection check box. I manage to print the Footer in next page according to the page size but when the Footer goes to next page for printing the upper line border of Footer section is not dislayed.
    Please give some tips or example, how to manage the Footer at print time.

    Hi,
    Yes your problem is common because of two different line types while you are selecting the pattren the
    pattern is assuming that the pattern is selected for the entire two line types.
    solutions are
    1). Use same line type for both footer and item
    2). create a window with a template and copy the same for both the pages and put a check box
        in the conditons of your window as only after end of main window.
    3). Create windows with the lines you required with the postions(but not advisible because page numbers or line items lenghts are dynamic) .
    Thanks,
    Phani.

Maybe you are looking for

  • Please help me out in getting this information.....

    *1) The name of the Cookie* *2) The value* *3) The directory path* *4) The size of the cookie ie. 1024 bytes* After that I am unable to make out , what are the rest of the informations Can any one help in understanding what are all information which

  • Cubase 4 or Logic 7??

    Hi guys, ok so i know this question has been asked a lot. but i just need a simple answer, which is better...? Cubase 4 or Logic 7?? Getting a 20" iMac soon, and need some great software to compliment it so i can set up a little recording studio at m

  • How do i fix "Error establishing socket" !!!

    I get the following error: SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket. I have included the driver jar files in the classpath. How can i fix this? Thank u all for your time

  • How do I redefine a Method of a Final Class?

    Hi, Is it possible to redefine a method of a final class and if so, can someone please give me a brief example of that technique? Thank you very much! Andy

  • Emails on outlook and phone

    Hi guys, When i delete an email from the web (outlook), it doesnt delete it from my mobile phone emails. The only way around this, i have found is if i unselect emails in my settings and then reselect it. But this shouldnt be the case. Can someone he