Grid - imput columns, summing

Hello,
I have received a design spec to use a grid. Below are some of the requirements. 
1. The first line of the grid should be only output since this is a reference line. The next lines should be available for input, but only some columns, the other columns should contain information copied from the reference line.
2. The header text for the columns that are for input should be colored red.
3. I also need to sum one column, but only the input values, ie. excluding the value in the first line (reference).
Is this possible?
Thank you for your help,
Patrick

Hi,
1. What you need to do for this is to enable the editing feature cell by cell. The same can be acived by adding a column STYPE TYPE LVC_T_STYL to the internal table. Now, for a row and append a column in this nested internal table setting the style as MC_STYLE_ENABLED / MC_STYLE_DISABLED. This will enable the editing of specific columns of a row.
2. I don't think you have the Header text in a different color.
3. Summing excluding specific rows is not possible.
Regards,
Ravi
Note : Please mark all the helpful answers

Similar Messages

  • Query Print Layout column sum in report footer

    Hi Experts,
    I am utilizing a query and created the layout via Query Print Layout. I am using sort and group functions which filters my column sums for a certain field conditions. My problem is that when I want to make a total column sum for all the repetitive footers' column sum, the system shows a message that only repetitive areas can be average/ sum.
    Is this the standard behaviour of the system? Or is this a limitation if we are using the print layout via Query print layout. Any workaround to get the final total for all pages column sum?
    Please advise.
    Thanks,
    Don

    hello
    Don
    what u want actually i dint understood as i now but u need colsum of ur repetitive fields or repetitive footer fields
    I).if u want repetitive footer all columns sum take the contact of those fields ex:(concat(F_a+F_B -
    )) so u can get ur total for repetitive footer fields
    II).if u want repetitive area lines colsum for every field u take as colsum with respect to the unique id of repetitive area fields
    regards
    Jenny

  • Save /ADD Grid Control Columns Data in database

    Hello All,
                     Can any one suggest me how we add or save or update  the grid control columns fields  data into databases.
                      My problem is  I have 2 tabs in user defined screen Main and issue tabs . when we click the issue tabs then items data in main tab   matrix is filled in issue tab grid for this i create user defind table and register it with my user defined object .and
    fill somoe of this table fields using reocord set . Now I want to add these grid data  in database .
    how we achieve this .Please guide me

    Arvind,
    You may want to review the documentation on the Grid Object in the SDK Help documentation as this may help with your question.
    Eddy

  • Grid ComboBox column

    Hi all,
    I am considering moving from a matrix to a grid
    a. How do I assign valid values to a grid combobox column?
    b. Does the grid support all matrix features (link button, etc)?
    best,
    Asher

    Hi Chris,
    Here is my code:
                // Data table:
                DataTable dataTable = testForm.DataSources.DataTables.Add("aaa");
                dataTable.ExecuteQuery("SELECT * FROM [@AAA]");
                // Grid:
                Item gridItem = testForm.Items.Add("grd", BoFormItemTypes.it_GRID);
                gridItem.Width = 450;
                gridItem.Height = 300;
                Grid grid = (Grid)gridItem.Specific;
                grid.DataTable = dataTable;
                // Columns:
                GridColumn textColumn = grid.Columns.Item(2);
                ((EditTextColumn) textColumn).LinkedObjectType = "4";
                GridColumn comboColumn = grid.Columns.Item(0);
                comboColumn.Type = BoGridColumnType.gct_ComboBox;
                ((ComboBoxColumn) comboColumn).ValidValues.Add("3", "3");
    This code fails on the last line with this exception:
    Unable to cast COM object of type 'SAPbouiCOM.GridColumnClass' to interface type 'SAPbouiCOM.ComboBoxColumn'.
    Any ideas?
    Asher
    P.S.
    The link works fine. Thanks.

  • Get Column sum, count in sql developer

    Dear All seniors,
    I need help in oracle sql developer that after select statement when we got our result in below rows and coloums,
    then how to get its sum, count, etc.
    as in pl sql developer we simply right click at a column and then click on the desired function.
    is this facility also have in sql developer?

    We've kicked around the idea of doing this for awhile. I believe there's already an item in the Exchange if you want to up vote it. The challenge being if it's a result set which hasn't been fully fetched, doing an aggregate would require one - and that could be costly. Of course folks live in the grids so I see the value in this type of feature as well.
    As a workaround, you could of course export your data to CSV or XLS and do the calculations in your favorite spreadsheet software.

  • Multiple Hotspots in a ALV Grid single column

    Hi Experts,
    My ALV Grid report output looks like below....
    If you observe below output, column 3 has multiple documents each one separated by ' ; '. Now, I would like to assign hotspot on each documents like DOC1, DOC2, DOC3, etc.
    Heading#:          COL1 | COL2 | COL3 |
    Records1:              1      |  xxxxx  | _DOC1_ ; DOC2 ; *DOC3*
    Records2:              2      |  xxxxx  | _DOC1_ ; DOC5 ;
    I know, we can assign hotspot for entire column. but my requirement is multiple hot spots in a single column.
    Please help me on this?
    Thanks in Advance
    Raghu

    As I mentioned earlier,
    My ALV Grid report output looks like below....
    Heading#: FIELD1 | FIELD2 | FIELD3 |
    Records1: 1 | xxxxx | DOC1 ; DOC2 ; DOC3
    Records2: 2 | xxxxx | DOC1 ; DOC5 ;
    If you observe above output, field 3 has multiple documents each one separated by ' ; '.
    When I click on DOC1, it supposed to display related picture on the POP-Up Screen. Similarly when I click on DOC2, it supposed to display that document picture on POP-up screen.
    Before going to do this, first I need to assign hotspots on each documents like DOC1, DOC2, DOC3, etc.
    Please help me.

  • ALV GRID Display Column Width problem when filtering

    Hello All,
       When i displaying ALV Grid Display ,i selected one column and set filter for that.
    the problem is column width at display is 12 charecters but in filter it is allowing only 10 charecters to enter which is wrong. i am unable to set filter.please give solution.
    Thanks
    Sandeep.G

    hello i am calling perform, ineed to set OUTPUTLEN according to field length how can i do that.
    FORM fill_fieldcat  USING  p_field TYPE slis_fieldcat_alv-fieldname
                               p_text  TYPE slis_fieldcat_alv-seltext_l
                               p_flag TYPE c.
      wa_fieldcat-fieldname    = p_field.
      wa_fieldcat-seltext_l    = p_text.
      wa_fieldcat-no_out  = p_flag.
       wa_fieldcat-outputlen = 20.
      APPEND wa_fieldcat TO i_fieldcat.
      CLEAR wa_fieldcat.

  • Alv grid background column headings

    HI EVERYONE,
    I was able to execute the ALV grid report in background .But columns heading is reeating for
    each page.
    Can't we just just have the Column Headings once for all pages.?

    For the IS_LAYOUT parameter it is possible to set NO_COLHEAD = 'X'. Then the header is gone. Then you have to create first line in table with texts. But then all fields must be character fields.
    Regards
    Roy

  • JDev 11.1.1.3: Column Sum needs to work like getEstimatedRowCount

    Hi there,
    I am working with the table component and a large dataset (thousands of rows).
    I need to see a column total (sum) in the column footer. Since we're dealing with a large dataset, I thought the appropriate way to do this is to select sum(columnName) which works just fine.
    What I want my total to do though is to also act dynamically to changes in data within the table so that if I insert a new row or update a row, the total will change.
    I thought of the getEstimatedRowCount method and how it selects count(*) and also merges local information such as row inserts and deletes to give you the proper row count.
    I want a way that I can get my sum in the same manner. So that I can select sum(columnName) and also keep track of the local changes.
    Any thoughts of how to do this ?
    Thanks,
    Mark

    Hi,
    what about
    - Managed Bean in ViewScope to hold the SUM value.
    - Summary field that references SUM value from its value property
    - When managed bean instantiates, access ViewObject and issue query select sum(...) from ...
    - Define a value change listener on column cell field and have it referencing the same managed bean
    - Set the column cell have its autosubmit property set to true so the value change is called whenever the user leaves the field
    - In the value change listener, compare valueChangeEvent.getOldValue with valueChangeEvent.getNewValue and build the Diff
    - Update the SUM value in the managed bean
    - Access the SUM field (the UI component to show the SUM from the managed bean) and PPR it
    This should work best and performant
    Frank

  • ALV Tree/Grid: maximum columns

    Hello.
    How many columns can have a maximum of ALV Tree/Grid?
    Thanks.
    P.S. Sorry, self-solved: OO ALV : Maximum number of columns, Daixiong Jiang.

    Hello Emir
    Call the static method <b>cl_gui_cfw=>set_new_okcode</b> with your required ok-code. The short description of this methods says <i>"Be careful: This sets a new Fcode in Eventhandler for PAI",</i> exactly what you want.
    Regards
       Uwe

  • Showing Grid without column headers and Grid lines

    Hi all
    does anyone knows how can set a grid object to display without grid lines and without column headers?
    appreciate the help
    Yoav

    Hi Yechiel,
    When you work with the grid you just have to drag it into your srf and bind it with some table by specifying the table name in its properties.
    When the form launches the columns of the grid  will be created automatically as per the number of columns in the table.The caption of the column in the grid will be the same as that of the name of the column in the table.The only condition for this is that the table should contain some records, if the table is empty no grid lines and the column header will be displayed .
    I hope this meet your requirements.
    Below I am sending you the code segments with the help of which you can control the grid progamatically...
    //Declaring the grid object
    Grid oGrid;
    //Initializing the grid object
    oGrid=(SAPbouiCOM.Grid)oForm.Items.Item("MBS_Grid").Specific;
    //Adding a new data table to the form
    oSboApplication.Forms.ActiveForm.DataSources.DataTables.Add("MBS_DataTable");
    //Assigning the data table to the grid
    oGrid.DataTable = oSboApplication.Forms.ActiveForm.DataSources.DataTables.Item( "MBS_DataTable" );
    // This statement will clear the grid
    oGrid.DataTable.Rows.Clear();
    // In this way you can set the column properties
    oGrid.Columns.Item(0).Editable=false;
    oGrid.Columns.Item(1).Editable=false;
    oGrid.Columns.Item(2).Editable=false;
    oGrid.Columns.Item(3).Editable=false;
    oGrid.Columns.Item(4).Editable=false;
    oGrid.Columns.Item(5).Editable=false;
    // In this way you can set the column width
    oGrid.Columns.Item( 0 ).Width = 50;
    oGrid.Columns.Item( 1 ).Width = 60;
    oGrid.Columns.Item( 2 ).Width = 130;
    //This is the way you can set a user defined caption on the column header.
    query="select U_CTX_MOVCODE as 'Movie Code',U_CTX_MOVNAME as 'Movie Name',U_CTX_SHELF as 'Shelf Number',U_CTX_SPACE as 'Space Number',U_CTX_CARDCODE as 'Customer Code',U_CTX_RENTED as 'Rent Status' from [@CTX_VSTORE] order by Code";
    Regards,
    Prashant

  • How to alv grid rows&columns

    Hey,
    How to know number of rows and columns in alv grid are used.

    Hi,
    You can count the number of rows , by using describe statemet,
    describe table itab lines v_lines.
    itab is table used to display in ALV
    Thanks & Regards,
    Navneeth K.

  • Is there a How To on column sum totals, break formatting, 4 tabular reports

    Hi,
    I haven't needed to do a grand totals for a column until now. I see that there is built in BREAK FORMATTING. I looked for a how to on it but found none.
    Anyone have a good reference to explain basics? customizations?
    Thanks, Bill

    Hi there,
    If your column alignment is right the Sum will be right too in bold.
    Break Formatting/Display this text when printing report sums
    You can do [h4]Total of Something[h4] or use Style, for instance.
    Same with “Display this text on report breaks using #SUM_COLUMN_HEADER# substitutions”. [h4] #SUM_COLUMN_HEADER# [h4] for instance.
    I hope this would help.
    Konstantin

  • Panel Grid Layout: Column Span unexpected behavior.

    Whenever in a Panel Grid Layout, when i give a cell to span over multiple columns(2,3,4 or any), the cell is spanned over the entire row only.. Why does this behavior happens? In JDeveloper, the spanning is shown correctly in design tab and preview tab.

    Hi Amanda,
    I believe I have discovered the cause of the issue you are facing.
    The problem is with the "Alert Region" region template and that it does not have any display points specified so indicate the number of grids that can fit in its region body. Without having any display points, the grid layout system attempts to use all columns available to its container. However, because the Alert Region has additional padding within, the columns will not fit and wrap to the next line.
    To fix this issue, you will have to modify the "Alert Region" region template, go to "Display Points" and click Add Row. You will need to enter the following fields:
    Name: Region Body
    Template Substitution: BODY
    Grid Support: Checked
    Maximum Fixed Grid Columns: -1
    This will fix the issue for you. I've logged a bug within our bug system to track this so we can fix it in a future release of APEX.
    Best,
    Shakeeb

  • Column sum: odd bug

    I find it really useful to have the sum of an entire column { eg. =SUM(B) } in the header cell of that column. Unlike in Excel, the formula =SUM(B) doesn't include the header cells themselves in the total, so it isn't a self-reference.
    But in Numbers '09 there's an odd bug. Try this. Open a new document (select Blank from the Template Chooser). The first column and row are set as header column and row. Click on B1 (the header cell for column B) and insert the formula =SUM(B). This cell will now correctly display the total of all the cells from B2 onwards. Suppose this total is 12. Click again on B1, and the formula, instead of appearing as =SUM(B) now appears as =SUM('12').
    Does everyone get this?
    Martin S Taylor

    It seems that something is odd in your system.
    I am unable to reproduce the described behavior.
    in F1, F2, F3, F4, F5, F20,F21, F22, F23, F24, the formula is the same =SUM(F)
    In A10 I entered =SUM(B10:$O10) and used fill to the right.
    Then I used fill down.
    Yvan KOENIG (from FRANCE dimanche 11 janvier 2009 17:50:52)

Maybe you are looking for

  • I have a replacement 9.7 Pendo pad, I cannot access the Adobe site

    I have a 9.7 Pendopad which has been given to me as a replacement for one where the battry failed. I was able to access the Adobe web site to get access Overdrive Media, I cannot even get access to the Adobe Site to even sign in , I cannot access any

  • Can't uninstall Acrobat 7 in Win 7 XP mode

    Badly in need of some advice... I have Win 7 Professional edition, which has XP mode. I have Acrobat Standard 7.0 installed in XP mode, which very badly in XP mode. So now I've bought Acrobat Pro XI -- but haven't tried to install it because I can't

  • Report for OBYC Setting

    Dear All, Can u please tell me in which report or table i get which valuation class is attach with which G/L in OBYC  and which transaction key. Regards, Pardeep Malik

  • Text determination for business partneres

    Hi can any one provided me step by step process of text determination for business partner level Many thanks vinay

  • My 4x6 prints in Lightroom 4 only fill a quarter of the paper

    I watched Matt Kloszowki's LR killer tip on borderless printing and followed his instructions but my 4x6 print only fills about a 40% of the paper and I'm not getting the full image. I added a border to outline the edge of the =print whic I scanned.