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.

Similar Messages

  • Porblem in displaying the data in main window and footer in sapscript

    Hi Friends,
    I have created a 2 pages with a main window and 6 footer windows for purchase requistion printout. My requirement is footer windows should only be displayed at the last page. If i bring the footer window at the last page there is blank space in all pages after the main window since the main window size is smaill, if i increase the main window size it is overlaping footer windows at the last  page.
       I want the main window shouldbe big and footer should be displayed at the last page.
       please hellp me to solve this.
    Thanks
    Gayathri S

    If you want to position footer texts right after the last line of the MAIN data (thus, anywhere in the page), you define them as text nodes inside the MAIN window, and you use a template node if you wan't to position them precisely.
    If you want to position footer texts relatively to the page edges (and not relatively to the MAIN), do like this (as my previous answer is wrong):
    - define your footer windows in the same page of the MAIN, select condition "Only after main window" (so that the windows will be printed on the page of the last line of the MAIN data.
    - If the footer windows span over the MAIN window (because you want to maximize MAIN window height on all pages except last where you put the footer, as it was the case for Gayathri), you must add a template node inside the MAIN window, as the last element. Its height must be equal to the part of MAIN that is overriden by the footer windows, so that a new page is triggered automatically if there is no sufficient space and the footer windows will be printed on next page, and if there is enough space, the footer windows will be printed at the bottom of current page.

  • SAPScript: Overlapping Windows and Print Preview

    Hello,
    i've got a problem with an existing SAPScript-form.
    My Z-form has got an overlapping window where a bitmap prints
    "NACHDRUCK" (in english: reprint) diagonally over my MAIN-window.
    The responsible person isn't satisfied with this modification, because
    in the preview the bitmap overlaps the MAIN-window and so she must
    print the document to see the details from MAIN.
    Can anybody please tell me,
    how i can solve the problem to show the MAIN-window before
    the overlapping "WATERMARK"-window in the preview???
    Thanks a lot.
    Kind regards.
    Markus Pawlinka

    Hi Stu,
    thanks for your answer,
    but in CO04 (reprint) with production-orders
    the printpreview has got every time the value 'X'.
    I mean every time you want to print an production-order
    the preview appears. - now without the watermark -
    But if you want to print the document afterwards the print routine
    doesn't start anymore an so the
    document appears without an watermark!
    I hope you've got more suggestions?
    Kind regards,
    Markus
    Problem not solved till yet!
    Please help.
    Kind regards
    Markus
    Edited by: Markus Pawlinka on Oct 7, 2008 1:19 PM

  • Unable to print main window and associated secondary windows in next page

    Hi All,
    iam print line items values in first page by using main window (table) and associated  terms &condition in second window(template).
    But i want terms & condition to printed in other page.I tried to create COMMAND to manually trigger second page but it doest work.
    Kindly suggest.
    Attached is snap shot of current output(Shaded region are space of dat window).Also attached is overlapping of main and secondary windows.
    Since i need to increase the above template sizes i shifted main window and other 2 secondary window downwards so i wanted them to print in next page.

    Hi abhijeet,
    Add Programming lines before Command before loop statement,
    In that Count the itab using describe table.
    Add condition if count EQ Sy-tabix.
    pass to command line.
    Try this,
    Regards,
    Venkat.

  • Smartform Main window and Footer Overlap Issue

    Hi,
    I have a problem in printing my invoice smartform.
    I have to print the footer at the bottom of the main window. If the line items flow to the next page the footer should be printed only on the last page.
    I have overlapped the main window and footer windows in first and next page so that the footer window space in the main window is not left empty when there are more than one pages
    The problem is sometimes the main window is overlapping into the footer window space.
    Can someone suggest a solution for this.
    Thanks,
    Viswas

    Hi,
    Solution: The issue faced after overlapping the main window with footer window can be achieved by creating a folder within the main window and using the events to check whether there is enough space to print the footer.
    Following are the steps.
    Step 1:  Create a Secondary window say “Footer” which would be the footer window. Overlap the main window on the footer window as shown below.   
    The footer window will be behind the main window
    Step 2:  Create a folder within the main window say “Check_Footer”.
    Go to Tab “Events”, select the checkbox “Footer with Height” and give the required height of the footer. Select the checkbox “at End of Table”. Specify the “Minimum height” as required.
    Now, go to “Conditions” tab and select the checkbox “Only before end of main window”.   
    This is basically done to check whether there is enough space to print the footer on that page. The Footer window would then print the output.
    Step 3: Go to the created “Footer” window .Under the Conditions tab, select the checkbox “Only after end of main window”. Create a  text/tamplate/window whatever you want to display at bottom or footer data.
    Step 4: Save & Activate the Smartform and check the output.
    regards
    Rohit

  • 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

  • What exactly is the diff between main window and variable window

    what exactly is the diff between main window and variable window in SAP script?

    hi,
    MAIN WINDOW :- In a main window you display text and data, which can cover several pages (flow text). As soon as a main window is completely filled with text and data, the system continues displaying the text in the main window of the next page. It automatically triggers the page break.
    You can define only have one window in a form as main window.
    The main window must have the same width on each page, but can differ in height.
    A page without main window must not call itself as next page, since this would trigger an endless loop. In such a case, the system automatically terminates after three pages.
    VARIABLE WINDOW :- The contents of variable windows is processed again for each page, on which the window appears. The system outputs only as much text as fits into the window. Text exceeding the window size is truncated; the system does not trigger a page break. Unlike constant windows, the page windows declared as variable windows may have different sizes on different form pages.
    As far as the processing of the window contents is concerned, the system currently treats constant and variable windows alike. The only difference is that constant windows have the same size throughout the form.
    hope this will be useful.
    If useful then reward points.
    with regards,
    Syed

  • I'm trying to print halftones to a wide format Savin 2404 WDP printer. I can select the halftone desired in the output window and select Separations. I don not get a halftone dot output but instead I get shades of grey. HELP.

    I'm trying to print halftones to a wide format Savin 2404 WDP printer.
    I can select the halftone desired in the output window and select Separations.
    I do not get a halftone dot output but instead I get shades of grey. HELP.

    That worked really well (Resolution and Halftone screen Lpi, Angle and Dot shape).
    My only issue now is when art is created in Illustrator CS6. I can't get those results for gradients.
    I guess I would need to bring those files one color at a time back into photoshop.
    Keep me posted if you have any other thoughts.
    Thanks again.

  • 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

  • How can I get the favorites from my favorites tool bar to open in the main window and not the sidebar?

    I created a favorites toolbar. When I click on some of the icons, they open in the main window like I expect. Others open in a sidebar which I do not want and cannot even get to full size. How do I get all of them to open in the main window?

    Generally, Bookmarks that open in the Sidebar are from links that you clicked on on web sites to add their Bookmark. To change that, right-click on the Bookmarks, opening in the Sidebar, choose "Properties" and un-check "Load this bookmark in the sidebar".
    *For links and info on Bookmarks, see [https://support.mozilla.com/en-US/kb/how-do-i-use-bookmarks How do I use Bookmarks?]
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''
    Not related to your question, but...
    You need to update some plug-ins:
    *Plug-in check: https://www-trunk.stage.mozilla.com/en-US/plugincheck/
    *Adobe Shockwave for Director Netscape plug-in: [https://support.mozilla.com/en-US/kb/Using%20the%20Shockwave%20plugin%20with%20Firefox#w_installing-shockwave Installing ('''''or Updating''''') the Shockwave plugin with Firefox]
    *Adobe PDF Plug-In For Firefox and Netscape: [https://support.mozilla.com/en-US/kb/Using%20the%20Adobe%20Reader%20plugin%20with%20Firefox#w_installing-and-updating-adobe-reader Installing/Updating Adobe Reader in Firefox]
    *Shockwave Flash (Adobe Flash or Flash): [https://support.mozilla.com/en-US/kb/Managing%20the%20Flash%20plugin#w_updating-flash Updating Flash in Firefox]
    *Next Generation Java Plug-in for Mozilla browsers: [https://support.mozilla.com/en-US/kb/Using%20the%20Java%20plugin%20with%20Firefox#w_installing-or-updating-java Installing or Updating Java in Firefox]

  • 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

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

  • 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

Maybe you are looking for