Converting non-additive to additive

Hi,
I have a fact table which is derived from source data grouped by CA ,GL, and fy_period. I want to convert one of the measure, says PO, in this fact table to be additive and put it into a new column. That is, record with the same CA and GL will have the delta of the PO from current fy_period minus that from previous fy_period.
Can OWB helps me accomplish this: generating the value for PO_delta based on existing CA,GL, and PO values. Or SQL or PL/SQL solution? example below:
CA GL PO fy_per PO_delta
11 55 10 199611 10 <--first row initialized to be the same.
11 55 40 199612 30 ( 30=40-10)
11 55 38 199701 -2 (-2=38-40)
12 33 0 199611 0
12 33 20 199612 20
12 33 45 199701 25 (25=45-20)
....

You can use analytic function LAG
select PO, PO-nvl( LAG(PO,1) over (partition by CA,GL order by fy_per) , 0) as PO_delta
from ...

Similar Messages

  • How to convert non-fillable forms in words and PDF into fillable forms?

    Hai,
    How to convert non-fillable forms in words and PDF into fillable forms?

    Hi Mahalcs
    Please See the below link for reference : http://www.adobe.com/in/products/acrobat/convert-existing-forms-to-fillable-pdfs.html
    Also See , http://www.adobe.com/content/dam/Adobe/en/products/acrobat/pdfs/adobe-acrobat-xi-convert-f orms-into-fillable-pdf-tutorial_ue.pdf

  • Convert non-partition table to partition table

    Hello Everybody
    I am just want to ask about how to Convert non-partition table to partition table ?
    Thanks
    Ramez S. Sawires

    Dear ARF
    First of all thank you for replying me , second do u have any links talking about dbms_redefinition package
    I am using Database Oracle 10g
    Thanks
    Ramez S. Sawires
    Message was edited by:
    Ramez S. Sawires

  • How to convert non stock item in to stock item.

    hi
    cud any one let me know how will in convert non stock item in to stock item.
    regards
    manish sharma

    Dear Manish.
    please check the below link for your answers. Before posting any question please do check the forum. That's the easy way to find an answer.
    Change item category in a PO
    Non-Stock items convert to Stock
    Hope it will help you.
    Regards,
    Alok Tiwari

  • Additive/semi-additive measure HELP

    I have a cube with dimensions TIME, GEOGRAPHY AND SALES_AGENT, built on a fact table that has
    TIME_LEAVES,
    GEOGRAPHY_LEAVES,
    AGENT_LEAVES as FK's
    and measures
    SOLD_QUANTITY quantity of t-shirts sold
    UNIT_PRICE the agent's price for one t-shirt
    While SOLD_QUANTITY is fully additive, being SUM aggregated in the cube for all three dimensions, the UNIT_PRICE in totally non additive, so I let aggregation method to none for all dimensions.
    Afterwards I made a calculation in JDev BIBeans multiplying UNIT_PRICE * SOLD_QUANTITY to get an income quantum, thinking it'll do something like (UNIT_PRICE1 * SOLD_QUANTITIY1) + (UNIT_PRICE2 * SOLD_QUANTITIY2) + ...
    But the results go sky high, showing that it's not calculating the way I wanted it.
    Do you have any idea? Is it possible to put a non additive measure with a fully additive one in the same cube? If so, how should I set the aggregation methods.

    It's a relational cube.
    Here is an example of a couple of rows in the fact table:
    TIME GEOGRAPHY AGENT SOLD_QUANTITY UNIT_PRICE
    ========================================================
    JAN04 LONDON AGENT1 240 20
    JAN04 YORK AGENT1 123 20
    JAN04 LONDON AGENT2 56 25
    While sold quantity is fully SUM aggregable by all dimensions, the unit price is not (the cube shows NONE for all aggregations in OEM). Even so, the UNIT_PRICE add's itself on all three dimensions.
    So instead of giving me a total income situation per agent of:
    AGENT1 (240*20)+(123*20)
    AGENT2 (56*25)
    it returns something like
    AGENT1 (240+123)*(20+20)
    AGENT2 56*25

  • Very Urgent--- How to Convert Non Valuated stk into Valuated

    Dear GURU'S
    Actually for a material A when i see the stock in MM03 in accounting tab i see less stock then when i see in MMBE
    i.e in MMBE if i select Material A and Plant B(Which is depo in my case) i see stock as 39
    but for same material MAterial A and Plant B ,if i see in MM03 --in accounting tab i m able to see less stock i.e only 1
    ============================================
    Well the problem is In MM03 I cud see only valuated stk i.e qty as 1
    And in MMBE for a partiocular material for a particular plant the stock was 39
    i.e Here i am getting Valuated + Non valuated stock
    i.e i am getting difference of 25
    =====>>>
    To get into the root cause
    I have gone to MB5B where i can get all the transaction that has been done on this material with movement type also i got the intial stock ,Goods recpt ,Goods  issu and total stock
    No for a particular material
    In MB5B it is showing
    Stock on 01.01.2005    =  38
    receipts total               = 238
    Issues total                  =237
    Stock as on 18.02.2008 = 39(which is equal to Stock in MMBE)
    =============>This is for valuated +Non valuated stock
    Where as if i want to see only valuated stock it was showing
    receipts total      = 238
    Issues total         =237
    Stock as on 18.02.2008 =1  (which is equal to stock in acctg view in MM03)
    ====================>This is only for Valuated Stock
    ======================================
    Now how to solve this :
    The initial qty(38) which has been posted it was at the begining that is at the start of the project
    And the people who have posted it ,it was non valuated
    that is the reason it is showing difference in MM03 and MMBE
    First thing
    How can i see on which date this initial stock has been posted
    Second Query
    How to convert this non valuated stock into Valuated stock
    So that the quantity in MMBE and MM03 gets matched
    Willl award 10 Points if my problem gets solved
    THANKZ IN ADVANCE
    REgds
    Shailesh

    Dear friend
    Actuallly i have checked the history of that particular Item in MB51
    I have gone through all the documents created for this material
    Now this material also exist in DEPO which is located at chennai and plant is at mumbai
    So Initially in the year-2006(31-10-2006) whater documents are created i.e STOP has  been created and delivery has been made (Mov type-601)
    are non valuated stock ,means they have been posted without any valuation
    But from year 2007(01.02.2007) the documents whiohc have been posted are valuated
    i.e is the reason when i am executing transaction MRN9 to check the history of valuated stock
    I cant see non valuated stock
    Well now how to do the valuation of this stock which have been posted in year 2006 so that
    In MMBE and MM03 there is no difference of stock
    Plz hepl
    regds
    shailesh

  • Open Prod. Orders = Convert Non-Valuated material to Valuated material

    Hello,
    We have converted from Non-Valuated Materials to Valuated manterials in Stock.
    But now, we are concerned with Open Production Orders - which have Non-Valuated Materials already issued to the order.
    We would like to find out how do other companies handle this type of scenario.
    Is there a tool or program that can be used, please advice.
    Many thanks in advance,

    Rio,
    We have used Production orders when we want to convert 1 material number to another material number. It is a good & robust process. It allows the business to capture the cost of converting 1 material to another material with all the labor and or machine  costs.
    In your case I assume you may be using an unvaluated material as component & adding some labor or machine time to arrive at your Valuated material. Seems like a normal & straightforward process.
    Anothe option is to do a standard Transfer posting using Material to material transfer ( mov type 309). It allows to transfer post materials that have same material type. But you may have to check if it allows to convert unvaluated (UNBW)  to unvaluated (HALB) material type or not.
    But fisrt option is a good process.
    Hope this helps. Good luck.
    Ramm

  • Enhancement in VA01 (Custom field addition in Additional Tab at header)

    Hi Experts,
    I have to develop some custom fields in tcode VA01 at header level in addtional data B tab. I know that i can use access key and develop the screen 8309 of program SAPMV45A and for that i have to provide access key. But i dont want to use access key.
    Is there any screen exit or badi through which i can develop the screen in additional data B tab in VA01. Please provide me suggestion.
    Thanks in advance.
    Regards,
    SURYA BASU

    Hi
    I don't know other solution. Provide a key in my opinion is not a problem. You must do it when create your own VOFM subroutines in your customer range number. if your boss or your client has doubts, ask him/her to see the SAP Note 381348 - Using user exit, customer exit, VOFM in SD, when it says:
    At the beginning of the R/3 development the SAP Basis did not offer
    technologies for exits yet, nevertheless many customers wanted to implement
    their own functions, checks, and so on. Thus, in the SD area, includes were
    delivered like, for example, MV45AFZZ. This include contains some empty
    FORM routines (user exits) to which you can go from the respective
    processing programs.
    and
    Changes to user exits in SD are MODIFICATIONS,
    since the original of an object belongs to SAP (thus when you change a user
    exit an SSCR registration is also required).
    Why this exits belongs to SAP, see Note 16466 - Customer name range for SAP objects.
    I hope this helps you
    Regards
    Eduardo

  • Convert non-unicode file to unicode.

    Hi All,
      I have to convert a file (in presentation server), which is non-unicode, to unicode compatible.  Will reading the file in binary mode and writing in ASC mode be sufficient.
    Appreciate the help,
    Regards,
    Sai

    Hi,
    try translate .. from code page ... to code page ...
    Or may be some of these classes..
    CL_ABAP_CONV_IN_CE : Reading binary data
    CL_ABAP_CONV_OUT_CE : exporting binary data
    CL_ABAP_CONV_X2X_CE : reading and exporting binary data and changing the format
    regards
    Siggi
    Message was edited by: Siegfried Szameitat

  • Convert non batch managed material to batch managed

    What are the prerequisites to convert a non batch managed material to a batch managed one?

    Hi
    check following link it will help you
    [Prerequisites for activating batch management with inventory already in SAP;
    [http://help.sap.com/saphelp_erp60_sp/helpdata/en/1b/877e40417c6d1de10000000a1550b0/content.htm]
    [http://help.sap.com/saphelp_erp60_sp/helpdata/en/3c/faadb99f6f3c4da80421490e4c91d3/content.htm]
    Regards
    Kailas Ugale

  • Convert non-LRS point to LRS-point

    Can you please show me how to convert a non-LRS point to a LRS point?
    The sdo_lrs.convert_to_lrs_geom function does not work with points. It returns an error:
    ORA-06531: Reference to uninitialized collection
    ORA-06512: at "MDSYS.SDO_LRS", line 1767
    Thanks
    Dave

    I got around this by creating a sql script of insert statements to insert LRS points into another table:
    spool c:\temp\convert_to_lrs_pt.sql
    set serveroutput on
    declare
    x number;
    y number;
    z number;
    CURSOR POINTS_CURSOR IS
    SELECT GEOM,FID FROM INV_TRFC_STN where fid < 3000;
    myCURSOR POINTS_CURSOR%ROWTYPE;
    begin
    DBMS_OUTPUT.ENABLE(1000000);
    for myCURSOR in POINTS_CURSOR
    LOOP
    x := myCURSOR.geom.sdo_point.x;
    y := myCURSOR.geom.sdo_point.y;
    dbms_output.put_line ('insert into test2 values ');
    dbms_output.put_line ('(mdsys.sdo_geometry(3001,41141,NULL,mdsys.sdo_elem_info_array(1,1,1),');
    dbms_output.put_line ('mdsys.sdo_ordinate_array(' &#0124; &#0124; x &#0124; &#0124; ',' &#0124; &#0124; y &#0124; &#0124; ', NULL)),' &#0124; &#0124; myCURSOR.FID &#0124; &#0124; ');');
    end loop;
    end;
    spool off
    But if there is another way I would really like to know.
    Thanks
    Dave

  • Convert non-CDB to CDB

    I have upgraded a 11.2.0.4 database to a 12.1.0.2 version. It is now a non-CDB database. Could you please provide me the oracle doc to convert it to a CDB database.

    FYI - in the future please post 12c issues such as this in the multitenant forum
    Multitenant
    I have upgraded a 11.2.0.4 database to a 12.1.0.2 version. It is now a non-CDB database. Could you please provide me the oracle doc to convert it to a CDB database.
    You don't 'convert it to a CDB database'. You plug it in to an existing CDB database.
    So you would:
    1. Create a new 12c database - that will create the root/CDB
    2. Plug in your upgraded DB as a PDB
    The doc with the details is hte Database Upgrade Guide
    https://docs.oracle.com/database/121/UPGRD/upgrade.htm#CHDBHIHI
    Chapter 3.1.2 Upgrading an Earlier Release and Plugging a PDB into a CDB
    You can upgrade earlier releases of Oracle Database using either DBUA or the Parallel Upgrade Utility and then plug the upgraded database into a multitenant container database (CDB). The upgraded release 12.1 database can be plugged into an existing CDB. Be sure to follow any necessary pre-upgrade procedures described in Chapter 2, "Preparing to Upgrade Oracle Database." The following procedure assumes that both databases are on the same system.
    Following that text above is a step-by-step description of how to do EXACTLY what you need to do.

  • Addition of additional tempdb files

    We can go for additional temp db files , but not more than the number of Logical CPU?
    Is the above statement true?
    If yes/no, please explain.. Really need the answer on urgent basis. Please help me.
    Thanks in advance

    This issue i have faced few days back so cant tell now what that was exactly doing...That time a session id was locking itself
    So after restarting the sql services the lock got released.
    so please tell me if i add one more tempdb would this resolve the issue of process locking itself?
    Hello,
    No we cannot tell you anything about your Process blocking itself unless you give us the Query.You  already raised same question on this forum.Please don't do that
    Please read this article and see cases when process blocking itself is really not an issue
    http://support.microsoft.com/kb/906344/en-us.
    When an SPID is waiting for an I/O page latch, you may notice that the
    blocked column briefly reports that the SPID is blocking itself. This behavior is a side effect of the way that latches are used for I/O operations on data pages. When a thread issues an I/O request, the SPID that issues the I/O request acquires a
    latch on the page. All SQL Server 2000 I/O operations are asynchronous. Therefore, the SPID will try to acquire another latch on the same page if the SPID that issued the I/O request must wait for the request to finish. This second latch is blocked by the
    first latch. Therefore, the blocked column reports that the SPID is blocking itself. When the I/O request finishes, the first latch is released. Then, the second latch request is granted.
    Just calm down I don't know from where you got an idea about releasing self blocking by adding More tempdb files.
    If you face issue again please post it so that we can help you without query its difficult to answer
    Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers

  • Converting Non-Leading Ledger to Leading ledger...

    Hi All
    Please let me know if there is a possibilty to convert a non-leading ledger to a leading ledger?
    If yes, please let me know the conversion process.
    Regards
    Kavitha

    Hi Kavitha,
    Follow the path
    SPRO --> IMG --> Finacial Accouting(New) --> Financial Accounting Global settings --> Ledgers --> Define Ledgers for General Ledger accounting
    In Change view: Define ledgers for general ledger accounting: Overview screen, you can make the non leading ledger as leading ledger. But at a time, you can make only one ledger as a leading ledger. you can't maintain two leading ledgers simultaneously.
    But it is not a good practice to make a non leading ledger as a leading ledger. But instead you can use ledger group concept, in which you can make one non leading ledger as reporting ledger..
    Hope this will help you...
    Regards,
    Praisty

  • Converting non-English characters to their unicode representation

    I have series of files/templates where each contains a locale specific language such as Chinese, Japanese or German. I need to find out how do I get their unicode representations so I can send as html formatted email?
    I can already send one for the English template as html formatted email w/out a problem. I was able to find a sample of unicode representation of Japanese and send that as a test. But how do I get the temaplates that I have and convert their contents into unicode?
    Thanks in advance.
    please dis-regard. I figured it out.
    chehrehk

    You need to know what character encoding was used for the template text.
    For example, you could have Japanese text encoded using UTF-8 or
    encoded using ISO-2022-JP and the same Japanese characters would
    be represented as a different sequence of bytes. Without knowing which
    charset was used, you won't be able to convert the byte sequence back
    into Unicode characters (e.g., to store in a Java String).
    If you do know which charset was used, java.io.Reader will convert the
    byte stream into Unicode characters.
    If the charset information is not available, there are heuristics that you
    can use to try to guess the correct charset, but by their nature they're
    going to be wrong sometimes.

Maybe you are looking for

  • New User - Wireless Internet Problem

    Hello all. I'm a brand new Mac user but I am becoming extremely frustrated with connecting my Mac Mini to my existing wireless network. I have WEP enabled and I know for a fact that I'm using the correct password. Just to be sure, I disabled the pass

  • Verizon iPad 2 wants previous owners password and email for 3G. Can't create a new account need help ASAP..

    After a factory reset/ setting it up as a new iPad it still gives me the login screen. went to the genius bar no help, contacted Verizon no luck. I want to make a new Verizon 3G account but it won't get the registration form for me to fill out what C

  • How to open a link inside shell.

    There are workset items in ux3.shell in ui5. I have given a http link in setContent method of one of the worksetitem. This link is opening but in new window and not inside the shell. But i want to open that link inside the shell.

  • Vertex O Series- memory issues

    We are working with Vertex and are increasing our databases the longer we work with Vertex.  Recently, we have had several hard stops with increased usage (such as testing, training, and data loads all at once).  Our SAP implementation is going in th

  • Group contacts in Symbian address book (E66)

    I'm getting annoyed by the fact that all contacts that belongs to any group contacts are still visible in the address book's "main tree". I want the usual single contacts visible as they always are and contacts in groups not visible at all at the mai