Footer details in smartform

I have to add a window in a smartform - which gives the total number of line items that i am printing using an internal table. The number of records should be printed at the end of the report - only once. Can anybody please tell me how to go about?

Hi Pavan,
1) Increment the Loop for each Line Item say suppose V_Count.
2) Create a window(EXTRA_TEXT) near the end of main window such that it overlapes the bottom of the main window.
3) Create a text element for the window and give the details " No of Records" whichever info u want to give.
4) Click the Conditions tab of the EXTRA_TEXT window and give the condition like " V_count = No.of records in the Internal Table".
5) So now the window will be active only when control is in the last item of internal table and text will be printed.
Pls award points if useful.
Thanks,
Karthik

Similar Messages

  • How can I download footer details along with report in excel

    Hi,
    I would like to download dashboard page Footer details (user details, report runtime info and page number are included in footer of dashboard page) as well along with my report, when I download into excel. How would I achieve this?
    Please suggest!
    Thanks,
    SMA

    Hi All…Thanks in Advance
    I don’t understand why it's behaving so typically.
    There are two things here
    1.     When I create a report from Answers and use the hand button (top most left) set all the details. Download then and there itself to excel it’s showing the user info even though there no such info shown with report in Answers, This is working fine.
    2.     However when I place the same report and enable the print, download links for the same report on dashboard page and when I try to download the report to excel it does not show me the user details even though after enabling the footer details using hand symbol of edit dashboard properties.
    Here end user wants this functionality when ever he download’s the report from dashboard page (not the ad hoc report from Answers) user details should appear in his downloaded excel or something.
    Reg
    SMA

  • How to skip footer details when loading data from a .txt file

    Hello experts,
    i have to import data from a txt file into my database. I have skipped my header info by using SKIP but how can i ignore my footer details.
    Thanks

    Reply on your other thread:
    Processing txt file for a required format

  • Regarding TABLE node -- Footer Area in smartform

    Hi Friends,
    This is regarding smartform.
    I have created TABLE node in MAIN window. As long as data exists in internal table my smartform is working fine. I mean it is displaying all the items and followed by TABLE FOOTER text.
    Assume if no data exists in the internal table. In that case the TABLE FOOTER text is moving up. But I need at least 10 line space in that table MAIN Area. I mean even thogh the data is not there in the internal table.. It should display some space and then TABLE FOOTER text should be displayed.
    Can any body tell me is there any way the TABLE FOOTER can fix irrespective of the data?
    This is very urgent. Thanks in advance.
    Regards
    Raghu

    For that, you can create one additional window such that it overlaps with the main window.
    The size of this window should be exactly equal to the size of the main window, excluding footer. That means footer should come just after this window.
    If there are no data to be displayed in the main window, then this empty window will be displayed.
    In effect, some blank lines will be shown.
    Just try this and check whether it suffice your requirement...
    Jissa.

  • Displaying line item details in smartform

    Hi,
    I need to display tax details of each line item in a smartform in the given format. Tax details should get displayed only if it present. Please tell me how to do this.
    for ex:
    item     description     qty         price   
    10       ytfytfyf             20          30
    VAT:2%
    Service Tax: 3%
    20        rwedw             30         10
    VAT:3%
    service tax:4%
    Thanks.

    hi,
    Under the loop node after displaying
    item description qty price
    10 ytfytfyf 20 30
    create another loop node of table tax information under the main loop with condition that is having same field in common... then create text elements  to display the following data
    VAT:2%
    Service Tax: 3%
    regards
    padma

  • * in footer of the smartform

    hello experts,
    i am printing the TDS certificates and in the footer , i am displaying the page number like 1/54 ....
    But instead it is printing as 1/* , but after the page number reaches the doubke digit it is displaying correctly like 10/54.
    I tried increasing the window size,but still it is showing the same.
    I am using the code
    &sfsy-page&/&sfsy-formpages&
    could some one throw light to this problem.
    with thanks and regards,
    Syed

    Hi,
    Set the window in which you are pinting the page number as final window.
    You can set the window attribute in the general attributes. (in the drop down select as Final window).
    Hope this helps you.
    regards,
    Tulasi.

  • How to Print Footer details conditionally in RTF template ( XML Bi report)

    Hi,
    I have a XML ( BI) report. in which i am printing carry frwd / running total/ sub group total values in the footer section.
    I have add one more condition to display the footer values based on the <xdofo:show-carry-forward ...> values.
    Please suggest and help me on this, how to handle this case.
    Regards,
    KAP.

    Hi,
    Thanks for the reply...
    Actually i am looking for the following scenarios :
    1. i want to Hide/ Don't show last 3-pages Footer information in the report.
    2. While i am displaying the Carry forward information in the report
    a. if the page/ running total is 0, i don't want to display the footer information.
    b. only case if the page/ running total is > 0, i want enable footer information dynamically for each page.
    i have done as follows :
    in the Template main body :
    *<?template:footer?>*
    **1000* *1000**
    *<?end template?>*
    and for behind 1000 currently :
    <xdofo:inline-total display-condition="exceptlast" name="RUNAMT"><xdofo:show-carry-forward name="RUNAMT" format="99G999G999D00"/></xdofo:inline-total>
    it was printing the " RUNAMT " calculated page total sucessfully. but here if the Total = 0 then i don't want to show the value in FOOTER...
    Thanks in Advance.
    Please let me know, if more information required to help..
    KAP..

  • Need help in conversion of pdf file to itab and d details abt SMARTFORMS

    hello all
    how can i retrieve data from  pdf  file (instead of a txt format) to an internal table for an BDC application .
    anyone of you please help me in SMARTFORMS .

    Hi,
    If you want to conver report data in pdf format then you have to made some changes in programe and some setting done by abaper in the programe.
    Regards,
    Anil

  • Missing one line in FOOTER window in SMARTFORMS

    hi experts,
    In the footer one line is missing in the print preview for ME23N Tcode.
    what should be the problem. Actually in the Footer window, in the template i have mentioned the 25,50 CM width and 19,00 MM height. I have divided the width into 2 columns, 1st column i have taken 5,00 CM and 2nd column 20,50 CM. In the 2nd column I cannot able to see last line.
    Please let me know how to solve my problem.
    Regards
    Vinay

    Hi Vinay,
        I hope its not a problem with the width, can you check height.
    Regards,
    Dj
    reward for all useful answers.

  • Smartform with multiple Headers & Respective Item Details and Totals?

    Dear All,
    Appreciate if anyone clarify my doubt.
    My requirement is to develop a smartform for billing with multiple headers & respective items and totals. For more clarity I'm explaining below.
                        Header Section1
    variable1          variable2          variable3          variable4          variable5
         variable6          variable7          variable8
    variable9          variable10          variable11
    Item Details1
    s no     vebeln     verpr     col4     col5     col6
    total                    123.21
    total in words -
                   value     321.21
                   value     982.98
                   value     some value
    footer details
                        Header Section2
    variable1          variable2          variable3          variable4          variable5
         variable6          variable7          variable8
    variable9          variable10          variable11
    Item Details2
    s no     vebeln     verpr     col4     col5     col6
    total                    123.21
    total in words -
                   value     321.21
                   value     982.98
                   value     some value
    footer details
                        Header Section3
    variable1          variable2          variable3          variable4          variable5
         variable6          variable7          variable8
    variable9          variable10          variable11
    Item Details3
    s no     vebeln     verpr     col4     col5     col6
    total                    123.21
    total in words -
                   value     321.21
                   value     982.98
                   value     some value
    footer details
    Is this possible using smartforms?
    Now they are using a classical report and takes printout in preprinted stationery.
    requirement is to develop a smartform for this. there is a selection screen for the print program which accepts billing docs.
    Thanks,

    Rajiv,
    Actually for your case you don't need a table inside the Main Window. 
    1.) First Populate all the data(header + item) in an internal table in the print program itself.
    2.) Pass this internal table to the smartform.
    3.) In the smartform give exact dimensions to the main window.
    4.) In the Main Window Use a Loop on this internal table.
    5.) Create a template for the header data giving the exact dimensions.
    6.) Create another template for the item data giving exact dimensions to the template.
    7.) If there is pre-printed text between these templates, insert a text element between these templates. This text element will have nothing just give a paragraph format to it. Go to smartstyle, create a style in which create a paragraph format setting line spacing parameter of this paragraph format of the same size as that of pre-printed text.
    8.) Only 1 page is required since Loop statement will print the second record on the second page if the dimension of templates are exact.
    9.) Dimensions you can easily measure from the pre-printed form.
    <removed by moderator>
    Edited by: Thomas Zloch on Mar 6, 2012

  • Output page footer if group details overflow single page

    My report is all group details, with no page footer or headers, but I want to have a page footer output something like "continued on next page" only if that group continues on the next page, if there is a new group, then I want it suppressed.
    I can't figure out where to put it, since one of the detail sections has the sub-report that causes it to go to a second page. I can't just say if there is a second page put it on, because they may print many groups of records at the same time, and each "group" is really its own report, so I don't want to indicate there is another page to that, since there isn't to that "group"
    Make any sense? What am I missing (I will admit to being a CR newbie). Does one of the print state variables help with this?

    Actually I tried to suppress like so:
    Whileprintingrecords;
    {@Details} <> 15
    Details is a formula which is counting the number of purchased products in the Order. Once it reaches 15, the group goes over the next page and all I need is to print some text on that page, and go to the next page. The footer is holding the space reserved for it and on other pages where I don't need the footer to show up it reserves a lot of space.
    Also I tried to place it into a fake group footer, but because I only need it to show up when it goes on the next page in that group this solution didn't work as well.
    Is there a function which will tell the footer to print like so:
    DETALTS - NEW PAGE AFTER - {@Details} = 14
    PAGE FOOTER - {@Details} = 14 - Print it
    PAGE FOOTER - {@Details} <> 14 - Do not Print it and do not reserve space for it.
    Tatyana

  • Control Line Items of table in Smartforms

    Hi,
    Please help me out for following problem which  I am facing in smartforms.
    Scenario u2013 I am trying to print Bank Payment voucher, In this I am passing two internal  tables from my driver program, One internal table is for header details and other internal table for Line item details.
    I am Looping for header details and under the templates, I am populating header data into itu2019s appropriate places, for line item details, I am using Table and able to populate line item details, Now say my line item should print only 5 line items in one  page and if there are more than 5 line items , it should print next line items on next page.   when new page will start it should print header details  and footer details also,
    In last last row, I have put the program code where I am counting the number of line items, and below that i have put 'Command' and in command condition, I have stated that if linecnt > 5 , go to next page%2 and in page 2, I have again copied the header details but , it is not working,
    In short the Flow of Smartforms is given below.
    Loop    (For Header details)
    Template
    Template
    Template
    Table   (For Printing Line Item Details)
      (row 1
       row 2
      program line (Whre I am counting Number of Line items
      Command (Go to next page is activated )
    Template ( For Printing the footer details
    Page%2
    Template
    Template
    Template
    Looking out for your valuable help .
    Thanks and Regards
    Rani

    And one thing more that line count may not be increasing. ..... so try to send the flag of page triggring from ur driver program.
    as i have done here.
    *  Page Break after 21 Records means
      count_rec = 1.
      loop at it2_all_outlet_sale into wa_it2_all_outlet_sale.
        count_loop = sy-tabix.
        if count_rec = 21.
          wa_it2_all_outlet_sale-zyear = '9998'.
          modify it2_all_outlet_sale from wa_it2_all_outlet_sale index count_loop.
          clear: count_rec.
        endif.
        add: 1 to count_rec.
      endloop.
      describe table it2_all_outlet_sale lines count_rec.
    " This part of code for not page triggering after last 21 records
      read table it2_all_outlet_sale into wa_it2_all_outlet_sale index count_rec.
      if sy-subrc = 0.
        count_loop = sy-tabix.
        if wa_it2_all_outlet_sale-zyear = '9998'.
          wa_it2_all_outlet_sale-zyear = '9999'.
          modify it2_all_outlet_sale from wa_it2_all_outlet_sale index sy-tabix.
        endif.
      endif.

  • Smartform - Main window

    Hello,
    I need to create a smartform with the following behaviour:
    When the page shown is the last one, the main window has to take half page. On the other hand, when the page shown is not the last one, its main window has to take almost the whole page (I need a bigger main window).
    When only exists one page, the first page is also the last one.
    Thanks in advance,
    Ricard.

    Hello Oscar,
    Its Possible, as I feel.
    Just need to design 2 pages.
    PAGE1: Keep the header and item part as you want to.
    PAGE2: copy the MAIN WINDOW of PAGE1 to PAGE2.
                 Increase the size of the MAIN WINDOW in page2 .This is the flexibility that smartform gives and
                 we don't get this main window resizing facility in SAPscript it remain same in first and second
                 page.
    Navigate to : loop->table->footer.
    Create folder and under folder create window to display your footer details.
    And please unckeck the check box "On page break" in the footer condition tab.
    Hope the discussion was helpful. Revert back in case of any further issues.
    Cheers
    Suvendu
    Edited by: Suvendu Swain on Jun 9, 2009 5:06 PM

  • Trying to add a last page in Smartforms

    Hi,
    On the smartform I have a FIRST Page & NEXT page.  The main window is set to different sizes on each page.  If the invoice is one page long then the footer is triggered.  If the invoice flows over to the next page the footer is only printed on the last page and the main window on the first page is utilized to the bottom of the page.  My footer is set up as a secondary window that is triggered after the MAIN window.
    I now need to add an appendix page that needs to be triggered as the LAST page, but the issue I'm running into is that I can't get the footer to print on the previous page any more.  The footer needs to be on the previous page and a completely different set of data will print on the LAST page.
    I tried using a command in the MAIN window but I really need the command to be triggered after the footer details rather than after 'the main window' in the Additional Event on the Conditions tab. 
    How can I get a LAST page to print and keep the footer on the previous page?
    Thanks
    Lisa

    dear all sap champs i want to get two separate
    pages. is this a requied condition that data should be
    overflowed in 1st page.
    then only i can get 2nd page.
    pls all help me ....
    vivek

  • Invoice Smartforms

    Hello,
            I have written a bespoke invoice smartforms. The problem I am having is that sometimes the smartform is generating a 'next page' when it does not need to. There is a Footer detail defined within MAIN. The smartform lists the items and then prints the footer detail and then it sometimes prints the next page but with just the general information (i.e logo, title, invoice number, etc).  In some instances there is no item information so there is no secondary window expected to displayed on the next page.
            My question is, how do I stop this additional page from being produced when there are no items to be displayed on this page? I thought that the 'next page' is only suppose to be generated when it cannot fit the items all on the first page.
            Has anybody experienced the same  problem? Any help would be appreciated.
    Thanks in advance.

    Hi,
    I had this requirement, where the items should be displayed only on 1 page, as it was an Excise Invoice.
    If the Items spill over to the next page, I generate an error Pop-up message, thereby stopping the Print-preview processing.
    In your MAIN window, put this code to chk the current page no.
    if sfsy-formpages > 1.
      message 'Items splilling over to next page'  type 'E'.
      return.
    endif.

Maybe you are looking for

  • ISE 1.2 and Posture Report Before Login

    Hi everyone, Is it possible for the ISE 1.2 NAC/Posture agent to submit a posture report before user login on a Windows desktop system? We're trialling ISE 1.2, performing machine based authentication using EAP-TLS/Certificates. On top of this we are

  • How to Check for Default Applet Selection

    Hello all, I'm new to the Java Card world, so I'll warn you in advance my questions will be basic. I appreciate your willingness to help us newbies out. I've been given a smart card and applets to dissect an reverse engineer. Currently, Applet 1 is l

  • Capture storage location for spare parts

    Hi Expert, We are using the material type 'ERSA' - Spare Parts. The standard setup does not allows capture storage location. How to include storage location in MIGO. Regards, Peck Har

  • Cannot run CWS Cralwer Job

    Hi, We are trying to run a CWS NT File Crawler to remotely crawl files in. However, we got the following error in the job history: Error in attaching to container node Crawler Start Node to get child documents and containers: IDispatch error #19880 (

  • Bring in a shared field from a sub report

    Post Author: Set_Shot_Dave CA Forum: General Hello All, Let me set what I'm doing first. I have a running total on my sub-report. Second I have a running total on my main report. I have to get a percentage of sub-report running total by main report r