Table Update Time ?

How do you find out the latest time a table was updated ? ( The table does not have a manually maintained last_update_date column )

see http://www.jlcomp.demon.co.uk/faq/table_update.html

Similar Messages

  • Recording a last updated time for each record in a table

    hi
    i have a table with 5 columns. and the table has 100 rows of data.
    i need to add a sixth column and this column should contain the last updated time of that particular row.
    i am allowed to use triggers.
    for example, if the 55th row undergoes a change, the 6th column's value for the 55th row should update itself with that particular time.
    can any one of you come up with an optimized solution for this please ???
    thanx a million in advance and best regards,
    novice DBA
    :)

    Hi,
    Here's an example:
    CREATE OR REPLACE TRIGGER table_x_biu
    BEFORE INSERT OR UPDATE ON table_x
    FOR EACH ROW
    BEGIN
         :NEW.modified_dt := SYSDATE;
    END     table_x_biu
    SHOW ERRORSwhere table_x is your table name, and modified_dt is the DATE column to be populated.
    You won't have to specify modified_dt in any INSERT or UPDATE statements. In fact, if you do, the value you give will be ignored, and the trigger will always substitute SYSDATE.
    WARNING: if you do get an error message, the line number reported will usually be relative to the first DECLARE or BEGIN statement in the trigger. For example, if I had mis-spelled SYSDATE in the example above, the error message would say there was a problem in line 2, not line 5.

  • Sql statement for retrieving the last update time of a table

    Hello all,
    Can somebody give me an example of sql statement for retrieving the last update time of an oracle table.
    Thank you
    Il

    Thanks for the fast replies. It works great when I test it as a sql statement but when trying to populate a datalist with it it raises the following exception:
    Exception Details: System.ArgumentException: SCN_TO_TIMESTAMP(MAX(ORA_ROWSCN is neither a DataColumn nor a DataRelation for table DefaultView
    Part of the Datalist Code:
    ItemTemplate>
    Line 12:             SCN_TO_TIMESTAMP(MAX(ORA_ROWSCN)):
    Line 13:             <asp:Label ID="SCN_TO_TIMESTAMP_MAX_ORA_ROWSCN__Label" runat="server" Text='<%# Eval("[SCN_TO_TIMESTAMP(MAX(ORA_ROWSCN))]") %>'>
    Line 14:             </asp:Label><br/>
    Line 15:             <br/>
    {code}
    Why is this happening? Any ideas?
    Il                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Auto update of Ztable when ever BSID or BSAD tables updated

    Auto update of Ztable when ever DB table updated     
    Hi experts
    I want my Ztable get updated automatically when ever a record is created or updated in BSID or BSAD tables.
    Here clear requirement
    Generally using Company code & Allocation number  ( 18 char ) my programs access BSID & BSAD tables it is taking very long time for execution almost more than 30 minutes ( data in millions ).
    Step 1.
    I created a new Ztable with limited fields Company Code, Customer, Document, Allocation Number and Posting date.
    Step 2.
    Before look into BSID or BSAD my program searches Ztable for Customer number & Document number using Allocation field and Company code.
    Step 3.
    Once get the Customer & Document numbers accessing BSID & BSAD table is very easy (now just taking less than 1 minute).
    Created a new program to update Ztable every day but BSID and BSAD are live table so I want my Ztable get updated immediately when any entry posted in BSID or BSAD
    Please help me
    Satya
    Singapore

    You need to check what is the procedure (T-Code) from which the data gets updated into these tables.
    For example
    when we craete a material from MM01 the data gets updated in the corresponding table i.e. EKPO.
    In same way you need to find the process and then you can use BTE (Busineess transaction events) for that process. BTE are only for FI module and these tables are also related to FI .

  • Tables updating for atransaction

    Hi All,
       i wnat to know is there any transaction code or program to know the tables updated for a transaction.
    we have a transaction called PPOM and FS00 ,i want to know which tables are updated when i create new records for these transaction codes.
    With regards,
    kiran I

    Hi,
      You can check tables CDHDR and CDPOS tables.
    You can check the modified tables, values, by which transaction does this modification has been done.
    Give current date to check. As these are cluster tables, it may take some time for retrieving data.
    CDHDR - header details
    CDPOS - item details
    Regards,
    Sailaja.
    Dont forget to reward points, if answer helps you.
    Message was edited by: Sailaja N.L.

  • Update Time where Date already exists

    Hi,
    When i am trying to update time in the column where date already exists, i tried using the update query, but time is not getting updated.
    UPDATE ABC SET ATTRIBUTE=TO_DATE('09/30/2011 12:00:00 AM','MM/DD/YYYY HH:MI:SS')
    Attribute = 9/30/2011 (As per current record in DB) and i want to add time also..
    So when i try updating the record, i dont get any errors, but the time does not get updated, can any one help me for this issue.???
    Datatype of Attribute is Varchar2(150)
    Thanks

    Is there anyway to update a record throgh TO_CHAR function???
    SQL> @test
    SQL> create table abc (Attribute Varchar2(150));
    Table created.
    SQL> insert into abc values('09/30/2011');
    1 row created.
    SQL> commit;
    Commit complete.
    SQL> select * from abc;
    ATTRIBUTE
    09/30/2011
    SQL> UPDATE ABC SET ATTRIBUTE=to_char(sysdate,'YYYY_MM_DD HH24:MI:SS');
    1 row updated.
    SQL> COMMIT;
    Commit complete.
    SQL> select * from abc;
    ATTRIBUTE
    2011_03_06 19:59:37
    SQL> drop table abc;
    Table dropped.
    SQL>

  • Last warehouse update time on dashboards

    Hello,
    I need to get information about table (dimension, cube) or complete warehouse update time. The idea is that client can see synchronization completion date on each dashboard. What is the best way to implement such functionality?
    Thanks

    Here's one option. Create a physical table in the database and populate/update it as your warehouse data is updated. Use repository session variable(s) and populate via an initialisation block when a user logs on. Display the relevant session variable in a simple request on each dashboard.
    Gareth

  • Checkbox onClick table updates

    Hello,
    Ok, I'm struggling here. I have a list. The first item is a checkbox, I can check/unckeck the box without any trouble. What I can NOT do is update the table based on when the box is unchecked. I've created a Tabular Form and want to update a column on the record being reported on this form based on weather the box is checked or unchecked.
    If the box is currently checked, based on the data in the table, and the user un-checks the box, I need to update the value in the table. Since Oracle only returns checked items, that won't work. I don't want to update the entire table every time a user unchecks record.
    I'm sure it has to do with the onClick procedure, I just can NOT seem to get this to work.
    What I need is: If the box was not originally checked but the user clicks the checkbox so that it is checked then update the record with this primary-key-value marking the yes-no column with a 'Y'. If the box was originally checked and the user unchecks the box, mark it with a 'N'.
    Please help.
    Thanks,
    Don.

    Don:
    Make these modifications.
    For the query ,modify the checkbox item's value to be a concatenated string of
    EMP_ID.<Team_Member_Status>.<team_member>
    select apex_item.checkbox(1,EMP_ID||'.'||decode(team_member,'1','Y.Y' ,'N.N')
    ,decode(team_member,'1','CHECKED' ,Null) || ' onClick=setVal(this)') "On Team",
    apex_item.text(2,Fullname)
    from employees;Add the Javascript below to your page
    <script>
    function setVal(cb) {
    // split the value of the chekbox
    vals=cb.value.split('.');
    //set third element of the chekbox value string to indicate users new selection
    if (cb.checked)
       vals[2]='Y'   
    else
       vals[2]='N';
    // put the value of checkbox together
    cb.value=vals[0] + '.' + vals[1] + '.' + vals[2]
    function setAll() {
    cbs=document.forms[0].f01;
    // set all checkboxes so that each can be refereced in the g_f01 array
    for (i=0;i<cbs.length;i++){
        cbs.checked=true;
    // submit the form
    doSubmit('SUBMIT')
    </script>
    Set the SUBMIT button of your page to re-direct to the URL
      javascript:setAll
    Now, your after submit process can access each checkbox (via the g-f01 array)
    and the value of the checkbox will be a concatenated string formatted as
    <emp_id>.<original value of team member>.<new value of team member>
    You can now split the concatenated string into its components. Comparing the old and new settings of the 'team member' components will let you decide whether the record corresponding to the 'empid' needs to be updated or not.
    Hope this works for you.
    Varad                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • BDCPS (Chane Pointers table updation).

    Hi Friends,
    could you please  help me, Actually we have changed the vendor master data in MK02, when i modified the vendor master data in MK02 That time the system updates the Change pointers table BDCPS.
    Could you please help me where the BDCPS table updates at time vendor master change in MK02
    Please help me
    Thanks.
    Charnn.

    Why don't you use ST05 to trace the SQL executions upon that table, you'll then be able to easily reach the ABAP source line. By the way, the CHANGE_POINTERS_CREATE* function modules are used to write change pointers. See [sap library|http://help.sap.com/saphelp_nw2004s/helpdata/en/78/2178da51ce11d189570000e829fbbd/frameset.htm]

  • Ways to find Tables updated by Transaction

    Hi,
    I am having the list of transactions.I want to find the list of tables updated by the transaction.
    I need the various ways to find the same and let me know the best method for that.
    Any pointers will be highly appreciated.
    Edited by: Jayanthi Jayaraman on Dec 20, 2007 5:24 AM

    Hi Jayanthi,
      Try FM  RS_PROGRAM_TABLES
      give Object_type  as  TRAN
             object_name as  FB01 
    it gives the list of tables  effected by that TCODE
    see the output
    These are the tables where delete statement is used on this table
    Delete
      Table      Description
      TFBUF      Table for FI Data Puffers
    These are the tables where the data is updated
    Change
      Table      Description
      BSEG       Accounting Document Segment
      BSEU       Line Item Additional Information (Update)
      BSEZ       Line Item Additional Information (Online)
      RFDT       Accounting Data (INDX Structure)
      SKB1       G/L account master (company code)
      TFBUF      Table for FI Data Puffers
    these are the tables  READ , used in select statements
    Read
      Table      Description
      BKDF       Document Header Supplement for Recurring Entry
      BKPF       Accounting Document Header
      BNKA       Bank master record
      BSEC       One-Time Account Data Document Segment
      BSED       Bill of Exchange Fields Document Segment
      BSEG       Accounting Document Segment
      BSET       Tax Data Document Segment
      BSID       Accounting: Secondary Index for Customers
      BSIK       Accounting: Secondary Index for Vendors
      BSIX       Index table for customer bills of exchange used
      IDBUPLA_AC Activate Business Place per country

  • How can i transfer data from old MacBook Pro, which is too old to update time machine, to the newest MacBook Pro?

    I recently bought a new MacBook Pro, and wanted to transfer all the data from my old MacBook Pro, but I get the message saying I need to update time machine on my old one in order to use time machine. However, my old one is too old to update. So I decided to use the cable to transfer, because I heard I can do it that way even though it could take time. But I have no idea what to do...
    Can someone help me?

    A Basic Guide for Migrating to Intel-Macs
    The Knowledgebase article Intel-based Mac: Some migrated applications may need to be updated refers to methods of dealing with migrating from PowerPC chips to Intel with the Migration Assistant safely. The authors of this tip have not had a chance to verify this works in all instances, or that it avoids the 10.6.1 and earlier Guest Account bug that caused account information to get deleted upon use of the Migration/Setup Assistant. However, a well backed up source that includes at least two backups of all the data that are not connected to your machine will help you avoid potential issues, should they arise. In event it does not work, follow the steps below.
    If you are migrating a PowerPC system (G3, G4, or G5) to an Intel-Mac be careful what you migrate.  Keep in mind that some items that may get transferred will not work on Intel machines and may end up causing your computer's operating system to malfunction.
    Rosetta supports "software that runs on the PowerPC G3, G4, or G5 processor that are built for Mac OS X". This excludes the items that are not universal binaries or simply will not work in Rosetta:
    Classic Environment, and subsequently any Mac OS 9 or earlier applications
    Screensavers written for the PowerPC System Preference add-ons
    All Unsanity Haxies Browser and other plug-ins
    Contextual Menu Items
    Applications which specifically require the PowerPC G5 Kernel extensions
    Java applications with JNI (PowerPC) libraries
    See also What Can Be Translated by Rosetta.
    In addition to the above you could also have problems with migrated cache files and/or cache files containing code that is incompatible.
    If you migrate a user folder that contains any of these items, you may find that your Intel-Mac is malfunctioning. It would be wise to take care when migrating your systems from a PowerPC platform to an Intel-Mac platform to assure that you do not migrate these incompatible items.
    If you have problems with applications not working, then completely uninstall said application and reinstall it from scratch. Take great care with Java applications and Java-based Peer-to-Peer applications. Many Java apps will not work on Intel-Macs as they are currently compiled. As of this time Limewire, Cabos, and Acquisition are available as universal binaries. Do not install browser plug-ins such as Flash or Shockwave from downloaded installers unless they are universal binaries. The version of OS X installed on your Intel-Mac comes with special compatible versions of Flash and Shockwave plug-ins for use with your browser.
    The same problem will exist for any hardware drivers such as mouse software unless the drivers have been compiled as universal binaries. For third-party mice the current choices are USB Overdrive or SteerMouse. Contact the developer or manufacturer of your third-party mouse software to find out when a universal binary version will be available.
    Also be careful with some backup utilities and third-party disk repair utilities. Disk Warrior, TechTool Pro , SuperDuper , and Drive Genius  work properly on Intel-Macs with Leopard.  The same caution may apply to the many "maintenance" utilities that have not yet been converted to universal binaries.  Leopard Cache Cleaner, Onyx, TinkerTool System, and Cocktail are now compatible with Leopard.
    Before migrating or installing software on your Intel-Mac check MacFixit's Rosetta Compatibility Index.
    Additional links that will be helpful to new Intel-Mac users:
    Intel In Macs
    Apple Guide to Universal Applications
    MacInTouch List of Compatible Universal Binaries
    MacInTouch List of Rosetta Compatible Applications
    MacUpdate List of Intel-Compatible Software
    Transferring data with Setup Assistant - Migration Assistant FAQ
    OS X Lion: How to use Migration Assistant to transfer files from another Mac
    Because Migration Assistant isn't the ideal way to migrate from PowerPC to Intel Macs, using Target Disk Mode, copying the critical contents to CD and DVD, an external hard drive, or networking will work better when moving from PowerPC to Intel Macs.  The initial section below discusses Target Disk Mode.  It is then followed by a section which discusses networking with Macs that lack Firewire.
    If both computers support the use of Firewire then you can use the following instructions:
    Repair the hard drive and permissions using Disk Utility.
    Backup your data.  This is vitally important in case you make a mistake or there's some other problem.
    Connect a Firewire cable between your old Mac and your new Intel Mac.
    Startup your old Mac in Transferring files between two computers using FireWire.
    Startup your new Mac for the first time, go through the setup and registration screens, but do NOT migrate data over. Get to your desktop on the new Mac without migrating any new data over.
    If you are not able to use a Firewire connection (for example you have a Late 2008 MacBook that only supports USB:)
    1. Set up a local home network: Creating a small Ethernet Network.
    2. If you have a MacBook Air or Late 2008 MacBook see the following:
    MacBook (13-inch, Aluminum, Late 2008) and MacBook Pro (15-inch, Late 2008)- What to do if migration is unsuccessful;
    MacBook Air- Migration Tips and Tricks;
    MacBook Air- Remote Disc, Migration, or Remote Install Mac OS X and wireless 802.11n networks.
    Copy the following items from your old Mac to the new Mac:
    In your /Home/ folder: Documents, Movies, Music, Pictures, and Sites folders.
    In your /Home/Library/ folder:
    /Home/Library/Application Support/AddressBook (copy the whole folder) /Home/Library/Application Support/iCal (copy the whole folder)
    Also in /Home/Library/Application Support (copy whatever else you need including folders for any third-party applications)
    /Home/Library/Keychains (copy the whole folder) /Home/Library/Mail (copy the whole folder) /Home/Library/Preferences/ (copy the whole folder) /Home /Library/Calendars (copy the whole folder) /Home /Library/iTunes (copy the whole folder) /Home /Library/Safari (copy the whole folder)
    If you want cookies:
    /Home/Library/Cookies/Cookies.plist /Home/Library/Application Support/WebFoundation/HTTPCookies.plist
    For Entourage users:
    Entourage is in /Home/Documents/Microsoft User Data Also in /Home/Library/Preferences/Microsoft.
    Credit goes to Macjack for this information.
    If you need to transfer data for other applications please ask the vendor or ask in the  Discussions where specific applications store their data.
    5. Once you have transferred what you need restart the new Mac and test to make sure the contents are there for each of the applications.
    Written by Kappy with additional contributions from a brody.Revised 5/21/2011

  • DBI-  Update TIme Dimention is completed in Error.

    Hi Expert
    Please help me to resolve the issue the error we are getting ierror while run the request running in DBI-
    Report Name Update Time Dimention
    From Date 01-Jan-12
    To Date 31-Dec-15
    SURAJ
    THE idea is we are tring to upload the time dimention in Oracle.
    1)
    Going to check missing dates in the Time dimension from 19-AUG-2011 00:00:00 to 05-FEB-2013 00:00:00 ...
    There are missing dates in the Time dimension.
    To fix the issue, please load the Time dimension from 01-JAN-2013 00:00:00 to 05-FEB-2013 00:00:00
    The following order lines have dates outside the time dimension range. Review if they are incorrect timestamps or missing in time dimension.
    Please reload the Order Management base summary after fixing the missing dates.
    Order Number - Line Number - Line ID - Booked Date - Fulfilled Date - Shipped Date - Schedule Ship Date
    5163201 - 1.1 - 1309578 - 08/23/2012 - - - 01/03/2013
    5162913 - 1.1 - 1307386 - 08/21/2012 - - - 01/08/2013
    5162910 - 1.1 - 1307383 - 08/21/2012 - - - 02/05/2013
    5162885 - 1.1 - 1307197 - 08/21/2012 - - - 01/15/2013
    5162808 - 4.1 - 1306480 - 08/20/2012 - - - 02/05/2013
    5162808 - 3.1 - 1306479 - 08/20/2012 - - - 02/05/2013
    5162808 - 2.1 - 1306478 - 08/20/2012 - - - 02/05/2013
    5162808 - 1.1 - 1306477 - 08/20/2012 - - - 02/05/2013
    5162669 - 1.1 - 1305118 - 08/17/2012 - - - 02/05/2013
    5162645 - 1.1 - 1304925 - 08/17/2012 - - - 02/05/2013
    2)
    Financial Intelligence: Version : 11.5.0
    Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
    FII_TIME_C module: Update Time Dimension
    Current system time is 27-AUG-2012 09:57:51
    **Starts**27-AUG-2012 09:57:52
    **Ends**27-AUG-2012 10:00:13
    Start of log messages from FND_FILE
    DB Version: 10.2.0.4.0
    Atomic refresh: false
    FII_TIME_CAL_DAY_MV was altered to parallel
    FII_TIME_CAL_DAY_MV was refreshed using INITIAL refresh method
    FII_TIME_CAL_DAY_MV was altered to nonparallel
    FND_GLOBAL.CONC_PRIORITY_REQUEST: 9888
    Request Set: , FORCE_FULL option:
    No action for MV Log recreation.
    calling "Import BIS Time Dimension into BSC program"
    source language=US
    Installed languages
    US
    DBI Implemented
    fii_time_day has data. DBI Implemented
    select 1 from bsc_db_calendar,bsc_sys_calendars_b where edw_calendar_type_id=1 and edw_calendar_id =1001
    and bsc_db_calendar.calendar_id=bsc_sys_calendars_b.calendar_id and rownum=1
    select 1 from mlog$_fii_time_day where rownum=1
    select 1 from mlog$_fii_time_day where dmltype$$ <>'I' and rownum=1
    Only insert rows. Inc change
    In load_dbi_cal_into_bsc_inc 08/27/2012 10:00:11
    cursor c1 is select max(ent_year_id), min(ent_year_id), to_number(to_char(sysdate,'YYYY')) from fii_time_day; 08/27/2012 10:00:11
    l_max_year=2015 08/27/2012 10:00:11
    l_min_year=2004 08/27/2012 10:00:11
    l_current_year=2012 08/27/2012 10:00:11
    Finaly g_bsc_greg_fiscal_year=2012
    select bsc_sys_periodicities.periodicity_id,bsc_sys_periodicities.period_type_id from bsc_sys_periodicities ,bsc_sys_calendars_b where bsc_sys_periodicities.calendar_id=bsc_sys_calendars_b.calendar_id and bsc_sys_calendars_b.edw_calendar_type_id=1 an
    d bsc_sys_calendars_b.edw_calendar_id=1001/1002/1003
    Ent periodicities
    g_ent_cal_id=24
    g_ent_fiscal_change=0
    g_ent_day_per_id=242
    g_ent_week_per_id=243
    g_ent_period_per_id=244
    g_ent_qtr_per_id=245
    g_ent_year_per_id=246
    445 periodicities
    g_445_cal_id=25
    g_445_fiscal_change=0
    g_445_cal_short_name=BSC_PER_2455850894563151
    g_445_day_per_id=247
    g_445_day__short_name=BSC_PER_2455850894563151
    g_445_week_per_id=248
    g_445_week_short_name=BSC_PER_2455850894563163
    g_445_p445_per_id=249
    g_445_p445_short_name=BSC_PER_2455850894563171
    g_445_year_per_id=250
    g_445_year_short_name=BSC_PER_2455850894563176
    Greg periodicities
    g_greg_cal_id=26
    g_greg_fiscal_change=0
    g_greg_cal_short_name=BSC_PER_2455850894563184
    g_greg_day_per_id=251
    g_greg_day_short_name=BSC_PER_2455850894563185
    g_greg_period_per_id=252
    g_greg_period_short_name=BSC_PER_2455850894563190
    g_greg_qtr_per_id=253
    g_greg_qtr_short_name=BSC_PER_2455850894563196
    g_greg_year_per_id=254
    g_greg_year_short=BSC_PER_2455850894563201
    select report_date,to_char(report_date,'DD'),to_char(report_date,'MM'),to_char(report_date,'YYYY'),
    ent_period_id,week_id from mlog$_fii_time_day
    where not exists (select 1 from bsc_sys_periods where
    periodicity_id=:1 and time_fk=to_char(report
    _date,'MM/DD/YYYY'))
    order by report_date 242
    g_num_dbi_cal_record=1095
    select to_date(start_month||'/'||start_day||'/'||current_year,'MM/DD/YYYY') from bsc_sys_calendars_b where edw_calendar_type_id=1 and edw_calendar_id=1001
    g_ent_start_date=01-JAN-11
    select to_date(start_month||'/'||start_day||'/'||current_year,'MM/DD/YYYY') from bsc_sys_calendars_b where edw_calendar_type_id=1 and edw_calendar_id=1002
    g_445_start_date=03-JAN-11
    select to_date(start_month||'/'||start_day||'/'||current_year,'MM/DD/YYYY') from bsc_sys_calendars_b where edw_calendar_type_id=1 and edw_calendar_id=1003
    g_greg_start_date=01-JAN-11
    select ent_period_id,ent_year_id,sequence,name,start_date, end_date from FII_TIME_ENT_PERIOD
    where ent_period_id not in (select to_number(time_fk) from bsc_sys_periods where periodicity_id=:1)
    order by ent_period_id 244
    g_num_dbi_ent_period=36
    select ent_qtr_id,ent_year_id,sequence,name, start_date, end_date from FII_TIME_ENT_QTR
    where ent_qtr_id not in (select to_number(time_fk) from bsc_sys_periods where periodicity_id=:1)
    order by ent_qtr_id 245
    g_num_dbi_ent_qtr=12
    select ent_year_id,sequence,name, start_date, end_date from FII_TIME_ENT_YEAR
    where ent_year_id not in (select to_number(time_fk) from bsc_sys_periods where periodicity_id=:1)
    order by ent_year_id 246
    g_num_dbi_ent_year=3
    select week_id,substr(week_id,1,4),substr(week_id,1,4),sequence,name, start_date, end_date from FII_TIME_WEEK
    where week_id not in (select to_number(time_fk) from bsc_sys_periods where periodicity_id=:1)
    order by week_id 248
    g_num_dbi_445_week=156
    select period445_id,year445_id,sequence,name, start_date, end_date from fii_time_p445
    where period445_id not in (select to_number(time_fk) from bsc_sys_periods where periodicity_id=:1)
    order by period445_id 249
    g_num_dbi_445_p445=35
    select year445_id col1,year445_id col2,name, start_date, end_date from fii_time_year445
    where year445_id not in (select to_number(time_fk) from bsc_sys_periods where periodicity_id=:1)
    order by year445_id 250
    g_num_dbi_445_year=2
    In correct_ent_week 08/27/2012 10:00:12
    select to_date(calendar_year,calendar_month,calendar_day,week52,year from bsc_db_calendar where calendar_id=p_calendar
    order by calendar_year desc,calendar_month desc,calendar_day desc using 24
    l_max_date=31-DEC-12, l_prev_week=54, l_prev_year=2012
    select week_id from fii_time_week where week_id in (select week_id from fii_time_day where report_date=:1)
    l_prev_fii_week=20130101
    Going to correct data.
    l_prev_week=54
    l_prev_year=2012
    l_prev_fii_week=20130101
    l_index=1
    Output from g_dbi_445_week
    20130102 2 2 2013
    20130103 3 3 2013
    20130104 4 4 2013
    20130205 5 5 2013
    20130206 6 6 2013
    20130207 7 7 2013
    20130208 8 8 2013
    20130309 9 9 2013
    20130310 10 10 2013
    20130311 11 11 2013
    20130312 12 12 2013
    20130313 13 13 2013
    20130414 14 14 2013
    20130415 15 15 2013
    20130416 16 16 2013
    20130417 17 17 2013
    20130518 18 18 2013
    20130519 19 19 2013
    20130520 20 20 2013
    20130521 21 21 2013
    20130622 22 22 2013
    20130623 23 23 2013
    20130624 24 24 2013
    20130625 25 25 2013
    20130626 26 26 2013
    20130727 27 27 2013
    20130728 28 28 2013
    20130729 29 29 2013
    20130730 30 30 2013
    20130831 31 31 2013
    20130832 32 32 2013
    20130833 33 33 2013
    20130834 34 34 2013
    20130935 35 35 2013
    20130936 36 36 2013
    20130937 37 37 2013
    20130938 38 38 2013
    20130939 39 39 2013
    20131040 40 40 2013
    20131041 41 41 2013
    20131042 42 42 2013
    20131043 43 43 2013
    20131144 44 44 2013
    20131145 45 45 2013
    20131146 46 46 2013
    20131147 47 47 2013
    20131248 48 48 2013
    20131249 49 49 2013
    20131250 50 50 2013
    20131251 51 51 2013
    20131252 52 52 2013
    20140101 1 1 2014
    20140102 2 2 2014
    20140103 3 3 2014
    20140104 4 4 2014
    20140205 5 5 2014
    20140206 6 6 2014
    20140207 7 7 2014
    20140208 8 8 2014
    20140309 9 9 2014
    20140310 10 10 2014
    20140311 11 11 2014
    20140312 12 12 2014
    20140313 13 13 2014
    20140414 14 14 2014
    20140415 15 15 2014
    20140416 16 16 2014
    20140417 17 17 2014
    20140518 18 18 2014
    20140519 19 19 2014
    20140520 20 20 2014
    20140521 21 21 2014
    Error in load_dbi_445_cal_data ORA-00001: unique constraint (BSC.BSC_SYS_PERIODS_U1) violated 08/27/2012 10:00:13
    Error in load_dbi_cal_into_bsc_inc ORA-00001: unique constraint (BSC.BSC_SYS_PERIODS_U1) violated 08/27/2012 10:00:13
    Error in load_dbi_cal_into_bsc ORA-00001: unique constraint (BSC.BSC_SYS_PERIODS_U1) violated 08/27/2012 10:00:13
    Exception happens in BSC_DBI_CALENDAR.load_dbi_cal_into_bsc ORA-00001: unique constraint (BSC.BSC_SYS_PERIODS_U1) violated
    End of log messages from FND_FILE
    Executing request completion options...
    Output is not being printed because:
    The print option has been disabled for this report.
    Finished executing request completion options.
    Concurrent request completed
    Current system time is 27-AUG-2012 10:00:14
    ---------------------------------------------------------------------------

    Please see if (Ora-00001: Unique Constraint (Bsc.Bsc_sys_periods_u1) Violated [ID 554200.1]) helps.
    Thanks,
    Hussein

  • Problem in MSEG Table updation

    Hello All,
    The problem is related to MSEG table updation after Stock Transport Order  (STO) is done between Manufacturing plant & Depot. The problem is described below with an example.
    In case of STO the Supplying Plant or vendor is SP02 and the Receiving Plant or the customer is RP15.in the STO under the shipping tab for Customer the system is showing RP15 and under the Delivery address tab for Vendor the system is showing SP02.
    While during PGI when the material document is generated when we check the MSEG table two line items have been generated where  we found that the field WERKS contained SP02 & RP15 against which the feld XAUTO is showing blank space & X symbol respectively.But in case of both LIFNR & KUNNR fields it is showing blank space, which indicates that both the vendor & customer  fields are not getting updated in the MSEG table.
    Now I want the system to pick up the data for KUNNR field (in case of XAUTO is X) also in the MSEG table i.e. RP15 should also be displayed in the MSEG table.
    Is there any configuration to attain my requirement?
    Looking forward to some valuable suggestions.
    Thanks & Regards
    Priyanka Mitra

    the ADRx tables are central tables that are used from various transactions in SAP.
    e.g. from customizing, master data maintenance, transactional data, such as purchase orders and sales orders.
    use the ADRNR from ADR6 table and then lookup an entry in table ADRC to find and hint to its origin  field ADDR_GROUP

  • Calling Batch input from Web Dynpro - any alternatives for table updates?

    Hi!
    I am asked to create a screen in Web Dynpro for the GJ30 transaction (JV Cutback mapping of WBS' elements). I created a remote enabled function module which call batch input for GJ30 . Testing the Function modules direclty goes fine, but not calling the function module from WD. then I get the same error message as when I once tried to call SAP GUI from Web Dynpro ( Call transaction /submit program).
    My next step is to try to create a batch input session (instead of call transaction) and run it using rsbdcsub, and then check the result of the run. But maybe this will fail of the same reason as well, and I suppose this will make the user waiting longer for the response .
    I read somewhere that Web Dynpro does not support batch Input. But what can you do when there are no standard BAPI's for the update you want to do in SAP ?  We are not supposed to do direct table updates.  
    Anyone who have struggled with the same issues and found a solution??
    regards, Tine

    Hi,
    as BDC is calling screens and in Webdynpro ABAP you cannot use SAP GUI sceeen, you are getting short dump.
    Refer CNTL_SYSTEM_ERROR in webservices from r/3 system
    Thanks,
    Chandra

  • How to get the latest update time of a info provider in ABAP

    hi experts,
    i am doing a ABAP program and need to get the latest update time of a info provider , does anyone know where it stores in BW or any other way to get it?
    many thanks
    WHY

    Table : RSREQDONE
    you can give INFOPAK_ID as parameter and search for latest/last Request ID and dispaly time and Date.
    Cheers
    Praveen

Maybe you are looking for