Skip to Content
avatar image
Former Member

How to remove blank page in sap script

hi ,

I have a problem in sap script. I copied one std. script and made some changes i.e removing the unwanted pages from the script.

no where NEW-PAGE kind of command is declared in window but still a new blank page is coming in printing.

i checked with the posted comments in forum n what i found .. i did that part for my script..but no progress.

so help needed.

thnx,

m

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

6 Answers

  • avatar image
    Former Member
    Apr 20, 2010 at 04:13 PM

    Hi,

    Checkout this thread.

    How to remove blank pages in SAP Script

    Regards and Best wishes.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 20, 2010 at 09:11 PM

    Debug your form and note down when it's triggering 2nd Page.

    Given below are some of the cases where you get blank page.

    1) Script tries to print text even when it's blank overflowing to second page.

    2) Some times 'PROTECT' and 'END PROTECT' commands towards the end of the page trigger reserving second page for printing while the content fits on first page it self.

    Please post what you find in debug, I should be able to answer after seeing results.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 21, 2010 at 04:10 AM

    Hi,

    If there is no any "NEW-PAGE" command in your any window, Pls check following probable causes.

    1. Check your main Window, may be there is blank line at the last of the main window, so check that and remove that,so you won't get the blank page

    2.Please check what have you defined as the NEXT PAGE for your first page. If so change it and make the first page itself as the next page.

    Hope it help you.

    Regrads,

    Lokesh.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 21, 2010 at 09:26 AM

    I have defined main window as just dummy one and not doing any thing there.the next page is set as FIRST page only.

    Still the probelem is there ..blank page is appearing 😔

    thx,

    m

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 22, 2010 at 06:32 AM

    Check the driver program.......May be the new page is being called using FM CONTROL_FORM from driver program.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi ,

      I am calling my script in a standard program. i have only one page in my script. in my test data i have 4 vendors. so when i preview the script i can find all the 4 vendors forms coming up one after another.. But at the end there is a blank page. I have no control_form statement also in my std prgm after i call my last window. Can you please help me out.

      There are some elements in the std prgm which i use... so is that by anyc hance making this balnk page show up?...

  • avatar image
    Former Member
    Apr 22, 2010 at 10:35 AM

    I checked the driver prog. there is no such FM Control_form....

    any other idea ??

    thx,

    m

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Now this prob. is solved..As i was using std. prog. for this check printing so there were a lot of windows being called in the prog....so i commented code written for all. windows.in the prog... and it worked