Subtotals in smartform

Hi Experts,
We are working on customer account statement. for that we are developing a smartform, in which it should display subtotals and grand total.
Here the subtotal is month wise. and all the totals of subtotal is the grand total.
How can we get the totals monthly? it should print the line items of one month and its subtotal, then line items of second month n its subtotal etc... finally the grand total.
Can someone plz help me.
Thanks in advance,

Hi ,
In your loop node / table node --> calculation tab --> give the details of the operaton , the field on which the totals have to be done and the target field name ( subtotal / total ) and time as after loop.
now use the variables subtotal and total in the text node to display.
dont forget to clear the subtotal after displaying....
create program lines after display of subtotal and in that use the statement
clear subtotal.
regards
padma

Similar Messages

  • How to calculate the subtotals in smartform

    hi all
    can any body tell me how can i display teh subtotals in smartform, please tell me the steps how to do that and aslo is there any special events in smartforms that are helpfull in getting and displaying the subtotals in smartforms
    thanks in advance

    Hi,
    For doing subtotal calculation in SMARTFORMS, do like this.
    Create one "Program Lines" to your main window table row.
    Already you are maintaing "Internal table" for you table in main window.
    Before that, sort the particular internal table with key fields through which you want to find out the sub total, now within the program lines code, first identify how many quantity and currency fields are there.
    Declare respective temporary variables for each and every quantity and currency field.
    then write logic like this.
    at new matnr.
    v_menge = wa_out-menge + v_menge.
    v_netwr  = wa_out-netwr + v_netwr
    end at.
    Also dont forget to declare character variables for quantity and currency fields. We cannot directly display them in smartforms. we need to pass them to the respective quantity and currency fields.
    After end at statement write like this,
    write: / v_menge decimals 2 to v_mengetext,
              v_netwr   decimals 2 to v_netwrtext.
    after this dont forget to clear,
    clear: v_menge, v_netwr.
    no populate v_mengetext and v_netwrtext in your text elements.
    Regards,
    Santosh Kumar M.

  • Problem with subtotals on Smartform. SRM 5.0

    Hello,
    Iam facing one serious problem with one smartform on SRM 5.0.
    Using the automatic "calculation" of one table in main window i have set the subtotal calculation. This calculation is not working because the form is getting always the item from the next page on pagebreack moment...
    How could i control this bug from sap?

    The reason for this is the the systematic of the form interpreter on how to check if a page break has been done.
    Items and other stuff get printed in MAIN window.
    So e.G. you have 4 items while 3 fit on one page. so he prints 3 items, all is fine, no page break detected so he continues with MAIN window printing.
    Now he prints item 4 and WHILE printing it he detects that there is not enough space on the page to print it. Page break gets triggered, but item 4 has already been in process and so values of item 4 are added.
    I never ran into this problem with the auto subtotal calculation of smartforms and i really wonder that this makes problems in Standard as well.
    I suspect you can find a SAP-note on this subject, since this is the standard having issues, and i guess they are solved by now.

  • Query related to smartform.

    Hello sir's,
    I am doing smartform , in that i have a query that,
    In one delivery number , if there are 10 items then i want all details of that item numbers and also the sub-totals of that items.
    Also the final total of all items.
    Can it is possible in smartform , if yes then plz tell me as early as possible .
    It's urgent.
    Thanks in advance ,
    Vikram.

    Hi,
    Look at the below threads. if you sear the forum with Subtotals in SMARTFORM, you can find lot of threads
    http://www.erpgenie.com/abap/smartforms_detail.htm
    Re: Subtotal with Table Node in smartforms
    Regards
    Sudheer

  • Subt totals in smartform

    Hi
    How to make subtotals in SMARTFORMS?
    Regards
    Shashi

    Hi
    One can insert static and dynamic tables. These include the line feeds in the individual table cells, triggering events for table headings and subtotals and sorting data before output.
    Sub window-->Position text on one or more pages
    Main window-->Display text in relation to other nodes in the main window, it may cover several pages
    Template -->Displays texts for table cells of a static table
    Table-->Display table contents
    Header and footer-->Display column headings and grand totals in tables
    Event node-->Display subtotals in a table
    SF_EXAMPLE_02
    Similar to SF_EXAMPLE_01 but with subtotals
    Regards
    Pavan

  • Reg: passing totals /subtotals of a ALV to a smartform

    I have a editable ALV report which has a button to call a smartform . Once the user edits some  fields I need to pass the refreshed total to the smartform.  I want to know - in what structure the totals/subtotals  of the ALV report are stored.

    Banu,
    Even if you figure out how to get the subtotals / totals from a ALV, I would still suggest you to use the features of SMART Forms to calculate the same again in the form.
    http://help.sap.com/saphelp_nw04/helpdata/en/55/610e2db57911d4b62c006094192fe3/content.htm
    So, that way if your form is triggered even without doing the subtotalling done by the user you are on the safer side as the form will still display what you have designed it for.
    Regards,
    Ravi
    Note :Please mark all the helpful answers

  • Problem in subtotals - smartforms

    Hi ,
    Iam have created a smartform where i need to calculate pagewise subtotal . i have declared a variable and used that variable in claculations tab in the main loop and used before loop iam getting subtotls but iam facing a problem it is for eg. if iam having 2 pages in the first page three line items and second page 2 items are displayed like
    1 item desc 1000
    2 item decs 1000
    3 item desc 1000
    then i should get the subtotal as 3000
    second page
    4 item desc 1000
    5 item desc 1000
    then subtotal should be 5000. l
    ike this i should get but what iam getting is in the first page iam getting subtotal as 4000 and second page getting subtotal as 5000 which is wrong. please help me in this .thanks...

    Hi,
    The problem is due to processing of next record was already done by the time it reaches page end, so that is the reason first record of next page is also getting added into previous page total. To avoid this just substract the same value(which is already pocessed in your actual varibles) from total variable. But this shoul not happen for last page so compare page number variable with number of job pages variable simultaneously.
    Hope this gives you some idea.
    Regards,
    Aswini Sammeta

  • Smartforms subtotals printing

    Friends,
    I am printing page wise subtotals in the PO layout i desinged.  My PO is a multiple page PO where i have two pages in my PO. 
    I am printing the PAGE WISE SUBTOTALS and then on the last page printing SUBTOTAL and FINAL TOTAL.
    If line items are more in the PO, on each of the page subtotal will be printed and on the last page both subtotal and grand total will be printed. 
    This functionality i could achieve by designing two windows for the totals(subtotals window and totals window) and setting the events 'ONLY AFTER END OF THE MAIN WINDOW' and 'ONLY BEFORE END OF MAIN WINDOW'. 
    Problem description: 
      In case if my layout could accomodate the items in a single page, as first page itself is the last page, both subtotal and grand total are getting printed.  In this case i want to restrict the subtotals from getting printed.  I want to print only grand total. 
    I could not restrict this by putting condition in the condition tab, SFSY-FORMPAGE GT 1 for the subtotals window. 
    Any technique to solve the above?
    thanks
    Bill Joseph

    Hi ,
    First define the global variable for subtotal & grand total
    In the first page display the table data normally and if you dont want to print the headers of the table check the condition in the header AT START OF TABLE
    calculate the subtotal &  grand totals (Ex. s_tot = s_tot + wa_vbaap-kwmwng g_tot = g_tot + wa_vbap-kwmeng)
    Ex. page1 layout
    Header window
    main window
    final window
    In the final window create an alternative node (in flow logic )
    for alternative node put the condition as
    sfsy-page = sfsy-formpages
    if TRUE 
    print the data as SUBTOTAL &g_tot&
    print the data as TOTAL &g_tot&
    ELSE  (False node)
    print the data as SUBTOTAL &g_tot&
    Out put will be
    page1 o/p
    sales order material orderqty
    1 M10 10
    2 M11 20
    3 M12 30
    sub total 60 (s_tot value )
    page2 onwards o/p
    4 M13 30
    5 M14 20
    6 M15 15
    subtotal  65  (s_tot value)
    Total 125 (g_tot value )
    Note : reset the value of s_tot  = 0 at header level of the table at each page break.
    Let me know if any concerns .........

  • Smartforms: Subtotals on table footer

    Hi experts!
    I want to display some subtotals (CARRY FORWARD), based on the items already printed in each page  of my form. What i've done is the following:
    TABLE node that loops through my items table, with SUM TOTAL calculation on the calculations tab, After loop as time, where i pass the sum to a structure, then on my table's footer area i display the structure mentionned,  on event only before end of main window. But the subtotal does not take into account the last item printed on the current page.
    What am i doing wrong??
    Please help!!
    Thank you in advance!!!

    Hi,
    Before doing as mentioned in the previous reply,
    you need to check both the check boxes for at page break and at end of table in the output options of the Footer.
    If this is done, you will be able to see the options that i have mentioned in the previous reply.
    Regards,
    Anand.

  • How to print grandtotal in table footer only in the last page in SMARTFORMS

    Hello Experts,
    How do I print the GRANDTOTAL in the table footer only on the LAST PAGE in SMARTFORMS.
    What I have done is in the text element of CELL1 of the table footer i wrote the folowing logic but not working.
    /: IF &SFSY-PAGE& EQ &SFSY-FORMPAGES&.
    * V_SUM.
    /: ENDIF.
    I even tried this.
    /: IF &NEXT-PAGE& EQ 0.
    * V_SUM.
    /: ENDIF.
    but still it displays the grand total on all pages at table footer.
    How do i go for this experts.
    Regards,
    Ranjith N

    HI Nambiar,
    To print the grand total only on the last page then create the secondary window --> create the text node for the grand total -->In the condition tab check only after the end of the main window.
    This grand total will be displayed after all the items and end of the main window.
    Footer in the table displays as the subtotals i.e on every page total is displayed..
    Regards,
    Sravanthi

  • How to use CALL FUNCTION '/1BCDWB/SF00000014' in smartform urgent

    hiiiiiiiii
    Iam doing classical report n i want my output to be printed in smartform.
    So my output is in IT_FINAL table.In smartform in Form Interface Table column i had declare :::
    Parameter Name: IT_FINAL
    Type Assignment:LIKE
    Associated Type:ZSD_FINAL ( Its a structure of IT_FINAL)
    And in SE38..iam using...............
    data: FM_NAME1 type RS38L_FNAM.
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
    EXPORTING
    FORMNAME = 'ZCSF_SDPRSR03_PR'
    importing
    FM_NAME = FM_NAME1.
    CALL FUNCTION FM_NAME1
    EXPORTING
    IT_FINAL = IT_FINAL.
    So while running its giving dump..
    I DONT KNOW HOW TO USE THE ABOVE FUNCTION MODULE.
    CALL FUNCTION '/1BCDWB/SF00000014'
    EXPORTING
    ARCHIVE_INDEX =
    ARCHIVE_INDEX_TAB =
    ARCHIVE_PARAMETERS =
    CONTROL_PARAMETERS =
    MAIL_APPL_OBJ =
    MAIL_RECIPIENT =
    MAIL_SENDER =
    OUTPUT_OPTIONS =
    USER_SETTINGS = 'X'
    IMPORTING
    DOCUMENT_OUTPUT_INFO =
    JOB_OUTPUT_INFO =
    JOB_OUTPUT_OPTIONS =
    EXCEPTIONS
    FORMATTING_ERROR = 1
    INTERNAL_ERROR = 2
    SEND_ERROR = 3
    USER_CANCELED = 4
    OTHERS = 5
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Please suggest me with example if possible......URGENT.
    (Rewards if solved)
    Regards.

    Hi
    see the below doc and do accordingly
    How to create a New smartfrom, it is having step by step procedure
    http://sap.niraj.tripod.com/id67.html
    step by step good ex link is....
    http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Build_SMARTFORMS/How_To_Build_SMARTFORMS.html
    Here is the procedure
    1. Create a new smartforms
    Transaction code SMARTFORMS
    Create new smartforms call ZSMART
    2. Define looping process for internal table
    Pages and windows
    First Page -> Header Window (Cursor at First Page then click Edit -> Node -> Create)
    Here, you can specify your title and page numbering
    &SFSY-PAGE& (Page 1) of &SFSY-FORMPAGES(Z4.0)& (Total Page)
    Main windows -> TABLE -> DATA
    In the Loop section, tick Internal table and fill in
    ITAB1 (table in ABAP SMARTFORM calling function) INTO ITAB2
    3. Define table in smartforms
    Global settings :
    Form interface
    Variable name Type assignment Reference type
    ITAB1 TYPE Table Structure
    Global definitions
    Variable name Type assignment Reference type
    ITAB2 TYPE Table Structure
    4. To display the data in the form
    Make used of the Table Painter and declare the Line Type in Tabstrips Table
    e.g. HD_GEN for printing header details,
    IT_GEN for printing data details.
    You have to specify the Line Type in your Text elements in the Tabstrips Output options.
    Tick the New Line and specify the Line Type for outputting the data.
    Declare your output fields in Text elements
    Tabstrips - Output Options
    For different fonts use this Style : IDWTCERTSTYLE
    For Quantity or Amout you can used this variable &GS_ITAB-AMOUNT(12.2)&
    5. Calling SMARTFORMS from your ABAP program
    REPORT ZSMARTFORM.
    Calling SMARTFORMS from your ABAP program.
    Collecting all the table data in your program, and pass once to SMARTFORMS
    SMARTFORMS
    Declare your table type in :-
    Global Settings -> Form Interface
    Global Definintions -> Global Data
    Main Window -> Table -> DATA
    Written by : SAP Hints and Tips on Configuration and ABAP/4 Programming
    http://sapr3.tripod.com
    TABLES: MKPF.
    DATA: FM_NAME TYPE RS38L_FNAM.
    DATA: BEGIN OF INT_MKPF OCCURS 0.
    INCLUDE STRUCTURE MKPF.
    DATA: END OF INT_MKPF.
    SELECT-OPTIONS S_MBLNR FOR MKPF-MBLNR MEMORY ID 001.
    SELECT * FROM MKPF WHERE MBLNR IN S_MBLNR.
    MOVE-CORRESPONDING MKPF TO INT_MKPF.
    APPEND INT_MKPF.
    ENDSELECT.
    At the end of your program.
    Passing data to SMARTFORMS
    <b>call function 'SSF_FUNCTION_MODULE_NAME'</b>
    exporting
    formname = 'ZSMARTFORM'
    VARIANT = ' '
    DIRECT_CALL = ' '
    IMPORTING
    FM_NAME = FM_NAME
    EXCEPTIONS
    NO_FORM = 1
    NO_FUNCTION_MODULE = 2
    OTHERS = 3.
    if sy-subrc <> 0.
    WRITE: / 'ERROR 1'.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    <b>call function FM_NAME</b>
    EXPORTING
    ARCHIVE_INDEX =
    ARCHIVE_INDEX_TAB =
    ARCHIVE_PARAMETERS =
    CONTROL_PARAMETERS =
    MAIL_APPL_OBJ =
    MAIL_RECIPIENT =
    MAIL_SENDER =
    OUTPUT_OPTIONS =
    USER_SETTINGS = 'X'
    IMPORTING
    DOCUMENT_OUTPUT_INFO =
    JOB_OUTPUT_INFO =
    JOB_OUTPUT_OPTIONS =
    TABLES
    GS_MKPF = INT_MKPF
    EXCEPTIONS
    FORMATTING_ERROR = 1
    INTERNAL_ERROR = 2
    SEND_ERROR = 3
    USER_CANCELED = 4
    OTHERS = 5.
    if sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    Smartform
    you can check this link here you can see the steps and you can do it the same by looking at it..
    http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Build_SMARTFORMS/How_To_Build_SMARTFORMS.html
    SMARTFORMS STEPS.
    1. In Tcode se11 Create a structure(struct) same like the Internal table that you are going to use in your report.
    2. Create Table type(t_struct) of stracture in se11.
    3. In your program declare Internal table(Itab) type table of structure(struct).
    4. Define work area(wa) like line of internal table.
    5. Open Tcode Smartforms
    6. In form Global setting , forminterface Import parameter define Internal table(Itab) like table type of stracture(t_struct).
    7. In form Global setting , Global definitions , in Global data define Work area(wa) like type stracture(struct).
    8. In form pages and window, create Page node by default Page1 is available.
    9. In page node you can create numbers of secondary window. But in form there is only one Main window.
    10. By right click on page you can create windows or Go to Edit, Node, Create.
    11. After creating the window right click on window create table for displaying the data that you are passing through internal table.
    12. In the table Data parameter, loop internal internal table (Itab) into work area(wa).
    13. In table there are three areas Header, Main Area, Footer.
    14. Right click on the Main area create table line by default line type1 is there select it.
    15. Divide line into cells according to your need then for each cell create Text node.
    16. In text node general attribute. Write down fields of your work area(wa) or write any thing you want to display.
    17. Save form and activate it.
    18. Then go to Environment, function module name, there you get the name of function module copy it.
    19. In your program call the function module that you have copied from your form.
    20. In your program in exporting parameter of function pass the internal table(itab).
    SAP Smart Forms is introduced in SAP Basis Release 4.6C as the tool for creating and maintaining forms.
    SAP Smart Forms allow you to execute simple modifications to the form and in the form logic by using simple graphical tools; in 90% of all cases, this won't include any programming effort. Thus, a power user without any programming knowledge can
    configure forms with data from an SAP System for the relevant business processes.
    To print a form, you need a program for data retrieval and a Smart Form that contains the entire from logic. As data retrieval and form logic are separated, you must only adapt the Smart Form if changes to the form logic are necessary. The application program passes the data via a function module interface to the Smart Form. When activating the Smart Form, the system automatically generates a function module. At runtime, the system processes this function module.
    You can insert static and dynamic tables. This includes line feeds in individual table cells, triggering events for table headings and subtotals, and sorting data before output.
    You can check individual nodes as well as the entire form and find any existing errors in the tree structure. The data flow analysis checks whether all fields (variables) have a defined value at the moment they are displayed.
    SAP Smart Forms allow you to include graphics, which you can display either as part of the form or as background graphics. You use background graphics to copy the layout of an existing (scanned) form or to lend forms a company-specific look. During printout, you can suppress the background graphic, if desired.
    SAP Smart Forms also support postage optimizing.
    Also read SAP Note No. 168368 - Smart Forms: New form tool in Release 4.6C
    What Transaction to start SAP Smart Forms?
    Execute transaction SMARTFORMS to start SAP Smart Forms.
    Key Benefits of SAP Smart Forms:
    SAP Smart Forms allows you to reduce considerably the implementation costs of mySAP.com solutions since forms can be adjusted in minimum time.
    You design a form using the graphical Form Painter and the graphical Table Painter. The form logic is represented by a hierarchy structure (tree structure) that consists of individual nodes, such as nodes for global settings, nodes for texts, nodes for output tables, or nodes for graphics.
    To make changes, use Drag & Drop, Copy & Paste, and select different attributes.
    These actions do not include writing of coding lines or using a Script language.
    Using your form description maintained in the Form Builder, Smart Forms generates a function module that encapsulates layout, content and form logic. So you do not need a group of function modules to print a form, but only one.
    For Web publishing, the system provides a generated XML output of the processed form.
    Smart Forms provides a data stream called XML for Smart Forms (XSF) to allow the use of 3rd party printing tools. XSF passes form content from R/3 to an external product without passing any layout information about the Smart Form.
    SmartForms System Fields
    Within a form you can use the field string SFSY with its system fields. During form processing the system replaces these fields with the corresponding values. The field values come from the SAP System or are results of the processing.
    System fields of Smart Forms
    &SFSY-DATE&
    Displays the date. You determine the display format in the user master record.
    &SFSY-TIME&
    Displays the time of day in the form HH:MM:SS.
    &SFSY-PAGE&
    Inserts the number of the current print page into the text. You determine the format of the page number (for example, Arabic, numeric) in the page node.
    &SFSY-FORMPAGES&
    Displays the total number of pages for the currently processed form. This allows you to include texts such as'Page x of y' into your output.
    &SFSY-JOBPAGES&
    Contains the total page number of all forms in the currently processed print request.
    &SFSY-WINDOWNAME&
    Contains the name of the current window (string in the Window field)
    &SFSY-PAGENAME&
    Contains the name of the current page (string in the Page field)
    &SFSY-PAGEBREAK&
    Is set to 'X' after a page break (either automatic [Page 7] or command-controlled [Page 46])
    &SFSY-MAINEND&
    Is set as soon as processing of the main window on the current page ends
    &SFSY-EXCEPTION&
    Contains the name of the raised exception. You must trigger your own exceptions, which you defined in the form interface, using the user_exception macro (syntax: user_exception <exception name >).
    Example Forms Available in Standard SAP R/3
    SF_EXAMPLE_01
    Simple example; invoice with table output of flight booking for one customer
    SF_EXAMPLE_02
    Similar to SF_EXAMPLE_01 but with subtotals
    SF_EXAMPLE_03
    Similar to SF_EXAMPLE_02, whereby several customers are selected in the application program; the form is called for each customer and all form outputs are included in an output request
    Advantages of SAP Smart Forms
    SAP Smart Forms have the following advantages:
    1. The adaption of forms is supported to a large extent by graphic tools for layout and logic, so that no programming knowledge is necessary (at least 90% of all adjustments). Therefore, power user forms can also make configurations for your business processes with data from an SAP system. Consultants are only required in special cases.
    2. Displaying table structures (dynamic framing of texts)
    3. Output of background graphics, for form design in particular the use of templates which were scanned.
    4. Colored output of texts
    5. User-friendly and integrated Form Painter for the graphical design of forms
    6. Graphical Table Painter for drawing tables
    7. Reusing Font and paragraph formats in forms (Smart Styles)
    8. Data interface in XML format (XML for Smart Forms, in short XSF)
    9. Form translation is supported by standard translation tools
    10. Flexible reuse of text modules
    11. HTML output of forms (Basis release 6.10)
    12. Interactive Web forms with input fields, pushbuttons, radio buttons, etc. (Basis-Release 6.10)
    Regards
    Anji

  • AT NWE COMMAND IN SMARTFORMS

    HOW TO GIVE AT NEW COMMAND IN SMARTFORMS.NEED THE REPLY URGENTLY.PLEASE HELP.

    To determine the sorting of your internal table, use the Data tab of the table or loop node. In the Sort Criteria  group box you can enter the fields by which to sort the table.
    The sequence in which you enter the field names into the table control determines the sort sequence. Use the radio buttons to choose whether to sort the field in ascending or in descending order.
    If you want to display data before or after a sort level, mark Event on Sort Begin  and/or Event on Sort End . In the navigation tree, an event node appears for which you can create inferior nodes. In these inferior nodes you specify the data you want to display at this event (for example, subtotals).

  • How to carry forward subtotal to other page in smartforms

    Hi all,
                My requirement is to calculate the subtotal of a particular page and to print that subtotal
                at the end of each page.And this subtotal has to be carry forwarded as the first item of the next page(say page2).
                And again  at the end of this page(page2) I have to print the subtotal and needs to carry forward this subtotal again on to
                the first item of the page3..
               My problem is I am doing it in a table.I am calculating the subtotal and displaying the subtotal at the footer of the table..
               In the footer again I am redefining table work area values with the text 'Subtotal' and subtotal Amount so that thinking
               that it would print as first line item on the next new page....
              But the problem is I am getting subtotal as 2'nd line item on each new page instead of first line item of each page.........
              Can anyone resolve this issue.........
              I dont want this subtotal to be printed on the last page since I am getting Total of all these subtotals.....
              Below is my required structure
    Page 1.
                    Desc                               Amount
                    x                                      100
                    y                                      200
                   Subtotal                            300
    Page2.(Required page2)
                 Desc                               Amount                                
                    a                                      100
                    b                                      200
                   Subtotal                            600
    Page2.(But getting as below,which I dont require )
                    Desc                               Amount
                     a                                     100
                   Subtotal                            300
                     b                                      200
                   Subtotal                            600
    Page3.(Required page3)( I dont require Subtotal here on the last page)
                 Desc                               Amount                                
                    a                                      100
                    b                                      200
                   Total                                 900
    Any suggestions pls
    This is in Smartform
    Thanks,
    Chinnu

    Hi ,
    First define the global variable for subtotal & grand total
    In the first page display the table data normally  and if you dont want to print the headers of the table check the condition in the header  AT START OF TABLE
    calculate the grand totals  (Ex. g_tot = g_tot + wa_vbap-kwmeng)
    Ex.    page1   layout   (Note :  next page as page2)
    Header window
    main window
    final window
    In the final window  create an alternative node  (in flow logic )
    for alternative node put the condition as 
    sfsy-page  =  sfsy-formpages 
    if true
               print the data as   TOTAL   &g_tot&
    else (False node)
               print the data as   SUBTOTAL   &g_tot&
    Out put will be
    page1 o/p
    sales order         material            orderqty
    1                          M10                 10
    2                          M11                 20
    3                          M12                 30
    sub  total                                     60               (g_tot value )
    page2 onwards o/p
    4                          M13                 30
    5                          M14                 20
    6                          M15                 15
    Total                                            125             (g_tot value )
    Let me know if any concerns  .........

  • Standard Text in Smartforms using SO10 Transaction

    Hi,
    My requirement is i have IF Condition followed by Elseif. when ever any of above conditions satisfy i need to print a text of at least 5 lines.
    If <>
    Print Text upto 5 lines each line at least 100 char(text1)
    elseif <>
    Print Text upto 5 lines each line at least 100 char(text2).
    else <>
    text24.
    If solution for the above  is using SO10 Tcode then  plz expain me in detail.
    thanx in advance

    Hi
    Check this
    for Smartforms material
    http://www.sap-basis-abap.com/sapsf001.htm
    http://www.sap-press.com/downloads/h955_preview.pdf
    http://www.ossincorp.com/Black_Box/Black_Box_2.htm
    http://www.sap-img.com/smartforms/sap-smart-forms.htm
    http://www.sap-img.com/smartforms/smartform-tutorial.htm
    http://www.sapgenie.com/abap/smartforms.htm
    How to trace smartform
    http://help.sap.com/saphelp_47x200/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm
    http://www.help.sap.com/bp_presmartformsv1500/DOCU/OVIEW_EN.PDF
    http://www.sap-img.com/smartforms/smart-006.htm
    http://www.sap-img.com/smartforms/smartforms-faq-part-two.htm
    Re: Need FAQ's
    check most imp link
    http://www.sapbrain.com/ARTICLES/TECHNICAL/SMARTFORMS/smartforms.html
    step by step good ex link is....
    http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Build_SMARTFORMS/How_To_Build_SMARTFORMS.html
    Subtotals - Check the link...
    Re: Subtotal with Table Node in smartforms
    Regards
    Anji

  • Prob with  Totals in Smartforms

    Hi,
    I am having a problem with Totals in my smartform.
    I am Printing SUBTOTALS , GRANDTOTALS and CARRYFORWARD of amounts in my smartform.
    My Problem comes with Carryforward total ( Balance forwarded to next page ).
    Its getting added to a first record in next page and the balace is getting displayed in present page.
    for example if the total in this page is 1000
                        and the next page record amount is 100
                   I am getting the CARRYFORWRD balance as 1100 instead of 1000.
    I am calculating the subtotals and grandtotal in the Main area of the table and printing the Balance carry forward / grandtotal in the Footer area of the total
    I cant use calculation tab because the currency may vary.
    How to get the correct CARRYFORWARD balance
    regards
    Prasanth

    Hi
    For carry_forward:
    In the global data:
    carry_forward type I default value : 0
    In the program lines:
    carry_forward = TOTAL_SAL - TOTAL_SAL_PAGE.
    Create the txt node for the carry forward.
    Condition : not on first page.
    For page_total.
    Create the text node:
    page total : drag and drop the field.
    In the program lines.
    carry_forward = 0.
    total_sal_page = 0.
    For grand_total.
    Create the text node:
    grand_total : drag and drop the field.
    Condition tab : only after end of the main window.
    Regards,
    Sravanthi

Maybe you are looking for

  • Hiding and clearing cells in WebI 4.0

    Hi guys, We are building a resourcing solutions which looks at exceptions between Timesheet data and Resourcing data, ie. the resourcing team want to be able to see that the time logged by consultants matches what is was planned by resourcing.  The W

  • How to find the spec of Apple dock connector

    Anyone can tell me where to find the spec of the apple dock connector?

  • Routing Policy for Wi-Fi Users

    Hi All, In my office i am using Microsoft Thread management Gateway(Software Firewall). Can i set Security like as below, Users can connect Wi-fi Network but they would not able to access  internet but  they should be able to access for local network

  • Permission denied to "/dev/sr0" on VT6

    I run several SLiM instances on different VTs (virtual terminals) (this is possible with my patch) so I can log in as different users. Of course, I can log in as some user in all VTs. Mplayer (and other video players) does not play a video DVD on VT6

  • No Project IMG has been defined for Starting Reference IMG  SOLMAN ERROR

    Hi All,              I created a off release project in prodcution and assigned logical compenents. When I am trying to create a IMG object for SPRO it is showing an error stating that "No Project IMG has been defined for Starting Reference IMG ". wh