Extra page in script output

Hi all,
I'm facing a issue with the extra page which is not needed in the output of a script.
when the data has got line items which exactly fits in the page, there is an extra page coming which is to be avoided.
For instance, If the data has got 10 line items which exactly fits in first page, 2 pages are coming without any data in second page.
Any pointers on this would be of great help.
Regards,
Vamsee.

Hi,
    Just check what does the value &RKEY& is holding, whether is it displaying on output, and what what location, see that no blank lines before the DEFINE statement.
or just copy the whole statements from DEFINE upto Y7&RKEY&, to just above the item variables and see the output. Just comment the down lones and paste them above.
See below
/:DEFINE &CKEY& = &TVBDPL-MATNR&
/:PERFORM GET_KENSA IN PROGRAM ZJPV0167
/:USING &CKEY&
/:CHANGING &RKEY&
/:ENDPERFORM
Y7,,&IL_ITEM_DEL(3)&,,&TVBDPL-ARKTX&,,&QKEY&,,&MEHI&,,
=<A1>&TVBDPL-LFIMG(CT10.0)&,,&ITEM_BACKORDER(CT10.0)&,,    
Y7&RKEY&  "--> is this continuoes of above line? if so remove the Y7 and add =
Regards
Bala Krishna
Edited by: Bala Krishna on Aug 12, 2009 3:08 PM

Similar Messages

  • How To Delete The Extra Page In Smartform Output

    Hi Friends,
    I am working wih Smarform..which displays P.O Details (Header and Item ) .
    Header Details in Template and Item Details in Table..
    I am trying to print 10 P.O ..for every P.O i kept New page command.
    So..finally i have to get 10 pages in output...instead i am getting 11 pages...
    How to delete the extra page ? Y i am getting this..
    please give helpful answers...
    Points will be given after get the answer.
    Thanks,
    Laxmi

    Hi,
    as someone else said. put the newpage command at the start.
    However with a condition that that it not happens at the first page.
    or
    Determine how many P.O.
    use a counter.
    If this counter is equal to number of P.O, then no newpage command.
    success.
    Gr., Frank

  • SAP Script output extra page is coming

    Dear friends
                             In my sap script output i m getting one extra page with empty main window. Even i have  not used NEW-PAGE Command,
    No Empty lines and window size also correct. Can anyone solute for this issue.
    Regards
    Balamurugan N

    Hi,
    check those details:
    1) In your SAPSCRIPT contains one page or two pages?
    2) In the sapscript check did u assign any nextpage as different page?
    Regards,
    Dhina..

  • SAP script extra page at end....

    Hi Experts,
    I am using SAP Script Form, After executing a script in output one extra page is comming. How to remove that extra page ?
    Rahul

    Hi,
       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.
    If U WANT TO GET THE LAST PAGE THEN
    You have to check the system variable &NEXTPAGE&, if it's 0 it means you're in the last page.
    From SAP Help:
    This symbol is used to print the number of the following page. The output format is the same as with &PAGE& .
    Note that on the last page of the output, in each window that is not of type MAIN, &NEXTPAGE& has the value 0.
    /: IF &NEXTPAGE& = '0'
    Last page
    /: ENDIF
    Reward points
    Regards

  • How to print a standard text of 3 pages in the script output?

    Hi all,
    I want to print a standard text as an include in the script output.
    But the standrad text is of 3 pages conataining continuous (some terms and condtitions) text.
    But while executing driver program, I am getting a STOP messgae pop-up saying 'Output is continuous or contains too many pages (>4)'.
    How to get the standard text of 3 pages in the output. The standard text is to be printed at the bottom of the output.
    Thanks,
    Sachin

    Hi ,
    To display standard texts you have to create a include in your script below is the syntax for that:
    INCLUDE name OBJECT name ID name PARAGRAPH name LANGUAGE   name
    Include command is used to include standard text in a form.the text 
    should be already defined by using transaction SO10.
    Here name is the name of text
    ID is used to classify text e.g. SDVD (SD related text) , ST (Standard text)
    OBJECT is used to specify type of object it an be TEXT , DOKU
    LANGUAGE is used to specify language like EN ,if ommited than logon
      language is used
    PARAGRAPH is used to specify the paragraph like C
    e.g. /:INCLUDE mytext OBJECT TEXT ID ST LANGUAGE EN
             Here the standard text created in SO10 with name mytext is
             included in the form in language EN (English)
    Please let me know if you have still any confusion.
    Thanks
    Narendra Vikram Vishwakarma

  • Script Output and not copying extra trailing spaces

    My keyword foo has failed me (both google and here).
    Is there a way to suppress the extra whitespace that is generated after the script output pane's text, at least during copy-paste?
    When I copy text out of the the script output pane, I end up with 36,000 characters per line when I only need, say 100.
    (Or have I somehow turned on a setting that made it huge and have not noticed it?)
    Thanks,
    Andy Bay

    Hi Gary,
    Thanks for logging this bug:
    Bug 13357403 - FORUM: NEED TRIMOUT AND TRIMSPOOL SUPPORT
    In response to this thread:
    Re: 3.1EA1 - Whitespace in the Script Output window
    Regards.
    Greg.

  • Sending email for selected pages of a script output

    Hi all,
    i want to know how to send email only the selected pages of an script output.Example if the script produce 10 pages i want to send 4th and 5th page to one customer and 6th ,7th page to another customer like that. because this is an customer statement of account which is confidetial. i refer so many sites but useless. i hope here my problem can solve.
    rgds,
    Ashok

    Hi ashok,
    While enter the print parameters enter the page number what ever u want.
    Reply for queries,
    Regards,
    Kumar.

  • Displaying Page number in all pages of sap script output

    Hi All,
    I have a issues in displaying page number in all pages of sap script output.
    I have created a seperate window just above main window to display page number.
    I have given &PAGE& in the layout editor.
    Now in the sap script output i am getting page number as 1 in all the pages page number is not changing for pages-2,3, etc..
    Can anybody tell me the reason for the same!
    In some other objects same syntax is working fine. For this object it is not working!
    Is there any setting changes!
    Thanks i
    Thanks,
    Deep.

    Hi,
    Just check the Page Counter of the Next or Second Page which you defined.
    First page
    Mode                     START
    Numbering Type           ARABIC
    Second Page
    Mode                     INC
    Numbering Type           ARABIC
    Regards
    Bala Krishna
    Edited by: Bala Krishna on Oct 17, 2008 11:23 AM

  • How to get the last page  SAP Script form

    How to get the last page  SAP Script form.
    I want to print a specific information in the last page of SAP form (Script). Please tell me how to get the last page number.
    Regards

    Hi
    You have to check the system variable &NEXTPAGE&, if it's 0 it means you're in the last page.
    From SAP Help:
    This symbol is used to print the number of the following page. The output format is the same as with &PAGE& .
    Note that on the last page of the output, in each window that is not of type MAIN, &NEXTPAGE& has the value 0.
    /: IF &NEXTPAGE& = '0'
       Last page
    /: ENDIF
    Max

  • Create a follow up page in scripts using Duplex and Tumble Duplex in print

    How to create a follow up page in scripts using Duplex and Tumble Duplex in print mode of scripts ?

    it depends upon output device types.
    Regards
    Prabhu

  • Unnecessary extra page in adobe

    hi sap experts,
    just want to ask help from you.
    im doing an adobe form, i have 1 master page and 1 body page. when i preview i have this extra blank page that contents my master page. but the content field is already blank. what should i need to do to get rid this extra page.
    thanks.
    br,
    donna

    Hi Donna ,
      Scripts generate a blank page when your calling a NEW-PAGE and and there are some extra lines before that statement .
    So, if at all you are using NEW-PAGE and make sure ther are no blank lines on your master page .
    Just check whether you have assigned your next page correctly !
    Hope you get it!!
    Much Regards ,
    Amuktha .

  • ESS Paystub Payslip extra page

    our paystub on ESS is working fine with a small issue that we its displaying an extra blank page after the paystub. though there is no overflow of paystub. we dont want extra page.
    we are using ZHR_ESS_PAYSLIP_TO_PDF copied from HR_ESS_PAYSLIP_TO_PDF and no changes whatsoever.
    aman

    Paystub has one Page Output in R/3 Transaction. Same is replicated to the Portal and the portal have 2 pages in the output while viewing it in PDF. 1 page is blank and we want to remove that extra page.
    aman

  • Footer note on last page of script

    Hi All,
    I want to display a footer note on the last page of script. For that I am writing following code in my script.
    :/BOTTOM
    :/IF &NEXTPAGE& EQ 0
    END OF SCRIPT
    :/ELSE
    CONTINUE ON NEXT PAGE
    :/ENDIF
    :/ENDBOTTOM
    Also I am using top of page using top & endtop.
    It is working fine.
    Regards,
    Dilip
    Message was edited by: Diliip Gupchup

    Hi,
    Check this one
    Re: Printing Footer in the output.
    Re: Smart Form Footer help
    Thanks & Regards,
    Judith.

  • Need Urgent help to control extra page (Last page) display in Smart forms

    Dear all,
    I have supplier data in Header and corresponding line item data in another internal table.
    I am passing both to my smart form. I am using loop in Main Window with both the internal tables linked with GUID field.
    I am having 2 problems with  smart form output.
    1. One more extra page is displaying at the end (With header and footer but without data).
    2. when Data in a particular page exceeds, Next page is not having Header and Footer..Only data is displaying without Header and Footer.
    Can any one help ...
    Regards,
    Srini

    Dear all,
    I have supplier data in Header and corresponding line item data in another internal table.
    I am passing both to my smart form. I am using loop in Main Window with both the internal tables linked with GUID field.
    I am having 2 problems with  smart form output.
    1. One more extra page is displaying at the end (With header and footer but without data).
    2. when Data in a particular page exceeds, Next page is not having Header and Footer..Only data is displaying without Header and Footer.
    Can any one help ...
    Regards,
    Srini

  • Extra page shown in smartform

    Hi,
    please let me know how can I remove the extra page being printed at the end of the smartform, which I have used on change of some field using an event,.
    suppose the data is getting actually printed in 3 pages,  it is showing total of 4 page and 4th page is blank in all cases ,  i just need to remove this extra blank page,
    thanks in advance
    Rohan

    hi,
    total pages used are 2 , one for main page and then NEXT PAGE
    suppose i gave input as EBELN OF 4500000128  to 4500000129
    it shows output as
    pages 1 of  4 on the intial page.
    4500000128  comprises of 2 pages in all it has 20 details
    4500000129 comprises of 1 page worth data contains 2 detail
    now in all 3 page shows all the data required..
    but the 4th page is shown and it displays a blank window [no data] fills the header though of next page but since no data is there, it shows blank main window
    the same case is repeated in all the cases, just the page number changes, but in every case extra blank page at end is shown.
    i want to remove the last page being shown
    i hope you are clear with the output i am getting

Maybe you are looking for

  • I'm using 3gs, after updating the OS with 6.1.3 version lost all my photo albums unable to retrieve through Itunes kindly help me in this regard.

    Hi There, A month ago I had 3gs with 4.1 OS version and I synced all my photo albums from my old laptop as I have planned to sell it off. I sold my old laptop and accidentally kids at my home have pressed reset button and my phone got locked, now I g

  • SQL Dashed Line - Can It Be Omitted ?

    Is there any way to omit the dashed line under the heading when you run sql e.g example: select id,name from test; output: ID NAME 1000 Test1 14134243 Test2 I would just like to see ID NAME 1000 Test1 14134243 Test2 Thanks in Advance Jim

  • I don�t understand those connection pools?

    Does anyone have a really clear example on how to set up a connection pool in my controler Servlet's init() method, and how I can access that pool, and pick up a connection from within my dbConnect Bean. If this is not a proper setup, please comment.

  • How Adobe viewer scales images?

    Hi, I am putting a JPEG file of lesser resolution than the PDF and is scaling it inside PDF. I have a doubt how the viewer scales the image while rendering? Is it just pixel replication or can we specify inside PDF to use some filters for scaling to

  • Auto Mounting USB sticks

    So, I've looked around a lot, but I can't find much at all about mounting my usb sticks whenever they're plugged in. It'd be nice to not have to # mount /dev/sde1 /home/droid/usb I've set it up as the wiki says to do so with Thunar, but it's still no