Using variable in Grand Total Label

Hi All,
I am using OBIEE 11.1.1.5 on Windows Vista.
Can we use variable values in Grand Total label in pivot and table views?
For eg. If user chose 2013 in dashboard prompt and we saved that in a presentation variable and want to use in the Grand Total label
so that instead of text "Grand Total" we can show "Fiscal Year 2013 Total".
Regards,
Vikas
Edited by: Vikas Barsaiyan on Feb 1, 2013 2:34 AM
Edited by: Vikas Barsaiyan on Feb 1, 2013 2:34 AM

I dont think but you may go for custom captions
You can refere @ for 'Grand Total'
In caption Year@ results YearGrand Total
Other workaround : Use Narrative views to refer the variables, you might need to call variable in any of column expression and call it @n
where n is for column position from left to right
If helps mark
Edited by: Srini VEERAVALLI on Jan 31, 2013 3:17 PM

Similar Messages

  • Grand Total Title

    Hi Experts,
    In answers in table view , i've grand total that displays sum for one columns and average for another column. My problem is in the Grand total label,
    Is it possible to have more then one label ?
    thx

    hi,
    you got it ready...
    you tick
    Horizontal axis---> dimension
    Vertical axis-------> measure
    Legend axis -----> max(rsum(amount))
    you click above the previous in Additional Charting Options-->Legend--->Location = top
    and you are ok.
    read from the blog i send you ...there are many interesting things there!(min,max values...and others...)
    hope i helped....
    http://greekoraclebi.blogspot.com/
    ///////////////////////////////////////

  • Grand Totals issue

    Hi Gurus,
    In My RPD we are using "Count Distinct" Aggregate rule for Facts and in Reports I am using Table level "Grand Total" Enable with "Report Based Total(When applicable)"option also checked...It is working fine for some days..but suddenly it is showing Different Grand totals..and as work around for this I changed Aggregation rule at report level to "Sum"...now it is showing correct values..so my question is Is my work around is correct or not because we used "Count Distinct" as aggregation Rule in RPD and in report level we changed it as "sum"...and also I observed Physical sql when using Grand totals it is summing the values like...sum(Count(distinct fact1))....and when i changed aggregation to "sum" at report level also it is summing the values like..sum(count(distinct fact1)..so please suggest, Is my work around is correct or am I doing any mistake like changing aggregation at report level to get grand total correct?
    I am using 10.1.3.4.1...
    I also studied in Release notes as it is a bug in this version for this they suggested work around to use<ReportAggregateEnabled>true</ReportAggregateEnabled> in <serverInstance>tag of instanceconfig file this also not working in my environment...

    Hi,
    I dont' think this is possible for the same measure in a pivot table. Maybe you can use this workaround:
    - create an extra column for the measure with a calculation like:
    CASE WHEN "Base Facts"."1- Revenue" = MAX("Base Facts"."1- Revenue" BY "Products"."P3 LOB") THEN MAX("Base Facts"."1- Revenue" BY "Products"."P3 LOB") ELSE 0 END
    In this example I use the Revenue as the measure. I use the MAX BY function to calculate the MAX value per Product Lob (subtotals per Product Lob in my example). If the max value per product lob is equal to the revenue then the Max value is displayed and otherwise o.
    Add this extra measure to the pivot table and add the grand total with aggregate rule = SUM. If you don't want to see the grand total for the original measure select None instead.
    Hope this helps. I have a screenshot as well but then I need your emailadress.
    Kind regards,
    Quinten

  • Using Rollup to get subtotals and grand total - missing right pren error

    Hello,
    I am trying to create sub totals by person_id and a grand total row in my APEX report but I get a "missing right pren error." I finally figure out that I need to eliminate column alias names to fix this problem, however, I now get an ambigous column reference. I am making this change in my main SQL report statement, however, I was wondering if I should be using the "group by Rollup" somewhere else while using "Break Formatting."
    I would appreciate any help.
    Thanks
    leh

    Can you post the Query please?

  • What is the use of Grand total level in obiee ,

    hi ,
    i know that we can perform drill down from one level to another level, level base measures ,aggregate atble.................
    apart from that any other user if so pls give me one small example
    What is the use of Grand total level in obiee

    When you start to use multi-star models and none-conforming dimensions, you will use the grand total level to tell the BI Server what to do with the measures when you try and plot them all in the same answers request.
    Also consider any meaure you want to perform a '% of total' you will need the total mapped somewhere, this could use the Grand total level as a level based measure.
    Regards
    Alastair

  • 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

  • Using variable in prompt label

    Hi,
    Does anybody now if/how you can use a session variable in a prompt label? I want to make a multiligual prompt.
    regards
    John
    Edited by: John Minkjan on Apr 15, 2009 4:28 AM

    Stijn,
    That did the trick!
    I will put it on the blog ASAP.
    EDIT: http://obiee101.blogspot.com/2009/04/obiee-multi-lingual-prompt.html
    regards
    John
    http://obiee101.blogspot.com/
    Edited by: John Minkjan on Apr 15, 2009 10:44 AM

  • Using Subquery in Select with Rollup (or some way to get grand total)

    I am trying to do the following (simplified the query):
    SELECT s.SYSTEM,
    (SELECT COUNT(cp1.cid) FROM cfrs cp1, systems sp1, subsystems ssp1 where cp1.priority = 'P1' AND cp1.subsystem = ssp1.subsystem AND sp1.system = ssp1.system AND sp1.system = s.system) AS P1
    FROM cfrs c, systems s, subsystems ss
    WHERE c.subsystem = ss.subsystem
    AND s.system = ss.system
    GROUP BY ROLLUP(s.SYSTEM)
    But the result of the Rollup on the P1 column is always 0 (it is not summing it up)
    How can I accomplish a Rollup (or get a grand total) of the subquery result?
    Thanks,

    How about this then:
    SQL &gt; WITH SYSTEMS AS
      2  (
      3     SELECT 'A' AS SYSTEM FROM DUAL UNION ALL
      4     SELECT 'B' AS SYSTEM FROM DUAL UNION ALL
      5     SELECT 'C' AS SYSTEM FROM DUAL
      6  ),
      7  SUBSYSTEMS AS
      8  (
      9     SELECT 'A' AS SYSTEM, '1' AS SUBSYSTEM FROM DUAL UNION ALL
    10     SELECT 'A' AS SYSTEM, '2' AS SUBSYSTEM FROM DUAL UNION ALL
    11     SELECT 'A' AS SYSTEM, '3' AS SUBSYSTEM FROM DUAL UNION ALL
    12     SELECT 'B' AS SYSTEM, '4' AS SUBSYSTEM FROM DUAL UNION ALL
    13     SELECT 'B' AS SYSTEM, '5' AS SUBSYSTEM FROM DUAL UNION ALL
    14     SELECT 'B' AS SYSTEM, '6' AS SUBSYSTEM FROM DUAL UNION ALL
    15     SELECT 'C' AS SYSTEM, '7' AS SUBSYSTEM FROM DUAL UNION ALL
    16     SELECT 'C' AS SYSTEM, '8' AS SUBSYSTEM FROM DUAL UNION ALL
    17     SELECT 'C' AS SYSTEM, '9' AS SUBSYSTEM FROM DUAL
    18  ),
    19  CFRS AS
    20  (
    21     SELECT 10 AS CID, '1' AS SUBSYSTEM, 'HIGH' AS PRIORITY FROM DUAL UNION ALL
    22     SELECT 11 AS CID, '1' AS SUBSYSTEM, 'LOW' AS PRIORITY FROM DUAL UNION ALL
    23     SELECT 12 AS CID, '1' AS SUBSYSTEM, 'MED' AS PRIORITY FROM DUAL UNION ALL
    24     SELECT 13 AS CID, '2' AS SUBSYSTEM, 'HIGH' AS PRIORITY FROM DUAL UNION ALL
    25     SELECT 14 AS CID, '2' AS SUBSYSTEM, 'MED' AS PRIORITY FROM DUAL UNION ALL
    26     SELECT 15 AS CID, '2' AS SUBSYSTEM, 'HIGH' AS PRIORITY FROM DUAL UNION ALL
    27     SELECT 16 AS CID, '3' AS SUBSYSTEM, 'LOW' AS PRIORITY FROM DUAL UNION ALL
    28     SELECT 17 AS CID, '3' AS SUBSYSTEM, 'HIGH' AS PRIORITY FROM DUAL UNION ALL
    29     SELECT 18 AS CID, '4' AS SUBSYSTEM, 'MED' AS PRIORITY FROM DUAL UNION ALL
    30     SELECT 19 AS CID, '5' AS SUBSYSTEM, 'HIGH' AS PRIORITY FROM DUAL UNION ALL
    31     SELECT 20 AS CID, '5' AS SUBSYSTEM, 'LOW' AS PRIORITY FROM DUAL UNION ALL
    32     SELECT 21 AS CID, '6' AS SUBSYSTEM, 'HIGH' AS PRIORITY FROM DUAL UNION ALL
    33     SELECT 31 AS CID, '7' AS SUBSYSTEM, 'LOW' AS PRIORITY FROM DUAL UNION ALL
    34     SELECT 41 AS CID, '8' AS SUBSYSTEM, 'HIGH' AS PRIORITY FROM DUAL UNION ALL
    35     SELECT 51 AS CID, '9' AS SUBSYSTEM, 'MED' AS PRIORITY FROM DUAL UNION ALL
    36     SELECT 61 AS CID, '9' AS SUBSYSTEM, 'MED' AS PRIORITY FROM DUAL
    37  )
    38  SELECT DECODE(SYSTEM,'ALL_SYSTEMS','Grand Total',SYSTEM) AS SYSTEM
    39  ,  MAX(DECODE(PRIORITY,'LOW',CNT,0))       AS LOW
    40  ,  MAX(DECODE(PRIORITY,'MED',CNT,0))       AS MED
    41  ,  MAX(DECODE(PRIORITY,'HIGH',CNT,0))      AS HIGH
    42  ,  MAX(DECODE(PRIORITY,'ALL_PRIOR',CNT,0)) AS SYSTEM_TOTAL
    43  FROM
    44  (
    45     SELECT DECODE(GROUPING(SYSTEMS.SYSTEM),1,'ALL_SYSTEMS',SYSTEMS.SYSTEM) AS SYSTEM
    46     , DECODE(GROUPING(CFRS.PRIORITY),1,'ALL_PRIOR',CFRS.PRIORITY) AS PRIORITY
    47     , COUNT(*) AS CNT
    48     FROM SYSTEMS
    49     JOIN SUBSYSTEMS ON SYSTEMS.SYSTEM = SUBSYSTEMS.SYSTEM
    50     JOIN CFRS ON SUBSYSTEMS.SUBSYSTEM = CFRS.SUBSYSTEM
    51     GROUP BY CUBE(SYSTEMS.SYSTEM,CFRS.PRIORITY)
    52     ORDER BY SYSTEMS.SYSTEM, CFRS.PRIORITY
    53  )
    54  GROUP BY DECODE(SYSTEM,'ALL_SYSTEMS','Grand Total',SYSTEM)
    55  ORDER BY DECODE(SYSTEM,'ALL_SYSTEMS','Grand Total',SYSTEM)
    56  /
    SYSTEM             LOW        MED       HIGH SYSTEM_TOTAL
    A                    2          2          4            8
    B                    1          1          2            4
    C                    1          2          1            4
    Grand Total          4          5          7           16Oh, BTW, use "code" wrapped in "{}" on either side to post nicely formatted code.

  • How to create a sub total and grand total using my query.

    How can I create a sub total for each section and grand total for using my query like this.  your help is appreciated. I am working with 9g
    WITH  BidItemsInformation  AS
    ( SELECT DISTINCT q.iplineno "Line Number", q.section "Section Number",
             i.item "Item Number",
             initcap(i.idescr) "Description" ,
             i.iunits "Unit",
             q.qty "Quantity" ,q.price  "Engineers Unit Price",
           (q.price * q.qty) "Engineers Estimate"
         FROM letprop l,
            proposal p,
            propitem q,
            bidlet b,
            bidtabs c,
            itemlist i,
            vendor v,
            bidders d 
         WHERE(l.letting = b.letting
                And b.letting = c.letting
                And p.cspecyr = i.ispecyr)
                AND q.prpitem = i.item
                AND p.contid = l.lcontid
                AND q.contid = p.contid
                AND c.vendor = l.avendor
                AND l.CALL = c.CALL
                AND q.lineflag = c.lineflag
                AND q.iplineno = c.iplineno
                AND l.letting = d.letting 
                AND c.letting = l.letting
                AND c.CALL = d.CALL
                AND v.vendor = d.vendor
                --  AND AND l.letstat = 'A'
                AND c.lineflag = 'L'
                AND  l.letting ='&letting'
                AND l.CALL = '&call'
    ), BiddersInformation  AS
    -- This is where you make your changes for vendor name and vendor number Do not touch the above code
    -- It is always the same for any call number and letting date
    ( SELECT IPLINENO "BLine Number",
            MAX(CASE WHEN VENDOR='K020'  THEN bidprice ELSE NULL END) "K020:: Unit Price",
            MAX(CASE WHEN VENDOR='K020'  THEN bidprice ELSE NULL END) K,
            MAX(CASE WHEN VENDOR='H438'  THEN bidprice ELSE NULL END) "H438:: Unit Price",
            MAX(CASE WHEN VENDOR='H438'  THEN bidprice ELSE NULL END) H,
            MAX(CASE WHEN VENDOR='U010'  THEN bidprice ELSE NULL END) "U010:: Unit Price",
            MAX(CASE WHEN VENDOR='U010'  THEN bidprice ELSE NULL END) U,
            MAX(CASE WHEN VENDOR='G110'  THEN bidprice ELSE NULL END) "G110:: Unit Price",
            MAX(CASE WHEN VENDOR='G110'  THEN bidprice ELSE NULL END) G,
            MAX(CASE WHEN VENDOR='H530'  THEN bidprice ELSE NULL END) "H530:: Unit Price",
            MAX(CASE WHEN VENDOR='H530'  THEN bidprice ELSE NULL END) H1
        FROM  BIDTABS
        WHERE LETTING='&letting'
              AND CALL='&call'
              AND BIDPRICE <> 0
        GROUP BY IPLINENO
    SELECT BidItemsInformation."Line Number",
           BidItemsInformation."Section Number",
           BidItemsInformation."Item Number",
           BidItemsInformation."Description",
           BidItemsInformation."Unit",
           BidItemsInformation."Quantity",
           BidItemsInformation."Engineers Unit Price",
           BidItemsInformation."Engineers Estimate",
           BiddersInformation."K020:: Unit Price",
            (BidItemsInformation."Quantity" * K) "KGM CONTRACTORS INC",
           BiddersInformation."H438:: Unit Price",       
            (BidItemsInformation."Quantity" * H) "HOFFMAN CONSTRUCTION COMPAN",
           BiddersInformation."U010:: Unit Price",       
            (BidItemsInformation."Quantity" * U) "ULLAND BROTHERS INC",
           BiddersInformation."G110:: Unit Price",      
            (BidItemsInformation."Quantity" * G) "GLADEN CONSTRUCTION INC",
           BiddersInformation."H530:: Unit Price",      
            (BidItemsInformation."Quantity" * H1) "HOOVER CONSTRUCTION CO"
    FROM   BidItemsInformation,BiddersInformation
    WHERE  BidItemsInformation."Line Number" = BiddersInformation."BLine Number";
    Line Number     Section Number     Item Number     Description     Unit     Quantity     Engineers Unit Price     Engineers Estimate     K020:: Unit Price     
    0010     0001     2011601/00003     Construction Surveying     LS       1     143,000     143,000     75,000     75,000     67,080     67,080
    0013     0001     2013601/00010     Survey Equipment     LS       1     25,000     25,000     25,000     25,000     30,000     30,000
    0020     0001     2015601/00030     Blast Monitor/Survey     LS       1     50,000     50,000     30,000     30,000     35,000     35,000
    0030     0001     2021501/00010     Mobilization     LS       1     382,250     382,250     809,000     809,000     704,000     704,000
    0040     0001     2021602/00010     Well Survey     EACH     60     500     30,000     2,150     129,000     1,600     96,000
    0050     0001     2031501/00040     Field Office Type D     EACH     1     6,367     6,367     4,000     4,000     25,000     25,000
    sub total:
    1610     0002     2401501/01143     Structural Concrete (1a43)     C Y      46     350     16,100     408     18,768     400     18,400
    1620     0002     2401501/01362     Structural Concrete (1c62)     C Y      68     200     13,600     204     13,872     200     13,600
    1630     0002     2401501/03643     Structural Concrete (3y43)     C Y      60     600     36,000     592     35,520     580     34,800
    1640     0002     2401512/03633     Bridge Slab Concrete (3y33)     S F      1,876     24     45,024     28     51,778     27     50,652
    1650     0002     2401521/00030     Structure Excavation Class R     C Y      17     125     2,125     1,000     17,000     500     8,500
    1660     0002     2401541/00010     Reinforcement Bars     LB       2,490     2     3,735     1     3,312     1     3,237
    1670     0002     2401541/00011     Reinforcement Bars (Epoxy Coated)     LB       12,380     2     18,570     1     17,703     1     17,332
    1680     0002     2401601/00010     Structure Excavation     LS       1     2,500     2,500     2,000     2,000     5,000     5,000
    1690     0002     2402583/00020     Ornamental Metal Railing Type Special     L F      284     150     42,600     194     55,096     190     53,960
    sub total
    1820     0003     2401513/00346     Type Curb Railing Concrete (3y46)     L F      135     25     3,375     16     2,093     15     2,025
    1830     0003     2401513/07447     Type Mod P-4 (Tl-4) Railing Conc (3y46)     L F      302     85     25,670     72     21,593     70     21,140
    1840     0003     2401541/00010     Reinforcement Bars     LB       14,780     1     18,475     1     13,598     1     13,302
    1850     0003     2401541/00011     Reinforcement Bars (Epoxy Coated)     LB       76,720     1     103,572     1     85,926     1     84,392
    1860     0003     2401601/00010     Structure Excavation     LS       1     10,000     10,000     116,000     116,000     115,000     115,000
    1870     0003     2402583/00020     Ornamental Metal Railing Type Special     L F      132     150     19,800     184     24,288     180     23,760
    sub total
    total

    You can accomplish that using decode with the grouping function. It returns 1 when that column passed as argument was grouped (or is in some total) and 0 otherwise.
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> with t as
      2  (select 'New York' city, 'US' country, 1 num from dual
      3  union all select 'Los Angeles' city, 'US' country, 2 num from dual
      4  union all select 'London' city, 'GB' country, 2 num from dual
      5  union all select 'London' city, 'GB' country, 2 num from dual
      6  union all select 'London' city, 'GB' country, 7 num from dual)
      7  select decode(grouping(country), 0, country, 'GRAND TOTAL') country,
      8         decode(grouping(city), 0, city, decode(grouping(country), 0, 'SUBTOTAL')) city,
      9         sum(num) num_total
    10   from t
    11  group by rollup(country, city)
    12  /
    COUNTRY     CITY         NUM_TOTAL
    GB          London              11
    GB          SUBTOTAL            11
    US          New York             1
    US          Los Angeles          2
    US          SUBTOTAL             3
    GRAND TOTAL                     14
    6 linhas selecionadas.
    SQL>

  • Inserting a Grand Total on formulas with variables

    Post Author: MikeA-ICE
    CA Forum: Formula
    I'm working on a subreport that displays the amounts of items 1-4 in the details band. They contain a quantity and I am performing a calculation where I multiply the quantity of those items by the total of the main report. The main report passes its Grand Total to the subreport via the "Store/Fetch" function and the calculation works perfectly. However, when I try to get a Grand Total of those items, that option isn't available. I tried to build a standalone formula to do this (SUM (Markup$) but it didn't work. How can I get the total value of items 1-4 so I can send it back to the main report to do more calculations on?
    Thanks for the help,
    Mike
    Edit - (per the Forums Usage Tips)
    Crystal 11 (11.0.0.1994)
    Latest Monthly Hot Fix installed
    Windows Vista (Business Edition)
    Access Database

    Post Author: MikeA-ICE
    CA Forum: Formula
    Thanks Jagan. I'll check that out. I've been using the Store/Fetch function for years and it works well. My problem is generating a total to send back to the main report. Basically, I'm trying to send a value from the main report to the subreport to use in a calculation, then send send the total of that calculation back to the main report from the subreport. But I can't get Crystal to allow me to insert a subtotal on the 1st calculation in the subreport.

  • In OBIEE Report Grand Total instead of Average(Average)  use Sum(Avg)?

    Hi All,
    In OBIEE Report Grand Total average always shows Average of average (Default) "avg(avg)" , can i overwrite this functionality to sum of average "sum(avg)".
    Thanks in advance
    Regards
    Kandasamy

    Hello,
    You can try the following:
    Remove the calculate result as setting for the three KFs.
    In exception aggregation set property to average with ref char as leave start date.
    Check if it works.
    If the above dosent work, set reference char to emplyee ID and check.
    Either one of them has to work
    REgards,
    Shashank
    Edited by: Shashank Dighe on Apr 2, 2009 9:03 AM

  • I used with rollup to add a Grand Total in the result.

    BEGIN select a.InvoiceNumber ,a.InvoiceDate,dbo.GetCompanyName(CompanyId) Company,isnull(convert(VARCHAR,a.InvoiceNumber),'GRAND TOTAL') AS InvoiceNumber, sum((Sum(isnull(Units,0)*isnull(UnitPrice,0))+ isnull(a.GST,0))) AS 'Total In Inventory',(Select ProjectCode from tblProjectmmc where id=ProjectId)as ProjectId,a.BusinessUnit,(Sum(isnull(Units,0)*isnull(UnitPrice,0))+ isnull(a.GST,0)) as InvoiceAmount, a.UserId as ProjectManager from tblinvoicemmc a inner join tblInvoiceItemDescriptionmmc b on a.InvoiceNumber=b.InvoiceNumber group by a.invoicenumber,a.GST,a.InvoiceDate,a.CompanyId,a.ProjectId,a.UserId,a.BusinessUnit with rollup ORDER BY a.Invoicenumber DESC ; End
    but giving error
    Cannot perform an aggregate function on an expression containing an aggregate or a subquery.
    Sms

    BEGIN
    select a.InvoiceNumber ,a.InvoiceDate,dbo.GetCompanyName(CompanyId) Company,isnull(convert(VARCHAR,a.InvoiceNumber),
    'GRAND TOTAL') AS InvoiceNumber, sum((isnull(Units,0)*isnull(UnitPrice,0))+ isnull(a.GST,0)) AS 'Total In Inventory',
    p.ProjectCode as ProjectId,
    a.BusinessUnit,(Sum(isnull(Units,0)*isnull(UnitPrice,0))+ isnull(a.GST,0)) as InvoiceAmount,
    a.UserId as ProjectManager
    from tblinvoicemmc a
    inner join tblInvoiceItemDescriptionmmc b
    on a.InvoiceNumber=b.InvoiceNumber
    left join tblProjectmmc p
    on p.id = a.ProjectId
    group by a.invoicenumber,a.GST,a.InvoiceDate,a.CompanyId,p.ProjectCode,a.UserId,a.BusinessUnit
    with rollup
    ORDER BY a.Invoicenumber DESC ;
    End
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Printing Grand Totals in Footer along with page total

    Hi
    I have a report which prints PO Header and PO Lines. For each page while iterating thru PO Lines I print page total in the footer.
    Once all PO Lines are printed with page totals in the footer of each page, I want to print Grand total in the last page in the footer along with last page total. Currently my XML data has pre-computed grand total in the PO Header block.
    The problem
    I have wrapped header and lines inside <?start:body?> and <?end:body?> which allows me to print page totals outside the <?end:body?> tag.
    I print page totals and "Continue" next to it in the footer. But
    Finally when grand total comes into picture in the outer loop I want to replace "Continue" text with grand total value in the last page and print it as footer.
    I tried to use xdoxlt:set_variable() function to flag a variable value to 1 when iteration happens in HEADER block and set it to 2 in inner loop of lines block. But the scope of the variable is confined between <?start:body?> and < ?end:body? and is not visible outside the <?end:body?> tag.
    The logic I want to accomplish is
    if var = 1 then
    print page total and "Continue"
    elsif var = 2 then
    print page total and Grand Total.
    end if
    This logic doest work as the value of var is not visible outside the body tag.
    I want to use this variable value to print footer which lies outside <?end:body?> tag with grand totalor page total
    Please suggest if there is any other way I can accomplish this functionality. Can we use parameter and update it. Syntax for update parameter value is not clear in user guide.
    Any help would be appreciated.
    thanks
    sukarna

    thanks for the info, i was trying to avoid this but had already reached the same conclusion.
    everything else seems to be very time consuming and may not work correctly in the end.
    we're on Oracle Applications : 11.5.10.2 which has just been converted to utf-8 and is an Oracle On-Demand installation.
    do you know if 5.6.3 of the publisher is supported and any ideas on how difficult it is to get it installed?
    cheers
    ellen

  • How to display subtotals in every page and the grand total in the last page

    Hello Abapers,
                         I am working with Smartforms. I am not able to print the subtotal in every page ie the Price for that particular page alone should be summed and in the final page I want the grand total also to be displayed. I tried the Total option in the Calculations tab but the value is just getting incremented on every page..How can I achieve this..
    With Regards,
    Bennet.

    Hi,
    Declare two different variables for subtotal and total
    Use them in the calculation tab of the table node.
    After displaying the subtotal create a program lines node to clear the value of the subtotal. And dont forget to mention the condition in the condition tab of the text node of your subtotal as only before end of main window.
    display the grand total in the text another text node with condition... only after end of main window.
    regards
    padma

  • Grand total is not working...please help

    Hi, here is my code
    SORT S_ENDT BY LIFNR.
      LOOP AT S_ENDT WHERE BUDAT IN P_BUDAT.
        WRITE:          1  S_ENDT-BKTXT,
                        11 S_ENDT-BUKRS,
                        16 S_ENDT-LIFNR,
                        24 S_ENDT-NAME1,
                        49 S_ENDT-BLART,
                        53 S_ENDT-BELNR,
                        64 S_ENDT-AUGBL,
                        75 S_ENDT-AUGDT,
                        86 S_ENDT-BUDAT,
                        97 S_ENDT-WRBTR,
                        113 S_ENDT-WAERS,
                        117 S_ENDT-XBLNR,
                        130 S_ENDT-ZUONR.
        AT END OF BKTXT.                         " Subtotal by Draft #
          ULINE.
          SUM.
          WRITE: 20 'Total of draft', 37 S_ENDT-BKTXT, 97 S_ENDT-WRBTR.
        ENDAT.
        AT LAST.                                 " Grand total
          SUM.
          SKIP.
          WRITE: 20 'Grand Total', 97 S_ENDT-WRBTR.
        ENDAT.
        SKIP.
      ENDLOOP.
    EXIT.
    ENDIF.
    I am not getting the right total..I am getting it for all LIFNR and not the value in P_LIFNR only (which is what I want).
    please help
    thanks
    Brian

    Hi,
    try this coding.
    SORT S_ENDT BY LIFNR.
    *data : gt(16) type p decimals 2.*
    LOOP AT S_ENDT WHERE BUDAT IN P_BUDAT.
    *gt = gt + S_ENDT-WRBTR.*
    WRITE: 1 S_ENDT-BKTXT,
    11 S_ENDT-BUKRS,
    16 S_ENDT-LIFNR,
    24 S_ENDT-NAME1,
    49 S_ENDT-BLART,
    53 S_ENDT-BELNR,
    64 S_ENDT-AUGBL,
    75 S_ENDT-AUGDT,
    86 S_ENDT-BUDAT,
    97 S_ENDT-WRBTR,
    113 S_ENDT-WAERS,
    117 S_ENDT-XBLNR,
    130 S_ENDT-ZUONR.
    AT END OF BKTXT. " Subtotal by Draft #
    ULINE.
    SUM.
    WRITE: 20 'Total of draft', 37 S_ENDT-BKTXT, 97 *gt*.
    ENDAT.
    AT LAST. " Grand total
    SUM.
    SKIP.
    WRITE: 20 'Grand Total', 97 S_ENDT-WRBTR.
    ENDAT.
    SKIP.
    ENDLOOP.
    EXIT.
    ENDIF.
    U are using where condition in a Loop ,while executing last record may or may not get executed becoz of restiction.Better declare a variable and SUM under such scenarios.
    Regards,
    Ballack.
    Reward Points if helpful.

Maybe you are looking for

  • Columns adjustment in one row

    Hello, I hope some1 can help me for these. I am using apex 3.1.2 ver My first question: how can I put more columns for example 4 columns with heading in one row? when I do, screen is too wide but i do not want scrolling? e.g aaaaaaaaaaaaaaa( ) bbbbbb

  • Error using Spreadsheet Format

    Hello, I am using Oracle Reports 10g and when I create a report in .pdf format it works fine. When I change the format to "desformat=spreadsheet" to get the report in excel it dies with a "REP-56048: Engine rwEng-3 crashed" error whenever I get over

  • Whats the difference between a Apple and IBM

    Is Apple IBM, and vice versa? Is IBM still around? I was always under the impression that IBM became Apple or the Apple bought IBM. Also does Apple make a computer called Macintosh anymore? Or was it shorted to Mac?

  • Problem connecting to Mysql using JDBC

    Hi Everyone, I am trying to connect Mysql ad java applet and I am using the Mysql jdbc connector. I Took the mysql-connector-java-5.0.8-bin.jar file and put that in the library of jdk. Now i used the following code to connect to the database using Ne

  • How to set a MS Access password (jni?)

    Hi there, i searched the forum and i found some posts about this topic, but no real solution. There are programs written in C, which can read the password out from a database, so i think, there must be a function to set one? I also think the WinAPI c