How to get Fixed lines per page  ? really Urgent !!!

I am facing problem with the fixed lines per page. The Footer block(Subtotal) is moving up leaving space at the bottom when the number of items is less.
I have a two groups : one for KIT ITEMS and other for KIT COMPONENTS. When i am generating report for only KIT ITEMS i am getting fixed footer by using
<xsl:variable name="no_of_lines_per_page" select="number(30)"/>
<?for-each@section:Q1?>
<xsl:variable xdofo:ctx="incontext" name="inner_group" select=".//Q2"/>
<?for-each:$inner_group?><?if:(position()-1) mod $no_of_lines_per_page=0?>
<xsl:variable name="first_rec" xdofo:ctx="incontext" select="position()"/>
but when i try generate the report in combination with KIT COMPONENTS together, i am not able to fix the number of lines per page. The Footer is going into next page. Now i have Q2 and Q3 where Q2 is Parent Kit Item and Q3 is Child Kit Components.
How can i get fixed lines per page for Q3 with respect to Q2 ?
I would really appreciate if anyone can reply me fast.

Hi Thanks for the link.I used the code which is there in this link. It is working for the items coming from Q2( Kit Parent Items) , but I want fixed number of lines combine for both Kit parent and its kit components( i.e Q2 and Q3 ). Could you please tell me , code to get fixed number of lines for this. It is really very urgent.

Similar Messages

  • How to give no of lines per page in alv report

    hi
    could anybody tell me
    how to give no of lines per page in alv report
    i need bottom of page too
    if possible plz send the code too
    it ll be very helpful to me
    thanx
    kals.

    Hi,
    This is possible, using some of the events in the ALV.
    You could use AFTER_LINE_OUTPUT event and call you form after say, a certain line count is reached on the list output.
      MOVE 'AFTER_LINE_OUTPUT' TO gw_event-name.
      MOVE 'AFTER_LINE_OUTPUT' TO gw_event-form.
      APPEND gw_event TO gt_events.
      CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
           EXPORTING
                it_events                = gt_events[]
    and define the form for each event as follows - this would be a dynamic call by the ALV.
    *&      Form  after_line_output
    *       Form for the After Line Output Event in the internal table
    *      --> rs_lineinfo
    FORM after_line_output USING rs_lineinfo TYPE slis_lineinfo.
      IF sy-linno eq v_linno.          "Defaulted value for line count
        perform write_footer.
        NEW-PAGE.
      ENDIF.
    ENDFORM.                    " after_line_output
    For lines per page:
    rs_lineinfo-tabindex would give you the index of the current line in the list, which you could use to read the t_outtab table, and reduce the line count of items displayed on the earlier page.
    There are a few other events too, like BEFORE_LINE_OUTPUT and END_OF_LIST which you can use as required and print the data.
    Regards,
    Anil.

  • My link preview has disappeared from the bottom left of the page (it no longer pops up when I hover over a link.) Thoughts on how to get it back? I really LIKE having it!

    My link preview has disappeared from the bottom left of the page (it no longer pops up when I hover over a link.) Thoughts on how to get it back? I really LIKE having it!

    It is possible that the screen is too high and that the scroll bar and the find bar and add-on bar fall off at the bottom.
    If that works then close Firefox (File > Exit/Quit) to save that setting.
    See also:
    * http://kb.mozillazine.org/Resizing_oversize_window
    If the above didn't help then see:
    * http://kb.mozillazine.org/Corrupt_localstore.rdf

  • Mail merge- how do I get each entry to be next label? Am creating labels and get one entry per page instead of one entry on each label??

    I'm trying to create a mail merge label sheet and am getting one label per page- how do I get each on entry on same sheet?
    Is there a "next entry" code?

    select phase_logid, orderid, phaseid, etc, max(statusid)
    status
    from yourtables
    where whatever
    group by phase_logid, orderid, phaseid, etc

  • How to get 2nd line in smartforms using template

    how to get 2nd line in smartforms main window using template. i have also defined loop .

    if possible can you try with the TABLES..
    Put one TABLE in your MAIN window
    create table lines as per your requirment...consider all lines like 6 for header, 1 for main, 1 for total
    Now, you will find three section under the tables: header, main, footer...
    in header section, create a table line, assign one of the proper lines from the line types.. repeat for your all lines.
    in main section, you can access your data form the loop.
    the footer secion will be called, just after the main will be finished.
    Regards,
    Naimesh Patel

  • "Portal Content Area Builder" how to get rid of this page heading?

    "Portal Content Area Builder" how to get rid of this page heading?
    Hi All
    I have created a Single page Website..??? by using folders.
    when a user click on any link that call a folder but not a page and that folder is displayed with the layout specified in "Content Area Page" however there is no such option available to change the Heading <Title>Page title</Title> for browsers so for every folder called it displays a Oracle defined Content area page title.
    "Portal Content Area Builder"
    Is there anywork around for this.
    Thanks.
    Rakesh.

    This problem is fixed in Release 2. There is no supported workaround in 3.0.

  • Control Lines per Page

    I need some information on how to control the number of lines that print on a page. I have designed a purchase order .rtf template. I can only print so many po lines per page and still leave room for a footer to print at the bottom of each page. Thanks for any help...

    See this
    Can you limit returned rows in a loop?
    See this thread ,
    you can do
    1. page-break
    2. sub-totalling
    3. control number of rows displayed in a page
    Re: Can you limit returned rows in a loop?

  • 25 lines per page?

    How do I set up pages to have exactly 25 lines per page?
    Thanks in advance!
    Jessica

    Welcome to Apple Discussions
    Create a page that looks just the way you want it, with 25 lines in the typeface and point size you want to use. Adjust the top and bottom margins to fit those 25 lines. Save as template. Always use that template and do not change type size or line spacing.
    Walt

  • How to get all previous versions page contents of a publishing page using SharePoint Client Object Model 2010

    How to get all previous versions page contents and other field values of a publishing page using SharePoint Client Object Model 2010?
    Thanks,
    Osmita

    Hi Osmita,
    Greetings.
    Here are the links that helps you. It has code attached to it.
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/a0d2ab40-99ba-4368-8505-1dc559ef6469/get-content-of-previous-version-of-page-sharepoint-2010?forum=sharepointgeneralprevious
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/faaf419f-997e-4150-9911-48cc375c3b46/how-to-get-previous-published-versions-of-publishing-pages-in-sharepoint-2010?forum=sharepointdevelopmentprevious
    Please remember to click 'Mark as Answer' on the answer if it helps you

  • HT3887 how do i fix line through bluetooth on macbook pro

    how do i fix line through bluetooth on macbook pro

    Howdy tayden44,
    If you are having an issue with a jagged line throught the bluetooth icon in your menu bar, you should restart your Mac. If the icon does not change, disconnect all USB devices and restart again. See this article for reference -
    Wireless input devices: Bluetooth frequently asked questions - Apple Support
    In particular the section titled What do the icons on the Bluetooth menu bar mean?
    Thanks for using Apple Support Communities.
    Best,
    Brett L 

  • How to get trending line in the graph

    Hi,
    I am using 10g. I have requirement as the following :
    Name Date Metric
    I can have bar graph against Date and Metric. My requirement is to have a trending line, so I calculated slope and regression line y=mx+c but I am not getting the right trend line. I can use regr_slope function to create a view in rpd but it doesnt support date values. Can you guys let me know how to get trending line like same in Excel.
    Thanks

    Hi,
    It's better to do at UI level.
    Can you please check the below link:
    http://kpipartners.blogspot.in/2009/04/linear-regression.html
    Hope this helps.
    Thanks,
    Pramod.

  • How to get the line in the template (smartform) with out using under score

    Hi,
         How to get the line in the template (smartform) with out using under score,
         and how to print the box (line the check box - small squre box (which is used ot mark the tick by the user in front of the item).
         Please provide the valueble answer as early as possible.
    Thanks,
    Ravi

    Hi Ravi,
    Line -
    Use a SMATSTYLE for this purpose.in the smartstyle create a paragraph or character with underline atribute.Then call the smartstyle in the text.
    Search SDN with Key <b>UNDERSCORE</b>.. will get few more posts on the same.
    For Checkbox - refer link
    Re: Quick Question on Smartforms
    Re: putting tick mark into check box in smartform
    Reward points if this Helps.
    Manish
    Message was edited by:
            Manish Kumar

  • How to get file line count.

    Hey guys,
    How to get file line count very fast? I am using BufferedReader to readLine() and count. But when dealing with big file, say several GB size, this process will be very time consuming.
    Is there any other methods?
    Thanks in advace!

    What I'd do is you create an infofetcher, register a listener, implement gotMore() and have that scan for '\n'
    Some might suggest getting rid of the listener/sender pattern or use multiple threads to make ii faster. This might help a little, but only if your I/O is super-duper speedy.
    you are welcome to use and modify this code, but please don't change the package or take credit for it as your own work.
    InfoFetcher.java
    ============
    package tjacobs.io;
    import java.io.IOException;
    import java.io.InputStream;
    import java.util.ArrayList;
    import java.util.Iterator;
    * InfoFetcher is a generic way to read data from an input stream (file, socket, etc)
    * InfoFetcher can be set up with a thread so that it reads from an input stream
    * and report to registered listeners as it gets
    * more information. This vastly simplifies the process of always re-writing
    * the same code for reading from an input stream.
    * <p>
    * I use this all over
         public class InfoFetcher implements Runnable {
              public byte[] buf;
              public InputStream in;
              public int waitTime;
              private ArrayList mListeners;
              public int got = 0;
              protected boolean mClearBufferFlag = false;
              public InfoFetcher(InputStream in, byte[] buf, int waitTime) {
                   this.buf = buf;
                   this.in = in;
                   this.waitTime = waitTime;
              public void addInputStreamListener(InputStreamListener fll) {
                   if (mListeners == null) {
                        mListeners = new ArrayList(2);
                   if (!mListeners.contains(fll)) {
                        mListeners.add(fll);
              public void removeInputStreamListener(InputStreamListener fll) {
                   if (mListeners == null) {
                        return;
                   mListeners.remove(fll);
              public byte[] readCompletely() {
                   run();
                   return buf;
              public int got() {
                   return got;
              public void run() {
                   if (waitTime > 0) {
                        TimeOut to = new TimeOut(waitTime);
                        Thread t = new Thread(to);
                        t.start();
                   int b;
                   try {
                        while ((b = in.read()) != -1) {
                             if (got + 1 > buf.length) {
                                  buf = IOUtils.expandBuf(buf);
                             int start = got;
                             buf[got++] = (byte) b;
                             int available = in.available();
                             //System.out.println("got = " + got + " available = " + available + " buf.length = " + buf.length);
                             if (got + available > buf.length) {
                                  buf = IOUtils.expandBuf(buf, Math.max(got + available, buf.length * 2));
                             got += in.read(buf, got, available);
                             signalListeners(false, start);
                             if (mClearBufferFlag) {
                                  mClearBufferFlag = false;
                                  got = 0;
                   } catch (IOException iox) {
                        throw new PartialReadException(got, buf.length);
                   } finally {
                        buf = IOUtils.trimBuf(buf, got);
                        signalListeners(true);
              private void setClearBufferFlag(boolean status) {
                   mClearBufferFlag = status;
              public void clearBuffer() {
                   setClearBufferFlag(true);
              private void signalListeners(boolean over) {
                   signalListeners (over, 0);
              private void signalListeners(boolean over, int start) {
                   if (mListeners != null) {
                        Iterator i = mListeners.iterator();
                        InputStreamEvent ev = new InputStreamEvent(got, buf, start);
                        //System.out.println("got: " + got + " buf = " + new String(buf, 0, 20));
                        while (i.hasNext()) {
                             InputStreamListener fll = (InputStreamListener) i.next();
                             if (over) {
                                  fll.gotAll(ev);
                             } else {
                                  fll.gotMore(ev);
    InputStreamListener.java
    ====================
    package tjacobs.io;
         public interface InputStreamListener {
               * the new data retrieved is in the byte array from <i>start</i> to <i>totalBytesRetrieved</i> in the buffer
              public void gotMore(InputStreamEvent ev);
               * reading has finished. The entire contents read from the stream in
               * in the buffer
              public void gotAll(InputStreamEvent ev);
    InputStreamEvent
    ===============
    package tjacobs.io;
    * The InputStreamEvent fired from the InfoFetcher
    * the new data retrieved is from <i>start</i> to <i>totalBytesRetrieved</i> in the buffer
    public class InputStreamEvent {
         public int totalBytesRetrieved;
         public int start;
         public byte buffer[];
         public InputStreamEvent (int bytes, byte buf[]) {
              this(bytes, buf, 0);
         public InputStreamEvent (int bytes, byte buf[], int start) {
              totalBytesRetrieved = bytes;
              buffer = buf;
              this.start = start;
         public int getBytesRetrieved() {
              return totalBytesRetrieved;
         public int getStart() {
              return start;
         public byte[] getBytes() {
              return buffer;
    ParialReadException
    =================
    package tjacobs.io;
    public class PartialReadException extends RuntimeException {
         public PartialReadException(int got, int total) {
              super("Got " + got + " of " + total + " bytes");
    }

  • Deskjet 5525 printing random characters, one line per page when printing both sides of page

    Hi. I have a deskjet 5525 wireless all in one printer. 
    I have installed all of the necessary hardware and have updated it. We have two computers running windows 7, 64 bit. I have not been able to update the firmware on the printer because the HP Device Updater program that does it cannot communicate with the printer via usb cable or wireless on two different computers I have tried.
    When trying to print two sided documents, it will print ok for about two pages, but then, it will start printing on line per page of random characters, blurred lines of text, gargabe basically.
    This is the second printer as the vendor replace the first one with the same problem. You would say, oh a software problem, but I have reinstalled the HP Deskjet 5520 series SW a couple of times, reinstalled the printer, but the problem continues. 
    An old HP deskjet 3845 worked for us pretty well on the same computers.
    Please help.

    Hi Onemangosta,
    I would like to help with the garbled text you are experiencing. I have found a great document for you to use and I can also help you with the firmware update.
    Troubleshoot text that might be gibberish, nonsense, or look garbled or scrambled
    In order to update the firmware on your printer ensure the printer is on the wireless network and touch the Web Services icon (this icon is the 1st of the 4 that run across the top of the front panel - looks like 2 little cell phones). Scroll through the Web Services menu, find and select Product Updates, select Check for Product Updates.
    If the printer is already up to date the front panel will say so, if it is not, the download and install will begin. It is possible you were unable to do the update form the computer because the printer does not need an update. The HP Device Updater will only see a printer that requires the update.
    Hope this helps.
    Please click the Thumbs up icon below to thank me for responding.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Please click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution.
    Sunshyn2005 - I work on behalf of HP

  • Report error using landscape style, lines per page errors.

    Hi
    A Custom report(use character units in designer,11 X 8.5, stadard settings...) developed(reports 2.5 on apps 11), which was working fine previously using standard landscape. The report produces exactly 56 lines physically per page.
    Now, in applications ,landscape print style is properties changed, number of rows changed from 66 to 57.
    Now report gives error:
    'M_XXXX_GRPFR' is not fully enclosed by its enclosing object 'Body'. M_XXXX_GRPFR is the outer most frame in my report layout.
    (I tried increasing page size, etc, no use, same error)
    Now, I don't understand why it is giving error, as, it prints only 56 physical lines per page when I see the output file generated.
    Is that landscape is defined as 57 rows, but it is not exactly 57 physical lines? Because when I took out some stuff from report layout, which now produces only 45 physical lines, it is working fine.
    But, I have all 57 phyiscal lines in the report that I want it to work, any suggestions?
    Thanks
    Rathan.
    null

    Hi,
    Try this, i might work for you.
    <?for-each:Q1?>
    Here, place KIT ITEM Data table
    Below that:
    <xsl:variable name="no_of_lines_per_page" select="number(30)"/>
    <xsl:variable xdofo:ctx="incontext" name="invLines" select=".//Q2"/>
    <?for-each:$invLines?><?if:(position()-1) mod $lpp=0?> <xsl:variable name="start" xdofo:ctx="incontext" select="position()"/>
    [here KIT COMPONENTS tabel will start]
    [In table first cell again start for-each group like below]
    <?for-each:$invLines?><?if:position()>=$start and position()<$start+$lpp?> ---this is in table first cell
    [in rest of cells, put your columns xml tags]
    <?end if?><?end for-each?> - in last cell.
    this is end of Q2 table.
    After that put a page break
    <xsl:if xdofo:ctx="inblock" test="$start+$lpp<=count($invLines)"><xsl:attribute name="break-before">page</xsl:attribute></xsl:if> -- page break outside the Q2 table.
    Now close the invlines for-each group
    <?end if?><?end for-each?>
    Close the Q1 for-each group.
    <?end for-each?>

Maybe you are looking for

  • MacBook Pro's w/ nvidia 8600m

    I have about 10 06'-07' MacBook Pro's in my fleet that were purchased 6 months ago.. At the moment I have 3-4 units that will not post video (LCD or external). I have tried the Option+Command+P+R+Power memory dump, and I hear the unit chime... Keyboa

  • Creating Oracle service in Oracle 8i Client for Oracle 10g XE

    Hi all We tried Oracle 10g XE on one Machine X - OS Windows XP Professional SP2 , It had earlier Oracle 8i Client. It installed fine. It is wonderful and easy to install. Services started automatic for listner as well as OracleXE. We are able to crea

  • Oracle Express and Forms

    Hi Does anyone know if u am able to user oracle forms fromt eh development suite to connect to a oracle express xe edition? or do i need to download the full version of the DB.

  • Viewing iBooks on a PC

    Hello everyone. I have a few iBooks on my iPod, although the pages are small and some parts are difficult to read. It also requires a lot of scrolling and changing orientation also takes a little time to do. Is it possible to view iBooks on a PC eith

  • Streaming video from iPad to Apple TV using Airplay

    Hey there, I have the following problem which I havent been able to fix. I have an Apple TV (2010 model) and the latest iPad which I use to stream videos on my TV using Airplay. Everything seems to work fine, I am able to stream and whatch movies on