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

Similar Messages

  • Prob. with Templete in Smartforms

    I am new to smartforms. I have a scenario where I have a template of 4X3 matrix  I have to put some values and text within as
    Tot. Discount | value | value
    Tot. VAT        | value | value
    Tot. Excise     | value | value
    Grand Tot       | value | value
    My problem is that I am unable to display like above plz suggest me.
    Thanks in Advance,

    Hi,
    did you gave cell positions(Line/Column) correctly?..plz check.
    cell possitions are available in Output options tab.
    (Output Structure -  Line/Column)
    in your case
    Tot. Discount| value | value
    Tot. Discount -  line 1, Column 1
    value - line 1, Column 2
    value - line 1, Column 3
    Tot. VAT | value | value
    Tot. VAT -  line 2, Column 1
    value - line 2, Column 2
    value - line 2, Column 3
    Tot. Excise | value | value
    Tot. Excise -  line 3, Column 1
    value - line 3, Column 2
    value - line 3, Column 3
    Grand Tot | value | value
    Grand Tot -  line 4, Column 1
    value - line 4, Column 2
    value - line 4, Column 3
    Thanks,
    Sree.
    Edited by: t sree on Oct 16, 2008 4:24 PM

  • Pagewise total in smartform

    hi all,
             i want to know how to do pagewise total in smartform ?
    all those data i am having in an itab...
    plz help.
    With Regards,
    S.Barane

    r u printing the internal table data using the TABLE node then--> in the Calculation tab u can do this.
    first create a variable in Global difinations-->global data tab.(ex v_tot)
    <b>then in the TABLE>calculations TAB> 1select ->sum then 2nd colun>give the field name which u want to calculate (ex-wa_itab-netwr) in the Target Filedname tab> give the varialbe u have declared for the total(ex v_tot). in TIME colums select AFTER theLOOP...</b>
    then in theTABLE>footer>inset a line display the variable(total u r using).here
    <b>after the the printing the total..->create a program lines> cleat the v_tot.</b>.. why u need to clear this is.... u want to display only the total value which are displaying in the current page... after printing this v_tot... clear this... so that in the next page it start totaling the freshly...
    lem me know if u have any clarifications.
    u can calculate as the above way for all the 6 fields.
    Message was edited by:
            Naresh Reddy

  • Prob. with iTunes, Phone won't shut off.  Tks.

    3GS with 6.1.3 Prob. with iTunes.  When I want to close out of iTunes after a Podcast the App will not close out when I hit Home. All other Apps shut down, only prob. is with iTunes.  Cant turn phone off goes back ti iTunes when turned on again.  Tks.

    I hope the previous replies are wrong. It was my understanding that even when Match is turned off in iTunes, music previously matched or uploaded to iCloud will stay there, associated with my Apple ID, even through a cold boot etc. If you want to remove songs from iCloud, but keep them locally, do this:
    1. Click "Store" in the iTunes top Menu
    2. Select "Turn on iTunes Match" (if it isn't already turned on)
    3. Close iTunes.
    4. Hold down the Shift key while you open iTunes - this will prompt you to choose or create a (new, locally empty) Library in a different folder from your main Library.
    5. Now you should see ONLY music that is stored in iCloud.
    6. Delete them all. iTunes will show a checkbox or button for you to click to delete the selected items from iCloud.
    7. Turn off iTunes Match (see #1)
    8. Restart iTunes with the Shift key again, so you can get back to your main Library - with Match turned off.

  • List of materials with total PR, PO qty, and stock

    Dear All,
    Is there any std report to check the list of materials along with total PR qty, PO qty and Current stock.
    This is to check, what is the total requirement of the materials and whether Purchase team has raised the PO or not ?
    Please advise.
    Regards
    Vinoth.

    Hi,
    MD04 gives us the details of individual part no.
    But, we would like to see similar details in the form of list of materials, with cumulative demand, cumulative OPEN PR Qty, Open PO Qty and Stock.
    Please help.
    Regards,
    Vinoth.

  • Is it possible to have 2 separate accounts with totally different and independent music on the same computer?

    IS it possible to have 2 separate accounts with totally different music libraries on same computer with multiple iPods synced to the computer,

    Same answer as last time you asked the same question.
    Can I create 2 separate itune accounts on same PC?

  • I have copied my iTunes library onto a new computer, but when I play back the songs there seems to be random "miss" or "drop out".  No probs with old computer, just the new one.  I'm onto my third new computer - same problem.  Any suggestions please?

    I have copied my iTunes library onto a new computer, but when I play back the songs using the new computer, there seems to be random "miss" or "drop out" during play back, similar to a small scratch on a vinyl record.  Although when I play the same song over again, the "miss" occurs in a different location during the song.  No probs with old computer, just the new one.  I'm onto my third new computer - same problem.  Any suggestions please?

    You don't say which version of iTunes you are using, but the symptoms you describe have been encountered by some users with the 64-bit version of iTunes 12.1.
    There is an alternative version for 64-bit editions of Windows here:
    iTunes 12.1 for Windows (64-bit — for older video cards)
    that seems to address the most of the playback issues that some users have been reporting with the full 64-bit version of 12.1.0.77 - including problems with Bluetooth speakers where either sound is degraded or completely absent.  The alternative installer here is the same architecture as most previous "64-bit" versions of iTunes, i.e., a 32-bit application with a 64-bit installer.  The "for older video cards" label appears to be something of a misnomer as some people have reported that this corrects problems found on current / high-spec systems.
    Some users have reported that after installing this alternative version it is necessary to adjust the "Play audio using" selection (normally to "Direct Sound" rather than "Windows Audio Session", though this may vary based on your audio hardware/drivers) in Edit > Preferences > Playback to restore glitch-free audio (one part of the reported symptoms is that the "Direct Sound" choice isn't available, usually in Windows 8).  It may also be necessary to ensure that your Bluetooth speakers are active and selected as the default audio device before you run iTunes.
    If this doesn't address the issue, you may want to think about reverting to iTunes 12.0 - see Turingtest2's notes on Troubleshooting issues with iTunes for Windows updates for steps needed to completely remove all installed iTunes components, and for links to the 12.0 installers.

  • Printing only one line record with total of all items through alv

    hi experts,
    i am facing a problem while printing a list through alv.
    requirement is, suppose i have 3 line items under one document no.
    i have to print only one record with total amount of all items.more clearly...
    1001  10  1000/-
    1001  20    234/-
    1001  30   540/- these records in internal table then i am passing it to reuse_alv_grid_display.
    i need to display only 1001  1774/-(means sum of all the items)
    please tell me how to do this.
    thanks in advance,
    manasi

    hi ansari,
    contains in itab
         3000000004     02.11.2000     5550     27.95     27.95     0
         3000000004     02.11.2000     5550     10.95     10.95     0
         3000000005     02.11.2000     5550     27.95     27.95     0
         3000000005     02.11.2000     5550     10.95     10.95     0
         3000000006     02.11.2000     3020     52.99     52.99     0
         3000000006     02.11.2000     3020     64.99     64.99     0
         3000000006     02.11.2000     3020     49.5     49.5     0
         3000000007     02.11.2000     3730     2,228.00     2,228.00     0
         3000000007     02.11.2000     3730     1,698.00     1,698.00     0
         3000000007     02.11.2000     3730     532     532     0
    now please tell me how to print the data
    output will be
    3000000004     02.11.2000     5550     38.90     38.90       0
    3000000005     02.11.2000     5550     38.90     38.90       0
    3000000006     02.11.2000     3020     117.19     117.19     0
    like that
    please help me out
    manasi

  • PO with Total Price amount calculated is incorrect at the time of printing.

    Hi Experts,
    I have one PO with Total Price amount calculated is incorrect at the time of printing.
    When my  user took the first print out the PO shows the incorrect Total amount.
    After 10 mins my user taken the printout again,that time it shows the Toatal Price value is correct amount.
    How i can analysis this type of BUG..!!!
    I am thinking it might be BUG...???
    Please advice with you valuable inputs.
    Best Regards,
    RK

    Hi,
    Are you using the standard programm and print form or are you using your own?. Most of the printing issues happens because of own programms. Try with the standard and then you will be able to see why is this happening.
    Best Regards,
    Arminda Jack

  • Problem with total page numbers in Scripts

    Hi,
    I have a problem with total number of pages in the Script.
    I have a script of 15 pages.
    On every page, I am using &PAGE& of &SAPSCRIPT-FORMPAGES(C)&.
    Problem is : I am getting only single digit for SAPSCRIPT-FORMPAGES as long as the page number remains in single digit - like -
    1 of 1
    2 of 1
    3 of 1... till 9 of 1.
    But from 10th page, it is printing :
    10 of 15
    11 of 15
    12 of 15... till 15 of 15.
    So, i think the symbol SAPSCRIPT-FORMPAGES(C) is filled with value 15 , but it is prinitng only the first digit '1' for pages 1 to 9 and then printing both the digits '15' for pages from 10 onwards.
    So, please help me out in this problem.
    Thank you.

    Hi Ven,
    The CONDENSE option cannot be used on the program icon SAPSCRIPT-FORMPAGES
    (C) without an explicit length specification: This symbol is
    only replaced with a value after the form has been completely edited, as the
    total number of pages of a form is first known in the program function
    END_FORM or CLOSE_FORM. However, the size of the symbol (number of
    characters) is reserved correctly when the symbol first occurs, with the
    current page number. Therefore, only one character is reserved for option C
    (CONDENSE) on pages 1-9, two characters on pages 10-99, and so on.
    If you are sure that the total number of pages doesn't cross 99(i.e 2-digit number), then use the FORM pages as SAPSCRIPT-FORMPAGES(2CZ).
    Here Z will suppress the leading zeros, for the total number of pages.
    Hope this information would be useful for you.
    Reward points if this is useful.
    Pavan.

  • Prob with decode function

    hi iam having prob with the following decode function
    declare
    c varchar2(20);
    begin
    select decode(deptno,
    10, 'accounting',
    20,'Research',
    30 ,'sales',
    40,'operations','UNKNOWN') into c from dept where loc='DALLAS';
    dbms_output.put_line('DEPARTMENT in DALLAS'||c);
    select decode(deptno,
    10, 'accounting',
    20,'Research',
    30 ,'sales',
    40,'operations','UNKNOWN') into c from dept where loc='INDIA';
    dbms_output.put_line('DEPARTMENT IN INDIA'||c);
    end;
    iam getting no_data_found exception which is reasonable..but what happened to 'unknown' clause in decode function.
    thank u
    rajiv

    Please see the responses to your prob in decode function
    John

  • Urgent:page wise total in smartforms

    hi,all
    How to do page wise total in smartforms   ?
    use table in smartforms for summary in pagebreak
    ex. page1
    10 (line 1)
    20 (line 2)
    30 (line 3)
    total 100
    page 2
    40 (line 1)
    50 (line 2)
    total 50
    Total in page 1 incorrect = line1(page1) + line2(page1) + line3(page1) + line1 (in page2)
    Total in page 2 inccorrect = line2 (in page2) .
    please help me guys to solve this problem..

    r u printing the internal table data using the TABLE node then--> in the Calculation tab u can do this.
    first create a variable in Global difinations-->global data tab.(ex v_tot)
    then in the TABLE>calculations TAB> 1select ->sum then 2nd colun>give the field name which u want to calculate (ex-wa_itab-netwr) in the Target Filedname tab> give the varialbe u have declared for the total(ex v_tot). in TIME colums select AFTER theLOOP...
    then in theTABLE>footer>inset a line display the variable(total u r using).here
    after the the printing the total..->create a program lines> cleat the v_tot... why u need to clear this is.... u want to display only the total value which are displaying in the current page... after printing this v_tot... clear this... so that in the next page it start totaling the freshly...
    lem me know if u have any clarifications.
    u can calculate as the above way for all the 6 fields.
    please Avoid postin duplicate threads

  • Airport connection probs with Mac Pro and 10.4.8  too.

    This prob is not just related to iMacs or MacBooks as published in the knowledge base doc. I have exactly the same prob with my 2.66 GHz Mac Pro. I have to reconnect this beast to my wlan router manually every time.
    PLZ Apple fix this asap!

    I had a similar problem which I've fixed!
    I have four machines here which can connect to my Netgear DG834N via Aiport. (I say can because they normally connect via ethernet.) My MacBook Pro always used to be fine when connected wirelessly but recently, not aware of any changes I've made, it connects for about 10 seconds then disconnects. All other machines are fine and hold the connection.
    This is what I tried before finding my solution:
    1) Deleted all references to the network in the keychain and remade them.
    2) Created another user to try
    3) Changed channels on the router even though I can't see any neighbour's networks.
    4) Made sure computer and router were up to date with firmware/software.
    I'm assuming that it has to be a computer problem as the PowerMac, iMac and iPod Touch have no issues at all. However, the cure was in the router.
    I run with SSID broadcast turned off, WPA2 encryption and MAC address filtering. Allowing broadcast of the SSID cures my problem. Turn it off and the computer connects then drops it ten seconds later. Turn broadcast on and it maintains the connection. I've tried it all afternoon, leaving it connected for about 30 minutes at a time before turning SSID broadcast off again. Works every time! Broadcast SSID - fine, no broadcast - drops after ten seconds.
    Now, if only I knew why! And why only the laptop?

  • Hey, i have very strange prob with my iphone 5(latest version/updated), after resetting it, so it doesn't connect to my laptop, even it doesn't charge too. it does charge from wall charger i try all the possible methods but still i am facing the prob

    Hey, i have very strange prob with my iphone 5(latest version/updated), after resetting it, so it doesn't connect to my laptop, even it doesn't charge too. it does charge from wall charger i try all the possible methods but still i am facing the prob any fix/solution for it.. Helppppp!!!!!!!!!!!!!!!!!!!!!!!! As soon as possible, it will be gratefulness,
                                Thnksssssss....

    So you are saying that you followed all of the steps in the support document for problems with connection, including removing and reinstalling iTunes? You do not say what you have tried, so it is hard to make recommendations. If this is the case, then you have tried resolving driver issues? What if you go to Device Manager and look for the iPhone. You should be able to click on it and see about drivers. You can update/reinstall the device driver.

  • Hi frinds ,how to calculate the  totals in smartforms

    1)how to calculate the  totals in smartforms .

    Hi,
        To calculate totals and sub totals in sap scripts you can use subroutines.
    Say if you have to add the unit price (KOMVD-KBERT) then in the main window whereever tat value is picked write this routine
    /: DEFINE &TOT_PRICE&
    /: PERFORM F_GET_PRICE IN PROGRAM /:USING &KOMVD-KBERT& /:CHANGING &TOT_PRICE& /:ENDPERFORM
    Then write the variable where ever you want it to be printed (mostly it will be in footer window)
    Then create subroutine pool program and you have to write the code.
    FORM F_GET_PRICE tables int_cond structure itcsy
    outt_cond structure itcsy. data : value type kbert.
    statics value1 type kbert.
    Read int_cond table index 1.
    value = int_cond-value.
    value1 = value1 + value.
    Read outt_cond table index 1.
    outt_cond-value = value1.
    Modify outt_cond index 1.
    ENDFORM.
    regards..

Maybe you are looking for

  • Action in Integration Scenario

    Hi I have a doubt regarding " Actions" in Integration Scenario in IR. I have an interface which is actually a clubbed one, there are two interfaces together and there are two sender interfaces and two receiver interfaces. So how many should I create

  • What printers are compatible with Lion?

    I am on my second printer, and no dice with HP officejet 4500. Are there any printers that are compatible with Lion, and easy to install. It has been nothing but a nightmare, and a financial burden to try to find a printer that works. please advise,

  • Extend Material to Different MRP Areas

    Hi Friends! I want to extend a material to different MRP areas. Is this possible using BAPI_MATERIAL_SAVEDATA? I couldn't find the MRP area field(should be an input table holding multiple records) in the BAPI to input for extending the material. Or i

  • Too many lock entries on BUT000 in SRM7

    Hi, When we are trying to update attributes of Org units through FM BBP_UPDATE_ATTRIBUTES, there are so many lock entries created for different values on table BUT000. We are calling the said FM in loop becasue this FM has the capability of updating

  • Setting the debug level of log

    What do you set in order to get more verbose log messages from OC4J? I can't tell if things are going right ..