Display total in sapscript

sir, i like to know how can print total in sapscript, is it using separate variable for print total and also know how calculation performed in sapscript .

Hi
Yes, you can define a variabe in your print program and pass it to the SAPScript.
LIKE:
Define L_SUM in the Global data.
DATA: L_SUM TYPE BSEG-DMBTR.
LOOP AT ITAB.
  L_SUM = L_SUM + ITAB-AMOUNT.
ENDLOOP.
CALL FUNCTION 'WRITE_FORM'
  WINDOW = 'MAIN'
  ELEMENT = 'TOTAL'.
Now, in your SAPScript, create a text element in MAIN window
/E TOTAL
Total,, &L_SUM&.
Go through below link
http://sap-img.com/sapscripts/sapscript-how-to-calculate-totals-and-subtotals.htm

Similar Messages

  • Display Totally paid items(cleared items), partial payments and residual pa

    Hi Experts,
    I am working on one requirement,
    Requirement: Display Totally paid items(cleared items), partial payments and residual payments.
    I am fetching data from BSAD table for Totally paid items, but I want to understand what are the fields to check when fetching data.
    Partial payments: Please let me know the logic to get data for partial payments from BSID table.
    Residual payments: what are the tables to check for residual payments and the logic.
    What are the fields that i have check and what are the fields that I have to check and get.?
    Please let me know what ever you know about this.
    Regards,
    Dileep,

    Hi,
    All types of Payments  either Totally paid items(cleared items) or  partial payments and residual payments the Document Number serious will b same.   Try to  extract by  Filtering Assignment Field .
    Thanks
    Goutam

  • How to display total in ALV Header

    How to display total in ALV Header?

    Hi Venkey,
    As far as your issue is concerned I would like to quote my perception.
    Create a header internal table with title and number of records.
    At the later part of your program you should have found the total number of records ,now assign it to the header internal table and print it.
    For further clarification you can go check this link:
    http://wiki.sdn.sap.com/wiki/display/ABAP/AddHeadertoALVreport
    Thanks
    P.Srikanth

  • Problem in displaying Total No.of Lines in ALV report header.

    Hi guys,
    my field symbol internal table is having records in which "Compliance" field is having YES or NO values. now requirement is to display
    Total No. of Compliances which are having YES.
    lets say, internal table is having 10 lines. in which compliance field is having 6 YES and 4 No respective values .
    now i want to display header as No. of Compliances :  6
    following is my code to display Total no.of lines in internal tables.
    * total no. of records selected
       DESCRIBE TABLE <table> LINES ld_lines.
       ld_linesc = ld_lines.
       CONCATENATE text-004 ld_linesc
                         INTO t_line SEPARATED BY space.
       wa_header-typ  = 'A'.
       wa_header-info = t_line.
       APPEND wa_header TO t_header.
       CLEAR: wa_header, t_line,ld_lines, ld_linesc .
    My data is there in Field-Symbol table.
    Now i want to display No.of compliances . could anybody please help me out in this.
    Thanks in Advance.
    Regards
    satish

    HI,
    You can use another option like below,
    <Table>[] = <Table1>[]
    delete table1 where compliance = 'NO'.
    DESCRIBE TABLE <Table1> LINES ld_lines. .. follow your logic as above.
    Hope this will helps you,
    Thanks & Regards,
    Suresh M

  • How can I display total playlist size in iTunes 11.  It used to be visible for each playlist or CD, but I can't find it now.

    How can I display total playlist size in iTunes 11.  It used to be visible for each playlist or CD, but I can't find it now.

    The Friend: Thanks from me too for that super simple fix!! I feel kinda stupid for not knowing that.
    Too bad Apple didn't:
    Give it a more intuitive name than "Status Bar"... "status" is what is shown at the top of the window along with the Artist and Song Title, e.g.; how far into the song/podcast/video I've played and how much is left,
    Put the keyboard commands in a more prominent place in their release notes when version 11 came out so we could more easily find the information they decided to hide in this attempt to make the desktop less cluttered and
    Allow us the option of displaying the data size along with the song count and duration just beneath the playllist title. The status bar is a redundant listing of information except for the data size!  Poorly conceived!
    Perhaps Apple will remedy this in a future release. For those of us who like to burn our playlists to CD, DVD and even a thumb drive this information is essential. WIthout it, we're left to guess whether a given playlist will fit on our target device.
    Thank you!

  • Display Total No of Rows displayed in footer -- Classic Table

    Hi Friends,
    I have a search page. I want to display total records selected in the footer.
    Like:
    Col1 col2 col 3
    ---- Repaired --------
    ---- Not Repaired -------
    ------ Repaired ------
    Total Records : 3
    I cant use column total in this case b coz i the column 2 is not numeric column.
    I can get the total no of rows using getRowCount, but i dont know how to display it in footer of perticular column.
    Can anybody pls help in this regards...
    Thanks & Regards,
    Ram

    Hi,
    i solvet it.. with littlebit changes to the same code.
    Its urgent requirement pls help.........
    I am using the following code
    int totRow = getTotalRowFromView(pageContext,webBean);
    OATableBean table = (OATableBean)webBean.findChildRecursive("telmarRepairDetailVO1");
    OAMessageStyledTextBean totBean = (OAMessageStyledTextBean) table.findChildRecursive("ResultDetail");
    String s1 = "Total Result: "+totRow;
    totBean.setAttributeValue(TABULAR_FUNCTION_VALUE_ATTR", s1);
    But the value is not set to the footer.
    Regards,
    Ram

  • Display Total Row In Matrix

    Hi all!
    In my addon application I have Matrix with 10 columns (2 columns with column type Edit Text, 8 columns with column type checkbox) now In 8 columns with type checkbox I want to display Footer as form Id = 60207(Menu service/service Report/Response Time by assignee Report). How To do it?
    please give me the solution to display Footer(Total) of Matrix when the column have column type is checkbox.
    Thanks & Help Me

    Hi !
    Thanks for your reply! when using 2 matrixs have problem as follow:
    My Matrix has 10 columns so will appear horizonal scrollbar so it doesn't solved this problem. My Idea I will add row after the last row and display total but i have problem: 8 columns that i want to add total have column type is checkbox so I can't. HOw to convert column type only the my row? Or give me the other solution. THanks
    Edited by: Tao lao on Apr 8, 2008 12:02 PM

  • How to display total "items" and "amount " in header.jsp in CRM ISA B2B

    Hi,
    I am modifying “header.jsp” in standard CRM ISA B2B application.  Here we have summary of total number of items and total amount but it is coming in to button and for that below code is there in “header.jsp” and it display it as button text.
    if (!ui.homActivated) { %>
    !!" alt="" border="0" height="16" width="20">
    </td>
    <td class="vertical-align-middle" name="miniBasket" value="<isa:translate key="b2b.header.minibasket.default"/>" >
            <form name="basketForm" action="javascript:show_basket();">
         <input class="green" name="miniBasket" type="button" value="<isa:translate key="b2b.header.minibasket.default"/>"/>   
        </form>
    </td>   
    <% } else { %>
    <!-- HOM scenario - minibasket displays collective order -->
    <td  class="vertical-align-middle" align="right">
    !!" alt="" border="0" height="16" width="20">
    </td>
    <td  class="vertical-align-middle" name="miniBasket" value="<isa:translate key="b2b.header.collorder.default"/>">
    <form name="basketForm" action="javascript:show_collective_order();">
        <input class="green" name="miniBasket" type="button" value="<isa:translate key="b2b.header.collorder.default"/>"/>   
    </form>
    </td>
    <% } %>
    Now I want to display total number of items and total amount separately in two different <td> element.
    How I can get total number of items and total amount in “header.jsp” I tried below code but did not get any success.
    Insert below line in “header.jsp” with respective page import statement for class or let me know which class I have to import.
    <%
         HeaderSalesDocument  hdr =
                (HeaderSalesDocument) request.getAttribute(MaintainBasketBaseAction.RK_HEADER);
        ItemList items =
                (ItemList) request.getAttribute(MaintainBasketBaseAction.RK_ITEMS);
    %>
    And then I use
    <td><%= hdr.getNetValue() %></td>
    <td><%= items.size() %></td>
    But it is not printing any thing and header page not display at all.
    Pl. tell me how to get total amount and number of items in header area. Which class or object I have to use here.
    I really appreciated any help from any one.
    Thanks and regards.
    Ashish Patel.

    Hi, I tried another logic. I took value from  Standard button, in which B2B application display total items and amount and I hide this field, to another text element.
    Now I Am breaking that value in words and stored them in array  and then trying to display that array with particular number which contains total item and amount through Java Script on Focus.
    But problem here is, It is not getting updated automatically I have to click on new text files to trigger Onfocus event. How I can achieve effect like as soon as Standard button changes it's value which is now hidden filed my new text box should update automatically.
    Thanks.
    Ashish

  • Display Total in Group Above Report

    Hello,
    I have a group above report with month, product_id, product_name as group above fields I have product_entry_date, description, total_qty, actual_qty etc as display fields in my report.
    I would like to have a total and grand total for total_qty and actual_qty for product_id and product_name. Issue I am having is when I add a summary column for total_ qty and actual_qty, total is getting displayed for each month.
    How can I display total and grand for total_qty and actual_qty?
    Any help is highly appreciable.
    Thanks

    ponic wrote:
    Hello,
    I have a group above report with month, product_id, product_name as group above fields I have product_entry_date, description, total_qty, actual_qty etc as display fields in my report.
    I would like to have a total and grand total for total_qty and actual_qty for product_id and product_name. Issue I am having is when I add a summary column for total_ qty and actual_qty, total is getting displayed for each month.
    How can I display total and grand for total_qty and actual_qty?
    Any help is highly appreciable.
    ThanksIf you want to display total qty for each month and you already done it. as you says..
    total is getting displayed for each month.If not ,
    Take a summary column at month group >> at properties .. Summary Function : Sum , Reset at month group.
    and for grand total
    take a summary column outside the query. >> at properties .. Summary Function : Sum , Reset at report.
    Hope it works.
    hamid
    If someone's response is helpful or correct, please mark it accordingly.

  • I want to display total count on the top of a Column in  business graphics

    Hi All ,
        How can I display total count of the column say for example no. of employees in a series of column chart type in business graphics.
    Any type of help would be much appreciated.
    Thanks
    Uday

    Hi Vishweshwara,
    following is the code i wrote. please check the correctness of the code.
    int seriescount = 0;
    for(int i=0;i<nodesize;i++){
    IGraphDataElement catele = gdNode.createGraphDataElement();
    switch(i){
    case 0:   
       if(wdContext.currentContextElement().getQ().equals("Q1")){
         catele.setCategory("Q1");
           catele.setKRA_Series1(Q1_KRA);
           catele.setApp_Pln_Series2(Q1_AP);
           catele.setRev_App_Series3(Q1_RA);
           catele.setEnd_Rev_Series4(Q1_ERP);
           catele.setApp_Procss_Series5(Q1_AIP);
           catele.setApp_overall_Series6(Q1_AOP);
           seriescount = seriescount+1; break;}
            break;
    case 1:       
       if(wdContext.currentContextElement().getQ().equals("Q2")){
           catele.setCategory("Q2");
           catele.setKRA_Series1(Q2_KRA);
           catele.setApp_Pln_Series2(Q2_AP);
           catele.setRev_App_Series3(Q2_RA);
           catele.setEnd_Rev_Series4(Q2_ERP);
         catele.setApp_Procss_Series5(Q2_AIP);
         catele.setApp_overall_Series6(Q2_AOP);
            seriescount = seriescount+1; break; }
                 break;
    case 2:       
    if(wdContext.currentContextElement().getQ().equals("Q3")){
         catele.setCategory("Q3");
         catele.setKRA_Series1(Q3_KRA);
         catele.setApp_Pln_Series2(Q3_AP);
         catele.setRev_App_Series3(Q3_RA);
         catele.setEnd_Rev_Series4(Q3_ERP);
         catele.setApp_Procss_Series5(Q3_AIP);
         catele.setApp_overall_Series6(Q3_AOP);
         seriescount = seriescount+1; break;}
                 break;
    case 3:   
    if(wdContext.currentContextElement().getQ().equals("Q4")){
         catele.setCategory("Q4");
            catele.setKRA_Series1(Q4_KRA);
         catele.setApp_Pln_Series2(Q4_AP);
         catele.setRev_App_Series3(Q4_RA);
         catele.setEnd_Rev_Series4(Q4_ERP);
         catele.setApp_Procss_Series5(Q4_AIP);
         catele.setApp_overall_Series6(Q4_AOP);
            seriescount = seriescount+1; break;}
                 break;
    case 4: if(wdContext.currentContextElement().getQ().equals("All")){
           wdContext.nodeGraphData().invalidate();
         wdContext.currentContextElement().setGraphVisibility(WDVisibility.NONE);
         wdThis.onActiondropdownaction(wdEvent);
    }default:
    wdContext.nodeGraphData().addElement(catele);
    Thanks
    Uday

  • Problem in displaying total no of pages in Smartform

    Hello experts,
    I have a problem while displaying total no of pages in Smartform.
    When no of pages are more than 10 then in total no of pages , a * is shown till current page is 9, then after it is displaying correct no of pages.
    I am using &sfsy-formpages& to get total no of pages.
    Ex: Like if I have 12 pages to print then i am getting 1/, 2/, 3/* .......... 9/* then 10/12 , 11/12, 12/12.
    Do i have to write some code for that ?? Please give your inputs to get the total no of pages.
    Thanks !

    Hi,
    Try this.
    Page &SFSY-PAGE& of &SFSY-FORMPAGES(4ZC)&
    Thanks,
    Anitha A

  • Problem in displaying total text in total line

    Hi...I am facing problem in displaying total text in first column of total line. Width of first column is sufficient to display text "TOTAL". But somehow its not getting displayed....Please Help...?
    code is as follows:
    ls_layout TYPE  slis_layout_alv .
    ls_layout-totals_text       = 'TOTAL'.
      ls_layout-colwidth_optimize = 'X'.
      ls_layout-no_vline          = 'X'.
      ls_layout-no_hline          = 'X'.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_callback_program     = gv_repid            " Report ID
          i_callback_top_of_page = 'TOP_OF_PAGE'
          is_layout              = ls_layout
          it_fieldcat            = gt_fieldcat         " Field Catlog
        TABLES
          t_outtab               = gt_cost_output      " Output Table

    hi me to i have the same problem
       FORM create_layout .
      data: text(20) TYPE c.
      it_layout-window_titlebar   = text.
      it_layout-colwidth_optimize = 'X'.
      it_layout-totals_text       = text-013."'Totals'(013).
      it_layout-cell_merge        = 'X'.
      it_layout-zebra             = 'X'.
    ENDFORM.         
    but no output total in alv
    also i had another broplem i had unit i wanna show it in total line and calc value in header

  • Problem in displaying totals based on the Unit of measurement.

    Hi,
    I have Problem in displaying totals based on the Unit of measurement.
    I want to display the total in the output of the alv based on the unit of measurement. for example i have three fields in the output namely
    Matnr           Quantity      UOM
    51                10              EA
    61                10              KG
    71                10              KG
    In the total i should get
                    10         EA
                    20         KG
    Can anyone tell me how to do this?
    The basic req is the exclude the qty with unit EA(each) in the totals.
    Thanks,
    Amit

    H i,
    you can use the collect statement
    to get the proper result
    loop at itab.  ( all the records)
    move all the fields from itab to another
    collect itab1.
    write: itab1-fields, itab1-fields.
    endloop.
    this will solve your problem
    reward points if helpful,
    thanks & regards,
    venkatesh

  • Display total cost in interactive report

    Hello,
    I have created one interactive report, on which i have applied control break on one of the column say department.
    there is one column on my report which is showing price,
    so,I want to add one more row at the bottom of report showing total of of the prices.
    for ex.
    Department type : Sales
    ID----------NAME-----------SAL------------ DEPT
    1--------------A------------- 100--------------10
    1--------------B------------- 300--------------12
    Department type : Marketing
    ID----------NAME-----------SAL------------ DEPT
    1--------------C------------- 100--------------10
    Total-------------------------400
    Apex Version : 4.1
    Database : 11g
    Thanks in advance
    Jitendra

    Hi,
    How do I rename the label on the break total function?
    For ex, If I use break total(sum) function, it displays Total (Column Name). How do I get rid of the Total keyword in the Interactive Reporting?
    Please help.
    Thanks.

  • How do you display total time for playlist in Itunes 11

    how do you display total time for playlist in Itunes 11

    "I can see the total time in my playlist on the computer but not on my device??"
    I have just posted a question asking the same!
    Did you have any joy?

Maybe you are looking for

  • Downloadable installer of 11.5.10.2

    Hi, Can you please let me know from where can I download 11.5.10.2 software, am not able to find either in edelivery.oracle.com or otn.oracle.com Cheers, Patel

  • Attending Oracle OpenWorld in San Francisco?

    We're heading to Oracle OpenWorld too so don't forget to come and see us because we will have something for you! See you there

  • "Microsoft.Exchange.2010.Reports.Transport.Platform.TopUsers "Report show no result

    hello,       i have an issue in my SCOM 2012 report.when i go to Reporting --> Exchange Server 2010 Report Library-->and open the report Microsoft.Exchange.2010.Reports.Transport.Platform.Top users. in my scom 2012 console and execute the report for

  • Images appear much lighter in program

    I have Photoshop Elements 11 and my pictures are significantly lighter in the program compared to the original. After I made my edits and saved the jpeg when I look at the image in the folder it is much darker. The monitor is obviously not the proble

  • Test coverage script?

    Hi all, Just a quick question. I wanted a program I could quickly run which would inspect all classes, and tell me which methods did not have a corresponding test methods so I would know which code lacked proper unit tests. I can write it myself....j