How to print text or field (inside a rep fram)on the last page in report 6i

Hi Everyone,
I want to print the text on the last page.
my text is inside a repetating frame.
as i want to display page no in the filed
and if it is a last page, display page number appended with Last
so it will look like
for 3 pages
on the first page
1
on second page
2
and on last page it should display
3 Last

You cannot know if you are on the last page or not. See this similar thread: Get value of total pages variable
Why not put the page number in the margin like this:
Page 1 of 3
Page 2 of 3
Page 3 of 3
You do that by creating a text field in the margin. Enter this text:
Page &<PhysicalPageNumber> of &<TotalPhysicalPages>

Similar Messages

  • How can I add a field to a Repeating Frame in the body of a 9i Report

    How can I add a field to a Repeating Frame in the body of an Oracle 9i Report whose source is in a higher group?
    I want to change an Oracle 9i report. The report has no header or trailer but only a body. The body has the parent frame fields & a repeating frame with four fields, A, B, C & D. They all seem to be in one group. I want to add another field E to the repeating frame whose source is from the 'header'.
    I added the field & created a boiler plate & then added the new field, E to the original group A, B, C & D. In the Property Inspector for the field, I pointed the source to the source column in the main query. However, when I run the report, I receive the error "Invalid body size". Some notes on Metalink indicate that this could be due to margins being out of the printable area.
    Moreover, after making the changes & after having unsuccessfully run the report, when I try to open the Page Layout for the report, I get no details.
    Thanks,

    Hi,
    i also got same query can u pls tell me elaborately, if u can can u pls send some code.
    Thanks & Regards
    Jagadeeshwar.B

  • How to hide fields on Repetitive Area Footer on the last page?

    Hello,
    How can I avoid printing some fields on the last page, when this fields
    are on the Repetitive Area Footer, and the Repetitive Area Footer is
    defined to print on all the pages? I was hoping to do this with fileds linked
    to (ContinueNextPage) field, but it doesn't work!
    Regards,
    Júlio Pinho

    hI Júlio Pinho,
    i think, it is not possible in Repetitive Area Footer on PLD.
    but, it is possible in Page Footer on PLD.
    IF you dont need print some Fields in Last Page on printout.
    Try this,
    ->> Open the require PLD.
    ->> Create require Fields in Page Footer.
    for example,
    => Create DocTotal Field in Page Footer on PLD.
    => Link to SystemString (ContinueNextPageNotice) Formual FieldID in DocTotal Filed.
    Save and Run the Print Preview.
    Regards,
    Madhan.

  • Want to hide a field in the last page of report

    Hi All
    I have an issue .. can anyone of the oracle techies give me a solution for this ..? pleeaassee
    The issue is that let us say i have a report for 5 pages. I have placed a field on the margin of a report to display CONTINUE.. . Now we dont want this field to be displayed when the report is on the last page. We tried of setting property of the field Print on to All but last page but it is not accepting that
    can anybody provide a solution for that ..?
    Thanx in advance
    Hari

    The problem you're hitting is that the margin area is formatted before the body area in the report. Since this is the case, you don't know if you are on the last page since the body has yet to be printed when you print your "continue" column.
    There are a several ways to accomplish what you want:
    - Guess whether it is the last page and print based on your "guess"
    Normally you'd use a running count along with a total count to see if you've printed the last instance of the repeating frame and are hence on the last page. Since your object is in the margin rather than the body, you'd need to estimate how many records will fit on the page and if there are less then these many records left then you shouldn't print the "continue" field.
    This can be tricky to do if your frame is variable sized so you don't really know how many instances of the repeating frame will be on each page.
    - Place the "continue" field in the body rather than the margin
    To do this, you need to create a fixed sized frame that all your normal layout goes into. This should be sized to your typical page size. Then create the "continue" field after the fixed sized frame (you may need to re-size the body area - do this in "margin" mode). Set the print condition to "all pages" against the "continue" field so that it prints on every page. You can then use the running count/total count method to determine if the last repeating frame has been printed when you come to print your "continue" field.

  • Fixing table position on the template and printing on the last page

    Hi,
    I have a requirement where i need to print a table at a fixed position and at the last page.
    if there is a single page, then the said table should print at the bottom of the page ... if there are multiple line records, the records should print on the first page and second page till it completes ... and the table at the bottom ..
    even if there is a single line record, the table should be at a fixed position.
    how can this functionality be acheived ...

    clarify one question pls....
    For eg if there is only one record then the table should be in the bottom of the first page or in the fixed position in the second page.... b'cos as you told about multiple lines of records then it obviously comes in the bottom of the end page and will not be inthe fixed position...... right!!!
    Thanks
    PBV

  • How to print a field on the last page of Smartform with more  of 2 pages?

    HI FRIENDS,
    I NEED TO PRINT ONLY ONE FIELD IN LAST PAGE OF FORM SMARTFORM
    HOW DO I CHECK last page. I tried WITH THE FIELDS OF TABLE
    SFSY BUT NOT worked.      
    The form has  more of  2 pages.
    Thank you.
    ROGERIO VAZ

    Hi ,
    You dont have to hard code anything to achieve this functionality,
    just create a window and in that window define a text element to print
    that variable.In the conditions tab of that window check the check box
    "only after end of main window".i think you might have used a main window,
    so irrespective of the no of pages the smartform prints,it always displays that
    field in the last page of the smartform.
    regards,
    srikanth.

  • How to print text vertically in smart forms

    hi,
    Can any one tell how to print text vertically in smartforms
    ADVANCE THANKS
    GUHAPRIYAN

    HI,
    Chk out  this thread.Maybe it proves helpful.
    Re: vertical writing in smartforms
    Regards,
    Gayathri

  • How to print text on container using oop on alv list

    Hello Guru's,
             pl guide me how to print text on container using alv list-display which have interactive events  using     oop classes/methods ...
                    I want to print hard coded text on coantainer , on double clicking it will call another screen.
    Pl Help..
    Message was edited by:
            paresh sonavane

    Hi Paresh,
           1.      Go to the Layout and Create One custom container box and give name it.
            2. Custom Container is the one type of tool and its used for Displaying the Reports 
                with the use of ABAP Objects.
            3. Go to se38 and Write The Following Code.
    tables ZTEAM_GD.
    DATA : OBJ TYPE REF TO CL_GUI_CUSTOM_CONTAINER,
           OBJ1 TYPE REF TO CL_GUI_ALV_GRID.
    DATA IT_TEAM LIKE TABLE OF ZPLAYER_BAT_DET       .
    SELECT * FROM ZPLAYER_BAT_DET INTO TABLE IT_TEAM.
    CREATE OBJECT OBJ
      EXPORTING
        CONTAINER_NAME              = 'ALV'.          -
    > Give ur Container Name
    CREATE OBJECT OBJ1
      EXPORTING
        I_PARENT          = OBJ.
    CALL METHOD OBJ1->SET_TABLE_FOR_FIRST_DISPLAY
      EXPORTING
        I_STRUCTURE_NAME              = 'ZPLAYER_BAT_DET'
      CHANGING
        IT_OUTTAB                     = IT_TEAM.
    *CALL METHOD OBJ1->SET_DROP_DOWN_TABLE
    EXPORTING
       I_STRUCTURE_NAME = 'ZTEAM_GD'
    CHANGING
       IT_OUTTAB        = IT_TEAM.
    CALL SCREEN 9000.
    *&      Module  USER_COMMAND_9000  INPUT
          text
    MODULE USER_COMMAND_9000 INPUT.
    CASE SY-UCOMM.
    WHEN 'EXT'.
      LEAVE PROGRAM.
    ENDCASE.
    ENDMODULE.                 " USER_COMMAND_9000  INPU     
    Thanks.
    Reward If Helpful.

  • How to print text on back and back of page in smartforms

    How to print text on back and back of page in smartforms.

    Prince,
    in page's output option you can set D for double-sided.
    Default: No change of print mode
    S     Begin new page in SIMPLEX mode (single-sided)
    D     Begin new page in DUPLEX mode (double-sided)
    T     Begin new page in TUMBLE DUPLEX mode (double-sided)
    Amit.

  • How to print "Text" in JAVA(TM)....

    Does anyone know how to print "text" using Java?
    - Here's an example output...
    NOTE: # == 'empty spaces'
    --------------------------- <- Paper
    |###################|
    |####Welcome#########|
    |###################|
    |########to##########|
    |###########JAVA(TM)##|
    |###################|
    |#######Programming####|
    |###################|
    Please post a complete << SAMPLE CODE >> for printing the "text" (Welcome to JAVA(TM) Programming. Including the indentions. So it will not be like this...
    -------------------- <- Paper
    |Welcome |
    |to |
    |JAVA(TM) |
    |Programming |
    | |
    | |
    | |
    | |
    Thanks.

    Please read How To Ask Questions The Smart Way

  • How to print text in paper format iin smartforms

    Hi all,
      I want a question that  how to print text in paper format like  paper divides into 2 parts and if the firstpart is full of text i.e., it exceeds the first page the text will be displyed in the second part of the first page.
    Usefull answers will be awarded.
    Thanks all...

    Hi,
    U create two windows in the page and same as like second page.
    but in first page first window select the condition print only on first page.
    in second window select conditin print only on second page.
    first try without creating a secondpage. if that doesn't workout create secondpage and try.
    Assign points if useful.
    Regards
    (YUGANDHAR.P)

  • How to print a field on the last page of Smartform?

    HI FRIENDS,
    I NEED TO PRINT ONLY ONE FIELD IN LAST PAGE OF FORM SMARTFORM
    HOW DO I CHECK last page. I tried WITH THE FIELDS OF TABLE
    SYSF BUT NOT worked.
    Thank you.
    ROGERIO VAZ

    Hi,
    Goto the conditions tab of that window and enable the check box for Only after the end of main window.
    This will surely print your field in the last page.
    try this and get back to me if any issues.
    Regards,
    Anand.

  • How to print * in Password Field

    Dear ALL,
                   Can anybody tell me to how to print * For Password field.What is that type?
    Regards,
    Mayank

    Hi Mayank,
    Refer the code below. This code is checking the Password against a custome database table.
    Hope this helps you.
    REPORT  YLAX_TEST7                              .
    tables :ZS_ETTIFN_REP.
    data : i_ettifn like zs_ettifn occurs 0 with header line,
           ws_lines(10) type n.
    PARAMETERS: p_pass TYPE xuncode.
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF screen-name = 'P_PASS'.
          screen-invisible = '1'.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.
    START-OF-SELECTION.
    select * from ZS_ETTIFN_REP into table i_ettifn .
    describe table i_ettifn lines ws_lines.
      WRITE: / p_pass,ws_lines.
    <b>Reward points if this helps.
    Manish</b>
    Edited by: Manish Kumar on Feb 11, 2008 12:15 AM

  • How to print texts from iphone 4

    how to print text from iphone 4 without having to screenshot?

    An iOS cannot be downgraded or uninstalled...Apple has never supported doing this and removes the older iOS version files when a new iOS is released.

  • How can I print a label on the last page of the report in the margin

    I would like to display a label on my report but has to appear only on the last page of the report in the margin area or as a footer. I have tried using the solution below that I came across in this forum. This solution only worked if I put the label as a report trailer and not in the margin of the main section of report. The problem of putting the label as a report trailer is that it will only appear at the end of the report on it's own page, i.e. on a new page. I would like the label to appear at the end of the report, on the last page which has the other report details and not to appear on a new page on its own. Could you please help? Thanks.
    1. Create a dummy query, like
    select 1 dummy
    from dual
    2. Create a package spec:
    PACKAGE pkg_globals IS
    totalPages number(3);
    END;
    2. Create a repeating frame and field for this dummy at the end of the report layout.
    3. Create a format trigger for this frame:
    function R_1FormatTrigger return boolean is
    begin
    SRW.GET_PAGE_NUM(pkg_globals.totalPages);
    return (FALSE);
    end;
    4. Create a format trigger for your margin field:
    function F_1FormatTrigger return boolean is
    pagenum number;
    begin
    srw.get_page_num(pagenum);
    if pagenum = pkg_globals.totalPages then
    return (TRUE);
    else
    return (false);
    end if;
    end;

    user8655468 wrote:
    I would like to display a label on my report but has to appear only on the last page of the report in the margin areaCreate a fixed frame at the bottom of margin area and inside the frame put your label.
    set the frame print object on: Last page
    Hope this works..

Maybe you are looking for

  • Retrieve task statistics via soap

    Hello, I would need some task-list-metadata like the total number of tasks, the number of assigned tasks, the number of completed tasks just like the Chart-Feature in the BPM Worklist Application. I need to be able to retrieve that data via soap. I c

  • How to configure radio in 1812 router as client?

    Hi, I'm trying to setup six new 1812 routers as wireless clients in an existing wireless network. I want to use them as wireless bridges. Is it possible? I can't find any info about this case in the documentation. There is mentioned only one possible

  • Skype 6.22.x UI has gone backwards in terms of rea...

    I can't quite put my finger on it, it could be the colors, or the space difference between all the different elements, but my eyes found the older skype a lot easier to tell the different elements apart from each other. Like when quoting ppl now, I c

  • Why the office windows always on top of others - how to change it back?!!

    I'm using mac os x and office 2011. Since maybe couple weeks ago (maybe after one of the office upgrades?), when I have multiple office windows opened (e.g., multiple word documents, excel, powerpoint), these windows always appear on top of others (e

  • Where I should complain about spotty service area????

    I tried calling customer support and they really can't do anything about it other then...(removed). Where i can complain so I can have my good service back like a year ago. I use to get 5 bars in my home not its drop to 2 or 3. Used to get good 4g LT