How to Avoid blank page in SAP Script

I am working on a Script. My Script prints a check.
This script is a copy of a std script.
It has 3 pages - First Next Last
My First page has all the required data.
My second page is empty with out any values.
I am getting the blank page as Page 2 when executing. How can we avoid it ?
Senthil

Hi Senthil,
Please see the below points:
1. 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.
2. Check your main Window, may be there is blank line at the last of the main window, so check that abd remove that,so you won't get the blank page
Please see the link which is similar to your problem:
Re: How to remove blank page in sap script
May it helps you.
Regards.
Deepak Sharma.

Similar Messages

  • 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

    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.

  • How to remove blank pages in SAP Script

    Hi All,
    1. Employee we have to issue the certificate and as well as terms & Conditions page. If wife is staying in different address we have to display both certificate and as well as terms and conditions page. For kids we need not shown the terms & conditions, bcz they have stayed with wife. So in my case for employee it is displaying 2 pages one for certificate and terms and conditions page, for wife 2 pages one for certificate and terms and conditions page, as per as children it should show only one page i.e certificate page only, but here it is taking terms and conditions page also but it is displaying blank page. Now my question is how to delete that blank page. Just ask your colegues who know how to delete that page.
    Regards,
    Sathvik

    Hi,
    No i am not using Duplex printer. Let me explain
    There is Employee <b>X</b> His address is 2785 and his Spouse and 3 children are not in this Address.
    When you are executing The Terms and condition is in 3rd & 4th page. if the address is change then there 2 pages has to print othere wise only certificate has to print.
    Now Employee and Spouse adreess are change that's y terms and condition is printing. Children is leaving with mom so now they don't wnt to print 2nd & 3rd page. I put condition now contents is not showing. But here blank pages are showing now i wnt remove those blank pages.
    Thanks & Regards,
    Sathvik

  • How to print last page in sap script in ladscape format?

    Hi all,
    can any 1 tell me How to print last page in sap script in ladscape format?
    Thanks In advance.
    Pravin

    Hi Pravin Sherkar,
    we can do this in SAP Scripts.
    we need to create two pages, one of landscape and another of potrait.
    now after filling the data at last we need to call the page which is of format landscape using START_FORM  function module.
    You can use condition &PAGE& = &FORMPAGES&.
    Please check this link
    Printing Portrait/Landscape in sapscript
    Re: Landscape and potrait in same layout?
    http://www.sap-img.com/ts013.htm
    Best regards,
    raam

  • How To trigger last page in sap script of customer account statement

    Hello all,
    I am working on customer account statement.
    It has it's own standard script(F140_CUS_STAT_02). But my client's requirement was completly diffrent,so i copied that to z script and made some changes like delete some window and some another window.
    Now on first page , i have following windows,
    1) Header
    2) address
    3) main
    4) Account
    5) Footer.
    Next Page having following windows,
    1) Header
    2) Main
    3) account
    4) footer
    Now i want to print account window on lsat page, so i put the condition nextpage = 0.
    and it is working fine , but as account window is physically present after Main window , so that much blak sapge is getting creted after main window on every page.
    To remove that blank space i am thinking of creting one more page and everytime i want display account window on that page.
    I have creted the last page also. but in my output it not detecting that last page.
    For First page - next page is next.
    For Next page - next page is next.
    for Last page- next page is last.
    Also i have added following code at last in  main window.
    /: NEXT-PAGE LAST.
    But i think i am placing this code at incorrect position in main window.
    I am not able to find out the correct podition to put the above code,but main window of that script conataing so namy text element, and that text element are getting handled from driver program based on some conditions.
    I have added my code in main window but not changed the original code.
    Plz let me know where to write /: NEXT-PAGE LAST. in main window.
    Or provide me some another solution to trigger thet last page in sap script.
    Regards,
    Anuja Dhondge

    Hi ,
    actually in account window i have used tha box command to print account statement.
    Previously i was printing this account statement in main window itself but without using bottom and end bottom command.
    So , as i made some changes or add some code in main window then lines of this account statement  were getting dismental.
    So my question is using bottom and end-bottom command this will happen or not????

  • How to avoid blank page in the report?

    adding a field in the grouping and checking the page break option means then we are getting blank page as the first page of the report? How to avoid this blank page?

    Usually blank pages appear as first page due to the presence of filler lines (//////) on top of report header.Please ensure that the top header is exactely started from top of page itself.

  • How to print different pages of sap script  from diff. trays of printer

    Hi All,
    I have the requirement in SAP script. How to print different pages from different trays in the printer.
    For example  page 1 logo and address has to print from tray-1,
                        page 2 main data print from tray-2,
                        page 3 footer data print from tray-3.
    will appreciate if u come up with solutions asap.
    Thanks in advance.

    Hi,
    May be the links given below might help you,
    SAPScript:Selecting Different Tray in SAPscript
    Print to different output tray in SAPscript/Print Workbench
    Regards,
    Hema.
    Reward points if it is useful.

  • How to Avoid Blank Page in  XML Publisher oracle report

    Hi,
    I am running a report in xml publisher. The output of the report prints 2
    pages, one page with correct report output and other page is a blank page
    with header details.
    I want to avoid this blank page. Is there something wrong? Please help to fix this issue!
    Thanks!

    I am running a report in xml publisher. The output of the report prints 2
    pages, one page with correct report output and other page is a blank page
    with header details.
    I want to avoid this blank page. Is there something wrong? Please help to fix this issue!Is the issue with this specific XML Publisher report only?
    Do you have all the patches in (Overview of Available Patches for Oracle XML Publisher embedded in the Oracle E-Business Suite [ID 1138602.1]) applied? -- Search for "blank page".
    Thanks,
    Hussein

  • How to use New page in SAP-Scripts

    Dear All,
    hope all are doing well, how to write a new page at new customer, with out blank page lastly.
    thanks.

    Hi,
    try this
    LOOP AT it_kna1.
      CALL FUNCTION 'WRITE_FORM'
        EXPORTING
          element  = 'ELE1'
          function = 'SET'
          type     = 'BODY'
          window   = 'MAIN'.
      DESCRIBE TABLE it_kna1 LINES records.
      IF window LT records.
        window = window + 1.
        CALL FUNCTION 'CONTROL_FORM'
         EXPORTING
              command         = 'NEW-WINDOW'
    EXCEPTIONS
      UNOPENED        = 1
    UNSTARTED       = 2
    OTHERS          = 3
      ENDIF.
    ENDLOOP.
    thankx,
    raji.

  • How to avoid blank page in xml publisher report

    hi,
    i have a xml report, it shows 7 rows in one page. the question is: if there are just 7 rows , when previews with pdf, it will generate 2 pages, the first page shows 7 rows, and the second page is blank.
    anyone can help?
    you can get the rar file that contains the .rtf and then .xml file at this site: [http://www.4shared.com/file/azhdqCp_/DELIVERY.html]

    I am running a report in xml publisher. The output of the report prints 2
    pages, one page with correct report output and other page is a blank page
    with header details.
    I want to avoid this blank page. Is there something wrong? Please help to fix this issue!Is the issue with this specific XML Publisher report only?
    Do you have all the patches in (Overview of Available Patches for Oracle XML Publisher embedded in the Oracle E-Business Suite [ID 1138602.1]) applied? -- Search for "blank page".
    Thanks,
    Hussein

  • How to avoid blank page in last page?

    Hi friends,
    I have one page layout in my RTF file for Invoice printing. But when submitting the concurrent from Apps, it is showing one page output and one blank page at the end of the output.
    How can i restrict the blank page.. Pl. help.
    Thanks
    Kavi

    If you are using page break, have it conditionally like
    <?if:position()!=last()?><?split-by-page-break:?><?end if?>

  • How to avoid blank page in BI Publisher

    Hi,
    I am doing an invoice print using XML Publisher and there is a xml tag which stores whether I should suppress the invoice from printing or not.
    I am checking for this flag in the template and then printing the data. So when a situation comes that the flag is Y - I am not getting any contents (Which is correct) - but I am getting a blank page in the output on that page. I would need to avoid that - Is there a way I can do this.
    My template code for the suppress bit currently is,
    <?for-each@section:G_CONS_INV_NUMBER?>
    <?if:CP_SUPPRESS_INV_FLAG!='Y'?>
    -- here comes my contents and logos ---
    <?end if?>
    <?end for-each?>
    The suppress is happening but in the output I am getting a blank page
    Thanks
    Shasikkumar

    Hi I have a dunning letter template where I have different templates for reminder letter, 30, 60 . I have one template for all these letters where I am checking for
    <?for-each:G_CORRESPONDENCES?>
    <?for-each:G_CUST_ACCOUNT_ROLE_ID?>
    <?if:CLASS="INV"?> <?if:DAYS_LATE >=1?> <?if:DAYS_LATE <=30?>
    when i run the report if there is only 60 days letter exists and no reminder and 30 day letters then i get a blank page printed.
    can any one guide me . I can provide the sample template. if needed.
    thanks
    lira.

  • How to create new page in SAP Script?

    Moved to correct forum by moderator.  Duplicate deleted.  Do NOT post the same question in two forums.
    Hello friends,
    I am modifying one SAP script.
    It is already contains 2 pages. FIRST and NEXT.
    All I have to do is to create one more page which should be display as last page.
    And this last page should display some data.
    I tried and created a new page in SE71 but when i execute the program, it doesn't show newly created (LAST) page.
    Please guide me.
    REgards,
    RH
    Edited by: Matt on Nov 7, 2008 4:26 PM

    Hi
    U need to force the call of this new page.
    I suppose your sapscript is arrange with 2 page: FIRST and NEXT, where FIRST has NEXT as next page.
    So the system automatically print the pages FIRST and NEXT: u need to insert the statament:
    /: NEW-PAGE LAST
    in the MAIN window.
    U can create a text element NEW_PAGE and you'll call it as soon as you've finished to print the main data:
    /E NEW_PAGE
    /: NEW-PAGE LAST
    U can use the fm CONTROL_FORM
    Max

  • Adobe Forms: how to avoid blank pages in the output

    Hi Guys,
    when i am executing a report using adobe forms for limited records i can see the output in single page in pdf without any blank pages before or after the output page.But if the records exceed then in the output i can see first 3 blank pages and then in the 4th page i can see the printed output only with the limited records .Can u tell me why this is happening.
    Thanks.
    Jagadeesh
    Moderator message: wrong forum, please have a look in the forum for "Adobe Interactive Forms".
    Edited by: Thomas Zloch on May 18, 2011 2:06 PM

    Usually blank pages appear as first page due to the presence of filler lines (//////) on top of report header.Please ensure that the top header is exactely started from top of page itself.

  • How to remove blank pages from report

    Hi All
    i have a condition where i have to display the record only when trxn lines are available for that record ,inside my for each group condition i put the if condition having a count variable so if count is not zero then only the record will be displayed ,it works but problem is it shows blank pages for those records.
    any clue would be very helpful.Thanks in advance
    Thanks
    Pratap

    Hi All
    The solution of this issue is given in below mentioned thread
    How to avoid blank page in BI Publisher
    Thanks a lot to Vestrini :)
    Thanks
    Pratap

Maybe you are looking for

  • Lightroom not starting up after updating to CC (2015)

    Adobe CC updated my Lightroom CC (2014) to CC (2015)  Now Lightroom will not start.  I have uninstalled, rebooted, installed again and still does not start up.

  • SAF JMS Module Targeting in a cluster

    Hi, I'm having a bit of trouble working out the best way of configuring my SAF modules in a clustered environment. I have one cluster (Cluster1) of 4 JVM's which host a distributed destination and a second cluster (Cluster2) of 4 JVM's which host ano

  • Formating a new hard drive

    Just bought a new 500gig hard drive. If I am going to use it as an external drive, do I need to format it? I f I use it to replace the smaller drive in my pavilion dv6910 and install the OS, do I need to format it first? Also, I just purchased an HP

  • Giving Error while running job.

    Hi all, I am getting error when i am trying to run the job for ID 94,95,96 BEGIN dbms_job.run (95); END; ORA-12011: execution of 1 jobs failed ORA-06512: at "SYS.DBMS_IJOB", line 651 ORA-06512: at "SYS.DBMS_JOB", line 284 ORA-06512: at line 2 Can any

  • German language to English language Change.

    Hi Friends, Right now iam working in german language.when iam login to english language test and production systems showing NO TEXT FOUND.How to rectify this problem?bcoz i dont know german.so i need to work on english version.How to transfer all the