How to print header in first and last  page only in SAPSCRIPT

Hi!
How to print header in first and last  page only in SAPSCRIPT,
in between pages,  I need to print all line items in MAIN window only .
Thanks in anticipation!
Aki.

Hi All,
Thanks for your early update...but my requirement here is
I have two pages (FIRST , NEXT ) First is having Header, Main and Footer
NEXT is having Main and Footer ..I am printing PO here..let us think that my PO is having 20lines items , let us assume that it takes five pages...
Now how application is printing is ..first set of data is printing in FIRST page and remainiang data distributed to 4 pages printing in NEXT page ..but what my requirement is , I need fifth page print on FIRST page, instead of NEXT page... Ultimately I need last set of data always print in FIRST ie out of 5 pages 1st print on FIRST 2nd 3rd 4th print on NEXT and 5th print again on FIRST .
hope you this will clear you.
Thanks!

Similar Messages

  • How to report header and footers on first and last page only

    Hi
    We are trying to create a report that has a one data header on the first page and another header on subsequent pages then the data body then a footer section on the last page only. If we only have one page of data it works fine but when we move to multiple pages the data body section does not expand to fill the gap and we are left with second header but then a gap before the data.
    We have tried to use anchors but are realy stuck. Any help would be greatly appreciated
    Ian

    Something like:
    LOOP AT t_output1.
      WRITE:/1 vline,
      2 t_output1-ktokd,
      17 vline,
      18 t_output1-kunnr,
      29 vline,
      30 t_output1-name1,
      70 vline,
      71 t_output1-katr1,
      87 vline,
      88 t_output1-land1,
      96 vline,
      97 t_output1-vkorg,
      107 vline,
      108 t_output1-kvgr1,
      118 vline,
    * DV4K934131-Start.
    * 119 T_OUTPUT1-TTEXT,
      120 t_output1-v_text,
    * 150 VLINE.
      255 vline.
    * DV4K934131-End.
    ENDLOOP.
    WRITE:/1 sy-uline(255).
    TOP-OF-PAGE.
      IF p_upda = 'X'.
        v_linsz = 255.
        FORMAT COLOR COL_HEADING INTENSIFIED ON.
        WRITE:/1 vline,
        2 text-h01, "'Sold to/Ship to'
        17 vline,
        18 text-h02, "'Customer#'
        29 vline,
        30 text-h03, "'Customer Name'
        70 vline,
        71 text-h04, "'Customer Status'
        87 vline,
        88 text-h05, "'Country'
        96 vline,
        97 text-h06, "'Sales Org.'
        107 vline,
        108 text-h07, "'EST Status',
        118 vline,
        119 text-h08, "'Change History',
    * 150 VLINE.
        255 vline.
        FORMAT RESET.
        WRITE:/1 sy-uline(255).
      ENDIF.
    Rob

  • IDCS3 Print Booklet - Image across first and last page

    Does anyone know how I could place an image to be wrapped around the cover of a booklet? No problem on inside pages because they show as two page spreads but the first and last pages don't display as a two page spread.

    Place it on the cover and stretch it out across what would be the back
    cover if it were there.
    Copy to clipboard and scroll to the last page. Edit>copy in place. Crop
    to fit on back cover and front cover.
    Bob

  • How can I display the first and last name using a paramater as employee ID?

    Hi SAP,
    I have a parameter that is called {? Employee ID}.   What I want to do is display the first and last name based on the employee ID value entered in {? Employee ID} in the page header of the report.  Right now, when I put the following formula in the page header only some pages get the right result while other pages dont....
    if table.employeeid = {? Employee ID} then
    table.firstname" "table.lastname
    It appears as though if the first record in the details section on the beginning of each page happens to be the employee under {? Employee ID} then it prints it correctly, if it isn't I get a null value in the page header.
    Anyone have any ideas?
    Z

    Hi Try this,
    Whileprintingrecords;
    if ={?EmpID} then
    Also check the option "Default values for null" in the formula editor.
    Regards,
    Vinay

  • Problem regarding printing in first and last page of a form

    I need to print a some text only in the first page and last page. I have defined a window to print this text. The number of pages that will be created is decided on run time. Can some body please help regarding this issue. I have tried to use SFSY-FORMPAGES to calculate total number of pages in the begining but it does not work
    Edited by: subhajit bhadra on Feb 20, 2009 7:44 AM

    Hi Badhra,
    You can use conditions for that window or text element.
    in conditions, tick 'only befor main window' forr header
    and 'ONly after main window ' for footer.
    Sunil

  • How do I easily select a group of emails in Apple Mail if I want to delete them? In other words, how do I select the first and last message and delete everything in between?

    How do I easily select a group of emails in Apple Mail if I want to delete them? In other words, what do I select if I mark the first and last email to delete everything in between? Thanks.

    I have this same issue. I have over 100 email addresses that I need to add to a group. The issue is not making the group, it's getting the email addresses from Mail to Contacts.
    Dragging the email addresses does nothing. You can copy the addresses, but there's nowhere to put them. You can make a VCF for an email address, but then you have to find all of them to add them to the group. How do you automate this?!
    I'm astounded that there's so little support for such a common issue for which people have been asking for years.

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

  • Different Header for First and Subsequent Pages with Summary on last page

    The data in report can vary from 1 to more than 50 rows (order lines). The header on first page is detailed and the header on subsequent pages has only some fields (whenever data is large). There is a summary section which has to be on the last page of the report only and that too at the bottom (just above the fixed footer in the report).
    So, for a single page report the the detailed header, all lines, summary at the bottom and then the footer has to be printed.
    For a two page report - first page will have detailed header, some lines, fixed footer and second page will have short header, remaining lines, summary at the bottom and then the footer.
    For a three page report the summary has to be on third page only and so on.

    In a word processing document, select your object, place it where you want & then go to Format > Advanced > Move Object to Section Master. To place a different repeating object, you will need to insert a section break.
    With page layout documents, each page is a separate section, so there is no section master. Objects placed on one page don't repeat.

  • 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 a label in the last page of the report

    Hi, I have a report af bottom page I trid to put a label, the label is in the margin, but when I change the print condition send me a error, illegal print condition, how can I print this label only in the last page at the botton of the page
    Thanks

    Herbe,
    You can do this using format trigger
    Please see the building reports manual / Tutorial for details
    at http://otn.oracle.com/docs/products/reports/content.html
    Thanks
    The Oracle Reports team

  • Looking to create first and last page for slideshow

    Hi,
    I want to create a first page that has "Happy 40th Wedding Anniversary to Bill and Judy". I also want to create a trailer page with a message typed from their children. How can I best create these two pages. I will take the photo album, create a slideshow from it and then export it to idvd.
    Thanks for help. Are there templates I can use/look at for the imac where I can create these pages?
    -Rick

    I will use word processor, print to pdf and then import to iphoto.

  • First and last pages on the wrong side?

    Hi
    I've gone on to inDesign CS6 for the first time in a month or so and for some bizarre reason my pages are backwards..
    as you can see in the image page '1' is on the right hand side, and should be on the left.  anyone got any ideas - sorry if its something simple i'm only a beginner! thanks a lot!
    Joe

    Grab a book and open it. That should verify that what you see is correct.
    Bob

  • How to adjust data in first and next pages in sap smart forms ?

    Hello,
    i am creating a purchase order and displaying it in a smartform. I have a main window in which i have a table listing the material details nested with item asscoiated with it. Underneath this table/main window, i have another window containing some 'special instructions'. And underneath this window i have another window which acts as a footer(signatures).
    Now what happens is that when i increase the no of items against a material in purchase order or input too many materials , my table gets cut and goes on to the next page ( which looks bad ).
    according to you what should i do ? or can i calculate or check the number of entries in the table and if they exceed the height of the main window, take the main window or the table to the next page(so that it doesnt get cut)   ??
    help needed ,, thanks....

    Hi,
    If the no. of line items are more then the data has to overflow into the next page. However, if the data is getting cut at the row level, meaning half of the data that belongs to the row is being split into two pages, then you can switch in the PAGE PROTECT mode at the line level.
    This will make sure that row is either completely displayed in the same page or the next page.
    Regards,
    Ravi
    Note : You have quite a few threads open, please mark all the helpful answers and close the threads if the questions are answered

  • How to split 'Firstname Lastname' into 2 columns 'First' and 'Last'?

    I import a .csv file from PayPal that throws the customer's First name, MI and Last Name all in one column. I have no problem going through and deleting the middle initial to make just two words separated with a space.
    How can I split the First and Last names that are separated by a space into two separate columns? It's a piece of cake in Excel, but for some stupid reason, I can't use Excel 08 for Mac to do it. Keeps saying that there is data in column #XX without a heading (there is no data there) when I try to import to PayPal Multi-order shipping.
    Please help! I'm desperate. Taking me for ever to cut and past each last name into the new column.
    Thanks for any help with this!
    Marcus

    Here is a script which does the trick.
    --[SCRIPT splitfirst_lastname]
    Enregistrer le script en tant que Script ou Application : splitfirst_lastname.xxx
    déplacer le fichier ainsi créé dans le dossier
    <VolumeDeDémarrage>:Users:<votreCompte>:Library:Scripts:Applications:Numbers:
    Il vous faudra peut-être créer le dossier Numbers et peut-être même le dossier Applications.
    Sélectionner la colonne de chaînes à découper (et éventuellement davantage pour définir la colonne recevant les noms propres).
    Aller au menu Scripts , choisir Numbers puis choisir splitfirst_lastname
    Le script découpe les chaînes sources au premier espace.
    Le prénom remplace la chaîne initiale.
    Le reste est déposé dans la cellule adjacente à droite ou dans la cellule de la denière colonne sélectionnée.
    --=====
    L'aide du Finder explique:
    L'Utilitaire AppleScript permet d'activer le Menu des scripts :
    Ouvrez l'Utilitaire AppleScript situé dans le dossier Applications/AppleScript.
    Cochez la case "Afficher le menu des scripts dans la barre de menus".
    Sous 10.6.x,
    aller dans le panneau "Général" du dialogue Préférences de l'Éditeur Applescript
    puis cocher la case "Afficher le menu des scripts dans la barre des menus".
    --=====
    Save the script as a Script or an Application : splitfirst_lastname.xxx
    Move the newly created file into the folder:
    <startup Volume>:Users:<yourAccount>:Library:Scripts:Applications:Numbers:
    Maybe you would have to create the folder Numbers and even the folder Applications by yourself.
    Select a column of strings to split (and maybe more columns to define the column receiving lastNames).
    Go to the Scripts Menu, choose Numbers, then choose "splitfirst_lastname"
    The script split the source strings on the first embedded space.
    The FirstName replace the original string.
    The reminder is stored in the cell adjacent on the right (or in the last column of the selected range.
    --=====
    The Finder's Help explains:
    To make the Script menu appear:
    Open the AppleScript utility located in Applications/AppleScript.
    Select the "Show Script Menu in menu bar" checkbox.
    Under 10.6.x,
    go to the General panel of AppleScript Editor’s Preferences dialog box
    and check the “Show Script menu in menu bar” option.
    --=====
    Yvan KOENIG (VALLAURIS, France)
    2011/02/23
    --=====
    on run
    run script doyourduty
    end run
    --=====
    script doyourduty
    set {dName, sName, tName, rname, rowNum1, colNum1, rowNum2, colNum2} to my getSelParams()
    if colNum2 = colNum1 then set colNum2 to colNum1 + 1
    tell application "Numbers" to tell document dName to tell sheet sName to tell table tName
    repeat with r from rowNum1 to rowNum2
    tell row r
    set first_last to value of cell colNum1
    if (first_last is not 0.0) and first_last contains space then
    set in_pieces to my decoupe(first_last, space)
    set value of cell colNum1 to item 1 of in_pieces
    set value of cell colNum2 to my recolle(items 2 thru -1 of in_pieces, space)
    end if
    end tell -- row
    end repeat
    end tell -- Numbers
    end script
    --=====
    set {rowNum1, colNum1, rowNum2, colNum2} to my getCellsAddresses(dname,s_name,t_name,arange)
    on getCellsAddresses(d_Name, s_Name, t_Name, r_Name)
    local two_Names, row_Num1, col_Num1, row_Num2, col_Num2
    tell application "Numbers"
    set d_Name to name of document d_Name (* useful if we passed a number *)
    tell document d_Name
    set s_Name to name of sheet s_Name (* useful if we passed a number *)
    tell sheet s_Name
    set t_Name to name of table t_Name (* useful if we passed a number *)
    end tell -- sheet
    end tell -- document
    end tell -- Numbers
    if r_Name contains ":" then
    set two_Names to my decoupe(r_Name, ":")
    set {row_Num1, col_Num1} to my decipher(d_Name, s_Name, t_Name, item 1 of two_Names)
    if item 2 of two_Names = item 1 of two_Names then
    set {row_Num2, col_Num2} to {row_Num1, col_Num1}
    else
    set {row_Num2, col_Num2} to my decipher(d_Name, s_Name, t_Name, item 2 of two_Names)
    end if
    else
    set {row_Num1, col_Num1} to my decipher(d_Name, s_Name, t_Name, r_Name)
    set {row_Num2, col_Num2} to {row_Num1, col_Num1}
    end if -- r_Name contains…
    return {row_Num1, col_Num1, row_Num2, col_Num2}
    end getCellsAddresses
    --=====
    set { dName, sName, tName, rname, rowNum1, colNum1, rowNum2, colNum2} to my getSelParams()
    on getSelParams()
    local r_Name, t_Name, s_Name, d_Name
    set {d_Name, s_Name, t_Name, r_Name} to my getSelection()
    if r_Name is missing value then
    if my parleAnglais() then
    error "No selected cells"
    else
    error "Il n'y a pas de cellule sélectionnée !"
    end if
    end if
    return {d_Name, s_Name, t_Name, r_Name} & my getCellsAddresses(d_Name, s_Name, t_Name, r_Name)
    end getSelParams
    --=====
    set {rowNumber, columnNumber} to my decipher(docName,sheetName,tableName,cellRef)
    apply to named row or named column !
    on decipher(d, s, t, n)
    tell application "Numbers" to tell document d to tell sheet s to tell table t to ¬
    return {address of row of cell n, address of column of cell n}
    end decipher
    --=====
    set { d_Name, s_Name, t_Name, r_Name} to my getSelection()
    on getSelection()
    local _, theRange, theTable, theSheet, theDoc, errMsg, errNum
    tell application "Numbers" to tell document 1
    repeat with i from 1 to the count of sheets
    tell sheet i
    set x to the count of tables
    if x > 0 then
    repeat with y from 1 to x
    try
    (selection range of table y) as text
    on error errMsg number errNum
    set {_, theRange, _, theTable, _, theSheet, _, theDoc} to my decoupe(errMsg, quote)
    return {theDoc, theSheet, theTable, theRange}
    end try
    end repeat -- y
    end if -- x>0
    end tell -- sheet
    end repeat -- i
    end tell -- document
    return {missing value, missing value, missing value, missing value}
    end getSelection
    --=====
    on parleAnglais()
    local z
    try
    tell application "Numbers" to set z to localized string "Cancel"
    on error
    set z to "Cancel"
    end try
    return (z is not "Annuler")
    end parleAnglais
    --=====
    on decoupe(t, d)
    local oTIDs, l
    set oTIDs to AppleScript's text item delimiters
    set AppleScript's text item delimiters to d
    set l to text items of t
    set AppleScript's text item delimiters to oTIDs
    return l
    end decoupe
    --=====
    on recolle(l, d)
    local oTIDs, t
    set oTIDs to AppleScript's text item delimiters
    set AppleScript's text item delimiters to d
    set t to l as text
    set AppleScript's text item delimiters to oTIDs
    return t
    end recolle
    --=====
    --[/SCRIPT]
    Yvan KOENIG (VALLAURIS, France) mercredi 23 février 2011 10:18:36

  • First and last analtic functions

    Hi
    I am trying to understand the functioning of first and last function. but getting not idea how they work.
    doc says
    FIRST and LAST are very similar functions. Both are aggregate and analytic functions that operate on a set of values from a set of rows that rank as the FIRST or LAST with respect to a given sorting specification. If only one row ranks as FIRST or LAST, then the aggregate operates on the set with only one element.
    Can anyone help me to understand this by an example as small simple one
    thanks
    Nick

    SQL> select max(sal) keep (dense_rank first order by empno) sal_max_first
      2       , min(sal) keep (dense_rank first order by empno) sal_min_first
      3       , max(sal) keep (dense_rank last order by empno)  sal_max_last
      4       , min(sal) keep (dense_rank last order by empno)  sal_min_last
      5    from emp
      6  /
      SAL_MAX_FIRST   SAL_MIN_FIRST    SAL_MAX_LAST    SAL_MIN_LAST
                800             800            1300            1300
    1 rij is geselecteerd.The order by clause orders the fourteen employees such that the first one is 7369 - SMITH and the last one is 7934 - MILLER. The expression returns the salary of SMITH (800) or the salary of MILLER (1300). The min and max are dummy since there are no ties when ordering by the primary key (empno).
    Regards,
    Rob.

Maybe you are looking for

  • PRs generated every day for consignment stock

    Hi all, we have schedualiing agreemet in place for some of our consingment stock but we are fadng issue that every day system generates PR for some of those materials for no reason.Ithese materials are MRP relevant. any suggestion. thanks

  • I would llke my report to show how many submitters marked a certain choice

    My form asked survey takers to rank a list of choices from 1 - 5 as their favorite and least favorite respectively. I would like my summary report to show how many ranked a choice as #1, marked a choice as #2 and so on. Is there a way to do that?

  • "RAW" and "movie" keywords no longer automatically added

    After a recent iPhoto update -- I'm using version 9.3 (650.39) now -- I've noticed that both the RAW images and the movies that I import from my camera are no longer automattically tagged with the keywords "RAW" and "movie".  In previous versions, af

  • 3.0EA1: syntax colors for reserved words and a shortcut for compile

    Hello, only two notes/questions: 1. If syntax coloring is enabled, do you get your information about the words from V$RESERVED_WORDS? Is it possible for you to enhance these reserverd words (for example from a separate file) to take care of the follo

  • Lights on star button

    My lumia 1320 does not light up the 'back' 'windows' and 'search' button. Is it factory default or defect? Solved! Go to Solution.