How to combined 2 ALV grand total

Hi All,
We are using list display I have two ALV lists with same fields I want to combined the grand total of ALV lists and do some calculations and display in ALV_END_OF_LIST.Is it possible?
Thanks in Advance
Regards
Deepak

HI,
Declare a Varialbe, and Move the First ALV total to thsi field, and while doing the Second ALV, add the total to that new field and print that field in the ALV_END_OF_LIST.
Regards
Sudheer

Similar Messages

  • Abap-alv grand totals

    hi friends,
    how to find alv grand totals with out subtotals.
      for ex for subtotals we use do_sum,
    like that what we use for grand totals with out subtotals.

    Hi,
    Do not pass the Sort table to ALV...pass X for the DO_SUM in the fieldcatalog for the field you want to have total.
    g_fieldcat-tabname   = 'I_INA2011'.
      g_fieldcat-fieldname = 'HRTOT'.
      g_fieldcat-coltext   = 'Total Hours Work'(006).
      g_fieldcat-do_sum    = 'X'.          " Pass this
      APPEND g_fieldcat TO i_fieldcat.
      CLEAR  g_fieldcat.
    *  Calling method to display data.
        CALL METHOD g_alv_grid->set_table_for_first_display
          EXPORTING
            is_layout       = g_layout
            i_save          = 'A'
          CHANGING
            it_fieldcatalog = i_fieldcat
            it_outtab       = i_ina2011.

  • How to get the Grand Total in Module pool Screen

    Hi Frds.
         How to get the Grand Total in Module pool Screen
    Example i have 10 different materials
    for each matarial has different moving . But in my case matarials is doesnt matter here
    10 material Moving Average price to do Frand total and display in one column...
    Please Help me out Frds.
    Regards,
    Kabil

    Hi
    You need to calculate the total in a module of PAI (or PBO) event:
    PROCESS PAI.
       LOOP.....
       ENDLOOP.
      MODULE CALCULATE_TOTAL.
      MODULE CALCULATE_TOTAL.
        GRAND_TOTAL = 0.
         LOOP AT ITAB,
            GRAND_TOTAL = GRAND_TOTAL + ITAB-PWB.
        ENDLOOP.
    ENDMODULE.
    In this way the grand total will be calculated as soon as the user presses enter or another command.
    You can't insert the calculation in the loop of table control, because this loop runs the visible lines only, so it's better to calculate the total out of those loop,

  • HOW TO GET THE GRAND TOTALS IN  ALV USING GRID FM

    Hi,
    I would like to know that am getting the sub totals using the ALV_GRID FM,
    But I need Grand totals how i can get and what is the paramater to keep = x to get this Grand totals\.

    Hi,
    If you have the DO_SUM = 'X' in the field catalog internal table for the corresponding column..Then you will get the grand total..
    Thanks,
    Naren

  • ALV Grand total currency wise.

    Hi,
    I am totalling the fields in ALV according wise. If i have two currency i.e USD and INR then total should come as Grand Total of all USD and INR. But in output it displays the cross(x) sign .
    So how to use it

    Hi,
    hope this will help you,
    For the totals of each currencies, I just inserted the following code in my form 'fill_fieldcat':
    wa_fieldcat-fieldname = 'DMBTR'.
    wa_fieldcat-ref_fieldname = 'DMBTR'.
    wa_fieldcat-ref_tabname = 'BSEG'.
    wa_fieldcat-cfieldname = 'WAERS'
    APPEND wa_fieldcat TO it_fieldcat.
    CLEAR wa_fieldcat.
    And of course, there must be a currency field that will serve as the reference for the calculation of totals for the different currencies
    Also refer this code
    *& Form sub_field_cat
    text
    FORM sub_field_cat .
    it_fieldcat1-fieldname = 'PERNR'.
    it_fieldcat1-seltext_m = text-003.
    it_fieldcat1-col_pos = 0.
    it_fieldcat1-outputlen = 8.
    APPEND it_fieldcat1 TO it_fieldcat1.
    CLEAR it_fieldcat1.
    it_fieldcat1-fieldname = 'WORKDATE'.
    it_fieldcat1-seltext_m = text-012.
    it_fieldcat1-col_pos = 1.
    it_fieldcat1-outputlen = 8.
    APPEND it_fieldcat1 TO it_fieldcat1.
    CLEAR it_fieldcat1.
    it_fieldcat1-fieldname = 'WEKLY'.
    it_fieldcat1-seltext_m = text-015.
    it_fieldcat1-col_pos = 2.
    it_fieldcat1-outputlen = 7.
    APPEND it_fieldcat1 TO it_fieldcat1.
    CLEAR it_fieldcat1.
    it_fieldcat1-fieldname = 'LGART'.
    it_fieldcat1-seltext_m = text-013.
    it_fieldcat1-col_pos = 3.
    it_fieldcat1-outputlen = 4.
    APPEND it_fieldcat1 TO it_fieldcat1.
    CLEAR it_fieldcat1.
    it_fieldcat1-fieldname = 'STDAZ'.
    it_fieldcat1-seltext_m = text-014.
    it_fieldcat1-col_pos = 4.
    it_fieldcat1-outputlen = 7.
    APPEND it_fieldcat1 TO it_fieldcat1.
    CLEAR it_fieldcat1.
    it_fieldcat1-fieldname = 'RAUFNR'.
    it_fieldcat1-seltext_m = text-016.
    it_fieldcat1-col_pos = 5.
    it_fieldcat1-outputlen = 12.
    APPEND it_fieldcat1 TO it_fieldcat1.
    CLEAR it_fieldcat1.
    ENDFORM. " sub_field_cat
    *& Form sub_display_data
    text
    FORM sub_display_data .
    *--To sort the output through material number
    DATA : lwa_sort TYPE slis_sortinfo_alv.
    DATA : lit_sort TYPE slis_t_sortinfo_alv.
    *--Pass the values to the table
    lwa_sort-fieldname = 'PERNR'. "Field name in o/p inttable
    lwa_sort-tabname = 'it_final2'. "Output Internal table
    lwa_sort-spos = '1'. "Sort sequence
    lwa_sort-up = 'X'. "Sort in ascending order
    lwa_sort-down = ' '. "Sort in descending order
    lwa_sort-subtot = 'X'. "Subtotal
    APPEND lwa_sort TO lit_sort.
    *--Pass the values to the table
    lwa_sort-fieldname = 'WORKDATE'. "Field name in o/p inttable
    lwa_sort-tabname = 'it_final2'. "Output Internal table
    lwa_sort-spos = '2'. "Sort sequence
    lwa_sort-up = 'X'. "Sort in ascending order
    lwa_sort-down = ' '. "Sort in descending order
    lwa_sort-subtot = ' '. "Subtotal
    APPEND lwa_sort TO lit_sort.
    *--Pass the values to the table
    lwa_sort-fieldname = 'WEKLY'. "Field name in o/p inttable
    lwa_sort-tabname = 'it_final2'. "Output Internal table
    lwa_sort-spos = '3'. "Sort sequence
    lwa_sort-up = 'X'. "Sort in ascending order
    lwa_sort-down = ' '. "Sort in descending order
    lwa_sort-subtot = ' '. "Subtotal
    APPEND lwa_sort TO lit_sort.
    wa_layout-colwidth_optimize = 'X'.
    IF NOT it_final2[] IS INITIAL.
    *--Call the function module to display the ALV report
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
    is_layout = wa_layout
    i_callback_program = v_repid
    it_fieldcat = it_fieldcat1[]
    i_default = c_chk
    i_save = c_save
    it_sort = lit_sort
    TABLES
    t_outtab = it_final2
    EXCEPTIONS
    program_error = 1
    OTHERS = 2.
    IF sy-subrc 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    ELSE.
    *--Message No data found
    MESSAGE i888 WITH text-017.
    LEAVE LIST-PROCESSING.
    ENDIF.
    ENDFORM. " sub_display_data
    Reward if found helpful...
    Cheers,
    Chandra Sekhar.

  • Alv grand total

    hi gurus pls help me on this issue....... i want grand total on each column of this report.
    for example field 'metric-safety'. if possbile try to edit this and send me.
    TYPE-POOLS : slis.
    Tables : Marc, " Plant Data for Material
    Mbew, " Material Valuation
    Ekpo, " Purchasing Document Item
    Eord, " Purchasing Source List
    Zpmt. " Purchasing Metric Table
    Internal Tables Declaration----
    Data : Begin of metric occurs 0,
    matnr like marc-matnr, " Material number
    werks like marc-werks, " Plant
    minbe like marc-minbe, " Recoder Point
    eisbe like marc-eisbe, " Safety Stock
    stprs like mbew-stprs, " Standard Price
    lifnr like eord-lifnr, " Vendor
    menge like ekpo-menge, " PO Quantity
    scalc type p decimals 2,
    safety(20) type c,
    tcalc type p decimals 2,
    Target(20) type c,
    acalc type p decimals 2,
    actual(20) type c,
    ecalc type p decimals 2,
    excess(20) type c,
    ucalc type p decimals 2,
    usafety(20) type c,
    *******Custom table
    inscr like zpmt-inscr, " Inventory Score
    stkot like zpmt-stkot, " Stock Out
    impct like zpmt-impct, " Impact
    nafta like zpmt-nafta, " %nafta
    stscr like zpmt-stscr, " Stock Out Score
    end of metric.
    Data : final like metric occurs 0 with header line.
    DATA: fcat TYPE slis_t_fieldcat_alv WITH HEADER LINE.
    **Data : Begin of output occurs 0,
    lifnr like eord-lifnr, " Vendor
    eisbe like marc-eisbe, " Safety Stock
    minbe like marc-minbe, " Re-order Point
    stprs like mbew-stprs, " Standard Price
    sstock(13) type c, " Value of Safety Stock
    Actual(13) type c, " Actual
    Excess(13) type c, " Excess Inv
    underSs(13) type c, " Under Safety Stock
    end of output.
    Data type Declaration----
    Data : a type c value '$'.
    Data : safety(20) type c,
    target(20) type c,
    actual(20) type c,
    excess(20) type c,
    usafety(20) type c,
    repid like sy-repid.
    data : i_pos type i.
    Selection Screen----
    selection-screen : begin of block b1 with frame Title tname.
    Select-options: Mat for marc-matnr, " Material Number Selection
    Plt for marc-werks, " Plant Selection
    Vdr for eord-lifnr. " Vendor Selection
    selection-screen : end of block b1.
    Initialization----
    initialization.
    tname = 'Purchasing Metric Report'.
    At Selection-Screen----
    At selection-screen.
    IF mat = ' ' and Plt = ' ' and Vdr = ' '.
    message e000.
    *elseif mat metric-matnr.
    *message e001.
    *elseif plt metric-werks.
    *message e002.
    *elseif vdr metric-lifnr.
    *message e003.
    endif.
    Start-of-Selection----
    Start-of-selection.
    *******For Data Retrival
    Perform Data_retrival.
    *******For Calculation
    Perform Calculation.
    *******For Building Fieldcatalog
    Perform Build_fieldcatalog.
    *******Alv Display
    Perform Alv_display.
    *& Form Get_Data
    text
    FORM Data_retrival .
    SELECT a~matnr
    a~werks
    a~eisbe
    a~minbe
    b~matnr
    b~stprs
    c~matnr
    c~lifnr
    d~matnr
    d~menge
    into corresponding fields of table metric from
    ( ( ( marc as a inner join mbew as b on bmatnr = amatnr )
    inner join eord as c on cmatnr = amatnr )
    inner join ekpo as d on dmatnr = amatnr )
    where amatnr in mat and awerks in plt and c~lifnr in vdr.
    if sy-subrc = 0.
    sort metric by matnr.
    endif.
    ENDFORM. " Get_Data
    *& Form Calculation
    text
    FORM Calculation .
    loop at metric.
    ******calculation for safety stock ( safety stock * standard price )
    metric-scalc = metric-eisbe * metric-stprs.
    move metric-scalc to safety.
    condense safety.
    concatenate a safety into metric-safety.
    ******calculation for target ( safety stock + standard price )
    metric-tcalc = ( metric-eisbe * metric-stprs ) + metric-stprs.
    move metric-tcalc to target.
    condense target.
    concatenate a target into metric-target.
    ******calculation for Actual ( Po quantity * standard price )
    metric-acalc = metric-menge * metric-stprs.
    move metric-acalc to actual.
    condense actual.
    concatenate a actual into metric-actual.
    ******calculation for Excess Inv ( Actual - Target )
    metric-ecalc = ( metric-menge * metric-stprs ) - ( ( metric-eisbe * metric-stprs ) + metric-stprs ).
    move metric-ecalc to excess.
    condense excess.
    concatenate a excess into metric-excess.
    ******calculation for Under Safety Stock ( actual < safety stock. then actual + safety stock (Else) zero )
    if actual < safety.
    metric-menge * metric-stprs < metric-eisbe * metric-stprs.
    metric-ucalc = ( metric-menge * metric-stprs ) + ( metric-eisbe * metric-stprs ).
    else.
    metric-ucalc = 0.
    endif.
    move metric-ucalc to usafety.
    condense usafety.
    concatenate a usafety into metric-usafety.
    collect metric into final.
    endloop.
    ENDFORM. " Calculation
    *--End-for-Selection--
    *end-of-selection.
    *loop at final.
    *write : / final-lifnr, final-safety, final-target, final-actual, final-excess, final-usafety.
    *endloop.
    *& Form Build_fieldcatalog
    text
    --> p1 text
    <-- p2 text
    FORM Build_fieldcatalog .
    fcat-fieldname = 'LIFNR'.
    fcat-seltext_m = 'Vendor'.
    fcat-col_pos = i_pos.
    fcat-outputlen = 10.
    fcat-emphasize = 'X'.
    fcat-key = 'X'.
    fcat-do_sum = 'X'.
    fcat-edit = 'X'.
    append fcat to fcat.
    clear fcat.
    i_pos = i_pos + 1.
    fcat-fieldname = 'SAFETY'.
    fcat-seltext_m = 'Safety Stock'.
    fcat-col_pos = 2.
    fcat-outputlen = 10.
    fcat-emphasize = 'X'.
    fcat-do_sum = 'X'.
    fieldcatalog-key = 'X'.
    append fcat to fcat.
    clear fcat.
    fcat-fieldname = 'ACTUAL'.
    fcat-seltext_m = 'Actual'.
    fcat-col_pos = 3.
    fcat-outputlen = 10.
    fcat-emphasize = 'X'.
    fcat-do_sum = 'X'.
    fieldcatalog-key = 'X'.
    append fcat to fcat.
    clear fcat.
    fcat-fieldname = 'TARGET'.
    fcat-seltext_m = 'Target'.
    fcat-col_pos = 4.
    fcat-outputlen = 10.
    fcat-emphasize = 'X'.
    fieldcatalog-key = 'X'.
    append fcat to fcat.
    clear fcat.
    fcat-fieldname = 'EXCESS'.
    fcat-seltext_m = 'Excess Inv'.
    fcat-col_pos = 5.
    fcat-outputlen = 10.
    fcat-emphasize = 'X'.
    fieldcatalog-key = 'X'.
    append fcat to fcat.
    clear fcat.
    fcat-fieldname = 'USAFETY'.
    fcat-seltext_m = 'Under Safety Stock'.
    fcat-col_pos = 6.
    fcat-outputlen = 20.
    fcat-emphasize = 'X'.
    fieldcatalog-key = 'X'.
    append fcat to fcat.
    clear fcat.
    fcat-fieldname = 'INSCR'.
    fcat-seltext_m = 'Iventory Score'.
    fcat-col_pos = 7.
    fcat-outputlen = 20.
    fcat-emphasize = 'X'.
    fieldcatalog-key = 'X'.
    append fcat to fcat.
    clear fcat.
    fcat-fieldname = 'STKOT'.
    fcat-seltext_m = 'Stock Out'.
    fcat-col_pos = 6.
    fcat-outputlen = 20.
    fcat-emphasize = 'X'.
    fieldcatalog-key = 'X'.
    append fcat to fcat.
    clear fcat.
    fcat-fieldname = 'IMPCT'.
    fcat-seltext_m = 'Impact'.
    fcat-col_pos = 6.
    fcat-outputlen = 20.
    fcat-emphasize = 'X'.
    fieldcatalog-key = 'X'.
    append fcat to fcat.
    clear fcat.
    fcat-fieldname = 'NAFTA'.
    fcat-seltext_m = '%Nafta'.
    fcat-col_pos = 6.
    fcat-outputlen = 20.
    fcat-emphasize = 'X'.
    fieldcatalog-key = 'X'.
    append fcat to fcat.
    clear fcat.
    fcat-fieldname = 'STSCR'.
    fcat-seltext_m = 'Safety Out Score'.
    fcat-col_pos = 6.
    fcat-outputlen = 20.
    fcat-emphasize = 'X'.
    fieldcatalog-key = 'X'.
    append fcat to fcat.
    clear fcat.
    ENDFORM. " Build_fieldcatalog
    *& Form Alv_display
    text
    --> p1 text
    <-- p2 text
    FORM Alv_display .
    repid = sy-repid.
    *CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
    EXPORTING
    I_INTERFACE_CHECK = ' '
    I_BYPASSING_BUFFER =
    I_BUFFER_ACTIVE = ' '
    I_CALLBACK_PROGRAM = repid
    I_CALLBACK_PF_STATUS_SET = ' '
    I_CALLBACK_USER_COMMAND = ' '
    I_STRUCTURE_NAME =
    IS_LAYOUT =
    IT_FIELDCAT = fcat[]
    IT_EXCLUDING =
    IT_SPECIAL_GROUPS =
    IT_SORT =
    IT_FILTER =
    IS_SEL_HIDE =
    I_DEFAULT = 'X'
    I_SAVE = ' '
    IS_VARIANT =
    IT_EVENTS =
    IT_EVENT_EXIT =
    IS_PRINT =
    IS_REPREP_ID =
    I_SCREEN_START_COLUMN = 0
    I_SCREEN_START_LINE = 0
    I_SCREEN_END_COLUMN = 0
    I_SCREEN_END_LINE = 0
    IMPORTING
    E_EXIT_CAUSED_BY_CALLER =
    ES_EXIT_CAUSED_BY_USER =
    TABLES
    T_OUTTAB = final
    EXCEPTIONS
    PROGRAM_ERROR = 1
    OTHERS = 2
    *IF SY-SUBRC 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    *ENDIF.
    repid = sy-repid.
    call function 'REUSE_ALV_GRID_DISPLAY'
    exporting
    i_callback_program = repid
    i_callback_top_of_page = 'TOP-OF-PAGE' "see FORM
    i_callback_user_command = 'USER_COMMAND'
    i_grid_title = outtext
    is_layout = gd_layout
    it_fieldcat = fcat[]
    it_special_groups = gd_tabgroup
    it_events = gt_events
    is_print = gd_prntparams
    i_save = 'X'
    is_variant = z_template
    tables
    t_outtab = final
    exceptions
    program_error = 1
    others = 2.
    if sy-subrc 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    thx in advance

    hi,
    for subtotal and grand total do the same thing like following,
    DATA: GS_SORT TYPE SLIS_SORTINFO_ALV.
    CLEAR GS_SORT.
    GS_SORT-FIELDNAME = 'FIELD1'.
    GS_SORT-SPOS      = 1.
    GS_SORT-UP        = 'X'.
    GS_SORT-SUBTOT    = 'X'.
    APPEND GS_SORT TO GT_SORT.
    CLEAR GS_SORT.
    GS_SORT-FIELDNAME = 'FIELD2'.
    GS_SORT-SPOS      = 2.
    GS_SORT-UP        = 'X'.
    *GS_SORT-SUBTOT    = 'X'.
    APPEND GS_SORT TO GT_SORT.
    if uesful rewars points

  • How to format the Grand Total with condition?

    Dear All,
    I found the XML for Total as below:
    <saw:edgeLayer type="column" columnID="c523314f1e2a401c3">
    <saw:levels>
    <saw:level>
    <saw:displaySubTotal id="t1" subTotalPosition="before">
    <saw:memberFormat>
    <saw:displayFormat>
    <saw:formatSpec wrapText="true" borderColor="#999999" borderPosition="18"/></saw:displayFormat>
    <saw:caption>
    <saw:text>Total</saw:text></saw:caption></saw:memberFormat>
    <saw:dataBodyFormat>
    <saw:displayFormat>
    <saw:formatSpec borderColor="#999999" wrapText="true"/></saw:displayFormat></saw:dataBodyFormat></saw:displaySubTotal></saw:level></saw:levels>
    <saw:memberFormat>
    <saw:displayFormat>
    <saw:formatSpec height="25" wrapText="true" hAlign="center" vAlign="middle"/></saw:displayFormat></saw:memberFormat></saw:edgeLayer>
    And I tried to use some conditional format since I want the Total for Ratio can be shown as 0.0 not 0. Thus, I tried to alter the XML by adding the condition to it.
    <saw:edgeLayer type="column" columnID="c523314f1e2a401c3">
    <saw:levels>
    <saw:level>
    <saw:displaySubTotal id="t1" subTotalPosition="before">
    <saw:memberFormat>
    <saw:displayFormat>
    <saw:formatSpec borderColor="#999999" borderPosition="18" wrapText="true"/></saw:displayFormat></saw:memberFormat>
    <saw:dataBodyFormat>
    <saw:displayFormat>
    <saw:formatSpec borderColor="#999999" wrapText="true">
    <saw:dataFormat xsi:type="saw:number" minDigits="0" maxDigits="0" commas="true" negativeType="redParen"/></saw:formatSpec>
    <saw:conditionalDisplayFormats>
    <saw:conditionalDisplayFormat>
    <saw:formatRule>
    <saw:condition>
    <sawx:expr xsi:type="sawx:comparison" op="equal">
    <sawx:expr xsi:type="sawx:columnRefExpr" columnID="c881e0b4d32235233"/>
    <sawx:expr xsi:type="xsd:string">Ratio</sawx:expr></sawx:expr></saw:condition>
    <saw:formatSpec wrapText="true">
    <saw:dataFormat xsi:type="saw:number" commas="false" negativeType="redParen" minDigits="1" maxDigits="1"/></saw:formatSpec></saw:formatRule></saw:conditionalDisplayFormat></saw:conditionalDisplayFormats></saw:displayFormat></saw:dataBodyFormat></saw:displaySubTotal></saw:level></saw:levels>
    <saw:memberFormat>
    <saw:displayFormat>
    <saw:formatSpec height="25" wrapText="true" hAlign="center" vAlign="middle"/></saw:displayFormat></saw:memberFormat></saw:edgeLayer>
    It shows some Error Message as "DXE compiler error. No table 'GTGT' found in DXE. Source name: DxeAPI. XML: None". It it possible to add some condition for Grand Total? If so, how I alter my XML??
    Thanks a lot!!!
    Best Regards,
    Martin

    Hi Martin,
    Try to change *" minDigits="1" maxDigits="1"* values from 1 to 2.
    It may help you.
    Thanks,
    Suresh.

  • How to get the grand total ?

    Hi all,
    I got 1 main query say Q1 link to another 3query, Q2, Q3 & Q4. In Q2, Q3 & Q4, I got the difference qty display based on individual repeating frame. Now if I need to sum the grand total of Q2, Q3 & Q4 ? how should I do ?
    I try to put the sumary up in Q1, but the system has given REP-1517 error.
    Any idea please help me. Thanks.
    Rgds
    Lim

    Add summary columns in your data model. Where to put them exactly depends on your report. E.g. if you want a grand total at the end of the report, you create the column outside the query. The Object Navigator shows a Summary Columns node beneath the Queries node for these columns.

  • How to create a Grand Total on a Multiple Page Document

    I have created a form that is 4 pages long. I created the form in WordPerfect and then converted it to pdf. Then I opened it into Adobe Professional 8. I had it automatically converted into LiveCyle. I would like to just add the total of the four pages to a grand total on page one but whenever I use FormCalc is says it doesn't recognized page 2. Have I done something wrong or am I missing a step somewhere. In the Hierarachy area it sees the form and the four pages. For some reason it doesn't seem to recognize it as one whole form. I'm not sure what the deal is. I have now created a subtotal for each individual page and each page will total separetly. But I can not get a grand total.
    I just purchased Adobe LiveCycle Designer book by J.P. Terry. It doesn't say anything about this. AHHHH! I need some help.

    Hi Carolin,
    You can check Purchase Order. It is a sample that Adobe delivers with LiveCycle Designer. It has a script that takes care about a calculation trough a multiple pages form.
    You should find the sample under :\Program Files\Adobe\......\Designer ES\8.2\EN\Samples\Forms\Purchase Order\Dynamic Interactive\Forms

  • How to create a grand total

    My query works fine. I am just wondering if I could add another row to create a grand total for all rows returned running this query. please help
    SELECT DISTINCT 'Q'||(TRUNC (TO_CHAR (B.DATELET, 'Q')))||' - ' || :year QuarterYear ,TRUNC (TO_CHAR (B.DATELET, 'Q')) Quarter,
    to_char (sum(l.contamt) OVER (PARTITION BY  (TRUNC (TO_CHAR (B.DATELET, 'Q')))) ,   '$999,999,999.99') AwardedDollarAmount ,
           count(P.CPROJNUM) OVER (PARTITION BY  (TRUNC (TO_CHAR (B.DATELET, 'Q')))) ProjectAwarded,
         ---  to_char( SUM (MIN (c.calcbtot)) OVER (PARTITION BY  (TRUNC (TO_CHAR (B.DATELET, 'Q')))), '$999,999,999.99') AwardedDollarAmount,
           SUM (COUNT (C.VENDOR))OVER (PARTITION BY  (TRUNC (TO_CHAR (B.DATELET, 'Q'))))  NumberOfBidders,
           to_char(SUM (COUNT (C.VENDOR))OVER (PARTITION BY  (TRUNC (TO_CHAR (B.DATELET, 'Q')))) /  count(P.CPROJNUM) OVER (PARTITION BY  (TRUNC (TO_CHAR (B.DATELET, 'Q')))), '999.99') AverageNumberOfBidder
        FROM BIDDERS C,
             BIDLET B,
             LETPROP L,
             PROPOSAL P
       WHERE     C.LETTING = B.LETTING
             AND P.CONTID = L.LCONTID
             AND C.LETTING = L.LETTING
             AND C.CALL = L.CALL
             AND l.lcontid IN
                    (SELECT lcontid
                     FROM letprop c, PROPOSAL d
                     WHERE     datestat IS NOT NULL
                            AND UPPER (letstat) <> 'R'
                            AND UPPER (letstat) <> 'B'
                            AND TRIM (UPPER (TIMELET)) = TRIM ('9:30 A.M.')
                            AND c.LCONTID = d.CONTID)
             AND B.DATELET >=
                    ADD_MONTHS (TRUNC (TO_DATE (:year, 'YYYY'), 'YYYY'),
                                (:from_quarter - 1) * 3)
             AND B.DATELET <
                    ADD_MONTHS (TRUNC (TO_DATE (:year, 'YYYY'), 'YYYY'),
                                :to_quarter * 3)
    GROUP BY  TRUNC (TO_CHAR (B.DATELET, 'Q')), P.CPROJNUM, l.contamt
    order by  TRUNC (TO_CHAR (B.DATELET, 'Q'));
    Q1 - 2011     1      $174,950,864.40     71     278        3.92
    Q2 - 2011     2      $196,470,118.71     96     329        3.43
    Q3 - 2011     3       $56,552,583.92     30     116        3.87
    Q4 - 2011     4       $25,497,261.10     17     84        4.94
    Total  Amount:            35000047800.00       214           807******************************Here is what I would like to create a new row to show grand total.Edited by: 893601 on Dec 30, 2011 12:07 PM

    Hi,
    Can you please try this.. check this before you execute.. may be u need to change the datatype of the second half of union all statement
    WITH tmp AS
    (SELECT DISTINCT 'Q'
    || (TRUNC (TO_CHAR (b.datelet, 'Q')))
    || ' - '
    || &year quarteryear,
    TRUNC (TO_CHAR (b.datelet, 'Q')) quarter,
    TO_CHAR
    (SUM (l.contamt) OVER (PARTITION BY (TRUNC
    (TO_CHAR
    (b.datelet,
    'Q'
    '$999,999,999.99'
    ) awardeddollaramount,
    COUNT (p.cprojnum) OVER (PARTITION BY (TRUNC
    (TO_CHAR
    (b.datelet,
    'Q'
    )) projectawarded,
    --- to_char( SUM (MIN (c.calcbtot)) OVER (PARTITION BY (TRUNC (TO_CHAR (B.DATELET, 'Q')))), '$999,999,999.99') AwardedDollarAmount,
    SUM (COUNT (c.vendor)) OVER (PARTITION BY (TRUNC
    (TO_CHAR
    (b.datelet,
    'Q'
    numberofbidders,
    TO_CHAR
    ( SUM (COUNT (c.vendor)) OVER (PARTITION BY (TRUNC
    (TO_CHAR
    (b.datelet,
    'Q'
    / COUNT (p.cprojnum) OVER (PARTITION BY (TRUNC
    (TO_CHAR
    (b.datelet,
    'Q'
    '999.99'
    ) averagenumberofbidder
    FROM bidders c, bidlet b, letprop l, proposal p
    WHERE c.letting = b.letting
    AND p.contid = l.lcontid
    AND c.letting = l.letting
    AND c.CALL = l.CALL
    AND l.lcontid IN (
    SELECT lcontid
    FROM letprop c, proposal d
    WHERE datestat IS NOT NULL
    AND UPPER (letstat) = 'R'
    AND UPPER (letstat) = 'B'
    AND TRIM (UPPER (timelet)) = TRIM ('9&30 A.M.')
    AND c.lcontid = d.contid)
    AND b.datelet >=
    ADD_MONTHS (TRUNC (TO_DATE (&year, 'YYYY'), 'YYYY'),
    (&from_quarter - 1
    ) * 3
    AND b.datelet <
    ADD_MONTHS (TRUNC (TO_DATE (&year, 'YYYY'), 'YYYY'),
    &to_quarter * 3
    GROUP BY TRUNC (TO_CHAR (b.datelet, 'Q')), p.cprojnum, l.contamt
    ORDER BY TRUNC (TO_CHAR (b.datelet, 'Q')))
    SELECT *
    FROM tmp
    UNION ALL
    SELECT 'Total Amount: '
    || SUM (awardeddollaramount)
    || ' '
    || SUM (projectawarded)
    || ' '
    || SUM (numberofbidders)
    || ' '
    || SUM (averagenumberofbidder)
    FROM tmp;
    --------------------------------------------------

  • How to calculate the Grand total

    Hi all,
    I have a table that has three column as Instrument_Name, Instrument_Currency , Value.
    I am using the "table view" to show the data on dashboard.The table shows instrument name , its currency and a value(in that currency).
    Could it be possible that while displaying the grand total of "Value", i should convert the value in a single base currency as USD.
    Thanks

    Hi,
    Well you can and should create a total on the calculation of the Margin%
    But you have to define the calculation correctly, for example if you will use in the calculation the fields without aggregation
    you will get wrong output but if you'll define the calculation as something like:
    CASE WHEN ( SUM(Revenue)+SUM(Cost)) = 0 THEN 0 ELSE SUM(Margin)/( SUM(Revenue)+SUM(Cost)) END
    and then create a total with SUM Aggregation I think you'll get what you asked for

  • How to create a grand total row wise in obiee reports

    Hello every one,
    Can any one please suggest me how can I achieve the below scenario
    Presently I have
    Total_bill_to_client Total wip_to_bill total_realization_amount total_carry_forwardamount
    123334523234.00 4532423334.00 5324323234343434.00 3243242324324343324.00
    I want this to be displayed in PIE graph,but before that I need to change the format, can you help me how to get this.
    Total_bill_to_client 123334523234.00
    Total_wip_to_bill 4532423334.00
    total_realization_amount 5324323234343434.00
    total_carry_forwardamount 3243242324324343324.00
    Help me.
    Thanks,
    Ven
    Edited by: 991688 on Mar 15, 2013 11:04 AM

    Is'nt there any dimension in your analysis here .? I see only measures but what are you asking OBIEE to base its pie and slices on to show the Pie Graph?
    Let us know.
    Thanks,
    SVS

  • How to Expand ALV Grid Total Width

    I have to display 1476 characters in an ALV grid and then the users will use what they need when creating a layout.
    Problem is ALV stops after displaying 1375 (or so) characters) - any parm or action to do this (maybe in the catalog setup sent to the program?  Thanks!

    Hi Scott
    This may be a restriction ALV Grid puts. My recommendation will be that, split some fields and generate more than one rows with the same key (you should then add a new key field which will hold line numbers specific to one definite key). When you sort with ALV Grid's sort option the keys will vertically merged (if you do not turn off this feature via layout or field catalog settings). I know this is not so pretty but ALV is not intended to show that kind of stuff.
    Regards
    *--Serdar <a href="https://www.sdn.sap.com:443http://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.sdn.businesscard.sdnbusinesscard?u=qbk%2bsag%2bjiw%3d">[ BC ]</a>

  • How much is the grand total of all the packages arch supports?

    The title says it all. Estimated, how many gigs of pkgs is their on the i686 repo, and x86_64 repo.
    I was thinking of making a "reserve" of packages on a dedicated package machine. All packages would be downloaded/updated on the machine, when the internet connection is idle. When needed for my main computer to upgrade, it would just grab it from that machine at a blazing fast speed.

    moljac024 wrote:
    daf666 wrote:
    Procyon wrote:I ran awk on the autohtml page of a mirror. For i686 I came out on:
    core: 170MB
    extra: 5500MB
    community: 6200MB
    Woh.. ur saying u need like 3 DVD's to contain Arch? isnt that like 'larger than Debian'? nice..
    How is that larger than Debian ? Last I knew the number of DVDs needed for Debian was 10+ or something like that...
    I remember Etch was shipped with 3 DVDs . Lenny is shipped with 5 DVDs with the last one sized at 1.2 GB .
    We should remember that *-debug packages are huge in size . I came from Debian Sid(unstable) to Arch and I honestly think that Arch has a wider selection of packages in its repositories . The odd package you wouldn't find in the repos can be easily found in the AUR or built from scratch .
    Last edited by Nezmer (2009-04-14 10:13:54)

  • Remove Grand total in ALV

    Hi Gurus,
    In my ALV output,
    I have used subtotals.
    i.e i have sorted  PO Number.
    and with respect to that i am calculating sub total to Amount field
    Now the code works perfectly and subtotal of the amount displayed for each PO Number.
    But along with that a GRAND TOTAL is displayed at the end of the ALV List.
    I dont want the grand total and need to remove it.
    How to remove the grand total.
    Kindly help on this.
    Thanks
    deepan M

    Hi deepan adhi ,
    Do not check the option DO_SUM in the catalog.
      DATA: LS_FIELDCAT TYPE SLIS_FIELDCAT_ALV,
                 LT_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV.
    *Amount
      CLEAR LS_FIELDCAT.
      LS_FIELDCAT-TABNAME       = 'IT_DATA'.
      LS_FIELDCAT-FIELDNAME     = 'BETRH'.
      LS_FIELDCAT-SELTEXT_L     =  'Amount.
      LS_FIELDCAT-JUST                =  'R'.
    LS_FIELDCAT-DO_SUM          =  'X'.*
      APPEND LS_FIELDCAT TO LT_FIELDCAT.
    Hope this information is help to you.
    Regards,
    José

Maybe you are looking for

  • Eliminating logon when calling R/3 transaction via BSP

    Is it possible to eliminate logon when calling SAP R/3 tcode via BSP. I run http://<FQDN>:<port>/sap/bc/gui/sap/its/webgui/!?client=%3c100%3e&transaction=SE80 but have to login each time. I could embed my username/pwd on the url string, but is there

  • Tables not visible

    Hi, I can't see any tables when I connect to my Orace9. I've priviliges to read only. Do you know why is it so? Michal

  • SIgnature in PO

    Hello! I want to ask how it is possible to implemet the following: When somebody release a PO with lets say 2 levels, in the PO layout to appear the name ( it is easy) plus the the SIGNATURE og the user who released the PO. I have jheard that it is f

  • Tree list and CSV ... Carl, could you help me?

    I have created ordinary Vertical Sidebar list (on the left side)...(http://apexutf.shellprompt.net/pls/apexutf/f?p=313:1010) ... I have hover, active link and all what I need-COOL! On other page (http://apexutf.shellprompt.net/pls/apexutf/f?p=313:104

  • SAP CRM - How does Communication Station work?

    Hi Experts, Can anybody tell how the communication station work in SAP CRM? For example if the service agent has performed the service at the field or customer location and uses the mobile client device to confirm the service, how does the data gets