Main window header problem

Hi All,
My header in the main window is getting printed at the end of the page even if it contains no data in the main area.
I have given a porgram code in the header, becos based on that my header data should be printed and a page break in the main (sort end event).
What should i do to avoid the extra header.

hi
good
go through these links which ll give you complete idea about the printing of the header in the main window,hope this would help you to solve your problem
http://www.supinfo-projects.com/fr/2005/forms_sapscript_en/7/
http://help.sap.com/saphelp_nw04/helpdata/en/d6/0dba4e494511d182b70000e829fbfe/content.htm
thanks
mrutyun^

Similar Messages

  • 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.

  • Main window iteration problem in smart forms

    Hai,
    I am struggling from a problem from past 1 weak, can anybody help me.
    Problem:
    user- inputs: 2 different items say item1 and item2.
    The output should be the combinations of four pages(pg1,pg2,pg3,pg4)  based on conditions.
    pg1 should be displayed when:
         1. item1 and item2 are less than 5.
         2. either pg1 or pg2 are less than 5.
    note: pg1 can only display 5 items of each type.
    pg2 should be displayed when:
        1.item1/item2 is greater than 5 and less than 15.
        2. either item1/item2 >5 and <=15 .
    note: pg1 can only display 15 items of each type.
    pg3 should be displayed when:
        item1 is greater than 15.
    pg4 should be displayed when
       item2 is greater than 15.
    My problem is when there are items greater than 15 say 90 items then main window page is not iterated i.e only first 40 is displayed remaining are not displayed.
    Please help me as soon as possible.
    Helpful answers will be rewarded.
    Thanks and Regards,
    Swetha Singh.

    Hi,
    Instead of calculating the line items, you can use the command in the footer of the main table to go to next page. It will dynamicaly push to the next page, once first page data display was over.
    Is this the answer you are looking for. Thanks.

  • Problem in smartform in main window

    Hi All ,
      We are puttning a table in main window,The problem is the table in main window is extending according to the number of records in internal table.I want the table in fixed lenth always .Please suggest

    1) Do not draw any lines in TABLE.
    2) Place a TEMPLATE exactly over the TABLE (same left, top, height and width). Draw line in this TEMPLATE.
    3) This TEMPLATE will not have any data. It will just draw line.
    Now with this configruation drawing of line will be independent of data in your TABLE. Hope this will work as it worked for me some time back.

  • Issue in overlapping of windows with main window.

    Hi all,
    My requirement is to have 4 windows at the end of main window.
    the 4 windows should be printed only after end of all the line items in the main window.
    the problem here is if i extend my main window till the end and overlap the 4 windows. if line items are less it is printing perfectly fine. if line items are many the 4 windows are overlapping on line items. if i decrease the size of main window and place 4 windows after that, if line items extend to two or three pages. windows space will be wasted in page 1 and page 2 as the 4 windows will be printed only on the last page i.e end of line items.
    Any pointers for solving this would be appreciated.
    Regards,
    Sreekanth.

    one death you gonna die, thats what i always say to customers when it comes to this topic.
    IF you want certain things printed on certain positions of a sheet, you NEED to reserve this space, so that no overlapping issue comes up.Reserving this space means that this space may stay free in matter of page breaks and such.
    So they either live with the wasted space, or they live with the information having an uncertain position, since you just give it out in main window after all the line items.
    If first case is BLACK and second case is WHITE, then you have to know that in this scenarion there is no GRAY, just WHITE OR BLACK.

  • Main window data to be page protected in smartform

    Hello Experts,
    I want to make Main window data to be page protected.
    But page Protection check box is in Noneditable mode .
    Please let me know, how to make main window data to be page protected.
    Regards
    Mohit

    Hi,
        Try this way
        Under the Main Table node, you will find, Header, Main Area and Footer.
        Select Main Area, right click Create> Folder
        Drag the Row item inside the Folder
        Select the Folder node, for Folder node out put options, you can select Page Protection check box.
    Main Window
        Header
        Main Area
          Folder
            Row Items
        Footer
    Regards
    Bala Krishna

  • Main window- urgent

    hi,
    i have a zsapscript copy of standard and driver program is standard program. i shud not change driver program.
    now, after printing all line items i need to add standard text in main window. i cant chnage the driver program.
    like...
    Main Window
                Header
    lineitem1
    lineitem2
    standard text
    end of main window.
    help me out guys,
    Regards

    Hi
    You can load the table T_MATNR as the driver program loads the items to be printed.
    I don't know what you're printing but for example if it was purchase order:
    DATA: BEGIN OF T_MATNR OCCURS 0,
            MATERIAL TYPE MATNR,
          END OF T_MATNR.
    DATA: COUNTER TYPE I.
    DATA: N TYPE I.
    FORM TEST TABLES IN_PAR STRUCTURE ITCSY
                     OUT_PAR STRUCTURE ITCSY.
    DATA: _EBELN TYPE EBELN.
    READ TABLE IN_PAR WITH KEY 'EKPO-EBELN'.
    CHECK SY-SUBRC = 0.
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
      EXPORTING
        INPUT = _EBELN
      IMPORTING
        INPUT = _EBELN.
    SELECT MATNR FROM EKPO INTO TABLE T_MATNR
    WHERE EBELN = _EBELN.
    DESCRIBE TABLE T_MATNR LINES N.
    COUNTER = COUNTER + 1.
    IF COUNTER = N.
    *----> It's the last material code
    READ TABLE OUT_PAR WITH KEY 'VAR'.
    CHECK SY-SUBRC = 0.
    OUT_PAR-VALUE = 'L'.
    MODIFY OUT_PAR INDEX SY-TABIX.
    ENDIF.
    Max

  • Prob in Smartform in Main Window -- Footer part

    Hi,
    I have 2 rows with different 2 text in Main window -> Footer part.
    I want to always keep tht 2-text together either in first page or in second page.
    Currently both r printing in different page if first page do nt have enough space.
    But my requirement is both should print on first page or second page.
    Please let me know hw to control this ?

    You can use the FOLDERs for that.
    Create a FOLDER under the Footer.
    Set "Page Protection" checkbox ON on the FOLDER.
    Put your both line types under the FOLDER
    So, your SMARTForms should like this:
    > MAIN WINDOW
      > HEADER
      > MAIN
      > FOOTER
        > FOLDER - (with page protection)
          > LINE 1
          > LINE2
    Regards,
    Naimesh Patel

  • Problem with line items print in Script MAIN window.

    Dear Friends,
    I am facing a problem with display the line items in main window.
    Here i have created my form with 2 pages,
    in first page i have created header window(my header information is full length of page), in second page i have created 2 windows, one for MAIN window and second for FOOTER window,
    i am having the Footer information about to off the page.
    and in my main window total 3 line items are coming, if i am having 3 line items then it is displaying properly (first 3 line items then immediately footer information on same page) but if am having more then 3 line items say four, then in my second page first it is printing 3 line items then it is switching into another page. After that footer is coming but. in previous page after printing 3 line items the remaining page is empty..
    my client want me to remove that place also. he wants to display continue..
    i think so u people r understand what is my problem...pls advice me what i want to do to solve this problem.
    Thanks
    Sridhar.

    Hi Sridher,
    If you want to display the footer information only on the last page why dont you use a table to display your details and place the footer details in the table footer instead of a seperate footer window.
    Regards,
    Vidya.

  • 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 .

  • How to print main window data in second page without header

    hi friends.,,,,,,,,,,,,,,,,,,,,
    I am printing billing docu details in main window ,the data is coming in two pages but there is problem in printing as the tables is continuing in second page the line is not coming for the table for first row,space is also coming for second page for header .
    my issue is to remove space before printing table and line should come for the table for 1st row in second page.
    please help .
    thanks in  advance.

    Hi Raghukumar,
    1. For the line not coming on the top row of the second page, check if the rowtype u have used in the table has been given a border on the upper side.
    2.For the space issue in the second page, I assume you might have used only a single Page in your smartform and the same page is called again.Hence as per the main window size and length data will be displayed in all pages of the smartform.
    You may need to create a second page with the Main window length occupying the compete page so that data display starts from the top of the page. next Page attributes of the smartforms should be entered accordingly.
    Please try to elaborate your query to help us understand your issue.
    Regards,
    Rijuraj

  • Problem with 2 tables nodes in MAIN window in smartforms...

    Hello Experts,
    I have created 2 table nodes in my MAIN window to display data coming from different internal tables.
    Now, the problem is that whenever the 1st table node page breaks, the 2nd table node gets affected
    and it also page breaks. What I want is that the 2nd table must finish displaying certain number of records
    before the page break of the 1st table node takes effect.
    For example, I want to display 10 records for both table nodes 1 and 2. So I created an event in
    table node 1 that if it is 10 records or more, then it will go to the next page. So in effect, my table
    2 node did not print any records at all in the 1st page and it only started printing its first record in page 2.
    How do I print 10 records also in table node 2 before it page breaks?

    Hi,
    It's simple,
    Pre- U should had declared a second page for the same window with header, main & footer.
    now
    First when u r looping the internal table provide no of rows eg Row 1 TO 10. in the Loop ( Data Tab)
    or
    when defing TEXT Go to PC Editor and mention all the fields Under  PROTECT -  ENDPROTECT.
    This would solve the issue.
    Thanks
    Ravi

  • Problem with sap script table in main window

    hi all,
    i have created a sap script  for which output is in 7 pages.
    except first page all the remaining pages are giving the correct output.
    the problem with the first page is iam not not getting vertical lines in the table which is in the main window of page 1.
    iam getting the vertical lines correctly in the mainwindow table of all the remaining pages.

    Hi,
    It's simple,
    Pre- U should had declared a second page for the same window with header, main & footer.
    now
    First when u r looping the internal table provide no of rows eg Row 1 TO 10. in the Loop ( Data Tab)
    or
    when defing TEXT Go to PC Editor and mention all the fields Under  PROTECT -  ENDPROTECT.
    This would solve the issue.
    Thanks
    Ravi

  • I have used Lr many years without problems. Now it is inpossible to edit . Can not see the editing in main window only in the small thumbnail. Suddenly it is not possible to import  raw-files from my Linux camera ( it worked earlier)

    Editing mode does not work. I can not follow de editing in the main window. I cah see it in the thumbnail.

    From your description of the problem, I suspect that you have a standalone license but have downloaded and installed the CC update. Or, it's the other way around. In either case, you need to install the right version.

  • Problem in printing multiple main window in smartforms

    Hi Experts,
    I have requirement form client to print PO which consists of 4 page.
    First page is cosists of header and some text.
    In second page different header and line item.
    Thirs page different header and line item.
    4th page different header and line item.
    I have printed tex in main window of first page and called command to trigger
    second page main window, but i am getting dump.
    How to print the line item in the multiple page of smartforms.
    Regards,
    Udupi

    Hello ,
    To print the text below are following steps which you can follow for your requirement :
    1. Create the Four pages having the Main Window, but take care that Logic should be in First Page Main window only , other pages main window will be blank.
    2. Create the Secondary Window in second, third & fourth page  which will be same size as the main window having the text which need to be print in respective pages.
    3. Logic Part - in the main window of first page fill all the data which you need to print in 1st to 4th page in different internal table. Now for example you need to print text in first page then in Main window create table having the data of 1st page.
              To print data in Second page create one more table having data of secondpage and put the Command there (follow the same for next pages,)
    I hope this will  help you
    Thanks
    Romit Raina

Maybe you are looking for

  • I close by accident a file on keynote and now I can´t open it againg

    I was working on key note, and I was switching between windows and I accidental press de little red x on the corner, and the document close, with no warning window poup. Now I am trying to open it and key note don´t let me doit.

  • Error building/creating WD Callable Object

    Hello guys, Pardon for reposting - I did post on the WD Java thread - and I think this is the more appropriate area to ask this question since its GP Callable Objects related. While creating a WD Callable Object: I I added Used DC: caf/eu/gp/api/wd t

  • Parallax scrolling to images

    hey i am wondering if you know of a way to add parallax scrolling to image slide tumbnail slide shows ? this is what i am working on. i am using the compostion lightbox display, and in there. i have a thumbanil slide show. nowi have managed to get th

  • SAP BASIS - Can System Admin experience (Non-SAP) transfer into SAP Basis?

    Greetings everyone, I hope you are well this weekend. I've heard how great SAP careers are for the dedicated and I'm doing my research to find out if an SAP career is viable and if so which is a good entry point. I've read a book by John Von Aspen an

  • Trouble with file deleting!

    Im trying to empty a directory that I filled just before by unzipping a file in it. Here is the code im using: public void emptyDir(File srcDir) String[] toRemove = srcDir.list(); File temp; for (int y = 0; y < toRemove.length; y++) temp = new File(t