Query regarding row level calculations in Bex

I have a scenario where I am creating a report on a multiprovider. This multiprovider is based on General Ledger and Profit Center Accounting cube. The PCA cube has accumulated balances at G/L account and profit center level, and GL cube has balances only at General Ledger account level.So when a report is created on this the data displayed looks like:
Account Profit Center Balance
1000             1234            100000  - From PCA cube
1000              2345            200000  - From PCA cube
1000              Not assigned 400000 - From GL cube
There are some cases where the total balance at G/L account level does not match both the cubes ( as in the above example, as per PCA, balance for G/L account 1000 is 300000 whereas as per GL cube, balance at G/L account 1000 level is 400000.)
Hence we require a separate row showing this difference ( not column)
Therefore actual output required for the above scenario is:
Account Profit Center Balance
1000             1234            100000 
1000              2345            200000 
1000              DIFFERENCE           100000 - (400000 - sum of above 2 balances)
Total                                 400000
It would be very helpful if anyone can give inputs on how this can be achieved.

Have you considered Virtual Key figure. This will allow you to do such complex calculations.
Thanks
Sharan

Similar Messages

  • Query regarding the variance calculation

    Hi all,
    Hope all are doing well. i have an query regarding the VARIANCE CALCULATION IN Production planning module.
    here i could see KKS1,KKS2,KKA1 etc,. codes they are using in sap. can any one kindly clarify these codes and uses. pls
    regs,
    siva-v

    Hi Siva,
    To understand the basics of variance calculation in SAP, read below threads which will provide detail information on the same,
    Basics of variance calculation-Understanding Period End activities, WIP and Variances
    Variance Calculation -KKS1
    How production order variance get calculated
    Regards,
    Narresh

  • Row level calculation

    hi SAP kings
    I created one udf in row level.its contain the different data in each row.i create the another one filed in title part the title part have a value of division of row level value.how can i write the query for this ticket

    Hello Lakshmi Narayanan,
    When you are on the module, the row level values of one row cannot be accessed in another.
    Example: If you want row 1 UDF value divided by row 2 UDF value, it will not be possible.
    I also believe you want to copy the result to the header level UDF and again from within the module this would not be possible.
    There is the option of using the SBO_SP_TransactionNotification stored procedure to make the calculation and update UDF's.
    Let me know
    Suda

  • Query regarding row in ALV

    Hi all,
            Please clarify this query of mine in alv.
    I am displaying an output in ALV format which has 10 rows.
    I want to add a eleventh row to the above output .
    The eleventh row must contain the sum of the above 10 rows .
    Please guide me how to achieve this.
    Kindly reply as fast as possible.
    Regards,
    Vijay

    Hi,
    see following code :
    REPORT ZALVTEST1 .
    TYPE-POOLS: SLIS.
    Data: v_temp type p decimals 2.
    Data: v_f1_sum type i,
    v_f2_sum type i.
    dATA: BEGIN OF struct_customer,
    CUSTOMER LIKE KNA1-KUNNR,
    FIELD1 TYPE I,
    FIELD2 TYPE I,
    field3 type i,
    END OF struct_customer.
    DATA: I_LAYOUT TYPE SLIS_LAYOUT_ALV,
    I_FIELDTAB TYPE SLIS_T_FIELDCAT_ALV,
    I_HEADING TYPE SLIS_T_LISTHEADER,
    I_EVENTS TYPE SLIS_T_EVENT.
    DATA: RS_SORT TYPE SLIS_T_SORTINFO_ALV.
    DATA: V_CUST TYPE KNA1-KUNNR.
    DATA: BEGIN OF ITAB OCCURS 0,
    CUSTOMER LIKE KNA1-KUNNR,
    FIELD1 TYPE I,
    FIELD2 TYPE I,
    field3 type i,
    END OF ITAB.
    DATA: BEGIN OF ITAB1 OCCURS 0,
    CUSTOMER LIKE KNA1-KUNNR,
    FIELD1 TYPE I,
    FIELD2 TYPE I,
    field3 type i,
    END OF ITAB1.
    DATA: FORMNAME_TOP_OF_PAGE TYPE SLIS_FORMNAME VALUE 'TOP_OF_PAGE'.
    DATA: FORMNAME_SUBTOTAL_TEXT TYPE SLIS_FORMNAME VALUE 'SUBTOTAL_TEXT'.
    DATA: FORMNAME_END_OF_PAGE TYPE SLIS_FORMNAME VALUE 'END_OF_PAGE'.
    DATA: FORMNAME_END_OF_LIST TYPE SLIS_FORMNAME VALUE 'END_OF_LIST'.
    DATA: FORMNAME_AFTER_LINE_OUTPUT TYPE SLIS_FORMNAME VALUE 'LINE_OUTPUT'.
    START-OF-SELECTION.
    PERFORM FILL_ITAB.
    PERFORM FILL_CAT.
    PERFORM SET_SORT.
    PERFORM FILL_EVENT.
    PERFORM DISPLAY_DATA.
    END-OF-SELECTION.
    *& Form FILL_ITAB
    text
    --> p1 text
    <-- p2 text
    FORM FILL_ITAB .
    DATA: L_CTR TYPE I.
    ITAB-CUSTOMER = 1.ITAB-FIELD1 = 1.ITAB-FIELD2 = 2.APPEND ITAB.
    CLEAR ITAB.
    ITAB-CUSTOMER = 2.ITAB-FIELD1 = 3.ITAB-FIELD2 = 4.APPEND ITAB.
    CLEAR ITAB.
    ITAB-CUSTOMER = 3.ITAB-FIELD1 = 2.ITAB-FIELD2 = 5.APPEND ITAB.
    CLEAR ITAB.
    ITAB-CUSTOMER = 4.ITAB-FIELD1 = 1.ITAB-FIELD2 = 10.APPEND ITAB.
    CLEAR ITAB.
    LOOP AT ITAB.
    v_temp = itab-field1 / itab-field2.
    itab-field3 = v_temp * 100.
    modify itab.
    V_f1_sum = v_f1_sum + itab-field1.
    V_f2_sum = v_f2_sum + itab-field2.
    ENDLOOP.
    ENDFORM. " FILL_ITAB
    *& Form FILL_CAT
    text
    --> p1 text
    <-- p2 text
    FORM FILL_CAT .
    DATA: L_FIELDCAT TYPE SLIS_FIELDCAT_ALV.
    CLEAR L_FIELDCAT.
    L_FIELDCAT-COL_POS = 1.
    L_FIELDCAT-TABNAME = 'ITAB'.
    L_FIELDCAT-FIELDNAME = 'CUSTOMER'.
    L_FIELDCAT-REF_TABNAME = 'KNA1'.
    L_FIELDCAT-REF_FIELDNAME = 'KUNNR'.
    L_FIELDCAT-KEY = 'X'.
    APPEND L_FIELDCAT TO I_FIELDTAB.
    CLEAR L_FIELDCAT.
    CLEAR L_FIELDCAT.
    L_FIELDCAT-COL_POS = 3.
    L_FIELDCAT-TABNAME = 'ITAB'.
    L_FIELDCAT-FIELDNAME = 'FIELD1'.
    L_FIELDCAT-DO_SUM = 'X'.
    L_FIELDCAT-No_zero = 'X'.
    L_FIELDCAT-seltext_l ='VALUE1'.
    L_FIELDCAT-seltext_M ='VALUE1'.
    L_FIELDCAT-seltext_S ='VALUE1'.
    L_FIELDCAT-KEY = 'X'.
    APPEND L_FIELDCAT TO I_FIELDTAB.
    CLEAR L_FIELDCAT.
    L_FIELDCAT-COL_POS = 4.
    L_FIELDCAT-TABNAME = 'ITAB'.
    L_FIELDCAT-FIELDNAME = 'FIELD2'.
    L_FIELDCAT-DO_SUM = 'X'.
    L_FIELDCAT-No_zero = 'X'.
    L_FIELDCAT-seltext_l ='VALUE2'.
    L_FIELDCAT-seltext_M ='VALUE2'.
    L_FIELDCAT-seltext_S ='VALUE2'.
    L_FIELDCAT-KEY = 'X'.
    APPEND L_FIELDCAT TO I_FIELDTAB.
    CLEAR L_FIELDCAT.
    L_FIELDCAT-COL_POS = 5.
    L_FIELDCAT-TABNAME = 'ITAB'.
    L_FIELDCAT-FIELDNAME = 'FIELD3'.
    L_FIELDCAT-DO_SUM = 'X'.
    L_FIELDCAT-No_zero = 'X'.
    L_FIELDCAT-seltext_l ='VALUE3'.
    L_FIELDCAT-seltext_M ='VALUE3'.
    L_FIELDCAT-seltext_S ='VALUE3'.
    APPEND L_FIELDCAT TO I_FIELDTAB.
    ENDFORM. " FILL_CAT
    *& Form DISPLAY_DATA
    text
    --> p1 text
    <-- p2 text
    FORM DISPLAY_DATA .
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
    EXPORTING
    I_CALLBACK_PROGRAM = 'ZALVTEST2'
    IS_LAYOUT = I_LAYOUT
    IT_FIELDCAT = I_FIELDTAB
    I_DEFAULT = 'X'
    I_SAVE = ' '
    IT_EVENTS = I_EVENTS[]
    TABLES
    T_OUTTAB = ITAB
    EXCEPTIONS
    PROGRAM_ERROR = 1
    OTHERS = 2
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ENDFORM. " DISPLAY_DATA
    *& Form SET_SORT
    text
    --> p1 text
    <-- p2 text
    FORM SET_SORT .
    I_LAYOUT-ZEBRA = 'X'.
    DATA: LS_SORT TYPE SLIS_SORTINFO_ALV.
    CLEAR LS_SORT.
    LS_SORT-SPOS = 1.
    LS_SORT-FIELDNAME = 'CUSTOMER'.
    LS_SORT-TABNAME = 'ITAB'.
    LS_SORT-UP = 'X'.
    APPEND LS_SORT TO RS_SORT.
    ENDFORM. " SET_SORT
    *& Form FILL_EVENT
    text
    --> p1 text
    <-- p2 text
    FORM FILL_EVENT .
    DATA: L_I_EVENT TYPE SLIS_ALV_EVENT.
    CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
    EXPORTING
    I_LIST_TYPE = 0
    IMPORTING
    ET_EVENTS = I_EVENTS.
    READ TABLE I_EVENTS WITH KEY NAME = SLIS_EV_AFTER_LINE_OUTPUT
    INTO L_I_EVENT.
    IF SY-SUBRC = 0.
    MOVE FORMNAME_AFTER_LINE_OUTPUT TO L_I_EVENT-FORM.
    MODIFY I_EVENTS FROM L_I_EVENT INDEX SY-TABIX.
    ENDIF.
    ENDFORM. " FILL_EVENT
    *& Form AFTER_LINE_OUTPUT
    text
    FORM LINE_OUTPUT using RS_LINEINFO TYPE SLIS_LINEINFO.
    DATA: L_TABIX LIKE SY-TABIX.
    DATA: L_TABIX1 LIKE SY-TABIX.
    data: str_kunnr like struct_customer.
    check RS_LINEINFO-tabindex ne 0.
    L_TABIX = RS_LINEINFO-tabindex.
    read table itab index l_tabix.
    l_tabix1 = RS_LINEINFO-tabindex + 1.
    struct_customer-customer = itab-customer.
    read table itab into str_kunnr index l_tabix1 transporting customer.
    if sy-subrc <> 0.
    v_temp = ( v_f1_sum / v_f2_sum ) * 100.
    uline at (45).
    skip.
    uline at (45).
    write: / sy-vline , 'Total',
    12 sy-vline , (9) v_f1_sum,
    23 sy-vline , (9) v_f2_sum,
    34 sy-vline , (9) v_temp decimals 0,
    45 sy-vline.
    *uline at (46).
    endif.
    ENDFORM. " AFTER_LINE_OUTPUT
    Reward points if helpful.
    Regards.
    Srikanta Gope

  • Query regarding Database Level changes

    Hi
    I am working with a datawarehouse which extracts and populates data overnight across several tables in the reporting layer and across 5 different schemas.
    The source tables of these remain same (which will get data updated each and every day) but the reporting layer tables are built in the trash-and-build mode (because of business reasons) which brings in data say from the year 2000 (from the source) which might NOT be getting changed in the source tables at all.
    These tables population especially causes the jobs to slow down and cause performance issues.
    Is there any way in Oracle to find out if say :-
    Reporting Layer Table :- RPT_TAB
    Source Tables :- S1, S2, S3
    Can we find out if there are any changes to the data of S1,S2,S3 for a period of time say from year 2000 - year 2004 when they are being picked up by the proc which populates RPT_TAB?
    If there is any way, through which we can generally establish which are the tables for which for the above period there are no changes in data then we can archive such data and exclude them from loading into the reporting layer tables every day?
    We are using Oracle 9i and PLSQL to populate all the data in the tables.
    Please help me ASAP.
    Thanks
    Arnab

    Most of the source tables do not have last updated date. But the queries which combine and bring in data to Reporting Layer tables are complex and use lot many tables, sequences, views, etc to load the data. So, that is the reason I was looking for something at the generic Oracle level if it maintains anything for a certain period of time against any given table in the database.
    Thanks
    Arnab

  • Row level security in BI Publisher

    Hi All ,
    I am using BI publisher for reporting on Siebel system.The issue I am facing is regarding row level security.Even if I am logging with Employee Id, when I generate report ,I have acess to all the information of the other employees.
    e.g. If as a cashier I made some entry , when I generate report on collection made by me, its bringing me all the collections made by other cashiers also.
    I am generating these report from siebel side.I am not sure if we can apply the rowlevel security to BI Publisher.
    Does anyone has used Siebel or EBS with BI Publisher and have row level security ? I am also not sure How to see the reports by loging into BI Publisher .If I am using Siebel or EBS, what is going to be my Data Model or Data Set.
    Can anyone help me on this?
    Thanks!!

    Oracle HRMS has its own security built-in to the schemas. Other modules you will need to customize for your own use.

  • Row level security in OBIEE 11g

    Hi guys,
    We have a business intelligence project in OBIEE, and I have a question regarding row level security (RLS).
    Specifically, I have an hierarchical organization with users belonging to different structures. If one user belongs
    to a structure that is above another structure in hierarchy, then he should see both data from his structure and
    the of the users in structures bellow it. In the reports, we must have filters implemented respecting this requirement,
    i.e. if one logs in OBI and accesses the report, he should see in the filter "Users" only subordinate users and respectively
    data displayed in the report should be filtered accordingly. How would you suggest to implements this type of security
    in the data model? And how could I create the type of filter mentioned above?  

    This needs to be implemented in 3 different levels. 1. in database  2. in RPD  3 in reports
    1. You need to have facts or dimensions which have columns through which you can filter based on their hierarchy. e.g position in an organisation or department in the hierarchy table which can be joined to fact.
    2. In rpd you need to create a session variable and initialize it using init block based on the user who is logging in. This variable will be you position or department through which you want to filter based on hierarchy. e.g select position from hierarchy_table where user= 'NQSession(user)' . The resulting position value will be used as a filter.
    3. Add this position variable as a content filter in your LTS in you BMM layer.
    4. You can also use this session variable  as a filter in you reports too.
    hope this helps.
    Senthil

  • How to disable (or) Hide the UDF Field in the Row level through Query

    Hi suda,
    thanks for your reply. i also want to know the formatted search query for the UDF present in the row level, i want to hide that also.so pls msg me the query.
    i have written as N$[item.column.row] but it is not working,so keep me posted if your query that works well.
    Regards
    Magesh.

    Magesh,
    I just saw your other messages...
    Go to Tools > User defined fields > Manage User Fields   --  Under Marketing Documents > Rows  check the field name here.
    Then go the Form itself and Click on Form Settings Icon or Click CTRLSHIFTS or Tools > Form Settings and from the Table format Tab make your changes..
    Good luck
    Suda

  • Row level Tax Calculation

    Hi,
    I have to calculate the row level tax in following query.
    SELECT T0.[DocEntry], T0.[DocNum], T0.[DocDate], T0.[CardCode], T0.[CardName], T0.[NumAtCard], T1.[LineNum], T1.[ItemCode], T1.[Dscription], T1.[Quantity], T1.[LineTotal], T1.[VatSum], T1.[GTotal], T1.[TaxCode],
    (SELECT Sum(TaxSum) FROM INV4 where statype=-90 and stacode='BED10' and DocEntry=T1.DocEntry) as ' ED 10% (Rs.) ',
    (SELECT Sum(TaxSum) FROM INV4 where statype=-60 and DocEntry=T1.DocEntry) as 'Cess 2% (Rs.)',
    (SELECT Sum(TaxSum) FROM INV4 where statype=-55 and DocEntry=T1.DocEntry) as 'HSCess 1% (Rs.)',
    (SELECT Sum(TaxSum) FROM INV4 where statype=4 and stacode='CST2' and DocEntry=T1.DocEntry) as ' CST 2% (Rs.) '
    FROM OINV T0  LEFT JOIN INV1 T1 ON T0.DocEntry = T1.DocEntry LEFT JOIN INV4 T2 ON T0.DocEntry = T2.DocEntry AND T1.LineNum = T2.LineNum WHERE T0.[DocEntry] >=[%0] AND  T0.[DocEntry] <=[%1] AND T0.DocType='I'
    GROUP BY T0.[DocEntry], T0.[DocNum], T0.[DocDate], T0.[CardCode], T0.[CardName], T0.[NumAtCard], T1.[LineNum], T1.[ItemCode], T1.[Dscription], T1.[Quantity], T1.[LineTotal], T1.[VatSum], T1.[GTotal], T1.[TaxCode], T1.[DocEntry]
    ORDER BY T0.[DocEntry], T0.[DocNum], T0.[DocDate], T1.[LineNum]
    Regards,
    Datta Kharat

    Hi Datta........
    Try this......
    SELECT M.DocEntry, M.DocNum AS 'AR Inv. #', M.DocDate as 'Date', L.ItemCode, L.Dscription, L.Quantity, L.TaxCode, M.CardName as 'Customer Name',M.NumAtCard as 'PO No. & Dt.',
    L.LineTotal as 'Base Amt.(Rs.)',
    (SELECT Sum(TaxSum) FROM INV4 where statype=-90 and stacode='BED10' and DocEntry=M.DocEntry And LineNum=M.LineNum) as ' ED 10% (Rs.) ',
    (SELECT Sum(TaxSum) FROM INV4 where statype=-90 and stacode='BED4' and DocEntry=M.DocEntry And LineNum=M.LineNum) as ' ED 14% (Rs.) ',
    (SELECT Sum(TaxSum) FROM INV4 where statype=-60 and DocEntry=M.DocEntry And LineNum=M.LineNum) as 'Cess 2% (Rs.)',
    (SELECT Sum(TaxSum) FROM INV4 where statype=-55 and DocEntry=M.DocEntry And LineNum=M.LineNum) as 'HSCess 1% (Rs.)',
    (SELECT Sum(TaxSum) FROM INV4 where statype=1 and stacode='VAT4' and DocEntry=M.DocEntry And LineNum=M.LineNum) as ' VAT 4% (Rs.) ',
    (SELECT Sum(TaxSum) FROM INV4 where statype=1 and stacode='VAT5' and DocEntry=M.DocEntry And LineNum=M.LineNum) as ' VAT 5% (Rs.) ',
    (SELECT Sum(TaxSum) FROM INV4 where statype=1 and stacode='VAT12.5' and DocEntry=M.DocEntry And LineNum=M.LineNum) as ' VAT 12.5% (Rs.) ',
    (SELECT Sum(TaxSum) FROM INV4 where statype=4 and stacode='CST2' and DocEntry=M.DocEntry And LineNum=M.LineNum) as ' CST 2% (Rs.) ',
    (SELECT Sum(TaxSum) FROM INV4 where statype=4 and stacode='CST4' and DocEntry=M.DocEntry And LineNum=M.LineNum) as ' CST 4% (Rs.) ',
    (SELECT Sum(TaxSum) FROM INV4 where statype=4 and stacode='CST5' and DocEntry=M.DocEntry And LineNum=M.LineNum) as ' CST 5% (Rs.) ',
    (SELECT Sum(TaxSum) FROM INV4 where statype=4 and stacode='CST12.5' and DocEntry=M.DocEntry And LineNum=M.LineNum) as ' CST 12.5% (Rs.) ',
    (SELECT Sum(TaxSum) FROM INV4 where statype=5 and stacode='ST10' and DocEntry=M.DocEntry And LineNum=M.LineNum) as ' ST 10% (Rs.) ',
    (SELECT Sum(TaxSum) FROM INV4 where statype=6 and stacode='Cess_ST2' and DocEntry=M.DocEntry And LineNum=M.LineNum) as ' Cess_ST 12.5% (Rs.) ',
    (SELECT Sum(TaxSum) FROM INV4 where statype=-10 and stacode='HSC_ST1' and DocEntry=M.DocEntry And LineNum=M.LineNum) as ' HCS_ST 12.5% (Rs.) ',
    (Select Sum(LineTotal) From INV3 Q Where Q.DocEntry=M.DocEntry) AS 'Freight (Rs.)',
    M.DocTotal as 'Total (Rs.)',U.Dscription, U.ChapterID
    FROM OINV M LEFT OUTER JOIN INV1 L on L.DocEntry=M.DocEntry
    LEFT OUTER JOIN INV4 T on T.DocEntry=L.DocEntry and L.LineNum=T.LineNum
    LEFT OUTER JOIN INV5 J ON M.DocEntry = J.AbsEntry
    LEFT OUTER JOIN INV3 Q ON M.DocEntry = Q.DocEntry
    LEFT OUTER JOIN OITM S ON L.ItemCode = S.ItemCode
    LEFT OUTER JOIN OCHP U ON S.ChapterID = U.AbsEntry
    WHERE (M.DocDate >= '[%0]' AND M.DocDate <= '[%1]') AND M.DocType='I'
    GROUP BY
    M.DocNum,M.DocDate,L.ItemCode, L.Dscription, L.Quantity, L.TaxCode, M.CardName,M.NumAtCard,L.LineTotal,M.DocEntry,M.DiscSum,M.WTSum,M.DocTotal,U.Dscription, U.ChapterID
    ORDER BY
    M.DocNum,M.DocDate,L.ItemCode, L.Dscription, L.Quantity, L.TaxCode, M.CardName,M.NumAtCard,L.LineTotal,M.DocEntry,M.DiscSum,M.WTSum,M.DocTotal,U.Dscription, U.ChapterID
    Regards,
    Rahul

  • BW Username Variable in query available for  Row Level basedAuthorization ?

    Hi Authorization- and Bexs-Profs,
    I have an Row Level Authorization Model:
    The acces to the InfoCube data is based on Row Level and on access control definition
    data hold in an ODS ( Table/Data).
    The access control definition data hold in the  ODS descibes per BW User which
    selection citeria can be read.
    I want  to build up a MultiProvider with the access control definition ODS and the InfoCube and
    restrict in the Query the access control definition with the BW Username.
    How can I have access to the BW Username in a BEX Query ?
    Thank You a lot !
    Martin Sautter

    Thanks user10615659     ,
    - Yes the variable ROLES available in OBIEE 11.1.1.7.1
    - Tested the init block and variables in offline rpd its working as expected.
    - In online rpd, except ROLES and GROUP variable remaining variables working fine.
    - Verified log file in both online and offline init block testing - the init block execution is successful.
    Thanks

  • Calculating total discount at the row level

    Hi,
    I want to determine the total discount amount for all of the invoice row levels by summing the row totals that have the same discount % and then multiplying that total by the row discount percent.
    Example:
    Lets say there is an invoice with 3 line items
    Qty     ItemCode     Price    Discount%
    2         A                $30            10
    2         B                $20            10
    2         C                $15             5
    I want to figure the total for the first 2 lines (because they have the same discount amount) by multiplying the quantity (230)+(220)=100 and then calculating the discount from this total. (100) * (.10) = $10 and then calculating the discount for the third line item ((215).05)=1.5. This brings the total discount amount to $11.50.
    Below is what I have drafted for a query so far.
    Select
    //For each grouping of items with the same discount %
    (SUM ((T0.Quantity * T0.PriceBefDi)) * DiscPrcnt)
    FROM INV1 T0 WHERE T0.DocEntry=$[OINV.DocEntry]
    Any ideas?
    Thanks,
    Luke

    Gordon,
    I was thinking that I would have to use a group by (grouping on the discount %) statement or possible a sub-query to accomplish this. The group by statement would replace the commented section. "//For each grouping of items with the same discount %"
    I will work on this query some more and post my results if I figure out a way to accomplish this.
    Thanks,
    Luke

  • Query regarding updating rows in JTable

    Query regarding updating rows in JTable
    Hello,
    I have a JTable with 6 columns and 1000s of rows (which are data read from flat files)
    I can select 1 or more rows and change the values of the
    columns. each time I do this I need to update the values
    in the flat file.
    Currently I assign the updated Jtable values to a vector
    Vector rowVector = (Vector)defaultModel.getDataVector();
    then I iterate over the vector and compare the values with the (old) data
    in the JTable.
                for(int rowCount = 0; rowCount<rowVector.size(); rowCount++){
                    Vector v = (Vector)rowVector.elementAt(rowCount);
                        //smsList is the Vector that contains the old JTable values
                        for(int i=0; i<smsList.size(); i++){
                                //If colums values have been changed; add that
                                //vector value to another vector
                                selectedsmsList.add(smsList.get(i));
                for(int i=0; i<selectedsmsList.size(); i++){
                         //Update the values in the flat file
                }This works fine except that it takes ages to iterate over the updated vecor and un-updated,old vector; is there any way to directly get the list of rows that were updated in the jtable; so that I can directly do an I/O operation to update the jtablke values?

    Just a suggestion.
    You could add a listener and use a vector of booleans to keep track of the rows that have been changed. You could then iterate through this boolean vector and update the changed rows.
    See
    http://java.sun.com/docs/books/tutorial/uiswing/components/table.html#modelchange
    Don't know whether this will be helpful.
    Regards, Darryl

  • 'Query has not yet calculated' When executing BW report in Bex

    Hi, all
    There is message 'Query has not yet calculated' when execucting BW report in BEx.
    what's the reason? How to solve this issue?
    however, when I change the filter to one or several employee number such as employee information report, there will be one or several records in the report.
    Anyone can help me?Thanks very mcuh.
    Carina

    ok.
    While using exception aggregation, you need to give a reference characteristics. You might have given 0calday for the same for 0ANSALARY ( SUM LAS ) and your infoprovider does not have 0calday and the report is unable to calculate the result based on 0calday.
    This will obviously throw and error but you will be able to see the result. But the result will not calculate last sum for 0ansalary correctly.
    For this, please check the infoprovider design. You can use reference character other than 0calday and make sure that, the reference time characteristics is present in your infoprovider.
    Cheers
    Chanda

  • How to update UDF based upon the row level dimensions.

    Hello Experts,
    I have made 4 new udf at Sales Order.  Its displaying at Righthand side under General Category.
    Now at row level im entering item detail, and other things with 4 profit center vaues.
    So i want that if i enter value in those 4 proft center in row level then it should automatically update those 4 udf with that value.
    It always happen in Add mode of SO, if SO open in update mode then i can update those udf with other values also, which can be differ then row level profit center values.
    If we need to create any trigger or any query for that, then guide me for that.
    Regards,

    Hi Chintesh,
    You can use the option of changing value when the exising column value changes. (also check the option refersh only option)
    pls revert in case more help.
    Regards,
    Datta Kharat

  • SAP Lumira - Implementing row level security

    Hi All,
    I aware that SAP Lumira 1.17 onward allows to share the datasets, stories to SAP Lumira Server as well as SAP BI Platform (4.1 SP3 onward).
    But I would like to know if there is any way of implementing Row level security for this published contents i.e. datasets or stories. e.g. If user A (may be an administrator with access to all the regions) creates dataset and story and shares it with other users over SAP Lumira Server or SAP BI Platform. But when user B accesses these contents on any platform, SAP Lumira server or SAP BI Platform, he should be able to see data only as per his access (his own region). Can something of this sort be implemented?
    Thanks,
    Abhijit

    Hi,
    Sorry for the delay in getting back to you.
    As per my understanding - as of today, we respect Row-level security when acquiring (fetching) the data from universe into Lumira desktop (also, contexts and business-security profiles i.e. columns)
    now, when that desktop user has 'designed' the Lumira document, all of the above: row-level, contexts and security profiles  are 'locked-down' into that artefact when shared onwards. (i.e. to Lum Server and hence, BI Platform)
    once this content is being access from the BI Launchpad, refresh-on-demand is possible from the story, as well as scheduling of dataset on which it is based.
    According this blog by Greg Wcislo (the product owner for the Add-on)  Lumira integration for BI4 functionality detailed. note that features such as 'refresh on open' and 'changing design-time parameters' (i.e. prompts) are not yet supported,  but very much in future scope / plans.
    I believe that one of the other mid-term goals is to architect a 'Lumira server-side universe refresh' (i.e. so that the processing is handled 100% by Lumira server) rather than querying across BIPlatform services then replicating a dataset to HANA (which is currently the process flow)
    I hope this helps.
    Regards,
    H

Maybe you are looking for

  • What does this crash report mean?

    This iMac does not work and has not worked for a couple of months due to kernel panics. The drive is FileVault encrypted. I received this crash report after attempting to unlock the iMac's internal drive in recovery mode. I think this is a new error.

  • In RWB----component monitoring --adapter engine-- status

    Hi , In the Runtime work bench component monitoring  if we click on adapter engine we get two tabls CCMS Status: Last Retry Jan 26, 2011 1:55:15 PM CET Ping and Self-Test Help Ping Status: HTTP request failed. Error code: "404". Error message: "Not F

  • Updation of status in the transaction CLOCO

    Hi Gurus, I am using the transaction CLOCO for setting up the task and I am planning to update the status pro grammatically. I will appreciate if someone can let me know about a function module which does this task or any other way available for the

  • Sata Help

    hi all i have a K8T Neo MS-6702 with an AMD 3200+ 64 processor. also jus got a WD 250GB HDD sata now the HD is seta2 so i set the jumper on the back on mine its pins 5 & 6 when i load up the window install i hit f6, i tried a bunch of diffrent driver

  • Tracking iPhone without internet connection..

    Is it actually possible to track iPhone without internet connection? I mean, the iPhone which I am tracking has no internet connection... (Example, has been lost in a foreign country and  the roaming data is not ON) Anyone has an idea how to do the t