Using dbms_xmlgen.getxml with new and old tables in triggers

Is there a way to use getxml against the data stored in the new and old tables in a trigger? Simply doing this:
Xml_Variable := dbms_xmlgen.getxml('Select * from New');
Does not work.
Edited by: user13302591 on Jun 16, 2010 1:16 PM

user13302591 wrote:
How would I pass the information from the :new and :old to getxml?What are you trying to do? You could use, for example:
XMLELEMENT("old",:old.column_name)
XMLELEMENT("new",:new.column_name)SY.

Similar Messages

  • Please help - Can not use stored procedure with CTE and temp table in OLEDB source

    Hi,
       I am going to create a simple package. It has OLEDB source , a Derived transformation and a OLEDB Target database.
    Now, for the OLEDB Source, I have a stored procedure with CTE and there are many temp tables inside it. When I give like EXEC <Procedure name> then I am getting the error like ''The metadata  could not be determined because statement with CTE.......uses
    temp table. 
    Please help me how to resolve this ?

    you write to the temp tables that get created at the time the procedure runs I guess
    Instead do it a staged approach, run Execute SQL to populate them, then pull the data using the source.
    You must set retainsameconnection to TRUE to be able to use the temp tables
    Arthur My Blog

  • Help with :new and :old keywords

    I am trying to write a trigger that calls a cursor with info from the user_tab_columns. Then I use the cursor in a For-loop for accessing a specific column for each row. Ineed the :new value of the specific column to pass it as an argument to a procedure. Here is my code:
    For each_r in MyPackage.PrimKey_Cursor (TABLENAME)
    Loop
    New_val := (:new.&#0124; &#0124;each_r.Column_Name);
    MyPackage.LogIns ('TABLENAME', each_r.Column_Name, New_val);
    End loop;
    My problem is the New_val variable pass only the string :New.COLUMNNAME instead of the new value of the COLUMNNAME.
    How can I do this passing of :new, :old values to a procedure when the column name is variable?
    YOur help is greatly appreciated.
    Thaks,
    Cip

    IMPLEMENTS
    By using the implement keyword I am 'agreeing' to use
    (implement) the methods of that interface. I am still
    required to import the correct package for the
    compiler to see the interface I have implemented. If
    I attempt to use the
    actionPerformed() method without implementing the
    actionListener interface it will not be recognized
    and therefor will result in a compile-time error.You can write an "actionPerformed" method without saying that you are implementing ActionListener. But, even if you have an actionPerformed method with the correct signature (name and parameter types), you won't be able to add your class as an ActionListener to a JButton. The compiler expects an ActionListener for "addActionListener". If you didn't tell the compiler that your class is an ActionListener by writing "implements ActionListener", it would give you an error on the "addActionListener(this)" line.
    IMPORT
    Allows me to access with out full classpath the
    methods and objects of any packages that I have
    impoted. The reason I do not have to do this with
    System.out.println() is because that is in a package
    that the compiler has default access to.
    If I were to attemp to use JTextArea without first
    importing Javax.swing.*;
    I would get a class not found error....You never actually have to explicitly import anything. You could instead write all of the classnames out in full as:
    public class KeyEventDemo extends javax.swing.JPanel
                 implements java.awt.event.KeyListener, java.awt.event.ActionListener
        javax.swing.JTextArea displayArea;
        javax.swing.JTextField typingArea;
        static final java.lang.String newline = "\n";
    }Using import statements makes your code a little easier to write, because the names are shorter.
    Actually, your main method has an example of using a class without explicitly importing it:
    javax.swing.SwingUtilities.invokeLater(...);
    so, am I right or at least near right?Yes. Some right, some near right. :)

  • Setting up home network with new and old Macs and 1GBps internet connection

    I have a 1 GBps internet connection and want to take advantage of it. I have three 802.11ac capable Apple products - a Macbook Air, Macbook Pro and  Imac. The signal currently runs from an Aris modem into a  Netgear router that maxes out at 100mbps. My Apple Extreme (not the new one with 802.11ac) is connected to the Netgear , so choked at 100mbps. Everything runs off Wifi. I have run speedtests on all my computers and nothing runs over 50mbps in the current setup. I also run some home security stuff off "DDNS" that does not work with Apple products (thus the Netgear router) so I need to consider that too. I use two  802.11n extenders around the house. I am being told I cannot use the newer 802.11ac Extemes because it would not work with the DDNS Security stuff. What do I do to maximize speeds from Wifi and keep the DDNS stuff?

    What do I do to maximize speeds from Wifi and keep the DDNS stuff?
    For maximum Wi-Fi speeds only, use all 802.11ac devices ... both wireless routers & wireless clients. For full DDNS support, only use routers that support this feature.
    For maximum overall bandwidth Internet-to-network client, use routers that support 1Gbps WAN-to-LAN & LAN-to-WAN interfaces. There are not many on the market currently that supports this. Also these routers should provide Gigabit Ethernet on both the WAN & LAN sides.
    To get an idea of what's available, please check out the SmallNetBuilder's to compare routers.

  • Check battery error with new and old batteries.

    I came back from vacation last month, and the battery on my late 2006 Macbook would not charge. The Apple store said the magsafe connector was bad, and replaced it for $98. The next day I had the same problem, and when I took it back they said that now it was the logic board. None of the "geniuses" had any idea what was the failure was just swap parts until it works. I now have the "Check Battery" condition, and no idea what that means. I am sure that if I take it back to the Apple store they will say buy a new $100 battery, after all this one has three cycles on it! Dose anyone know what Check Battery means, and what conditions set this message, and how to clear it?

    Thanks Carolyn. It appears that battery condition is set during a recalabrate only. It would be nice if Apple would produce a “white paper” on battery management for Li-ion batteries. There are no significant “trade secretes” in the management software that have not been reverse engineered long ago. Information as to what Recalibrating really does when it “Recalibrates”. What it means when Apple says the design life is 300 charge cycles. Information about how battery life is a statistical function, and may fail at 150 cycles, or may go 1000. What information the battery sends to the computer, and what the computer sends back. This would help eliminate the many posts on these forums, and people getting frustrated with the lack of information from Apple.

  • Cannot connect N79 with new and old Nokia suites r...

    I have an N79 which I can successfully connect with Nokia Suite 3.3.x running on Windows XP and sync my data.
    However, I have failed to connect the same phone (and also a N86) with the Nokia suite running on Windows 7. The connection with Windows seems fine (and I can browse the contents of the phone from Explorer). However Nokia Suite 3.3.x does not detect the device, although looking at the Add Phone window it is clearly trying to do something when I physically connect the phone - sometimes a message "Wait while we configure the phone etc."
    I have tried removing all Nokia software, removing registry entries, reloading. But to no effect. I have tried repairing the various Mokia software elements through Control Panel.
    I tried an older version of the suite (OVI 3.0.0.286). Again without success, except that it does see the phone because it lists it on the Add Phone screen. However, when I select it I get a pop-up advising me that the phone is not in PC Suite mode - but it is!!!  This does not happen every time but only after I delete the phone's entry from Devices. If I do not do that, the suite does not list the phone. The same happens on Vista.
    The USB cable is from Nokia (CA 101). So same phone, same cable, same Nokia suite - works on XP but not on Win 7 or Vista.
    Any ideas would be most welcome.

    Hi, tinwhistle. Thanks for sharing with us your concern. Do you have the latest version of the Nokia Suite? Can you also make sure that you have an admin access on your Windows 7 computer, and your firewalls & antivirus programs are disabled. It would also help if your Windows 7 drivers are up-to-date. Keep us posted.

  • Printer is overprinting old jobs on top of new jobs.  Using a Mac with OSx and a HP photosmart for over a year.  this just started happening.

    Printer is overprinting old jobs on top of new jobs.  Using a Mac with OSx and a HP photosmart for over a year.  this just started happening.

    RReset printing system again and the restart in Safe Mode . This will clear some caches,to do this hold down the Shift key when you hear the startup tone until a progress bar appears, after it has fully booted restart normally and add the printer.

  • Dynamic build of a table trigger - Issue building :new and :old vars

    (which leads me to my next issue - this one might be a deal killer for me; see "Are Optional Parameters possible in Procedural Units?"
    I'm using a Select statement to dynamically create a table trigger which looks like the following:
    create or replace trigger tr_audit#reporter
    after update on reporter
    for each row
    begin
    ttms_audit_pkg.insert_audit_info( 'reporter', 'ZIP', :new.ZIP, :old.ZIP, 'REPORTER.REPORTER,REPORTER.PROJECT_CD', 'EXFC', :new.reporter, :new.project_cd);
    end;
    The :new. and :old. variables are generated based on which table_name is passed to the script creating this trigger. My problem is that I need all the :new. and :old. parameters to be passed in as Char. regardless of whether they are Number or Date variables.
    So in the example above...if :new.reporter is a number on the table then I need to to_char is like this:
    create or replace trigger tr_audit#reporter
    after update on reporter
    for each row
    begin
    ttms_audit_pkg.insert_audit_info( 'reporter', 'ZIP', :new.ZIP, :old.ZIP,
    'REPORTER.REPORTER,REPORTER.PROJECT_CD', 'EXFC', to_char(:new.reporter), :new.project_cd);
    end;
    However, since this trigger is created dynamically I will not know in advance which :new. and :old. parameters will need to be converted to character. So if to_char(:new.reporter) is used and :new.reporter is already a character on the table then I will get an error.
    So my question then is this. Is there a way to write this dynamic sql in a way to accomidate this problem? I'm thinking something that would act a bit like a decode does with values...pehaps something like this:
    decode(:new.reporter, NUMBER, to_char(:new.reporter), DATE, to_char(:new.reporter,'DD-MON-YYYY HH12:MIPM'), :new.reporter)
    ...if :new.reporter is a number then to_char it; if :new.reporter is a date then to_char it; otherwise let it be.
    By any chance does anyone know if this is possible? I would greatly appreciate any insights.

    Sure, you can selectively version-enable tables using Workspace Manager (you call DBMS_WM.EnableVersioning on each table you want Workspace Manager to track history for).
    What do you mean by "programmatically rollback changes"? Workspace Manager has the ability to call GotoTime and queries against a version-enabled table will return results as if you were querying it at that specific point in time (unless you've purged history of course). You can also use it to create what are essentially long-running transactions where you can work on multiple sets of proposed data changes simultaneously for days or months before finally deciding to commit a one particular set. It's incredibly powerful.
    Justin

  • Using correlation names :new and :old in ODBC

    Does anyone know how to use correlation names :new and :old through an ODBC connection?
    EG:
    CREATE TRIGGER Print_Cust_changes
    BEFORE INSERT ON CUST_tab
    FOR EACH ROW
    BEGIN
    dbms_output.put('Adding: ' || :new.custid);
    END;
    When I try to do that using ODBC, I get this error:
    Server Msg: 24344, State: HY000, [Oracle][ODBC][Ora]
    Trigger, procedure or function created with PL/SQL compilation error(s).
    And if I try and Insert I get:
    Server Msg: 4098, State: HY000, [Oracle][ODBC][Ora]
    ORA-04098: trigger 'BCL.PRINT_CUST_CHANGES' is invalid and failed re-validation
    The same code works perfectly in SQL*Plus.

    The plot thickens...
    I just tried this code:
    CREATE OR REPLACE TRIGGER Print_Cust_changes
    BEFORE INSERT ON CUST_tab
    FOR EACH ROW
    BEGIN
    INSERT INTO CUST_LOG VALUES('X');
    END;
    And received the same error:
    Server Msg: 24344, State: HY000, [Oracle][ODBC][Ora]
    Trigger, procedure or function created with PL/SQL compilation error(s).
    Again, using the same code (Cut & Paste) in SQL*Plus, it works without any problems.
    The ODBC function being used is: SQLExecuteDirect(), ODBC driver is SQLORA32.dll v9.02.00.00
    CREATE TABLE, VIEW, INDEX etc, all work fine, but not a trigger. If I read the code back from ALL_TRIGGERS after using SQL*Plus or the console application to create the trigger, it is exactly the same code...

  • HT3406 If I choose "restore from iTunes backup" to move everything from old phone.  Will I still be able to use the old phone for music and apps?  Can the old phone be docked up to the computer?  Or will the new and old phone overwrite each other in some

    If I choose "restore from iTunes backup" to move everything from old iphone to a new one, will I still be able to use the old phone for music and apps?  Can the old phone be docked up to that same computer every now and then?  Or will the new and old phone overwrite each other in some way?  In other words, are the two phones treated as different devices when the "restore" option is used to set up the new phone?   Thanks in advance.

    Yes, you can use the old iPhone as an iPod touch.
    Read this:
    http://support.apple.com/kb/HT3406

  • Trigger how to get new and old value for nested table column?

    Hi,
    I have created a nested table based on the following details:
    CREATE TYPE typ_item AS OBJECT --create object
    (prodid NUMBER(5),
    price NUMBER(7,2) )
    CREATE TYPE typ_item_nst -- define nested table type
    AS TABLE OF typ_item
    CREATE TABLE pOrder ( -- create database table
    ordid NUMBER(5),
    supplier NUMBER(5),
    requester NUMBER(4),
    ordered DATE,
    items typ_item_nst)
    NESTED TABLE items STORE AS item_stor_tab
    INSERT INTO pOrder
    VALUES (800, 80, 8000, sysdate,
    typ_item_nst (typ_item (88, 888)));
    Now I would like to create a trigger on table pOrder for after insert or update or delete
    and I would like to track the new and old value for the columns inside nested table.
    Can anybody direct me how to do it?
    I would like to know the sytax for it like:
    declare
    x number;
    begin
    x := :new.nestedtablecolumn;--how to get the new and old value from nested table columns
    end;
    Hope my question is clear.
    Thanks,
    Lavan

    Hi,
    Try like this:
    CREATE OR REPLACE TRIGGER PORDER_I
    BEFORE INSERT
    ON PORDER
    REFERENCING OLD AS old NEW AS new
    FOR EACH ROW
    DECLARE
      items_new typ_item_nst;
      ordid_NEW NUMBER;
    BEGIN
    FOR i IN :new.items.FIRST .. :new.items.LAST LOOP -- For first to last element
      DBMS_OUTPUT.PUT_LINE(':new.items(' || I || ').prodid: ' || :new.items(I).prodid );
      DBMS_OUTPUT.PUT_LINE(':new.items(' || I || ').price:  ' || :new.items(I).price );
    END LOOP;
    END;Regards,
    Peter

  • You've changed my email address he used to retrieve answers to security questions I ask you my email Add new and old Cancel I can in order to restore security questions answers

    You've changed my email address he used to retrieve answers to security questions
    I ask you my email Add new and old Cancel
    I can in order to restore security questions answers

    If you cannot fix your email address at the webpage
              iforgot.apple.com
    then you'll need to speak to the Apple Account Security team for security purposes.
    To contact an Account Security Advisor, call the AppleCare technical support team. When you call, ask to speak to the Account Security team. To find the right phone number, see this article:
    http://support.apple.com/kb/HE57

  • Dynamic references to trigger vars :new and :old

    Is there any way to dynamicly refer to the :old and :new bind
    variables available in triggers?
    I'm looking for a method to make a standard processing system
    that processes based on column-names. I want to avoid calling my
    handling system staticly for each field in the table.
    Ie. I want to refer to :old.data_column in a way where I can
    loop through all the fields of the table.
    Hints, tips and ideas would be greatly apprechiated.

    You can't have dynamic PL/SQL containing ":NEW" or ":OLD" in
    database triggers.
    But in some cases, if your table has primary key (PK)
    or unique key (UK), you can use AFTER STATEMENT triggers
    in following way
    (this is like well-known solution for mutating error problem):
    1. create database package with PL/SQL table
    (for storing PK values)
    2. clear PL/SQL table in BEFORE STATEMENT trigger
    3. populate PL/SQL table with PK value
    in BEFORE (or AFTER) ROW trigger
    4. read rows in AFTER STATEMENT trigger with dynamic PL/SQL,
    using PKs from PL/SQL table and using dynamically selected
    column names with statement
    SELECT column_name
    FROM user_tab_columns
    WHERE UPPER (table_name) = UPPER (p_table);"
    (you can read NEW values of columns and,
    with AUTONOMOUS_TRANSACTION, OLD values too)
    For example (scott.dept table):
    CREATE OR REPLACE TRIGGER bus_dept
    BEFORE UPDATE ON dept
    BEGIN
    plsql_table.clear;
    END;
    CREATE OR REPLACE TRIGGER bur_dept
    BEFORE UPDATE ON dept
    FOR EACH ROW
    BEGIN
    plsql_table.populate_with_id (:NEW.deptno);
    END;
    CREATE OR REPLACE TRIGGER aus_dept
    AFTER UPDATE ON dept
    DECLARE
    v_current_id dept.deptno%TYPE;
    BEGIN
    dynamic_new_old.set_table_name ('dept');
    dynamic_new_old.set_pk_name ('deptno');
    dynamic_new_old.create_column_names;
    WHILE plsql_table.id_exists LOOP
    v_current_id := plsql_table.current_id;
    DBMS_OUTPUT.PUT_LINE ('OLD VALUES:');
    dynamic_new_old.display_old_values (v_current_id);
    DBMS_OUTPUT.PUT_LINE ('NEW VALUES:');
    dynamic_new_old.display_new_values (v_current_id);
    DBMS_OUTPUT.PUT_LINE ('*****');
    END LOOP;
    END;
    CREATE OR REPLACE PACKAGE plsql_table IS
    PROCEDURE clear;
    PROCEDURE populate_with_id (p_id dept.deptno%TYPE);
    FUNCTION id_exists RETURN BOOLEAN;
    FUNCTION current_id RETURN dept.deptno%TYPE;
    END;
    CREATE OR REPLACE PACKAGE BODY plsql_table IS
    TYPE type_plsql_table IS TABLE OF dept.deptno%TYPE INDEX BY
    BINARY_INTEGER;
    m_plsql_table type_plsql_table;
    -- prefiks m_ is for module level variable (defined in package
    body)
    -- prefiks g_ is for global variable (defined in package
    specification)
    m_rec_number BINARY_INTEGER;
    PROCEDURE clear IS
    BEGIN
    m_rec_number := 0;
    END;
    PROCEDURE populate_with_id (p_id dept.deptno%TYPE) IS
    BEGIN
    m_rec_number := m_rec_number + 1;
    m_plsql_table (m_rec_number) := p_id;
    END;
    FUNCTION id_exists RETURN BOOLEAN IS
    BEGIN
    RETURN (m_rec_number > 0);
    END;
    FUNCTION current_id RETURN dept.deptno%TYPE IS
    v_id dept.deptno%TYPE;
    BEGIN
    v_id := m_plsql_table (m_rec_number);
    m_rec_number := m_rec_number - 1;
    RETURN v_id;
    END;
    END;
    CREATE OR REPLACE PACKAGE dynamic_new_old IS
    PROCEDURE set_table_name (p_table VARCHAR2);
    PROCEDURE set_pk_name (p_pk VARCHAR2);
    PROCEDURE create_column_names;
    PROCEDURE display_old_values (p_id dept.deptno%TYPE);
    PROCEDURE display_new_values (p_id dept.deptno%TYPE);
    END;
    CREATE OR REPLACE PACKAGE BODY dynamic_new_old IS
    m_table VARCHAR2 (30);
    m_pk VARCHAR2 (30);
    m_columns VARCHAR2 (1000);
    PROCEDURE set_table_name (p_table VARCHAR2) IS
    BEGIN
    m_table := p_table;
    END;
    PROCEDURE set_pk_name (p_pk VARCHAR2) IS
    BEGIN
    m_pk := p_pk;
    END;
    PROCEDURE create_column_names IS
    v_first_column BOOLEAN;
    BEGIN
    v_first_column := TRUE;
    FOR rec IN
    (SELECT column_name
    FROM user_tab_columns
    WHERE UPPER (table_name) = UPPER (m_table))
    LOOP
    IF v_first_column THEN
    v_first_column := FALSE;
    m_columns := 'v_record.' || rec.column_name;
    ELSE
    m_columns := m_columns ||
    '||' || '''--''' || '|| v_record.' || rec.column_name;
    END IF;
    END LOOP;
    END;
    PROCEDURE display_values (p_id dept.deptno%TYPE) IS
    v_cursor INTEGER;
    v_rows_processed INTEGER;
    v_statement VARCHAR2 (32000);
    BEGIN
    v_statement :=
    ' DECLARE ' ||
    ' v_record ' || m_table || '%ROWTYPE;' ||
    ' BEGIN' ||
    ' SELECT * INTO v_record' ||
    ' FROM ' || m_table ||
    ' WHERE ' || m_pk || ' = ' || p_id || ';' ||
    ' DBMS_OUTPUT.PUT_LINE (' || m_columns || ');' ||
    ' END;';
    v_cursor := DBMS_SQL.OPEN_CURSOR;
    DBMS_SQL.PARSE (v_cursor, v_statement, DBMS_SQL.V7);
    v_rows_processed := DBMS_SQL.EXECUTE (v_cursor);
    DBMS_SQL.CLOSE_CURSOR (v_cursor);
    EXCEPTION
    WHEN OTHERS THEN
    DBMS_OUTPUT.PUT_LINE (sqlerrm);
    IF DBMS_SQL.IS_OPEN (v_cursor) THEN
    DBMS_SQL.CLOSE_CURSOR (v_cursor);
    END IF;
    END;
    PROCEDURE display_old_values (p_id dept.deptno%TYPE) IS
    PRAGMA AUTONOMOUS_TRANSACTION;
    BEGIN
    display_values (p_id);
    END;
    PROCEDURE display_new_values (p_id dept.deptno%TYPE) IS
    BEGIN
    display_values (p_id);
    END;
    END;
    Note that this code is not generic, because uses
    "dept.deptno%TYPE". If all your PKs has the same declaration
    (for example NUMBER), then you can write generic solution.
    If you need only OLD values, you can write a simpler solution
    (without statement triggers and "plsql_table" package),
    using "dynamic_new_old" package and AUTONOMOUS_TRANSACTION
    in BEFORE (or AFTER) ROW trigger.
    Regards
    Zlatko Sirotic

  • Diff in new and old gl accounts

    diff in new and old gl accounts

    Dear Pranav,
    ECC 6.0 New GL Functionality
    1.Activate the New General Ledger Accounting by a single click on the clock icon
    2.You will reach to change view "activation of New GL A/cg" detail screen and tick the checkbox and save.
    3. After activation of New General Ledger Accounting, you exit the IMG screen When you re-enter , you find that a new node is added Financial Accounting (New)
    4.After activation of New General Ledger Accounting , a new sub node appears in the IMG structure.
    This sub node is Define Segment
    The menu path is:
    SAP Customizing IMG ---> Enterprise Structure -
    > Definition --> Financial Accounting --> Define Segment
    In this IMG activity, you define your segments.
    If you then define your profit centers, you can enter an associated segment in the master record of a profit center. The segment is then derived from the assigned profit center during posting.
    5.Activation has created a new field in Profit Center Master Record : the SEGMENT
    6.Leading and Non- Leading Ledgers
    In General Ledger Accounting , you can use several Ledgers in parallel. This allows you to produce financial statements according to different accounting principles. A ledger uses several dimensions from the totals table it is based upon. When defining Ledgers , one must be defined as the Leading Ledger . The Leading Ledger is based on the same accounting principles as that of the consolidated financial statements. It is integrated with all subsidiary ledgers and is updated in all company codes. This means that it is automatically assigned to all company codes. In each company code, the Leading Ledger receives exactly the same settings that apply to that company code : the currencies, the fiscal year variant and posting period variant .
    You must designate one of your ledgers as the Leading Ledger. It is not possible to designate more than one ledger as the leading ledger.
    The menu path is :
    SAP Customizing IMG -
    > Financial Accounting ( New ) -
    > Financial Accounting Basic Settings (New) -
    > Ledgers -
    > Ledger -
    > Define Ledgers for General Ledger Accounting
    Clicking on the checkbox identifies one of your ledgers as the Leading Ledger.
    7. Activation of Non Leading Ledgers
    Non Leading Ledgers are parallel ledgers to the Leading Ledger . They can be based on local accounting principle, for example. You have to activate a non- Leading Ledger for individual company codes. Non- Leading Ledgers can have different fiscal year variants and posting period variants per company code to the Leading Ledger of this company code.
    The menu path is :
    SAP Customizing IMG -
    > Financial Accounting ( New ) -
    > Financial Accounting Basic Settings (New) -
    > Ledgers -
    > Ledger -
    > Define and Activate Non --Leading Ledgers
    8.Assign scenarios to ledgers
    A Scenario combines Customizing settings from different business views. Each business view specifies which posting data is transferred from different application components in General Ledger Accounting, such as cost Center update or ProfitCenter update .You assign the desired scenarios to your ledgers. For each ledger, you define which fields are filled with posting data from other application components.
    SAP delivers a number of scenarios in the standard system. It is not possible to create additional scenarios.
    The menu path is:
    SAP Customizing IMG -
    > Financial Accounting ( New ) -
    > Financial Accounting Basic Settings (New) -
    > Ledgers -
    >Fields -
    > Display Scenarios for General Ledger Accounting.
    9. Cost of sales accounting
    Cost of sales accounting is a way to create a profit and loss statement (P&L) for a company by comparing the revenues to the costs or expenses incurred to obtain these revenues.
    The expenses are mainly divided by functional area such as:
    Manufacturing
    Administration
    Sales
    Research and Development
    We can activate Cost of Sales Accounting by the following menu path :
    SAP Customizing IMG -
    > Financial Accounting ( New ) -
    > Financial Accounting Basic Settings (New) -
    > Ledgers ->Ledger---> Activate Cost of Sales Accounting
    Regards,
    Naveen.

  • I recently upgraded my old powerbook to an iMac.  I've dumped the files of my backup drive into the new iMac. Is there a way to have access to all the files (new and old computers) when logged on as the same user vs. logging in and out to access each?

    I am new to posting to this support community but have often referred to it for answers.  So thank you all who've contributed; you've been a great help!
    I recently upgraded my old powerbook to an iMac.  I've dumped the files of my backup drive into the new iMac. Is there a way to have access to/merge all the files (new and old computers) together so when I'm logged in can access all the files.
    Thanks!
    M

    Sure-glad to help you. You will not lose any data by changing synching to MacBook Pro from imac. You have set up Time Machine, right? that's how you'd do your backup, so I was told, and how I do my backup on my mac.  You should be able to set a password for it. Save it.  Your stuff should be saved there. So if you want to make your MacBook Pro your primary computer,  I suppose,  back up your stuff with Time machine, turn off Time machine on the iMac, turn it on on the new MacBook Pro, select the hard drive in your Time Capsule, enter your password, and do a backup from there. It might work, and it might take a while, but it should go. As for clogging the hard drive, I can't say. Depends how much stuff you have, and the hard drive's capacity.  As for moving syncing from your iMac to your macbook pro, should be the same. Your phone uses iTunes to sync and so that data should be in the cloud. You can move your iTunes Library to your new Macbook pro
    you should be able to sync your phone on your new MacBook Pro. Don't know if you can move the older backups yet-maybe try someone else, anyways,
    This handy article from Apple explains how
    How to move your iTunes library to a new computer - Apple Support''
    don't forget to de-authorize your iMac if you don't want to play purchased stuff there
    and re-authorize your new macBook Pro
    time machine is an application, and should be found in the Applications folder. it is built in to OS X, so there is nothing else to buy. double click on it, get it going, choose the Hard drive in your Time capsule/Airport as your backup Time Machine  and go for it.  You should see a circle with an arrow on the top right hand of your screen (the Desktop), next to the bluetooth icon, and just after the wifi and eject key (looks sorta like a clock face). This will do automatic backups  of your stuff.

Maybe you are looking for

  • Slow DataBase Access using JDK 1.5 and MySQL

    Hi EveryBody, I am using Jdk1.5 in my project and mysql 5.0 as my database server. The problem is that, to create a connection for the first time it takes upto 20 to 25 seconds. when i use the 1.4.2 with the same mysql version it takes only 2 seconds

  • Reageding DB2 connection

    Hi all, i want to connect my java source code with DB2. I am looking in the net for the help. At one place it is written : These JAR files are required to use the DB2 JDBC Universal driver. Put both of these JAR files in your client class path to run

  • Is there a downloadable demo version of Aperture & Logic?

    Hi, I'm the proud new owner of a 2012 MAcBook air. Is there a downloadable demo version of Aperture and Logic? (I already installed the Final Cut Pro Demo). Thanks, DewBlue

  • ERror 0008 southern touch spades

    i hope this is the right place to post this,  I am having trouble with a game, southern touch spade. they had an update rhe other day, and when I went to install it i got this error code. i tried several times, and in my wisdom i deleteed the app and

  • Unable  to work with Workflow Variable through SPML launchProcess Request ?

    Hi, I am trying to work with launch process request, which worked well with no error message when I am just using the workflow call through SPML "launchProcess Request " call. But when trying to use any workflow variable then getting exceptions. I do