Hiding a column if the column total is 0(zero)

Hi,
I am trying to hide the entire column if the column total is 0.
Template sample:
Num
IF Amt1 end if
Amt2
IF Amt3 end if
F NUM
IF $0.00 end if
$0.00
IF $0.00 end if E
Totals
IF $0.00 end if
$0.00
IF $0.00 end if
Sample Data:
Num
Amt1
Amt2
Amt3
001
108.25
28.00
0.00
002
0
445.00
0.00
003
100.12
472.00
0.00
004
145.00
872.00
0.00
005
16.30
25.32
0.00
I am using the below expressions which is not working.
<?if@column:sum(amt1)!=0?> <?amt1?> <?end if?>
<?if@column:sum(amt3)!=0?> <?amt3?> <?end if?>
I would like to hide the entire Amt3 cloumn and leave the '0' at amt1 as it is. Any help would be much appreciated.

you can try like
before the table do the sum(amt3) column using variable and store that value in a variable then use that variable which u stored the sum(amt3) column value .
F variable cal to get the sum of amt3 column E
Num
IF Amt1 end if
Amt2
IF Amt3 end if
F NUM
IF $0.00 end if
$0.00
IF $0.00 end if E
Totals
IF $0.00 end if
$0.00
IF $0.00 end if
then use <?if@column:variable!=0?> <?amt3?> <?end if?>
if it is not working for you send me template and xml to my email i can try it from my side and send u updated template.
my email : [email protected]

Similar Messages

  • Why the doc total amount is not matched with the total item line amount?

    Hi,
    Recently when i try to update something in sales order via my add-on, i got an error said u201CThere is a difference between the document total and its components.  [ORDR.DocTotal][line: 0] Iu201D Then i checked the sales order in SAP B1, I found the document total amount was not matched with the item line total amount. Actually the item line is quite simple, there is only one item line with qty 1. How comes the document total could be different with the amount from item line? I know the document total amount is a read-only field which is calculated automatically by SAP. This is really weird for us, we don't know how this happened.
    Has anyone experienced similar situation like mine and how this happens?
    Thanks,
    Lan

    I am having this same issue and I have additional information.
    I am on ver. 8.8 PL 16.
    Periodically (mulitiple times a week), when a Sales Order is created, the Doc Total amount is -zero- when there are clearly items that have a price associated with them. This causes an error when Adding the document. Sometimes, I can just change the quantity of one of the items, which forces the Doc Total to update.  Most of the time this does not work, though.  I end up having to restart the SAP client and then everything begins to work as it should.
    This behavior is occuring on mulitple machines in our office.
    Earlier in this thread, Rahul mentioned that they currency rounding was turned off and that this could be part of the problem.  In fact, we were having issues with Currency Rounding and did turn it off not long ago.  Rahul, can you explain better what you meant by "give the proper amount so that you can overcome the error..."
    Randy Davis
    Denver, CO
    Edited by: Randy Davis on May 16, 2011 2:01 PM

  • Hiding Table Columns with the Spry Element Selector

    I am trying to set up a toggle button that will show/hide
    rows >1 when clicked. I've used Adobe's
    "Hiding
    Table Columns with the Spry Element Selector" example and it
    worked fine with an HTML list, until I linked to actual XML data.
    Now it works in reverse. What gives?
    Here's the example:
    http://a44.awardspace.com/testing/toggleShowHideRows.htm

    That's what I started with. Same result:
    http://a44.awardspace.com/testing/toggleShowHideRows.htm

  • Hiding a column in the ALV in a webdynpro component(standrad one)

    Hi,
       i have an requirement of hiding a column inside a ALV output of a web dynpro component which is a standrad one. please help me finding the way to do the same.
    thanks,
    selvakumar M.

    data: l_ref_usage type ref to if_wd_component_usage.
    l_ref_usage = wd_this->wd_CpUse_Alv( ).
    if l_ref_usage->has_active_component( ) = abap_false.
      l_ref_usage->create_component( ).
    endif.
    DATA: l_ref_INTERFACECONTROLLER TYPE REF TO IWCI_SALV_WD_TABLE .
    l_ref_INTERFACECONTROLLER =   wd_This->wd_CpIfc_Alv( ).
      data:
        l_VALUE type ref to Cl_Salv_Wd_Config_Table.
      l_VALUE = l_ref_INTERFACECONTROLLER->Get_Model(
    data: lr_column type ref to CL_SALV_WD_COLUMN.
    lr_column =
    l_value->IF_SALV_WD_COLUMN_SETTINGS~GET_COLUMN( 'CARRID' ).
    lr_column->set_visible( CL_WD_UIELEMENT=>E_VISIBLE-NONE ).
    Abhi

  • When Requested for a Grand Total the column values changes to zeroes

    Hi,
    I have a report with 2 dimensions and 4 facts. The report is showing the correct data when compared with EBS, but when we are applying grand total in Table View then for fact values are displaying zeroes. However the grand total is correct but for some dimensions the measures are displaying zeroes.
    At this point i have modified the Aggregation rule of 1 measure from Default to SUM and when i clicked results Wonder, i can see grand total and the zeroes were replaced with actual values. When i have compared logical queries before applying the aggregation and after, the measure is surrounded with function REPORT_AGGREGATE and REPORT_SUM respectively.
    Can anyone explain me why is this behavior occurred, i got the solution but i am not in stage to explain to client why it happened.
    Kindly help and i will make sure it is definitely marked.

    Re:  Bottom Line Grand Total
    Use the Subtotal function instead of the Sum function for all totals.
    The Subtotal function ignores other Subtotal functions in the column you are summing.
    Your three "Sum" functions would look something like...
    =SUBTOTAL(9,J3:J7)    '300
    =SUBTOTAL(9,J8:J14)  '900
    =SUBTOTAL(9,J3:J14)  '1200
    '--- Info
    1    AVERAGE
    2    COUNT
    3    COUNTA
    4    MAX
    5    MIN
    6    PRODUCT
    7    STDEV
    8    STDEVP
    9    SUM
    10    VAR
    11    VARP
    Jim Cone
    Portland, Oregon USA
    free and commercial excel programs at...
    https://jumpshare.com/b/O5FC6LaBQ6U3UPXjOmX2

  • Display column total on the header using Formatted Search

    Hello,
    I'm trying to create a FS on a Sales Order header (UDF) that will summarize a
    column from the row level.
    For example, I'd like to display the sum of the quantity in the header.
    I've tried the following syntax: Select sum($[$-38.11.NUMBER]) but I get
    only the first line as query result and not sum of all lines.
    Is it possible to get the column total using FS? If so, what should be
    the syntax?
    Thank you in advance,
    Maya

    Columns totals are not possible to get through formatted search as the data of the first row is only referenced by the system automatically.
    If you are needing the Sum of LineTotal for a Approval procedure, then you could use the Total Before Disc col which is actually the sum (line total)
    Access by
    SELECT $[$22.0.Number]

  • How to add text labels to computed column totals in a banded report?

    I'm sure I'm missing something obvious here. I have a simple report with a table that consists of 3 DB field columns and 3 computed columns. I have the 'show column total' property enabled and it inserts the totals at the bottom of the computed columns. What I haven't been able to do is insert a label to the left of the computed totals. I tried inserting a blank field and adding my label, but the location is not dynamic - if one grouped item has 3 rows and the next has 4 the inserted field does not flow to the bottom of the table for each group, it displays in the same position for each group.
    What property/option am I not seeing?
    Thanks!
    Edited by: user11293154 on Jun 22, 2009 1:03 PM

    Thanks for the reply. I'm using Interactive Studio version 9.3, but can't find the 'Set Spring' feature. The help file doesn't have a reference to it. There is a Spring(method) with this example;
    ActiveDocument.Sections["Report"].Body.Tables["Table"].Spring("Chart")ActiveDocument.Sections["Report"].Body.Tables["Table"].Spring("Pivot")

  • : HIDING SUMMARY COLUMNS IN MATRIX REPORT , URGENT

    Hi,
    Can any one please tell me how to hide a column in oralce matrix report. Its a summary column for the matrix report which appears next to the cell values. For example
    Manufacturer
    Brand
    SubBrand1 SubBrand2 Brand Total Manufacturer Total
    Week $ Sales $ Sales Total $ Sales Total $ Sales
    This is a case where,the cell value is the $ sales for the SubBrand for the week. And it gets total at each brand level and each Manufacturer level. The requrement is if there is only one SubBrand for a Brand then the Brand total should not appear on the report. Similarly if there is one Brand for a Manufacturer, then the total at Manufacturer level should not appear . The point is not only it should dissapear but the frame should srink to make it fell that there is no totaling going on at those two levels. If the fileds just remains blank then the report looks odd. So the gap should be srinked as well. How to do it . This is very urgent . Please help me out.
    Thanks
    Feroz

    use a formst trigeer on the field that returns false when you don't want to display the field.

  • How to divide 2 columns totals in ALv grid

    Hi All,
    i developed alv report & displayed totals. now i need to divide those totals and display as another column total.
    anyone please suggest.
    col1    col2    col3
    tot1     tot2     tot3
    tot3 = tot2 / tot1.
    thanks,

    Hi,
    For this, in HTML_TOP_OF_PAGE or  TOP_OF_PAGE first you need to get global reference variable for GRID
    for getting reference call FM GET_GLOBALS_FROM_SLVC_FULLSCR.
    By using this reference  call method GET_SUBTOTALS it will get the all total into Internal Table .
    Using Field Symbols u can calculate. Still u have any problem i will help u further .
    Regards,
    Ravindra.

  • Issue with column Total in a table

    Hi All,
    I am facing a strange issue with the column total value in an advanced table. I have enabled Total for a number column in the table, and added a total item in the footer section.
    This is working fine for the small numbers (10 digits) . But for the bigger numbers , once the sum is calculated the sum data is getting populated in one of the fields. This is for numbers with 30 digits.
    Pls suggest a solution for this.
    Thanks!
    Srikanth

    Unbelievable :)
    Numbers with more than 30 digits ?!!!?
    What kind of application is that? ;)
    --Prasanna                                                                                                                                                                                                                       

  • Column Totals of a table region in OAF Page

    Hi,
        I developed a custom OAF page with a table region (NOT an Advanced table region). It has several columns and one of them is a flag column of checkbox type and also there is amount column.
    My requirement is to display totals on the amount column based on the flag value. So if there are 4 records out of which 3 of them have flag = "Y"
    then at footer level, one line should display Total Amount when flag = "Y"   as sum(amount_column) with flag = "Y"
    and another line should display : Total Amount when flag = "N"  as sum(amount_column) with flag = "N".
    Can anybody help me how I can accomplish this?
    Note: I tried to use "Total" property to "True" but it is displaying data irrespective of my flag value. Some how, I should be able to filter the total based on the flag column. Also I need to display as one total per each flag value...
    Please note that I am using Table region NOT Advanced table region.....I appreciate of some one can give me detailed steps to accomplish this. Thanks
    Sample output....
    Flag            Amount
    Y                       100
    N                         50
    Y                         15
    Y                         20
    Total with "Y" = 135
    Total with "N" = 50

    hi Smitha,
        We cannot avoid that. but an alternate is that use another table above this table and which has the number of rows as zero. hide the table header for the below table. you need to adjust the header of above table so that it fits for the below table.
    This works fine if the table doesn't have sorter facility.
    Regards,
    Gopi

  • Navigation on row and column total in pivot report

    Hi All,
    I have created a pivot report with 2 dimension columns and one measure and defined row and column total. Now, users wants to have a navigation report on the row/column total so that once he clicks on total value, he can see the detail report. While doing this, he also wants to pass on the 2 dimension column values to detail report.
    Is there any workaround for this?
    Thanks in advance.

    use a formula column/row. use RANK function in that. (e.g. Rank([A], asc) will sort the rows based on column A values in ascending order)
    you can use this rank in your heading.
    But frankly this is not so easy. You have to do it in a very intelligent way, so that rank gives you column number/row number any how.
    Have a try and let see if you find a appropriate solution.
    Regards,
    Rahul

  • How can I get column totals with group breaks

    We manually generate a report of file groups and their associated data files each day for each of our databases.
    For each database we take data from dbcc showfilestats and assemble it into an Excel spreadsheet (see below).
    I would like to use a SQL job to generate the reports (results do not need to be in Excel format). I can insert the data from the DBCC into a table; but, I'm stuck on how to write a select statement that will break on file group and provide column totals.
    I've been looking at group by; but, I don't see how to make it work.
    Suggestions?
    FileGroup
    FileID
    Volume
    Allocated(MB)
    Used space(MB) 
    Free space(MB)
    Used %
    1
    1
    Data1
    100
    50
    50
    50%
    1
    15
    Data2
    200
    175
    125
    87.50%
    1
    21
    Data3
    300
    200
    100
    6.60%
                600
    425
    275
    70.80%
    FileGroup
    FileID
    Volume
    Allocated(MB)
    Used space(MB) 
    Free space(MB)
    Used %
    2
    1
    index1
    100
    50
    50
    50%
    2
    15
    index2
    200
    175
    125
    87.50%
    2
    21
    index3
    300
    200
    100
    6.60%
    600
    425
    275
    70.80%

    Take a look at the following blog on subtotal, total & grand total:
    http://www.sqlusa.com/bestpractices2005/subtotaltotalgrandtotal/
    It appears that you need only 1 level of totals.
    BOL:
    Summarizing Data Using ROLLUP
    Kalman Toth Database & OLAP Architect
    SELECT Video Tutorials 4 Hours
    New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012

  • Hiding few columns before displaying alv grid output

    Hi All,
    I struck up at hiding few columns before displaying alv output. I have used used FM: REUSE_ALV_GRID_DISPLAY. By using this i am displaying 29 fields to the output. But before displaying the output i want to hide few columns among them, and also those fields have to be avialable for further selection by the user by using layout.
    Kindly help me in this,
    Regards
    Srinivas K

    Hi,
    In field catalog set NO_OUT='X' for all the columns you want to hide. They will be available when changing layout for ALV, so you can show them at any time.
    Regards
    Marcin

  • Groovy expression for column total not working

    I want to show the column total. I have created a view accessor on the view object and a new attribute of Transient type and set its expression to AccessorName.sum("columnName").
    But its values is never calculated when I test the view object.
    Any help on this is appreciated.
    PS: The total is calculated correctly when the view object does not have any bind variable. Once I add a bind variable the column total is not being calculated. I have verified this. Any help on how to handle this issue ?
    Using JDev 11.1.2.3

    If you could have elaborated a bit more it would have been useful , but apparently i can think of few thing which you could double check.
    1. The transient attribute type is Number.
    2.If the column exist on the same view object then you should write sum("ColumnName") else you have to create a view accessor on the VO and set its expression to AccessorName.sum("columnName").
    Hope it helps !!
    Else you could elaborate a more for us to help
    Thanks
    Soumya.

Maybe you are looking for

  • Getting parameter values from ITS to back end Modulepool program

    Hi, I worked on external ITS developments for SRM project I  was passing values from and to between ITS front end template and corresponding back end module pool program. I was using filed-set and field-get macro for passing values. It was working pe

  • Document number of Workorder operation

    How can I get the document number (BELNR field) of an workorder's operation ? Is it stored in a table? Please help. Thanks in advance...

  • Trouble Creating View on External Table in Diff Schema

    I am unable to create a view in a different schema on an external table in a different schema, even when I am connected to my database as SYS as SYSDBA. CREATE VIEW WH1.EXT1VIEW AS SELECT * FROM WH1.EXT1VIEW; returns the error: ORA-06564: object ER_A

  • Service contract with quantity.

    hi experts, my client track all material enter in the your organization through vendor at the time of services but do not want to maintain any liability. for e.g 1.     a service requisition raised by user and purchase order has created. 2.     when

  • When I open firefox the page says "Invalid header recieved from client."

    when i open Firefox i get an error message on the screen saying "Invalid header received from client. This happens with Internet explorer too but not with any of my other web browsers. How do i fix this? == This happened == Every time Firefox opened