CFGRID - Sum of Column Values

Hi,
Is there a way to sum | total a column of numeric values in a
cfgrid? I want to populate a cfinput text box with the number, and
bind it so that as changes to numbers occur on the grid, the
cfinput box changes.
I've been able to do this by creating a function that goes
and extracts the information via a database query. Running the
query seems to add overhead to the screen response time.
The variable could start as a value passed from a query. Say
2000. When a field changes, it would take the original value,
subtract out the original "row" value, then add in the new "row"
value. Say a 2 is being replaced by a 3. Then you'd have 2000-2+3 =
2001 which becomes the new "original" total value.
Any thoughts would be appreciated.
cfwild

Hi Dan,
Thanks for the feedback. The grid really works well for what
I'm trying to do. I can filter the pages and make minor changes to
the data quite quickly. When I add in the extra function (to sum
the column) that goes out to the table to extract the data, it
seems to take a performance hit on the "page".
In looking at the code I've seen, it seems easy(?) to get to
the new value of the column. Is there a decent way to get to the
"old" value of the column, prior to an update? (or as you update)?
cfwild

Similar Messages

  • Sum datagrid column values

    I am looking for a way (action script code?) to sum datagrid
    column values.
    I am using Flex2 with Cold Fusion MX7.
    I populate a DataGrid by setting dataprovider to the result
    of a Coldfusion query.
    (this.masterList.dataProvider = event.result as
    ArrayCollection;)
    This all works fine.
    The masterList datagrid has debit, credit, and unitcost
    columns. I want to sum those columns individually, and display the
    results in text boxes in another panel.
    I could run a Coldfusion query to return the sums, but would
    like to do it on the client side with action script.
    I want to sum them everytime I update the datagrid, so need
    action code that I can put in the result function.
    I am new to ActionScript, and not sure how to loop through
    the array collection(and/or) dataprovider and sum the items.
    Any help would be appreciated.
    Thanks.

    Loop through your array..if the arrayCollection was named
    myArray;
    private sumFunction():Number{
    var sum:Number=0;
    for(var i:uint=0;i<myArray.lenght;i++){
    sum+=myArray
    .debitValue;
    return sum;

  • How to sum a column value using CAML Query?

    Hi All,
    I would like to sum the column value using CAML qeury. Actually in my list, I have two column "Projects Name" and "Number of Issues". Now need to get sum of "Number of Issues" column. How to achieve in CAML Query.
    Thanks in advance!

    Hi Sam,
    it looks like you can use your current view based agregation, otherwise it is not possible(
    http://msdn.microsoft.com/en-us/library/ms467521.aspx) and you need to work on custom bit on this requirement.
    use the below link and create a view element as described and see if that works for you
    Aggregations Element
    http://msdn.microsoft.com/en-us/library/ms468626%28v=office.12%29.aspx
    Another reference
    Query Element
    http://msdn.microsoft.com/en-us/library/ms471093.aspx
    Hope this helps!
    Ram - SharePoint Architect
    Blog - SharePointDeveloper.in
    Please vote or mark your question answered, if my reply helps you

  • ADF Table: sum of column value

    Hi Experts,
    I have a editable table which is having "Quantity of Volume" column.When user ll input the value in to this,Then the lower panel should show the sum of Volume. How I ll do this? Below is my table src code:
    <af:table value="#{bindings.NominatedAllocationType2.collectionModel}"
    var="row" rows="#{bindings.NominatedAllocationType2.rangeSize}"
    emptyText="#{bindings.NominatedAllocationType2.viewable ? 'No data to display.' : 'Access Denied.'}"
    fetchSize="#{bindings.NominatedAllocationType2.rangeSize}"
    rowBandingInterval="0" id="t2">
    <af:column sortProperty="TheQuantityOfVolume" sortable="false"
    headerText="#{bindings.NominatedAllocationType2.hints.Volume.TheQuantityOfVolume.label}"
    id="c6">
    <af:inputText value="#{row.Volume.bindings.TheQuantityOfVolume.inputValue}"
    label="#{bindings.NominatedAllocationType2.hints.Volume.TheQuantityOfVolume.label}"
    required="#{bindings.NominatedAllocationType2.hints.Volume.TheQuantityOfVolume.mandatory}"
    columns="#{bindings.NominatedAllocationType2.hints.Volume.TheQuantityOfVolume.displayWidth}"
    maximumLength="#{bindings.NominatedAllocationType2.hints.Volume.TheQuantityOfVolume.precision}"
    shortDesc="#{bindings.NominatedAllocationType2.hints.Volume.TheQuantityOfVolume.tooltip}"
    id="it1">
    <f:validator binding="#{row.Volume.bindings.TheQuantityOfVolume.validator}"/>
    <af:convertNumber groupingUsed="false"
    pattern="#{bindings.NominatedAllocationType2.hints.Volume.TheQuantityOfVolume.format}"/>
    </af:inputText>
    </af:column>
    </af:table>
    Thanx
    Aswini

    Hi.
    Check
    Calculate Sum in VO issue again
    http://technology.amis.nl/blog/1295/creating-a-dynamic-ajax-column-footer-summary-in-a-table-component-using-adf-faces

  • Sum of column values

    Hi
    My question is - i would like to do sum of 'volume' column
    Current Output     
    ENVIRONMENT     Volume
    Production              79
    QA                 66
    Development     30
    Desired Output     
    ENVIRONMENT     Volume
    Production                     79
    QA                     66
    Development     30
    *Total                    175*
    select * from (
    select ci.environment, count(1) "Volume"          
    from tsgdw_task@awhsncp1 t,
               tsgdw_operational_process@awhsncp1 op,
               tsgdw_support_group@awhsncp1 sg,
               tsgdw_person@awhsncp1 p,
               tsgdw_configuration_item@awhsncp1  ci
    where sg.SUPPORT_GROUP_SEQ_ID in (SELECT sg2.SUPPORT_GROUP_SEQ_ID  FROM  tsgdw_support_group@awhsncp1 sg2
                             start with sg2.SEARCH_CODE = 'DBNONEC' --p_target_name
                             connect by prior sg2.SUPPORT_GROUP_SEQ_ID=sg2. PARENT_SUPPORT_GROUP_SEQ_ID)
            and t.task_seq_id = op.task_seq_id
            and sg.support_group_seq_id = op.support_group_seq_id
            and op.assigned_person_seq_id = p.person_seq_id
            and op.open_CONFIG_ITEM_SEQ_ID = ci.CONFIGURATION_ITEM_SEQ_ID
            and t.task_type = 'Change Task'
            and t.state = 'Closed'
            --and sg.search_code = p_target_name
            and ci.environment in ('Production','Development','Staging','QA')
    and OP.EST_ACTUAL_END_DATETIME between to_date('01-Apr-2012,00:00:00','DD-Mon-YYYY,HH24:MI:SS') and to_date('08-Apr-2012,23:59:59','DD-Mon-YYYY,HH24:MI:SS')      
            --and t.LAST_UPDATE_DATE between ??EMIP_BIND_START_DATE?? and ??EMIP_BIND_END_DATE??
    group by ci.environment
    order by 2 desc)
    where rownum < 6;

    user546629 wrote:
    Hi Vivek,
    How can I name the column name heading as "Environment" or "Category"
    NVL(CI.ENVIRONMENT,'TOTAL')     Volume
    Development 37
    QA     100
    Production     149
    Total     286
    RegardsUse Column Alias the same way you have done for count(1):
    select nvl(ci.environment,'Total') "Environment" , count(1) "Volume" http://docs.oracle.com/cd/B19306_01/server.102/b14200/statements_10002.htm#i2080424

  • How to get sum of highlighted column values.

    Is there currently any functionality that allows you to highlight a certain number of column values in the returned result set and to see the sum of the values highlighted.

    Hi,
    Not directly, sorry.
    You could always try highlighting the desired cells, copy/paste them into a column in a spreadsheet like MS Excel or Open Office Calc, then add a sum function into a nearby open cell. The spreadsheet can be added to SQL Developer's Tools|External Tools menu for convenience.
    Regards,
    Gary Graham
    SQL Developer Team

  • Regarding alv function of summing up the values of  columns.

    hi friends:
       could you please tell me how to sum up the values of  columns.
    for example, there are columns of room rent, expense of cell phone call,
    expense of taxi fee.
    thank you very much

    hi For calculating one more coloum . try this logic
    write this piece of code in wddoinit
    data : lt_column type salv_wd_t_column_ref,
             ls_column type salv_wd_s_column_ref,
             lo_aggr_rule TYPE REF TO cl_salv_wd_aggr_rule.
    * display columns in correct order
      lr_column_settings ?= wd_this->lr_config.
      lt_column = lr_column_settings->get_columns( ).
    loop at lt_column into ls_column.
        case ls_column-id.
          when 'ROOM_RENT'.
    * aggregate field
            call method lr_config->if_salv_wd_field_settings~get_field
              exporting
                fieldname = 'ROOM_RENT'
              receiving
                value     = lr_room_rent_total.
    * create aggregate rule as total
            call method lr_field_amnt->if_salv_wd_aggr~create_aggr_rule
              exporting
                aggregation_type = if_salv_wd_c_aggregation=>aggrtype_total
              receiving
                value            = lv_aggr_rule.
          when 'CALL'.
    * aggregate field
            call method lr_config->if_salv_wd_field_settings~get_field
              exporting
                fieldname = 'CALL'
              receiving
                value     = lr_call_AVG.
    * create aggregate rule as total
            call method lr_field_amnt->if_salv_wd_aggr~create_aggr_rule
              exporting
                aggregation_type = if_salv_wd_c_aggregation=>AGGRTYPE_AVERAGE
              receiving
                value            = lv_aggr_rule.
        endcase.
    endloop.
    Regards
    Chinnaiya

  • CFGRID shifting column values

    Hi,
    I have a CFGRID that has 5 columns in which its values are
    obtained from the database. There is a single submit button that
    would submit to a processor page that updates any records with
    changed cells. The problem that I'm having is that the processor
    page would shift the values of the columns one over. For example,
    the value of column 4 would display as column 3 on the processor
    page. Below is the code:
    cfgrid page:
    <cfform method="post" name="adcost"
    action="index.cfm?fuseaction=process_advertising_cost_grid">
    <cfgrid name="advertizingCosts"
    format="HTML"
    query="advertizingcosts"
    selectMode="edit"
    colHeaders="true"
    colHeaderBold="yes"
    width="600"
    maxRows="25"
    stripeRows="yes"
    stripeRowColor="efefef"
    >
    <cfgridcolumn name="AdvertizingCostsID" header="ID"
    width="20" select="no">
    <cfgridcolumn name="AdvertizingCostsDate"
    header="Advertizing Costs Date" mask="MMMM D, YYYY" width="160">
    <cfgridcolumn name="Amount" header="Amount"
    width="60">
    <cfgridcolumn name="Details" header="Details">
    <cfgridcolumn
    name="StoreFrontName"
    header="StoreFront"
    width="150"
    values="#ValueList(storefronts.StoreFrontCode)#"
    valuesDisplay="#ValueList(storefronts.StoreFrontName)#"
    >
    </cfgrid>
    <input type="submit" value="submit" class="button" />
    </cfform>
    processor page:
    <cfif
    IsDefined("form.advertizingCosts.RowStatus.Action")>
    <cfloop index="counter" from="1"
    to="#ArrayLen(form.advertizingCosts.RowStatus.Action)#">
    <cfoutput>
    <p>
    counter is #counter#<br />
    The row action for #counter# is
    #form.advertizingCosts.RowStatus.Action[counter]#<br />
    AdvertizingCostsID is
    #form.advertizingCosts.AdvertizingCostsID[counter]#<br />
    AdvertizingCostsDate is
    #form.advertizingCosts.AdvertizingCostsDate[counter]#<br />
    Amount is #form.advertizingCosts.Amount[counter]#<br
    />
    Details is #form.advertizingCosts.Details[counter]#<br
    />
    StoreFrontName is
    #form.advertizingCosts.StoreFrontName[counter]#
    </p>
    <cfif #form.advertizingCosts.RowStatus.Action[counter]#
    eq "U">
    <pre>
    Original AdvertizingCostsDate:
    #form.advertizingCosts.Original.AdvertizingCostsDate[counter]#
    Original Amount:
    #val(form.advertizingCosts.Original.Amount[counter])#
    Original Details:
    #form.advertizingCosts.Original.Details[counter]#
    Original StoreFrontName is
    #form.advertizingCosts.Original.StoreFrontName[counter]#
    </pre>
    <cfelse>
    </cfif>
    </cfoutput>
    </cfloop>
    </cfif>
    The Amount data would end up going to the details column, the
    date appears as the amount on the second page. This page only
    displays values.
    It looks to be correct, but I'm not sure what is causing the
    shifting.
    Any help would be great!
    Jason

    This fixed it for me. Only do this if you have version 9.01 of coldfusion.
    Open cfide/scripts/ajax/package/grid.js
    find this line of code
    var _5aa=$G.computeActualRow_editField(this.editFieldState,this.selectedRow);    (IT is in the $G.Actions.afterEdit=function(_5a8))
    change it to
    var _5aa=$G.computeActualRow_editField(this.editFieldState,_5a8.row+1);
    every thing should now be in sync

  • APEX Interactive Report - sum multiple columns table1 X with table2 value

    I have a challenge in oracle apex, were i want to sum multiple columns to give 3 extra rows namely points, Score, %score. There are more columns but chose only few for now.
    Below is an example structure of my data:
    Town | Sector | Outside| Inside |Available|Price
    Roy-----Formal----0----------0----------1------0
    Kobus Formal--0 ---------0--------- 1------0
    Wika ---Formal----0----------0--------- 1------0
    Mevo----Formal----1----------1---------1------0
    Hoch----Formal----1----------1---------1-------1
    Points--------------2----------2----------5-------1
    Score-------------10---------10---------10------10
    %score-----------20---------20---------50------10
    Each column has a constant weighting (which serves as a factor and it can change depending on the areas) in this case the weighting for this areas are the ones in the first row for the sector Formal:
    Sector |Outside| Inside |Available|Price
    Formal----1----------1 ----------1-----1
    Informal--1----------0 ----------2-----1
    I tried using the aggregate sum function in apex but it wont work since i need the factor in the other table. Which is where my challenge started
    To compute the rows below the report:
    points = sum per column * weighting factor per column
    Score = sum of no of shops visited (in this case its 5) * weighting factor per column
    % score = points/Score * 100
    The report should display as described above. With the new computed rows below.
    I kindly ask anyone to assist me with this challenge as i tried searchin on the internet for solutions but havent come across any.
    Thanks a lot for your support in advance!!

    >
    Please update your forum profile with a real handle instead of "823433".
    I have a challenge in oracle apex, were i want to sum multiple columns to give 3 extra rows namely points, Score, %score. There are more columns but chose only few for now.
    Below is an example structure of my data: Use <tt>\...\</tt> tags as described in the FAQ when posting code and sample data and layouts. Please edit the OP and reformat the example using <tt>\...\</tt> tags so it's clear.
    Town | Sector | Outside| Inside |Available|Price
    Roy-----Formal----0----------0----------1------0
    Kobus --Formal----0 ---------0--------- 1------0
    Wika ---Formal----0----------0--------- 1------0
    Mevo----Formal----1----------1---------1------0
    Hoch----Formal----1----------1---------1-------1
    Points--------------2----------2----------5-------1
    Score-------------10---------10---------10------10
    %score-----------20---------20---------50------10Each column has a constant weighting (which serves as a factor and it can change depending on the areas) in this case the weighting for this areas are the ones in the first row for the sector Formal:
    Sector |Outside| Inside |Available|Price
    Formal----1----------1 ----------1-----1
    Informal--1----------0 ----------2-----1I tried using the aggregate sum function in apex but it wont work since i need the factor in the other table. Which is where my challenge started
    To compute the rows below the report:
    points = sum per column * weighting factor per column
    Score = sum of no of shops visited (in this case its 5) * weighting factor per column
    % score = points/Score * 100
    The report should display as described above. With the new computed rows below.
    I kindly ask anyone to assist me with this challenge as i tried searchin on the internet for solutions but havent come across any.How critical to the solution is using an interactive report? It would be much easier to do this in a standard report where you've complete control over the query SQL and the report structure.
    When you have a problem you'll get a faster, more effective response by including as much relevant information as possible upfront. This should include:
    <li>Full APEX version
    <li>Full DB/version/edition/host OS
    <li>Web server architecture (EPG, OHS or APEX listener/host OS)
    <li>Browser(s) and version(s) used
    <li>Theme
    <li>Template(s)
    <li>Region/item type(s) (making particular distinction as to whether a "report" is a standard report, an interactive report, or in fact an "updateable report" (i.e. a tabular form)
    With APEX we're also fortunate to have a great resource in apex.oracle.com where we can reproduce and share problems. Reproducing things there is the best way to troubleshoot most issues, especially those relating to layout and visual formatting. If you expect a detailed answer then it's appropriate for you to take on a significant part of the effort by getting as far as possible with an example of the problem on apex.oracle.com before asking for assistance with specific issues, which we can then see at first hand.

  • SSRS - Expression to color column value dynamically in Matrix

    Hi ,
    I have a matrix which looks like :
    The <<Expr>> value can be 1 /0 /"-" .
    The Expr value is being calculated dynamically.
    The data set query I am using has a column called due_days.
    In the color expression of the <<Exp>> box I am using the expression as :
    =IIf(Fields!Due_Days.Value>14  and Fields!Notes_Count.Value>0,"Blue",(Iif(Sum(Fields!Notes_Count.Value)=0 ,"Red","Black")))
    My requirement is if the Due_Days column value is >14 then I need to highlight the value as blue else black and if value is 0 then red. When I use the above query it is just highlighting the color blue for 1st column only. Eg: 4th row . Due days for month
    of Oct and Nov is > 14 but it shows blue only for month of oct.
    How can i resolve the issue?

    In select query i have 5 columns:
    Due days(Which is difference between 2 dates) ,
    Notes count (Which is just a count of notes  entered or not having value 0/1  and value '-' if another column CRD is greater than the matrix month and year.)Eg: below date 11/12/2014 is greater than Oct 2014 hence Oct 2014 should have "-"
    Month Name , Year , Month Nbr (last 6 months which I cross joined with the table to get counts for each month)
    The matrix has year and last 6 month  as column groups
    Color coding should be if notes count is 0 then red  ,if notes count is 1 and due_days> 14 then blue else black . When i try to use expression for color as i mentioned above, it colors only 1st colum.eg:  2nd row
    Nov 2014 is blue but for jan 2014 also it should show blue as due days>14 .
    Is there any way i can do that ??
    Eg: data set returns value as :
    Due Days        CRD                              Month         
    Month_Nbr    Year   Notes _Count
    5             2014-11-28 00:00:00.000    December          12         2014       
    0
    5               2014-11-28 00:00:00.000    February           2         2015        
    0
    5             2014-11-28 00:00:00.000    January              1           2015      
    0
    5            2014-11-28 00:00:00.000    November          11          2014       1
    5            2014-11-28 00:00:00.000    October              10          2014        0
    5            2014-11-28 00:00:00.000    September          9           2014         0
    Matrix is of the form :
                  YEAR
                  MONTH
    CRD        Notes_count

  • How to Suppress Report Total When Using Sum on Columns & Break Formatting

    I need to know how to NOT show the report total line when using the sum functionality with a break in a report.
    I am summing two columns, a debit amount and credit amount. I am breaking on the first column which is the level of a hierarchical query. I want to see something like this:
    Parent Record xxxxxxxxxxxxxx
    Parent Sum $$ $$
    Child Record xxxxxxxxxxxxxx
    Child Record xxxxxxxxxxxxxx
    Child Sum $$ $$
    However, when I run the report, I also get a report total line under the child sum which is really meaningless for this report.
    I have also tried creating this report as an interactive report. When applying the sum on the two columns, I do get the sum totals on the break only - no report total - however, it is reversing the order of the hierarchical query results putting the child records first and the parent records second.
    Thanks in advance for your help.

    Hi, and welcome!
    I don't think that there's an easy way to "switch off" the Total line on a report. The nearest I could suggest would be to either hide the entire row or colour the text so that it's the same as the background - either way, the total is calculated but the user won't see it.
    If you put something like the following into your report region's Region Footer:
    &lt;script type="text/javascript"&gt;
    var outertable = document.getElementById("#REGION_ID#");
    var innertable = outertable.getElementsByTagName("TABLE")[1];
    var rs = innertable.rows;
    var lastrow = rs[rs.length-1];
    if (lastrow.cells[0].innerHTML == '&lt;b&gt;TOTAL&lt;/b&gt;')
    rs[rs.length - 1].style.display = "none";
    &lt;/script&gt;Then, on your report's Report Attributes page, scroll down to the Break Formatting section and put TOTAL into the "Display this text when printing report sums" setting. Also, in the "Layout and Pagination" section, set "Enable Partial Page Refresh" to No.
    The above code is based on the report and region templates that I'm using here: [http://apex.oracle.com/pls/otn/f?p=267:147] (Theme 18, "Report Region" region template and "Standard" report template). Your report may use different templates, so the first two lines on the code may have to change. #REGION_ID# would be replaced with the region's ID value (which would be "R" followed by a long number). As long as you can identify the HTML tag that uses this ID value, you can then get to the actual table that contains the data as it would be a TABLE within that tag - the [1] above is the second table within the region. In some instances, you may have to use "region_#REGION_ID#" as the starting point.
    Andy

  • Add sort, filter, export to excel and summation of tab column values in VC

    Hi,
    Can anyone help me out in providing the following functionalities in the Visual Composer tableUI element :
    1. Sort
    2. Filter
    3. Export to Excel
    4. Summation of Table Column Values
    5. Update entry in table
    6. Create entry in table
    Thanks in advance.
    Wish you great time.
    Best Regards
    Sid

    Hello Sid,
    1. Sort
    --> This is a standard functionally of tables in VC
    2. Filter
    --> Use the filter element of VC
    3. Export to Excel
    Go to: Sdn>Wiki>VC>Modeling>Export data to Excel/PDF
    4. Summation of Table Column Values
    --> This depends on your data source. If you use BI queries you have this normally automatically. If not you can use the sum element of VC.
    5. Update entry in table
    6. Create entry in table
    > see Sdn>Wiki>VC>Modeling-->Moving data between tables
    Kind regards
    Thomas

  • How can i select other column values('-' separated) in group by function

    CREATE TABLE EMP (
         EMPNO NUMBER(4) NOT NULL,
         ENAME VARCHAR2(10),
         JOB VARCHAR2(9),
         SAL NUMBER(7)
    INSERT INTO EMP(EMPNO, ENAME, JOB, SAL) VALUES (7369, 'SMITH', 'CLERK', 800);
    INSERT INTO EMP(EMPNO, ENAME, JOB, SAL) VALUES (7499, 'SMITH', 'SALESMAN', 1600);
    INSERT INTO EMP(EMPNO, ENAME, JOB, SAL) VALUES (7521, 'ALLEN', 'SALESMAN', 2400);
    In Output I want 3 columns : EMP,SUM(SAL),JOB(hyphenSeparated)
    Means i want my output like
    First row : SMITH,2400,CLERK-SALESMAN
    Second row : ALLEN,2400,SALESMAN
    I tried to write following sql : select ename,sum(sal) from emp group by ename
    But i want other colummn value in '-' separated. but group by is only allowing agreegated function.
    How can i select other column value using group by function.

    SQL>  select ename,sum(sal), listagg(job, '-') within group (order by job) as job  from emp group by ename;
    ENAME        SUM(SAL) JOB
    ALLEN            2400 SALESMAN
    SMITH            2400 CLERK-SALESMANnote: LISTAGG is a feature of 11.2

  • To get the sum of column of SAPScript based upon condition

    Hi,
    I was first asked to get two new columns in ZF140_ACC_STAT_01 script with ZRFKORD10 print program. I did so by the writing the below code. Now, based on Document-Type (RV,DR,DZ,SA), all the amount with same Document Type are needed to be summed and assigned to separate variables.
    How to get that done????? Please help me out.
    PRINT-PROGRAM:-
    FORM sep_amt_open TABLES in_par STRUCTURE itcsy
                         out_par STRUCTURE itcsy.
    DATA: wf_temp_amt_open TYPE string,"rf140-wrshb,
           amount_open TYPE string,
           amt_shkzg_open TYPE bsid-shkzg,
           doc_desc TYPE t003t-ltext.
    READ TABLE in_par WITH KEY name = 'RF140-BELEGNUM'.   " document no
       IF SY-SUBRC = 0.
       SELECT SINGLE SHKZG FROM BSID INTO (amt_shkzg_open)
         WHERE BELNR = IN_PAR-VALUE.
    ENDIF.
    READ TABLE in_par WITH KEY name = 'T003T-BLART'.     " document description
       IF sy-subrc = 0.
        SELECT SINGLE LTEXT FROM T003T INTO (doc_desc)
          WHERE SPRAS = 'E' AND BLART = IN_PAR-VALUE.
       IF sy-subrc = 0.
         READ TABLE out_par WITH KEY name = 'DOC_DESC'.
          IF SY-SUBRC = 0.
            OUT_PAR-VALUE = DOC_DESC.
            MODIFY OUT_PAR INDEX SY-TABIX.
          ENDIF.
       ENDIF.
      ENDIF.
      READ TABLE in_par WITH KEY name = 'RF140-WRSHB'.    " Amount
        IF sy-subrc = 0.
         wf_temp_amt_open = in_par-value.
       ENDIF.
      call function 'CONVERSION_EXIT_ALPHA_INPUT'
        exporting
          input         = wf_temp_amt_open
       IMPORTING
         OUTPUT        = amount_open
    IF amt_shkzg_open = 'S'.
        READ TABLE out_par WITH KEY name = 'DEBIT_OPEN'.
         IF SY-SUBRC = 0.
           out_par-value = amount_open.
           MODIFY out_par INDEX sy-tabix.
           CLEAR out_par.
         ENDIF.
    ELSEIF amt_shkzg_open = 'H'.
        READ TABLE out_par WITH KEY name = 'CREDIT_OPEN'.
         IF SY-SUBRC = 0.
           out_par-value = amount_open.
           MODIFY out_par INDEX sy-tabix.
           CLEAR out_par.
         ENDIF.
      ENDIF.
    ENDFORM.
    SAPSCRIPT:-
    /:DEFINE &DEBIT_OPEN& = ' '
    /:DEFINE &CREDIT_CLEAR& = ' '
    /:DEFINE &DOC_DESC& = ' '
    /:PERFORM SEP_AMT_OPEN IN PROGRAM ZF27_DRIVER_PROGRAM
    /:USING &RF140-BELEGNUM&
    /:USING &T003T-BLART&
    /:USING &RF140-WRSHB&
    /:CHANGING &DEBIT_OPEN&
    /:CHANGING &CREDIT_OPEN&
    /:CHANGING &DOC_DESC&
    /:ENDPERFORM
    T1 &RF140-BELEGNUM&,,&BSID-BLDAT&,,&T003T-BLART&,,&BSID-WAERS&,,&DOC_DESC&
    =  ,, &DEBIT_OPEN&,,&CREDIT_OPEN&,,
    T1 ,,&BSID-SGTXT&
    Thanks & Regards,
    Rakesh Nair

    If you are mentioning about table/advanced table region you can enable totalling in those regions. Please check the Table / Advanced Table section as appropriate in Chapter 4 of the dev guide.
    If it is not a table / advancedTable then you will have to programmatically total the column value and display it in the appropriate cell.

  • Unable to pass report column value to url in select statement. Please help

    Hi all,
    I am trying to pass the report column value as follows:
    select key, num,
    case when Attachmentcnt(KEY) != 0 then
    'f?p=&APP_ID.:91:&SESSION.:'' '':NO::P91_KEY,P91NUM,P91_PREVPG:'And I am passing values as follows:
    {noformat}
    '#KEY#,'#NUM#','9' ELSE null
    END Attachment
    from tableA
    {noformat}
    But, I am not able to figure out correct sysntax to pass these column values. Can anyone give me some help. I appreciate it.
    rgds,
    Suma.
    Edited by: sumak on Jun 23, 2009 12:11 PM
    Edited by: sumak on Jun 23, 2009 12:22 PM

    Suma,
    If you're trying to generate a column with a URL, try something like the following:
    select key, num,
    case when Attachmentcnt(KEY) != 0 then
    'f?p=&APP_ID.:91:&SESSION.:'' '':NO::P91_KEY,P91NUM,P91_PREVPG:'
    || tableA.key || ',' || tableA.num || ',' || :P91_PREVPG
    else NULL
    end
    FROM tableA;
    But the best way to pass these would include checksum values against the values of your parameters (to make sure a user doesn't hack them). You'll need to check the Apex User manual for details - See "Understanding Session State Protection".
    Good luck,
    Stew

Maybe you are looking for

  • Ipod resets during sync

    I can't get a good sync with my 5g 30gb. while syncing, it will automatically reset itself. I've tried a repair with copy trans doctor and it does the same thing, so the operation will not finish.

  • How to see the battery usage

    how to see the battery usage? my unit is iPod touch 5 generation. Message was edited by: CatrinaRD_16

  • Welcome to the Technology-General Discussion

    Welcome to the EBS Technology General Discussion Forum. This is a forum to discuss the latest in the world of EBS Technolgy; Listen to your ideas and share them all. Specific forums for subtopics on R12/ 11i/ LCM/ SOA are already active. Hopefully th

  • Colors Don't Match

    When i print a color picture from iphoto or from Photoshop CS3 the colors dont match. Am i only supposed to use color lok paper? I'm using HP Premium Plus Glossy paper. My software is up to date and I did a verify and repair in the color sync utility

  • Oracle Apps 11i under Win 2000/NT

    I'm having some problems installation 11i with rapid install. I'm trying to install the visions demo but can't seem to get it right. The following are the things that I did. 1. Fresh install of Windows (2000 twice and NT server once, both without IIS