Grand total (Report footer) issue in a Report with Group selection.

Hi,
The case is simple, i have to summrise the NetValue field of a  report at the Group level and at the Report level(Grand Total).
I also use a Group selection filter (I have grouped my records by MaterialDesc) to keep the desired groups.
As you already guessed, my group totals are fine but the grand totals(report footer) contain both filtered and non filtered group records. Is there any way to avoid this problem and get a Grand Total from the filtered group records?
Thank you.

You can not use standard summaries with Group Suppression you must use either Running Totals or variables.
In Running Total  evaluate click theformual button and eneter reverse condition to your group suppression.
If you can not do that then you must use a Var
In group footer where total is currently correct place a formula like this and suppress it
@eval
whileprintingrecords;
global numbervar RepTot;
If ..whatever your suppression condition is not true... then reptot:= reptot + sum( valuefield, groupfield);
In report footer
@display
whileprintingrecords;
global numbervar RepTot;
Ian

Similar Messages

  • How to hide/show main report footer for a sub report ?

    Need to hide main report footer for a sub report(having more than one page and need to hide footer for all those pages).And again make it visible for another sub report which also have more than one page (and do the same to all of its pages)
    I have tried with formula
    WhilePrintingRecords;
    Shared BooleanVar SuppressFooter := True;
    WhilePrintingRecords;
    Shared BooleanVar SuppressFooter := False;
    with this formula main report footer is shown only on last page of sub report where i need it in all pages.
    Any solution??

    Hi Jinu,
    1) Do some or all of those subreports span multiple pages?
    2) Do each of the Subreports start on a new page?
    If yes, for both, then here's what you need to do:
    1) Create a formula (@True) with this code:
    shared booleanvar SetStatus:= True
    2) Create another formula (@False) with this code:
    shared booleanvar SetStatus:= False
    Drag and drop the @True formula on the details sections for which you want the Page Footer to be suppressed.
    Similarly, drop the @False formula on the details sections for which you want the Page Footer to show up.
    Then, go to the Section Expert > Select Page Footer c > Click the formula button beside Suppress and use this code:
    shared booleanvar SetStatus;
    -Abhilash

  • The standard report for BOMs of a material with a selected period?

    Hi Gurus
    Is there any  standard report for BOMs of a material with a selected period?

    Hi,
    You will have to develop a report for your requirement,
    The following tables will be used for the report
    MAST-WERKS
    STPO-MATNR
    MARA-MAKTX
    STPO-BMENG
    STPO-POSNR
    STPO-IDNRK
    STPO-MAKTX
    STPO-DATUV
    STPO-MENGE
    STKO-MEINS
    STPO-AVOAU
    Regards
    Merwyn

  • Report Builder - Last page issue and Report Footer issue

    I am using ColdFusion 9 Report Builder, am new to this product and encountering 2 issues.
    Issue 1 - I have a field that I would like to print on the last page of my report.  How can I determine the last page?  I initially tried using a calculated field set to the 'highest' calc.Page_Number.  Then I could compare the current page to the last page in the 'Print When' property.  But calc.Page_Number can not be used in a definition of a calculated field.
    Issue 2 - Depending on the amount of report detail, sometimes my report footer prints alone, without a page header and page footer.  The report includes this page in the total number of pages.  For example, if it is a 2 page report, the page header on page 1 will display Page 1 of 2.  Then the only data on Page 2 is the Report Footer.  No page header or page footer prints. 
    Any assistance on these issues would be most appreciated.  To date, using the Report Builder has not been easy.

    To issue 1: The report contains a report band called report footer. thsi is always at the last page. The report footer band initially is collapsed, so you have to expand it by dragging the last band divider.
    To issue 2: I guess this is a page break calculating error when detail data reaches really near the page footer area.
    Try some experiments with different setting of the following properties/issues:
    - in elements, e.g. calculating fields in the bands between report detail and page footer: In Properties / Print Control / Printing Options: Activate the option "Remove line when blank". This will remove the whole report band area if this field is blank. May save some empty space.
    - try to remove unused empty space between detail rows.
    - try to resize and reposition all detail fields so that they snap to the grid.
    Best regards

  • Need to display grand total text in OOPS ABAP ALV report

    Hi
    I am using OOPS for alv display and need to display grand "total text" in any column in th eoutput display.
    I know the procedure to display in ALV display. but dont have idea in OOPS. Please help.
    Thanks
    Amminesh.

    hi,
    follow this link for alv's with oop's oncept.
    http://abapreports.blogspot.com/2008/06/alv-grid-display-with-oops.html
    for calculating total  to the specific field.....
    while creating the fieldcatalog pass the value 'X' to field do_sum of lvc_t_fcat( field catalog).
    data: fcat type lvc_t_fcat.
    fcat-fieldname = <field-name>.
    fcat-ref_table = <ref-tablename>.
    fcat-ref_field = <ref-fieldname>.
    fcat-do_sum = 'X'.
    regards,
    Ashok

  • 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

  • Infoview report display Issue ?(Crystal reports)

    hI ALL,
    I am using BOXI 3.1 sp5 and crystal reports
    I have 2 sub reports in a main report
    Here is the main report : WIth no lot number on left side ; when i double click on sub report it is opening sub report and showing me Lot number
    Can i  Show lot number in main report too?

    Great, now we need confirmation on what version of CR and DB you are using?
    If you are using CR XI version 11.0 then download CR XI R2 -  version 11.5, free upgrade:
    http://downloads.businessobjects.com/akdlm/crystalreports/crxir2_sp4_full_bld_0-20008684.exe
    http://downloads.businessobjects.com/akdlm/crystalreports/CRYSTALREPORTS06_0-20008684.EXE
    Use your XI Keycode to install.
    Second question is what Database are you using and what client and how are you connecting, ODBC, OLE DB or Native?
    The issue sounds like the DB client is not ending data reading at the end of line ( OEF/EOL ) or the line is not marked with a null character or however it should be done.
    Nothing in configuration would fix this... Something either in the client you are using, CR simply displays the data it gets, if the Client does not stop the data being read CR is going to show you that data also.
    Could also be the Client is not capable of handling a 4K string so it's reading/filling in a buffer of random values and therefore shows garbage...
    I suggest you upgrade first and if it's still an issue then make sure CR supports the version of data source you are using and if it's still a problem try posting to the DB Makers Forum and ask them to look into the issue.
    Don

  • Grand Total not coming correctly in Tabular report

    Hi,
    When I extract in Answers the following information:
    Dimension 1
    Dimension 2
    Dimension 3
    Metric 1 (sum)(sum i defined in RPD)
    Metric 2 (count distinct)(count is defined in RPD)
    When doing this, I get the right result for every value of the dimension, but the total of the summation metric is not correct in tabular report
    Can someone help me, please?

    Hi,
    Try this........
    Add this <ReportAggregateEnabled>true</ReportAggregateEnabled> somewhere inside your <ServerInstance> and </ServerInstance>
    on instance config and restart the presentation services.
    Cheers,
    Aravind

  • Footer issue in ALV Report

    Hi All,
    I have used the following code...Header is getting displayed properly.
    But Footer is not getting printed.....
    perform build_event.
    perform build_comment.
    FORM build_event .
    CLEAR: GT_EVENTS.  REFRESH: GT_EVENTS.
      CLEAR: FS_EVENTCAT.
      FS_EVENTCAT-NAME = 'gt_list_top_of_page'.
      FS_EVENTCAT-FORM = 'build_comment'.
      APPEND FS_EVENTCAT TO GT_EVENTS.
      CLEAR: FS_EVENTCAT.
      FS_EVENTCAT-NAME = 'gt_list_end_of_page'.
      FS_EVENTCAT-FORM = 'f_write_summary'.
      APPEND FS_EVENTCAT TO GT_EVENTS.
    ENDFORM.                    " build_event
    FORM build_comment .
    DATA: lv_info TYPE string,
            l_comcode type string,
            l_plant type string,
            ls_line TYPE slis_listheader.
              CLEAR ls_line.
    **-- Title
      ls_line-typ  = 'H'.
      ls_line-info = 'List of Sales Orders Blocked from Production and Delivery'.
      APPEND ls_line TO gt_list_top_of_page.
    clear ls_line.
    ENDFORM.                    " build_comment
    FORM F_WRITE_SUMMARY.
    data: v_date1(12) type c.
    data: v_time(10) type c.
    data: v_dtime(25) type c.
    concatenate sy-datum6(2) sy-datum4(2) sy-datum+0(4) into v_date1 separated by '-'.
    concatenate sy-uzeit0(2) sy-uzeit2(2) sy-uzeit+4(2) into v_time separated by '.'.
    concatenate v_date1 v_time into v_dtime separated by ' / '.
    ls_line-typ = c_s.
    ls_line-key = 'Date/Time:'.
    ls_line-info = v_dtime.
    append ls_line to gt_list_end_of_page.
    ENDFORM.                    " F_WRITE_SUMMARY
    Please help me....

    Refer this example -
    http://www.sap-img.com/abap/test-alv-display-with-header-footer.htm
    Regards,
    Amit
    Reward all helpful replies.

  • OCDM  - Sample Report Installation issue - Runs too longer with No progress

    Hello,
    As a part of OCDM environment setup for Practice we were successful installing following :
    * Supported Enterprise Linux
    * Oracle DB 11g R2 (OLAP & MINING option)
    * OWB was already installed as a part of Oracle DB 11gR2 - just unlocked the OWB accounts.
    * Installed OBIEE 11g R2 installation - Installation successful and able to open url's. (analytics and BI Publisher etc.) - Issue with login account.
    * Installation of Communication Data Model (First Installation type from OCDM Installer)
    When we try to install Sample Reports at same stage the screen remain open and runs too longer with No progress.
    The Installation process for OCDM Sample Reports is given in the attached doc with screenshot and the log file is also included in the attached document.
    Please let us know the following two issue:
    1) How to login to Analytics after OBIEE 11gR2 installed on Linux - ( in our case we use user as Administrator and tried password same as username, even checked with the user weblogic and other but no success. Please provide us the information which give details(document) about the Administartion of OBIEE 11gR2 on Linux).
    2) The issue with installation of OCDM Sampple Reports though successful installation of OCDM Data Model.(First Installation Type from OCDM Installer)
    Thanks & Best Regards,
    Amol Thite
    I think, I cant Attach the file here and character limit is 30K for the post here so putting below the few lines of Log File content:
    I can email the screen shots docs and complete log file on request if needed.
    It stuck in Configuration Assistance screen -
    After more than 1 hour the same screen – No progress – I tried 3 times but same issue. Log file also not growing and seems its waiting for some dependent thing that need to happen before it proceed.
    =====start few lines of Log File=======================================
    The file oraparam.ini could not be found at /u01/app/oracle/product/11.1.0/db_1/oui/bin/oraparam.ini
    Using paramFile: /u01/app/oracle/product/11.1.0/db_1/oui/oraparam.ini
    Checking swap space: must be greater than 500 MB. Actual 1027 MB Passed
    Checking monitor: must be configured to display at least 256 colors. Actual 65536 Passed
    The number of files bootstrapped for the jre is 689.
    The number of files bootstrapped for the oui is 77.
    Using the umask value '022' available from oraparam.ini
    =====end few lines of Log File==================================
    INFO: Copying Aggr XML for: Oracle Communications Data Model
    INFO: The Top level Aggreage File = /u01/app/oracle/product/11.1.0/db_1/inventory/ContentsXML/ConfigXML/oracle.ocdm.11_2_3_0_0.xml
    INFO: deleted all the required instance files
    INFO: OUI_CAPlugIn is not found in XML
    INFO: cf session will be created for OH: /u01/app/oracle/product/11.1.0/db_1/ TLAggr: oracle.ocdm instancePath: inventory/ContentsXML/ConfigXML/
    INFO: cf session for OH: /u01/app/oracle/product/11.1.0/db_1/ TL Aggr: [oracle.ocdm] instancePath: inventory/ContentsXML/ConfigXML/
    INFO: aggr ref length : 2
    INFO: cf session hashcode: 22855989
    INFO: cf session saved with key: OraDb11g_home1 oracle.ocdm
    INFO: cf session is ok
    INFO: created and saved cf session for oh: OraDb11g_home1
    INFO: passing params to cf
    INFO: Handling the storing of variables for aggr name oracle.ocdm
    INFO: This variable sl_ASMSelectableDiskGroups is not added to the global context map
    INFO: This variable s_scratchPath is not added to the global context map
    INFO: exitonly tools to be excuted passed: 0
    INFO: Starting to execute configuration assistants
    INFO: Command = oracle.ocdm.OCDMCfgPlugIn /u01/app/oracle/product/11.1.0/db_1/ocdm/ocdm_install.sh ${s_dbSysPasswd}
    OCDMCfgPlugIn: Starting OCDM configuration...
    OCDMCfgPlugIn: OCDM configuration initialized, waiting for script response...
    OCDMCfgPlugIn: Receiving SYSTEM password...
    OCDMCfgPlugIn: Passing SYSTEM credentials to configuration script...
    OCDMCfgPlugIn: SYSTEM credentials passed to configuration script.
    OCDMCfgPlugIn: SYSTEM password received.
    OCDMCfgPlugIn: Initializing config parameteres...
    OCDMCfgPlugIn: Creating log folder...
    OCDMCfgPlugIn: ocdm log folder exist
    OCDMCfgPlugIn: Exporting config env...
    OCDMCfgPlugIn: Performing OWB check...
    OCDMCfgPlugIn: Installing OWB...
    OCDMCfgPlugIn: WARNING: OWB OWNER already exists.
    OCDMCfgPlugIn: Archive: /u01/app/oracle/product/11.1.0/db_1/ocdm/pdm/relational/sample_schema/ocdm_sample.dmp.zip
    OCDMCfgPlugIn: inflating: /u01/app/oracle/product/11.1.0/db_1/ocdm/install_tmp/ocdm_sample.dmp
    OCDMCfgPlugIn: 2011_02_28_11_24_30 10 % complete
    OCDMCfgPlugIn: Importing OCDM sample schema
    ==================end of log File ========================================

    Hi Please check my answers
    1) How to login to Analytics after OBIEE 11gR2 installed on Linux - ( in our case we use user as Administrator and tried password same as username, even checked with the user weblogic and other but no success. Please provide us the information which give details(document) about the Administartion of OBIEE 11gR2 on Linux).
    The current OCDM version does not support BIEE 11g, so you need to install BIEE 10g. In next release(will be available soon), OCDM will support BIEE 11g.
    2) The issue with installation of OCDM Sampple Reports though successful installation of OCDM Data Model.(First Installation Type from OCDM Installer)
    The importing will take a long time, you can login database with ocdm_sample_sys/ocdm_sample_sys, and use "select count(*) from tabs;" to monitor the import process.

  • OBIEE 10g - Unable to see data in the report view with grand total applied

    Hi,
    We're facing with a strange issue.
    We're working on a report view.
    We're able to see data when Grand total is not applied on the report. The moment Grand Total is applied, it's showing either an empty table with NULL values or "No Results" page.
    Please help.
    Thanks in advance.
    -Rama

    Hi Dpk,
    Thanks for your reply.
    I included it in the instanceconfig.xml, but the issue still exists.
    Couple of Observations
    #1 - We noticed this issue when we drill down to the level which has really sparse data.
    It works fine when we look at the enterprise wide report.
    #2 - Works fine with few dimensional attributes and facts on the report
    When we add a fact that doesn't have any value at that level, the issue starts to appear.
    Thanks in advance.
    -Rama

  • Can we insert new Detail Section After Report Footer in Crystal Report

    Hi All,
                Is it possible to  insert new  'detail' section  after  ' Report Footer' in the Crystal Report, i know this  is possible in 'detail' section where you can insert new detail one after another, but i want to  insert another  ' detail' section after Report Footer according  my required  result.
    Regards
    Rahul

    Hi Rahul...........
    Open Crystal Report and go to Insert option and select SubReport. From here you can create Subreport........
    Check below links....
    http://msdn.microsoft.com/en-us/library/ms227520%28v=vs.80%29.aspx
    http://www.youtube.com/watch?v=JVNkhj_rnMY
    Regards,
    Rahul

  • 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

  • Running Aggregate on grand totals

    Hi,
    We have requirement where user wants to view running aggregate only on the grand total,when we use running aggregate in OBIEE 11g it calculates running totals each row, however we want the running totals on grand totals.
    Another issue is can we show grand total row and running total on the grand total in the same report like the following report.
    This is how the report should look however when we apply running aggregate it is calculating the totals for all the cells in OBIEE, Could any one let us know how we can achieve this.
    Current report
    Branch        W1     w2     w3      w4
    Abc 10 1 10 11
    MNC 20 2 5 10
    XYZ 30 3 1 20
    QCW 40 5 0 10
    Grand Total  100   11        16       51
    Expected report with Running aggregate on grand total
    Branch            W1     w2     w3      w4
    Abc 10 1 10 11
    MNC 20 2 5 10
    XYZ 30 3 1 20
    QCW 40 5 0 10
    Grand Total 100 11 16 51
    Running Total   100    111    127     178
    ---------------------------------------------------------

    So having this:
    Branch W1 w2 w3 w4
    Abc 10 1 10 11
    MNC 20 2 5 10
    XYZ 30 3 1 20
    QCW 40 5 0 10
    To achieve what you want you should add a union on the analysis where you set the Branch Column to 'Running Total'.
    In the metric you just have to do a RSUM(facts) and they will be aggregated as an RSUM by Week.
    Let me know if it works.

  • Displaying Distinct Count as Grand Total

    Hi -
    I have a requirement where i have to show the distinct count of Transaction Numbers at the bottom of the report as Grand Total. I created a dummy column with Fx as MAX(RCOUNT(1)) and used it in Narrative view and it is showing me the total rowcount whereas i want the distinct rowcount based on Transaction number column in my report.
    Any help is appreciated!
    Thanks
    R

    Instead of using a RCOUNT you can use the COUNT(DISTINCT <Transaction Number Column>) in your column formula
    This is an inbuilt function.
    Mark if it helps..

Maybe you are looking for

  • SharePoint 2013 and IE 11 issue - While creating a Web Part Page and Editing Web Part Properties

    I tried to edit a Web Part in SharePoint 2013 using IE 11 but I did not see the Edit Eeb Part dropdown menu at the top-right corner of the web part. Then I tried to create a Web Part page and I get the following error. Cannot create a Web Part Page w

  • Confirmed quantity during sales order migration

    Do any of you experts see any issue with the following approach to set the schedule line confirmed quantity? We need to migrate open order from Legacy to SAP system. While migrating we need to keep the schedule lines (dates and confirmed quantities)

  • Ipod came back to life after washing BUT....

    I washed my Ipod touch 2nd gen...let it dry out, put it in damp rid for 2 weeks and it turned on and worked for a bit then wouldn't. I let it sit thinking it was completely dead, about 4 months ago and today hooked it up in my car to the griffin fire

  • Windows 7: iPod Touch 2G/3G not recognized anymore after updating to 3.1.2.

    Hi there! In need of some serieous help!!! I got two iPod Touches. 2G and 3G. I wanted to install the latest update, but this hung up with both devices. It seems like a driver problem. The device manager show two "Apple Mobile Device (Recovery Mode)"

  • Reverting delta links?

    Hi All,    I made a delta link of an standard SAP PCD object(X) into my local workspace (Y) and then edited only one property of that delta linked object (Y). so now i could see a sybmol "#" beside that delta linked object(Y). which means that there