Remove Blank Page conditionally in Smartforms

Hi  Experts this is Arun,
I have Requirement in such a way that, Form should contain three different pages which display three different records using three different internal tables.My problem is I have to avoid second and third page if it does not contain any records in it.How can i conditionally skip those two pages.1st page always contain records in it.Thanks in advance.

Hi,
Please follow the below steps.
1. in your 2nd page, After your first node (any window, text etc...). Create-> Flow Logic -> Program lines.
In that program lines, Write code as below (First create a variable in Global seettings-> w_flag type flag).
if i_tab[] is initial.
w_flag = 'X'.
endif.
2. On same node create->Flow logic-> command. In Command node, First, Check the box for "GOto New Page".  Give your next page that is your 3rd page. And in Condition tab put following:
Field name -> w_flag ,,,, Rlation operator -> = ,,,, Com value 'X'.
It will directly take you to your 3rd page if i_tab is initial. Do the same for 3rd page..
Must be solving your problem
Regards,
lokesh.
Edited by: Lokesh Tarey on Apr 20, 2010 7:43 AM

Similar Messages

  • How to remove blank pages

    Dear all,
    How can i remove blank pages in combind pdf in one short, if you have any idea or suggestion for remove blank pages in Acrobat. We need without blank pages counting for final page count purpose.
    We tried to remove blank pages option in acrobat 9.0, but it is not use single short. It is taken more time to taken for maual work.
    If you have any scripting for this? or any option having in acrobat in single short? Please help me in this regard.
    Thanks
    kanaga kumar. k

    This can be done with a script, but a script can only assume a page is
    blank if it has not text in it. It can't know if there are images or other
    graphic elements in a page.

  • 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 remove blank pages from WebI Report in view page layout option

    Hi,
             I am working in Business Objects XIR2 environment. I have a WebI report with several sections. I need to show the report as a book with 69 sections (each section on new page). there are 69 sections on cost center and each cost center section has almost 10 sections embedded in it. When i see in regular view - I only see 69 pages but when I try to see in "View Page Lay out" option, there is one blank page added after each results page.
    Please let me know how to remove this blank page. I need to give users the option to download the book as PDF on to their machine. Now, when I download to my machine, I see one blank page after each results page.
    Thanks in advance.

    Jus convert your report in Page Layout mode and see if your first pafe is getting expand in the second page.
    Now check if there are any cell going into second page.
    - if there are any blank cell which is there after table.
    you have to check formating very carefull.

  • 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 after endnotes?

    I am formatting an academic book, and am receiving each chapter separtely, piece by piece, and each chapter is a separate file. The author wants footnote numbers in the text, but wants the references to be formatted as combined endnotes at the end of the book (not footnotes at the bottom of the page). Each chapter's footnotes begins with #1. I have inserted the footnote numbers, and then gone to the end of the chapter/document and deleted the endnote text from that chapter. However, Word still thinks that the endnotes are there and won't let me delete the extra blank pages where the endnotes text once existed. I have tried going into "Normal" and then Footnoes and removing the "endnote spearater," as well as the "endnote continuation separater": this has removed the lines, but not the pages. Any ideas? Suggestions? What if I don't insert the endnote text at all in each chapter, but simply create a new document with the end of book endnotes - woudl this work? Thanks.

    HI Julie,
    Are you asking about doing this in Microsoft Word? If so, a better place to ask would be the MS Word (Mac) forum at Microsoft's site. Click the link to get there directly.
    Regards,
    Barry

  • 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

  • Batch Process to Remove Blank Pages

    Hello!
    We are using Adobe Acrobat Pro 9 to scan in a bunch of double sided documents and OCR them to a specific folder.  Most of the documents are double sided, some arent.  What I would like to do is to leave the scanner on double sided to scan in all documents, what this does of course is on single page documents it will scan in a blank page on the "other" side.
    Is there a way within Adobe Acrobat 9 pro to remove this blank pages, preferrably with Batch processing?  I have tried to use the Preflight to and remove empty pages, but it didnt seem to work???  Should it?  Anybody else have any experience with this?

    Actually, PDF page content that is "empty" and a "blank" page (of the sort you describe) are not the same.
    You may find that someone will have to view the 2-sided PDFs and, in the Pages panel, select all the blank pages and then delete them.
    Be well...

  • Preflight Not Removing Blank Pages

    I'm using Adobe Acrobat X Pro on Windows 8 OS.  I frequently scan to PDF on a network printer over which I cannot control the print settings.  When I print 2-sided, there will often be blank pages (where there is no text on the second side).  I've tried to use the Preflight tool to remove empty pages.  The 'fixup' rule will work to remove empty pages, but I have to first go into View/Show-Hide/Navigation Panes/Content then scroll down the pages to find the blanks.  Then expand and right-click the XObject and delete it.  Only then I can go to the Preflight tool, select the 'remove empty pages' fixup.  It asks to resave the file then proceeds with the fix and removes the blank pages.  If I don't remove the XObject, the 'remove empty pages' tool' will resave an identical file and not remove the blank pages.
    You'd think there would be a better way ????
    Steve

    Ok, so I'd like to get rid of the white pages.  Is there a way other than a 3rd party utility?
    Steve

  • Remove blank page from document in Pages

    HI there
    I have created a document only require 1 page however it has created 2 pages. The second page is blank and I wish to delete it.
    Thanks

    It really helps if you tell us what version of Pages and what you have created and how.
    Generally however you probably just have something on that "blank" page and need to delete it:
    Menu > View > Show Invisibles
    Peter

  • Batch Processing Comment Summaries - auto removal blank page?

    Good Morning,
    I was hoping some one would be able to help me. I have folders of pdf's that contain multiple sticky notes. I was wanting to use the Advanced --> Document Processing --> Batch Processing --> Comment Summary Batch to put all information in the sticky notes onto a secondary page summarizing them. This works great!! However I need to keep the original pages and want (only if there is one) the comment summary to print on the next page. I do not want the page that says "no comment summary for this page" that also inserts. Is there a setting to turn that feature off while still providing the entire original document and the summarized comment pages?  Otherwise that is a lot of time to go and delete that page out of thousands of documents.
    Thank you so much,
    Amanda

    In the default php.ini is set open_basedir which limits work with php only to few directories (and directories bellow them). There is set /srv/http, /home,/tmp and /usr/share/pear by default.
    To allow your vhost you should add /data/www or set empty value.

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

  • Blank Page Issues in FrameMaker

    This thread addresses the prevention and removal of unwanted blank pages in FrameMaker.
    Sean

    <b>Difficult to Remove Blank Pages Caused by Custom Master Pages</b><br /><br />Consider the following troubleshooting concerning customized master pages and unwanted blank pages:<br /><br />Make sure you assign default Left or Right master page to the empty page(s) you want to remove. <br /><br />To elaborate: if the empty pages are NOT due to book-level pagination changes by FM when the book is updated, then they could be due to one or more chapters having had user-created master pages assigned to body pages prior to content editing that resulted in smaller chapters. For example, in a 4-page chapter that has the following master page assignments: <br /><br /><ul><br />Right<br><br />Left<br><br />Special_Right<br><br />Special_Left </ul><br /><br />If content editing results in a 2-page chapter with only the Right and Left pages and then the book is updated, FM's "pre-historical memory" remembers that the Special_Right and Special_Left pages had been there <can we whisper B-U-G?>, and blindly adds 2 blank pages to the chapter. <br /><br />The way to delete these kinds of pages is to:<br /><ul><br />1. Open the recalcitrant chapter.<br /><br />2. Add a couple of new paragraphs and force them to start at the top of column so that you get 4 pages.<br /><br />3. Use Format > Page Layout > Master Page Usage to specifically apply the default Right/Left master pages to the two new pages, thereby clearing FM's "memory" of the user-defined master pages having been applied previously.<br /><br />4. Save the chapter.<br /><br />5. Update the book.<br /><br />6. Open the chapter again and remove the two new pages.<br /><br />7. Update the book.<br /><br />8. <required step>Resume your favorite "don't sweat the small stuff" chant.</required step></ul><br /><br />Thanks to Sheila Carlisle for her expertise on this issue!

  • Blank page getting displayed how to remove it from smartform?

    I am using COMMAND line in smartform to display the second page on particular condition only. But because of it in display I am getting one blank page(extra page) at the end. Which should not appear. How to remove it?

    I guess there you must be using window/table/template there. If so try to decrease height of it and check .
    just drag up the window/template or table what u r using at last of the form. Only because of it extra space is generated and its taking you to next blank page.
    Edited by: Swetha on Jul 18, 2008 12:11 PM

  • How to remove last blank page from preview of Smartform

    Hi Experts ,
    I am creating a smartform having vbeln range option. Now if i give range from 2 to 10 then After Doc NO. 10
    i got a blank page . So can u please tell me how to remove that.
    Rgds,
    Premraj

    hey,
    Create a program lines node.....
    in that describe the internal table in which you are having the document number.If you are having 10 document number then you will be having 10 pages.... so create program lines befor the command line in the command line just give a flag ok.
    when the 10th page is created then the control comes to program line where the pagenumber will be equal to the number of document number there create a flag ( f = 'X') then give this codition in command line.Trigger the command line when ever f NE 'X'.So in the last time new page will not be triggered.
    Regards,
    Midhun Abraham

Maybe you are looking for