How to print the text in only last but one page in sapscripts

hiiiiiiiiiii,
         explian how to print the text in only last but one page in sapscripts? wher to write the code? plz if possible explain in detail with an example?

Hello,
The total no pages is given by &SAPSCRIPT-FORMPAGES& command.
So u can handle the situation in ur form like this
/: if &PAGE&  = &SAPSCRIPT-FORMPAGES&
p1 TEXT
/: endif
Try in this way it may help u.
Regards

Similar Messages

  • How to display text on last but one page in SAPSCRIPTS

    how to display text on last but one page in SAPSCRIPTS

    u have create one Foooter window , this has to be called in  only One Page.So hardcode /assign this window to only one PAGE number.
    regards
    Prabhu

  • How to print the same picture multible times on one page

    how can i print the same picture multible times on one page
    Message title was edited by: Brett N

    Select all of the images you would like to print in the Elements Organizer, then go to File > Print. In Step 4, choose Picture Package from the drop-down menu. In Step 5, click the option to Fill Page with First Photo.

  • How to print the text in points wise in sap script

    hi friends,
    how to print the text in points wise in sap script.
    ex: if suppose paragraph consists of 15 lines. then according to one sentence or one fullstop (.) it should give point 1. like that...
    1. hai how ru.
    2. what r  u doing.
    3.where r u.
    like this i want numbering.. waiting for ur replys.
    thanks,
    kiran

    declare a counter
    data : cnt type char 4.
    print :
    cnt = cnt + 1.
    &cnt& &text&
    cnt = cnt + 1. and so on.
    or.
    if the data is in an internal table
    loop at internal_table.
    cnt = cnt + 1.
    write form.
    in script -&cnt& &text&
    endloop.
    Edited by: NIKHILKUMAR POOJARI on Nov 17, 2008 11:18 AM

  • How to print the texts retrived by using READ_TEXT fun module in Smartform

    Please tell me how to print the text which is rertrived by using the READ_TEXT function module in smartform.
    I have coded all things in the program lines and in that i am retriveing the long texts.
    I am getting the text lines in my internal table clearly, the thing is that I am not able to pass these lines to the text.
    I have to print the trouble ticket. in that the notes log I have to pass.
    its urgent. Points will be rewarded for any type of clue. whether it will work or not.

    There are a few ways to do it. If you need to take all of the text in the text type, in your SF text element choose "Include Text".
    Populate the fields with the data that corresponds to the text type. It is similar to the interface to the FM "Read_Text.
    Text Name
    Text Obje
    Text ID 
    Language
    Encase any variables with the "&" symbol.
    If you have already coded the call to the FM "READ_TEXT" and loaded the text into an internal table, create a loop and loop through the itab. Inside of the loop create a text element and add a variable in the text element for the field you are looking to output.

  • Print text on last but one page of SmartForms

    Hello everyone,
       Here I have a very specific requirement in SmartForms which I am not able to do even after trying a lot of options.
       I want to print Items of PO in Main Window and I am printing total on a different window which should be printed at end of all Items.  Again this does not mean total is printed on last page, as the last page has Conditions which is default with every PO.
      So the requirement is to find out the last but one page at runtime and print the total. 
    Thanks.

    Hi Priya,
    Even I faced the same problem while creating invoice.
    Soln:
    declare a variable "g_counter" at global definition tab with data type "I'.
    In the main window just after your table and before the command line which you have used, create a program line and give input and output parameters as "g_counter"
    In the body of program line just write "g_counter = g_counter + 1".
    Make sure your total window is placed after the main window in sequence.
    Than in the total window you can put condition as "g_counter = 1".
    I am sure this issue will be reolved.
    Regards,
    Vinit

  • How to display text on last but one page

    how to display text on last but one page

    Hi Preeti,
      If u r working on a smartform then click on th window go to the condition tab there
      at the end u will find events click on the the event on which u want to trigger the 
      print.
      If u r working on a script then create a text element and call this text elemtn at
    the end of processing of the main window, this will make sure that thetext element
    is triggered only at the end.
    I hope that helps u , if not pls let me know.
    Regards,
    Vaibhav B Gawali.

  • How to Print the text in a Text Area Component

    It is really amazing how much information is out there for
    Flex but you can never find what you are looking for :-(
    I am trying to print the contents of a text area component.
    If I just do addPage(Component Name) it works but it prints the
    whole conponent including the scrollbars, on the page. I just want
    the text. If I try to put the component name.text in addPage(), I
    get a "1067: Implicit coercion of a value of type String to an
    unrelated type flash.display:Sprite." error. Does anyone know how
    to do this?
    Any help would be greatly appreciated.
    Dave

    Is there anyone who can help with this? I really need a way
    to print the results.
    Thanks.
    Dave

  • SCRIPT - How to print the text at the center of the footer window.

    In my SAP script,
    I have some text in my footer window ( which was set using tabs ).
    I need to print the footer text as centered.

    Hi sam,
    In paragraph format press standard button (default it will be coming when u go to paragraph format )
    <b>space before</b> - 0.50cm   give according to u r requirement
    space after
    <b>left margin</b>   - 0.5 cm  give according to u r requirement
    right margin
    ( or )
    directly u can give
    <b>alignment - CENTER</b>

  • How to print the all content of JTextArea to several pages

    Hi there, my application have a JTextArea and user can type text in. When the jbPrint button is pressed, the all content of JTextArea should be printed to papers. But now my application can only print out the first page even the content of JTextArea is 3-page length, does anyone can give me some clue or example? Thanks in advance.!! Really hurry!!

    Use freely downloadable smart jprint classes from http://www.activetree.com. This package also allows you to print contents of any kind of JTextComponent such as JTextField, JTextArea, JEditorPane, and JTextPane.
    Print the swing components with or without showing in the UI. Line breaking is done automatically for you and prints in multiple pages.
    JTable printing is specially interesting.

  • How to handle the date attribute,passing parameter from one page to another

    hi Friends,
    i want to pass data attribute from one page to another page-
    i am passing like below ,in jdev log window i am getting below error.
    String StatusUpdateDate = row.getAttribute("StatusUpdateDate");
    params.put("StatusUpdateDate",StatusUpdateDate)
    Error(121,50): incompatible types; found: java.lang.Object, required: java.lang.String
    Suppose i am passing like below , while moving one page to another i am getting below error in application
    String StatusUpdateDate = row.getAttribute("StatusUpdateDate").toString()
    Status Update Date - JBO-25009: Cannot create an object of type:oracle.jbo.domain.Date with value:26-MAR-2009
    please can any suggest me how to handle this error.
    Thanks and Regards,
    vamshi

    Hi Pratap, Thanks for your help
    it was my mistake that previously property it was varchar2, now i have changed as you suggested every thing. still i am getting error. this is my code-
    AM CODE-
    public void xxselection(String Name, String Email,String Product,String Region, DATE StatusUpdateDate)
    DetailVOImpl vo1=getDetailVO1();
    vo1.initQuery2(Name);
    Row detailRow = vo1.createRow();
    detailRow.setAttribute("Name", Name);
    detailRow.setAttribute("Email", Email);
    detailRow.setAttribute("Product", Product);
    detailRow.setAttribute("Region", Region);
    detailRow.setAttribute("StatusUpdateDate", StatusUpdateDate);
    vo1.last();
    vo1.next();
    vo1.insertRow(detailRow);
    detailRow.setNewRowState(Row.STATUS_INITIALIZED);
    Controller- Process Form Request- Source page
    if (pageContext.getParameter("Detail")!= null)
    String Name=row.getAttribute("Name").toString();
    String Email=row.getAttribute("Email").toString();
    String Product=row.getAttribute("Product").toString();
    String Region=row.getAttribute("Region").toString();
    DATE StatusUpdateDate =(DATE)row.getAttribute("StatusUpdateDate");
    HashMap params =new HashMap();
    params.put(" Name", Name);
    params.put("Email",Email);
    params.put("Product",Product);
    params.put("Region",Region);
    pageContext.putTransactionTransientValue("StatusUpdateDate",StatusUpdateDate); //As you suggested
    pageContext.forwardImmediately("OA.jsp?page=/xxm/oracle/apps/pos/stg/webui/DetailStagePG",
    null,
    OAWebBeanConstants.KEEP_MENU_CONTEXT,
    null,
    params,
    true, // retain AM
    OAWebBeanConstants.ADD_BREAD_CRUMB_NO);
    another page Controller-Process request-Destination page-
    String Name = pageContext.getParameter("Name");
    String Email = pageContext.getParameter(" Email");
    String Product = pageContext.getParameter("Product");
    String Region = pageContext.getParameter("Region");
    DATE StatusUpdateDate=(DATE)pageContext.getTransactionTransientValue("StatusUpdateDate");
    Timestamp tstmpStatusDate=StatusUpdateDate.timestampValue();
    System.out.println("tstmpStatusDate"+tstmpStatusDate);
    Serializable[] parameters1 = {Name,Email,Product,Region,tstmpStatusDate};
    am.invokeMethod("xxselection", parameters1);
    Error - getting at while running the application page to page
    No method with signature - No method with signature - xxselection(class java.lang.String, class java.lang.String, class java.lang.String, class java.lang.String, class java.lang.String)
    every thing is getting passed except DATE Attribute, please check the code and update me
    Thanks in Advace-
    vamshi

  • How to get the text of several cells in one? (Operator "&")

    Hi there,
    I have a list of done and planned tasks. In the one column, there is the description, in the other is the status like "plan" "open" and "closed".
    Now I want to create an overview.How can I filter the "open" tasks and display them in one cell? I could do it like
    +If(B1="open";A1;"") & If(B2="open";A2;"")...+
    and so on. But as I have over 20 projects and therefor over 20 sheets, I'm seeking for a easier way. Also the reference thing would only work if there is only one open project, but sometimes I have two or three open tasks.

    schubladenachrank,
    Now, I think I see what you are trying to do. With a clearer picture of what you wanted I came up with the following:
    First of all, the added columns in you project (title) tables are no longer necessary.
    Next, an "Open Tasks Summary", is still needed but a different concept is employed. A column is needed for each title and if a task is open, that task is concatenated with the previous list of open tasks. Not unlike the method you were attempting in your original post. At this point we note that the number of rows in all of your project tables must be at least equal to the maximum number of tasks of all projects. The number of rows in your summary table must be 1 greater. The sample allows a maximum of ten tasks and the last cell of a column will always show all of the open tasks for that project.
    In the first row (row 2) of the "Open Tasks Summary" table enter the formula: ="" (This is to seed the subsequent formulas below)
    The rest of the formulas follow the form: =IF(Title 1 :: $B2="Open",A2&" "&Title 1 :: $A2,A1)
    Copy these across first and change the title names. Then they can be copied down.
    Finally, match the last column cell to the proper title in your master summary under "Status" by using: =Open Tasks Summary :: A12
    pw

  • I need to print the text in secondary window in script

    hi all,
    how to print the text of purchase order (me22n) in script.
    plzz  explain with steps
    thanks in adv
    vidya

    Good that you know how to use read_text...
    In SAP script used it as shown below, in your script window call subroutine as shown below
    Go through this example
    Ex.
    /: PERFORM <Subroutine name> IN PROGRAM <subroutine prog name>
    /:USING &<field name>&
    /:CHANGING &<field name1&
    /:ENDPERFORM
    Display &<FIELD NAME1>&
    Then create subroutine pool program and you have to write the code.
    FORM ><subroutine name> tables int_cond structure itcsy
    outt_cond structure itcsy.
    data : value(20), value1(20). "do your own declarations
    Read int_cond table index 1.
    value = int_cond-value.
    ***Use FM Read text and store the text in value1 and pass it back to SAPscript as shown below
    Read outt_cond table index 1.
    outt_cond-value = value1.
    Modify outt_cond index 1.
    ENDFORM.
    Just rough idea given above.
    Close the thread if your question is answered and reward points to all useful answers.
    Regards,
    SaiRam

  • In Pages (5.2), in a table, superscript is not only not printing, but not printing the text around it. Bizarre

    In Pages (5.2), in a table, superscript is not only not printing, but not printing the text around it. Any answers?

    Known issue now for almost 9 months.
    Use Pages '09 if you have it.
    Peter

  • How to print the report file name and path and the last mod date

    Good morning,
    I am trying to print on the footer of the report the report file name and path as well as the report last modification date.
    Anyone would know how I can do that? I have checked the doc but found nothing.
    Thks. Philippe.

    Did you ever determine how to print report name and report last mod date?
    Thanks

Maybe you are looking for

  • Playing Quicktime on TV.

    I have Quicktime Pro 7.1.3 and would like to know how to play an animated movie I've created, on TV via a DVD player. I've tried a few export formats,codecs etc. and then copied to CD or DVD without any luck. Can anybody help? G4   Mac OS X (10.4.8)

  • Archiving external pdf documents in IXOS

    Hi all, I wrote an home made application to manage links between SAP and external systems. In this application I've a document number which corresponds to a pdf document I received on a windows file server. I'm receiving hundreds of pdf documents per

  • Installation 10xe on linux fc4

    I instal oracle 10 XE on linux FC4. I think I made all according the installation guide (pre+post) installation. I need to run 10xe on localhost-only machine. my install. tree: /usr/lib/oracle/xe/app/oracle/admin/XE/... Here are my last rows from ale

  • How to get battery information for macbook air 13"

    Hi, I am using macbook air 13" released by the end of last year. For personal reason, I have to buy a new battery for my mba through the internet. So, how can I check the battery information (such as release day and last day of warranty) using its se

  • VOIP Setup - help

    First of all I have to tell you I am very new to VOIP ,  I just have a question , Currently I am living in USA but my Home country is Sri Lanka and I want to call my home country numbers ( regular lines and mobile lines)  via VOIP , I have DSL line a