Displaying a total sum value in the af:table - footer

Hello everyone,
I have seen various threads on how to calculate a summary column based on a af:column in an af:table. I would like the value of this column to be displayed in the af:table -> footer (right undernead the af:column)
I'm having trouble putting together the pieces. This is the last requirement I have on this page, so hopefully I won't have to start all over.
Here this what I have:
I have created my page. (jspx) I did not create the page with a "backing bean". I have seen in various threads that the backing bean can be used to programmatically populate the table.
This is what I have done so far.
For the DataModel:
I have created my entity object, and I have a view assigned to the object. I assigned the view to my Application Module.
For the UserInterface:
On the layout, I dragged the instance of the view from the page definition. I created an af:table.
My questions/train of thought are:
I didn't create a "backing bean" when I first created my jspx page. From the various threads that I have seen, they all reference this. Can anyone explain how I can do this when the page has already been created? I'm using jdev version 10.1.3.3
Within the backing bean, I assume this is where I would then create a method that would do the "sum" of my column.
To display the column:
I would then create an af:output_text and drag it to theh table footer. The binding section
If anyone has a prior thread that I haven't found that can point me in the right direction with what I already I would really appreciate it.
Thanks

Kuba,
By creating a managed bean against the page definition, you are able to access the "iterator". The iterator is an object that is based off of hte View object (which the page is build off of)... From there, you can then loop through the rows and add them together to come up with the total sum.
You can then reference this method in the TEST.java class since it was created as a managed bean.
I believe I got the gist of it now... Coming from an Oracle Forms perspecitive, it is actually pretty similar. Now I understand what Managed Beans are used for. Thanks again for the great example.
Danny

Similar Messages

  • To display drill down values in the same table

    Dear Friends,
        Suppose if you apply drill down on one object, it wont appear upper level values of that perticular object. If you want to display all levels of values in the same report during drill down.

    From your view I belive that currently you have a structure in Rows containing Shipping and Sales for Current and Last year. Moreover, you have Year in the column and that is the reason you are getting the numbers in two different columns.
    My suggestion is like this, remove the KFs from the selection of the structure and keep the name of each of the elements as it is. Remove Year from the Column and include them into selections of the structure elements.
    Add the KFs, shipping and Sales into COlumns. Now as you already have restrictions into your selection, your numbers will be restricted in the output, but again here you will have Shipping coming in one column and Sales will be another column.
    But you have above mentioned structure, you can include the cell refercing into the query. Overwrite the value of cells at the intersection (Shipping / Current Year) or (Shipping / Last Year) with the adjustant cells which will be (Sales / Current Year) and (Sales / Last Year).
    ______________________Shipping_____Sales
    Shipping (Current Year)______1000
    Sales (Current Year)__________________1000
    Shipping (Last Yera)_________2000
    Sales (Last Year)_____________________5000
    After you apply cell referencing, 1000 and 5000 sales will be filled in the empty cells next of shipping next to sales.
    - Danny

  • Using two cursors, one for updating salary values in the emp table

    Using COPIES of the employee and department tables provided by Oracle or using similar taples that provide employee, salary, job and dept in one table and dept number and department name in another table, write the following program. Use the dept table to step through sequentially and bring up the records with the same department from the employee table. Using an IF statement calcuate a new salary based on the job (you decide on the criteria). Update each record on the employee file (this is why you should use copies) with the new salary. In addition, calculate the total salary for each department and create a new table with the department number, the department name and the salary.
    I'm able to update the salary values, but I'm not sure how to insert those updated values into an empty table the way this problem is asking me to.
    Here's my script so far: any help would be greatly appreciated: )
    declare
    v_deptno emp.deptno%type;
    v_job emp.job%type;
    v_sal emp.sal%type;
    v_dname dept.dname%type;
    v_deptsal totalsal.deptsal%type;
    cursor salup_c is
    select job,sal
    from emp,dept
    where emp.deptno = dept.deptno
    for update of sal;
    cursor totdeptsal_c is
    select dname,sal
    from emp,dept
    where emp.deptno = dept.deptno;
    Begin
    open salup_c;
    loop
    fetch salup_c into v_job,v_sal;
    exit when salup_c%notfound;
    if v_job = 'CLERK' then
    v_sal := v_sal + 10;
    else
    if v_job = 'ANALYST' then
    v_sal := v_sal + 20;
    else
    if v_job = 'MANAGER' then
    v_sal := v_sal + 30;
    else
    if v_job = 'PRESIDENT' then
    v_sal := v_sal + 40;
    else v_sal := v_sal + 50;
    end if;
    end if;
    end if;
    end if;
    update emp
    set sal = v_sal
    where current of salup_c;
    open totdeptsal_c;
    v_deptsal := 0;
    loop
    fetch totdeptsal_c into v_dname, v_deptsal;
    exit when totdeptsal_c%notfound;
    v_deptsal := v_deptsal + v_sal;
    insert into totalsal
    values(v_deptno,v_dname,v_deptsal);
    end loop;
    close totdeptsal_c;
    end loop;
    close salup_c;
    end;
    /

    The script is actually inserting some values into the new table but look at what I'm getting
    Here it is: i only want the dept number ,the dept name, and total salary for each department.
    SQL> @ sndprob;
    PL/SQL procedure successfully completed.
    SQL> select * from totalsal;
    DEPTNO DNAME DEPTSAL
    RESEARCH 1620
    SALES 2410
    SALES 2060
    RESEARCH 3785
    SALES 2060
    SALES 3660
    ACCOUNTING 3260
    RESEARCH 3810
    ACCOUNTING 5810
    SALES 2310
    RESEARCH 1910
    DEPTNO DNAME DEPTSAL
    SALES 1760
    RESEARCH 3810
    ACCOUNTING 2110
    RESEARCH 2460
    SALES 3300
    SALES 2900
    RESEARCH 4625
    SALES 2900
    SALES 4500
    ACCOUNTING 4100
    RESEARCH 4650
    DEPTNO DNAME DEPTSAL
    ACCOUNTING 6650
    SALES 3150
    RESEARCH 2750
    SALES 2600
    RESEARCH 4650
    ACCOUNTING 2950
    RESEARCH 2110
    SALES 2950
    SALES 2600
    RESEARCH 4275
    SALES 2550
    DEPTNO DNAME DEPTSAL
    SALES 4150
    ACCOUNTING 3750
    RESEARCH 4300
    ACCOUNTING 6300
    SALES 2800
    RESEARCH 2400
    SALES 2250
    RESEARCH 4300
    ACCOUNTING 2600
    RESEARCH 3815
    SALES 4655
    DEPTNO DNAME DEPTSAL
    SALES 4305
    RESEARCH 6010
    SALES 4255
    SALES 5855
    ACCOUNTING 5455
    RESEARCH 6005
    ACCOUNTING 8005
    SALES 4505
    RESEARCH 4105
    SALES 3955
    RESEARCH 6005
    DEPTNO DNAME DEPTSAL
    ACCOUNTING 4305
    RESEARCH 2110
    SALES 2950
    SALES 2600
    RESEARCH 4305
    SALES 2600
    SALES 4150
    ACCOUNTING 3750
    RESEARCH 4300
    ACCOUNTING 6300
    SALES 2800
    DEPTNO DNAME DEPTSAL
    RESEARCH 2400
    SALES 2250
    RESEARCH 4300
    ACCOUNTING 2600
    RESEARCH 3690
    SALES 4530
    SALES 4180
    RESEARCH 5885
    SALES 4180
    SALES 5760
    ACCOUNTING 5330
    DEPTNO DNAME DEPTSAL
    RESEARCH 5880
    ACCOUNTING 7880
    SALES 4380
    RESEARCH 3980
    SALES 3830
    RESEARCH 5880
    ACCOUNTING 4180
    RESEARCH 3290
    SALES 4130
    SALES 3780
    RESEARCH 5485
    DEPTNO DNAME DEPTSAL
    SALES 3780
    SALES 5360
    ACCOUNTING 4960
    RESEARCH 5480
    ACCOUNTING 7480
    SALES 3980
    RESEARCH 3580
    SALES 3430
    RESEARCH 5480
    ACCOUNTING 3780
    RESEARCH 3830
    DEPTNO DNAME DEPTSAL
    SALES 4670
    SALES 4320
    RESEARCH 6025
    SALES 4320
    SALES 5900
    ACCOUNTING 5500
    RESEARCH 6040
    ACCOUNTING 8020
    SALES 4520
    RESEARCH 4120
    SALES 3970
    DEPTNO DNAME DEPTSAL
    RESEARCH 6020
    ACCOUNTING 4320
    RESEARCH 5850
    SALES 6690
    SALES 6340
    RESEARCH 8045
    SALES 6340
    SALES 7920
    ACCOUNTING 7520
    RESEARCH 8060
    ACCOUNTING 10080
    DEPTNO DNAME DEPTSAL
    SALES 6540
    RESEARCH 6140
    SALES 5990
    RESEARCH 8040
    ACCOUNTING 6340
    RESEARCH 2360
    SALES 3200
    SALES 2850
    RESEARCH 4555
    SALES 2850
    SALES 4430
    DEPTNO DNAME DEPTSAL
    ACCOUNTING 4030
    RESEARCH 4570
    ACCOUNTING 6590
    SALES 3100
    RESEARCH 2650
    SALES 2500
    RESEARCH 4550
    ACCOUNTING 2850
    RESEARCH 1920
    SALES 2760
    SALES 2410
    DEPTNO DNAME DEPTSAL
    RESEARCH 4115
    SALES 2410
    SALES 3990
    ACCOUNTING 3590
    RESEARCH 4130
    ACCOUNTING 6150
    SALES 2660
    RESEARCH 2220
    SALES 2060
    RESEARCH 4110
    ACCOUNTING 2410
    DEPTNO DNAME DEPTSAL
    RESEARCH 1770
    SALES 2610
    SALES 2260
    RESEARCH 3965
    SALES 2260
    SALES 3840
    ACCOUNTING 3440
    RESEARCH 3980
    ACCOUNTING 6000
    SALES 2510
    RESEARCH 2070
    DEPTNO DNAME DEPTSAL
    SALES 1920
    RESEARCH 3960
    ACCOUNTING 2260
    RESEARCH 3830
    SALES 4670
    SALES 4320
    RESEARCH 6025
    SALES 4320
    SALES 5900
    ACCOUNTING 5500
    RESEARCH 6040
    DEPTNO DNAME DEPTSAL
    ACCOUNTING 8060
    SALES 4570
    RESEARCH 4130
    SALES 3980
    RESEARCH 6040
    ACCOUNTING 4320
    RESEARCH 2120
    SALES 2960
    SALES 2610
    RESEARCH 4315
    SALES 2610
    DEPTNO DNAME DEPTSAL
    SALES 4190
    ACCOUNTING 3790
    RESEARCH 4330
    ACCOUNTING 6350
    SALES 2860
    RESEARCH 2420
    SALES 2270
    RESEARCH 4330
    ACCOUNTING 2620
    196 rows selected.

  • How to add field value to the standard table

    Hi,
    How to add field value to the standard table?
    for example:
    when we go to TCODE SE16-> VBAK table -> on the selection screen if we press F4 against VBTYP we get all the available values for that field. How to add a new document Category value to this field so that it shows up in F4 help for that field.

    Hi Asif,
    I don't think it is possible and feasible for adding new field value to the field VBTYP because it is not possible through SPRO.
    If u see the domain of this field VBTYP we have fixed values provided by SAP. There is no value table for this. If u have value table then it will be updated through SPRO. But still if u really want to add some value u can do that by getting access key and add the value in the fixed values of the domain. But of no use other than simply displaying in F4. Because for what ever value u created here there will be no documents in VBAK or any table using this domain.
    Hope this is clear for u.
    Thanks,
    Vinod.

  • Display master data without data in the fact table

    Characteristic 0PROJECT
    Attribute Price
    I want to show in the query all the prices including the projects that don't have registers in the fact table.
    How do I do this?
    Tnks.

    I believe you are describing what SAP referes to as the Slow Moving Item scenario.  Search SDN using that phrase and you'll get hits on documents and  Notes that talk more about this.  Here's something from an old How To
    Slow Moving Item Scenario
    You want to define a query that displays all products that have been purchased only
    infrequently or not at all. In other words, the query is also display characteristic values for
    which no transaction data or only low values exist for the selected period.
    Procedure
    In the Administrator Workbench;
    1. Create a MultiProvider consisting of a revenue InfoCube, containing the InfoObject
    Material (0MATERIAL), and the InfoObject 0MATERIAL. The InfoObject must be set as
    an InfoProvider in InfoObject maintenance. In other words, you need to have assigned
    the InfoObject to an InfoArea. (also refer to Tab Page: Master Data/texts [Ext.]).
    In the BEx Analyzer:
    2. Select your MultiProvider in the Query Designer.
    3. Define a query that contains the InfoObject 1ROWCOUNT in the columns.
    The InfoObject 1ROWCOUNT is contained in all “flat” InfoProviders, that is, in all
    InfoObjects and ODS objects. It counts the number of records in the InfoProvider.
    In this scenario, you can see from the row number display whether or nor values
    from the InfoProvider InfoObject are really displayed.
    4. Save the query and execute it. All values are now displayed, including those for materials
    that were not purchased.
    If you filter by time (0CALYEAR, for example), values from the InfoProvider
    InfoObjects are not displayed since 0CALYEAR is not an attribute of
    0MATERIAL. You can see this from the absence of values in the 1ROWCOUNT
    column in the query. If you want to restrict by time, you need to proceed as
    follows:
    Constant Selection for the InfoObject
    You need to set the constant selection for the 1ROWCOUNT key figure in order to be able to
    set a filter by time in this query.
    1. In the Query Designer, via the context menu for 1ROWCOUNT, choose Edit.
    2. On the left hand half of the screen, under the data package dimension, select the
    characteristic InfoProvider (0INFOPROV) and drag it into the right-hand screen area.
    3. From the context menu for the InfoProvider, choose Restrict, and restrict across the
    InfoProvider InfoObject.
    4. Also from the context menu for the InfoProvider, choose the function Constant Selection.
    5. Save the query and execute it. You can now also set a filter for a time characteristic, the
    materials display remains as it was.
    Displaying Slow Moving Items
    SAP Online Help 05.11.02
    MultiProviders 3.0B, Support Package 07 10
    If you want to display a list of slow moving items, excluding products that are selling well, you
    need to proceed as follows:
    1. In the Query Designer, via the context menu for 1ROWCOUNT, choose Edit.
    2. Via the context menu for InfoProvider, choose the function Display Empty Values. Also
    select Constant Selection.
    3. Save the query and execute it. The result is that the system displays the materials for
    which there was no revenue.
    Displaying Products with Small Revenues
    If you want to display a list of products that have not been sold or have only been selling
    badly, you need to proceed as follows:
    1. Set constant selection as described above, but do not select the display empty values
    function.
    2. In the Query Designer, define a condition for the 0MATERIAL InfoObject. Specify a value
    that is to be the upper limit for a bad sale.
    3. Save the query and execute it. The result is that the system displays all materials that
    have not been sold or have been selling badly.

  • Filtering  Unique values in the Hash table

    Hi Friends,
    Could you please tell me I want to Filtering the values in the Hash table.The Values are our own objects.
    E.G
    class Emp
    private String EmpID=null;
    public void setEmpId(String Id)
    EmpId=id;
    public void getEmpId()
    return this.EmpId;
    public static void main(String[] args)
    Hashtable hastab=new Hashtable();
    Emp e1=new Emp();
    e1.setEmpId("A");
    Emp e2=new Emp();
    e2.setEmpId("B");
    Emp e3=new Emp();
    e3.setEmpId("A");
    Emp e4=new Emp();
    e4.setEmpId("C");
    Emp e5=new Emp();
    e5.setEmpId("A");
    hastab.put("1",e1);
    hastab.put("2",e2);
    hastab.put("3",e3);
    hastab.put("4",e4);
    hastab.put("5",e5);
    I want to filter the duplicate values in the Hashtable.
    Thanks in Advance
    Rajesh Kannan

    Could you please tell me how i will Filter duplicate
    valus inside the objectI'm sorry, but I can't read the future.

  • Incorrect value in the dynamic table.

    Hii,
          I am new to abap, i wrote a program which is showing dump  " Incorrect value in the dynamic table." .
       Error in the ABAP Application Program
       The current ABAP program "SAPLKKBL" had to be terminated because it  come across a statement that unfortunately cannot be executed.
    pls help me to solve this issue.
    REPORT  zBLOCKED_ALV.
    *tables: ekko,ekpo.
    type-pools slis.
    parameters porder like ekko-ebeln.
    data:  i_ekko type   table of ekko,
              i_ekpo type   table of ekpo,
             fieldcat type slis_t_fieldcat_alv,
             keyinfo type slis_keyinfo_alv.
      clear keyinfo.
      keyinfo-header01 = 'ebeln'.
      yinfo-item01 = 'ebeln'.
    select * from ekko into table i_ekko where ebeln = porder.
      select * from ekpo into table i_ekpo for all entries in i_ekko
        where ebeln = i_ekko-ebeln.
        CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
          EXPORTING
            I_PROGRAM_NAME               = sy-cprog
            I_INTERNAL_TABNAME           = 'i_ekko'
            I_STRUCTURE_NAME             = 'ekko'
          CHANGING
            CT_FIELDCAT                  = fieldcat.
    refresh fieldcat.
        CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
          EXPORTING
            I_PROGRAM_NAME               = sy-cprog
            I_INTERNAL_TABNAME           = 'i_ekpo'
            I_STRUCTURE_NAME             = 'ekpo'
          CHANGING
            CT_FIELDCAT                  = fieldcat.
    CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY'
      EXPORTING
        I_CALLBACK_PROGRAM             = sy-cprog
        IT_FIELDCAT                    = fieldcat
        I_TABNAME_HEADER               = 'i_ekko'
        I_TABNAME_ITEM                 = 'i_ekpo'
        IS_KEYINFO                     = keyinfo
      TABLES
        T_OUTTAB_HEADER                = i_ekko
        T_OUTTAB_ITEM                  = i_ekpo.

    Hi,
    You have to pass 'EKKO' and 'EKPO' i.e in caps to the exporting parameter I_STRUCTURE_NAME of the function module
    'REUSE_ALV_FIELDCATALOG_MERGE'.
    I think this would work, if not pls let me know.
    Thanks,
    Radhika

  • How to calculate the total sum value of a particular field that repeats

    Hi All,
    I have the following Req...File----Idoc Scenario
    In the Inbound xml file i will get the Sales Order details with suppose 10 line items( 10 Orders)
    Each line item represents one one SO. So totally i wil have 10 Sales Orders in this file.
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_Sales_Order xmlns:ns0="http://sap/Sales_Order">
       <Header>
          <COMP_CODE></COMP_CODE>
          <DOC_TYPE></DOC_TYPE>
           <SUPPL_VEND></SUPPL_VEND>
       </Header>
       <Item>
          <ITEM></ITEM>
          <MATERIAL></MATERIAL>
          <PLANT></PLANT>
          <QUANTITY></QUANTITY>
          <Amount></Amount> 
    </Item>
    In the above structure Item Segment will repeats as many no. of Sales Orders comes in a file.
    In a file if there are 10 Orders means the Item segment wil repeats 10 times.
    I have the Amount field in the Item Segment, each and every time that needs to be added to next Amount value that presents in the next Line Item.
    Finally i will have the Another separate field caled Grand Total, and i have to get the total summation of the 10 values of the Amount field at last.
    Can we achieve this using UDF or is there any way to do this
    REgards

    Hi,
    Do like this, actually in your case sum is taking place before the condition check for discount type
    do a little change in mapping
    DiscntType--removeContext--
                                              EqulsS-------IfWithoutElse----Amount---removecontext--then---SUM-
    Connstatnt(Value)
    --->GrandAmount
    Krishna, Check the same question asked by Rajesh in thread Calculate totals of segments that occur multiple times
    Thanks!

  • How to access/display custom pricing condition values in the webshop (eg. o

    Hello,
    we are using B2B with IPC-pricing, using our own pricing conditions. Calculation of the prices works fine (can be verified when enabling the price analysis link).
    Now we need to show some of these own pricing condition's values (not the ones available in the salesdocument header/item like getNetValue, getTaxValue,..) in the shopping basket (order.jsp).
    How can we achieve this (eg. get the IPC to transfer these values back to the shop or read them somewhere)?
    Thanks for any hint
    Kind regards,
    Manuel

    Hi all,
    We've found the solution according to the post from Rajinikanth G and Sateesh Chandra (http://scn.sap.com/thread/2046477). That will work (return any pricing information/details like custom pricing conditions, subtotal1 - 6 etc. as in pricing analysis) for order.jsp (display shopping basket), order_change.jsp and orderstatusdetail.jsp (display order), but not for confirm.jsp (order confirmation / print order).
    <%@ page import="com.sap.isa.businessobject.header.HeaderSalesDocument" %>
    <%@ page import="com.sap.isa.businessobject.ipc.IPCBOManager" %>
    <%@ page import="com.sap.isa.core.UserSessionData" %>
    <%@ page import="com.sap.spc.remote.client.object.IPCClient" %>
    <%@ page import="com.sap.spc.remote.client.object.IPCDocument" %>
    <%@ page import="com.sap.spc.remote.client.object.IPCException" %>
    <%@ page import="com.sap.spc.remote.client.object.IPCItem" %>
    <%@ page import="com.sap.spc.remote.client.object.IPCPricingCondition" %>
    <%@ page import="com.sap.spc.remote.client.object.IPCPricingConditionSet" %>
    <%
       String priHdrCondTxt = "";
       String priItmCondTxt = ""; 
       HeaderSalesDocument hsDoc = ui.header;
       UserSessionData usd = UserSessionData.getUserSessionData(request.getSession());
       IPCBOManager ibom = (IPCBOManager) usd.getBOM(IPCBOManager.NAME);      
       IPCClient ipcClient= ibom.getIPCClient();
       if (ipcClient == null)
           ipcClient = ibom.createIPCClientUsingConnection(hsDoc.getIpcConnectionKey());
       ipcClient.getIPCSession().setCacheDirty(); // important to get the correct data
       ipcClient.getIPCSession().syncWithServer(); // important to get the correct data
       IPCDocument ipcDocument = ipcClient.getIPCDocument(hsDoc.getIpcDocumentId().getIdAsString()); //getIpcDocumentId: null without setCacheDirty and syncWithServer
       try{
           // Header
           priHdrCondTxt += "<br>------HEADER--------";
           IPCPricingConditionSet hPriCondSet = ipcDocument.getPricingConditions();
           IPCPricingCondition[] hPriCond = hPriCondSet.getPricingConditions();
           for(int i=0; i<hPriCond.length; i++)
               priHdrCondTxt += hPriCond[i].getConditionTypeName() + "(" + hPriCond[i].getDescription() + ")" + hPriCond[i].getConditionValue() + " //<br>";
           //Item
           IPCItem[] ipcItems = ipcDocument.getItems();
           for(int i=0; i<ipcItems.length; i++)
               priItmCondTxt += "<br>------ITEM--------";
               IPCPricingConditionSet iPriCondSet = ipcItems[i].getPricingConditions();
               IPCPricingCondition[] iPriCond = iPriCondSet.getPricingConditions();
               for(int x=0; x<iPriCond.length; x++)
                   priItmCondTxt += iPriCond[x].getConditionTypeName() + "(" + iPriCond[x].getDescription() + ")" + iPriCond[x].getConditionValue() + " //<br>";
       }catch(IPCException e) {
       %>
       <%=priHdrCondTxt%><br>
       <%=priItmCondTxt%>
    In confirm.jsp there is no IPC-document available (<HeaderSalesDoc>.getIpcDocumentId()/getIpcConnectionKey() are null). Also BOM -> getBasket()/getOrder()/getCustomerOrder()/getQuotation() are empty. Here we've transferred the necessary pricing informations from basket to confirmation through the UserSessionData.
    Set data in order.jsp:
    <%
       String itemId = "Item-" + item.getProductId() + "SomeValue";
       HashMap pricesForConfirm = new HashMap();
       pricesForConfirm.put("Header-SomeValue", "Val1");
       pricesForConfirm.put(itemId, "Val2");
       UserSessionData usd = UserSessionData.getUserSessionData(request.getSession());
       usd.setAttribute("pricesForConfirm", pricesForConfirm);
    %>
    Show data in confirm.jsp:
    <%
    String itemId = "Item-" + item.getProductId() + "SomeValue";
    UserSessionData usd = UserSessionData.getUserSessionData(request.getSession());
    HashMap pricesForConfirm = (HashMap) usd.getAttribute("pricesForConfirm");
    s2 += pricesForConfirm.get("Header-SomeValue");
    s2 += pricesForConfirm.get(itemId);
    %>
    That whole solution does work fine also when pricing analysis is disabled in XCM. (Note that we've enabled "doItemCalls" in backendobject-config.xml according to note https://service.sap.com/sap/support/notes/1004533, but we did not use the ExtensionData-mechanism to transfer data from/to ABAP, because that would need changes on ABAP- (to fetch and fill) and Java-side (to read and display) and because we could not find/access relevant pricing information from IPC at the time the BAdI is called. Also the BAdI CRM_ISA_HDR_PRICING mentioned in the note does apply for the web catalog. We've used that to give IPC more information to calculate the netValue using additional pricing conditions for the catalog.)
    We've also implemented note https://service.sap.com/sap/support/notes/892761 to show a different price (eg. grossValue) in the mini basket (total items and price in basket).
    If there's a need to display a different price in the catalog, there note https://service.sap.com/sap/support/notes/1022962 could be implemented.

  • Poplist and displaying corresponding values from the database table

    Hi
    I have a poplist in a control block, the values of which are populated using a procedure. This is called in when-new-form-instance.
    This part works fine and values are filled in the poplist when form is opened..
    The datablock is based on a view. 3 columns from the view are selected to be displayed.
    Also the databock is filled with all values (for selected columns)
    Now when the poplist value is changed, I need the values in the datablock to be changed as well, but this is not happening.
    In my when-list-changed trigger, I have:
    go_block('datablock');
    execute_query;Please tell , where and what should I add to display the datablock values as per the poplist value.
    i.e, something like,
    select col1,col2,col3 from <view> where col4 =:control.col4
    Note:I tried in the where clause property of the block, but then nothing is displayed in the datablock
    Thanks

    This does not work , either..
    Before, when I changed the values from the list, it was still displaying same data on datablock always(all records)
    Now when I give this code,data is displayed in datablock only once(first time when the form opens)
    I have defined the Query data source type property on data block as "Table" but infact this datablock is based on a view..is this correct?
    Anything else I could try?

  • Can we Sum the Values in the Qualified table Fields??

    Hi All,
    I have a requirement where..Each material has multiple UOM's, So designed it as Qualified Table.
    UOM is a Qualified table.
    UOM Type is NON Qualifier.
    Weight Qualifier - Integer field
    Length Qualifier - Integer Field
    Now in main table there  is a field called Net Weight.
    I need to write a validation which checks Whether Sum of ''Weight'' in Qualfied table is Equal to ''Net Weight'' for that record.
    So if there are 5 UOM for 1 material, then the validation should check whetehr the Sum of all 5 Weights in QT is equal to ''Net Weight''  Field in Main table!!!
    Did anyone faced a similar issue, If yes How did you solve it!!
    Please Help!!
    KR
    John

    Hi John,
    Try this:-
    Net Weight = SUM(UOM.Weight)
    Here SUM is the standard function thats u need to select from list of functions.
    Please let us know if it works..
    Thanks,
    Mahi

  • To sum values in a internal table

    hi
    iam using below loop
       Loop at it_table.
       At end of amount.
       sum.
       endat.
       At end of field2.
       sum.
       endat.
       endloop.
    my purpose is to sum all values of the table field1 and field2 and use it to display please let me know how to do it
    regards
    arora

    Hi Arora,
    SUM in control break command will hold sum of the variable you will mention with control command. If you want to add sum of two variables then add totals of each SUM varaible.
    Check the below code.
    V_FIELD1_SUM
    V_FIELD2_SUM
    V_TOTAL_SUM
    Loop at it_table.
    At LAST amount.
    sum.
    WRITE IT_TABLE-amount TO V_FIELD1_SUM.
    endat.
    At LAST field2.
    sum.
    WRITE IT_TABLE-field2 TO V_FIELD2_SUM.
    endat.
    endloop.
    V_TOTAL_SUM = V_FIELD1_SUM + V_FIELD2_SUM.
    WRITE:/ V_FIELD1_SUM,V_FIELD2_SUM,V_TOTAL_SUM
    Thanks,
    Vinay

  • Using the values in the Nested table container

    Hi All,
    I have a requirement where the values present in the nested table container should be used in the item text(send mail step).
    I have tried using like &req.itemtab.att [ 10 ]& as i want to display 10 element in the table att which is nested in table itemtab. Still its not working.
    provide solution how to use valued in nested tables.
    Thanks,
    Preethi.

    I really doubt , wheter you will be able to use the syntaxt which you have mentioned here.
    Another thing I could not get which have mentioned as atts 10 ??
    Earlier I was under assumption that your multiline element has only one field.
    however in your case , I think you should put a logic in workflow and separate the date values in multiline container element, and then use this container element directly in mail step.
    Regds,
    Akshay
    Edited by: Akshay Bhagwat on Feb 7, 2008 10:53 AM

  • Change a field value in the  database table

    Hi,
    GB01 is the database table.
    GB01-BOOLCLASS = 009
    GB01-CLASSTYPE = S
    GB01-BCLTAB = BSEG.
    GB01-BCLFIELD = GSBER.
    Upon input of above details,  will get table Record as
    BOOLCLASS    9    
    CLASSTYPE    S    
    BCLTAB       BSEG 
    BCLFIELD     GSBER
    BEXCLUDE     X   
    In the record, the field GB01-BEXCLUDE has the value “X” in it. It should be replaced by value “=.”
    Changes should be made ONLY for this record. Other Records should not be touched.
    How can we do this. Help me in doing this.
    Thanks,
    Ramya.

    Hi Ramya,
    Follow these steps :
    1. Goto the table GB01 -> Display its contents.
    2. Double click the record which you want to edit.
    3. Type /h (where you type transaction code) to go to debugging mode for that record.(Press enter twice to goto debugging mode)
    4. Click on Field CODE and give it value EDIT and then click on the PENCIL icon besides it.
    5. Now click on SAVE.
    6. Switch off the Debugging mode now.
    7. Now you can see your selected record in EDITABLE mode.
    8. Do the EDIT part and SAVE.
    Reward with points if helpful.
    Regards
    Hemant Khemani

  • Transferring checkbox values on ALV to value in the internal table?

    Hi,
    I'm using an ALV grid (CL_GUI_ALV_GRID) to display an internal table.  I want users to be able to select one or many rows and those checked lines to be marked as X in my internal table.  I have a field, check(1), in my internal table displayed on the ALV, but when I tick one line on the ALV and debug, I don't see an X in the check field on that line in my internal table.
    I've successfully written code to select and deselect all lines and those values copy back to my internal table so why don't the single lines?
    CASE sy-ucomm.
        WHEN 'SELECT_ALL'.
    *   select all lines
          LOOP AT tbl_data INTO wa_data.
            MOVE 'X' TO wa_data-check.
            MODIFY tbl_data FROM wa_data.
          ENDLOOP.
        WHEN 'DESELECT'.
    *   deselect all lines
          LOOP AT tbl_data INTO wa_data.
            CLEAR wa_data-check.
            MODIFY tbl_data FROM wa_data.
          ENDLOOP.
    ENDCASE.
    Do I have to add some code in the PAI to transfer the values?
    Any suggestions welcome,
    Gill

    Yes, I have.
    The checkbox is appearing on the screen and is populated/cleared when I click the select/deselect buttons (this transfers the values in my internal table to the screen).  But when I just tick one line and then debug that line isn't showing as having X in the check field in my internal table.
    Somehow I need to transfer the tick values on screen to my internal table.

Maybe you are looking for