Significance of object_version_number in table ota_attempts

Hi All,
I'm using oracle 11.5.10
Can somebody explain me about the significance of the column object_version_number in the table ota_attempts.
I searched in eTRM and it says version control parameter.
How to check how it gets updated with which value, while users take the course in OLM
I need this details to assist me in debugging an error in OLM
Any pointers on this will be really helpful
Regards,
Mohan

I seriously doubt what is being informed above as answer to the question 'what is object_version_number', is correct.
Object_version_number, or popularly known as OVN in HRMS tables is a column whose concept is independent of any specific table. That is, almost all the tables in HRMS contain this column and has the same purpose. The purpose being maintain the integrity of data being shown to the end user.
When a new record is created in the table the value stored in this column is 1. When the same record is updated the value increases to 2. Let us say there are two users accessing the same data at the same point of time, i.e. both of them have fetched the record with OVN = 2. Now if first user makes a modification in the record and saves changes, OVN is changed to 3. Now if at this point of time the second user, who is looking at the stale data, makes some change in the same record and tries to save it, application compares the OVN present in the table ( =3 ) and currently fetched (=2). If this does not match, it gets to know that there has been some modification made to the record after being fetched by the current user. At this point of time it throws an error saying that the object you are trying to modify is not valid, please requery.
Thus the sole purpose of OVN is to maintain integrity of the data in the application. It is same for any table when this column exists. It has got absolutely nothing to do with learning object or its version.
You can query the triggers present on this table. The WHO trigger (which is named like Table_name_WHO), contains the code to maintain this column whenever an insert./update is made to the table.

Similar Messages

  • Significance of S_ETL_DAY & S_ETL_TIME_DAY tables in "Usage Tracking"

    Hello Experts,
    I am working with Usage Tracking.
    I found that there are tables S_ETL_DAY & S_ETL_TIME_DAY tables.
    Can you please explain me the significance of these tables and what is the job of those. I just googled for it but no luck.
    How these tables data updated and used if i want to implement usage tracking for my project? (real time)
    Thanks in advance

    Hi.
    S_ETL_DAY and S_ETL_TIME_DAY are time dimension tables. One has day and other has day-time as granularity.
    They are used in usage tracking option along with S_NQ_ACCT which joins them.
    Joins are:
    S_ETL_DAY.DAY_DT = S_NQ_ACCT.START_DT
    and
    S_ETL_TIME_DAY.HOUR_MIN = S_NQ_ACCT.START_HOUR_MIN
    They are also used for time series calculations. If you see, they have AGO columns.
    Regards
    Goran
    http://108obiee.blogspot.com

  • Significance or use of various planning tables

    Hi All
    Can anyone please explain the significance of various tables used in planning.
    I have searched the whole of Oracle portal but i haven't found a documentation which explains the importance or significance of various tables of planning.
    If possible please provide me the link of this documentation or kindly let me know the significance of various planning tables.
    Thanks in advance
    regards
    krishnatilak

    VK, locale controls what landing page the recipient would see if he clicked an Unsubscribe or Opt Out from List link. The landing page shows up in that language.
    Character set governs the display of characters in the email such as text or double byte characters. It should be set to Unicode (UTF-8) unless there is a very specific reason not to.

  • Deleting records from a table

    Hi
    I have to delete a table which is having nearly 9 crore records, I deleted some of the old records which is nearly 10-15 lakhs records and I have checked the free size of the tablespace after giving alter table <table name> deallocate unused, but the free space remains same not even 1KB is increased.
    Kindly help me in this

    Physically reorganizing the table is going to require having enough disk space to make a copy of the entire table. You're either going to need to find additional space on a different mount point or find things that can be dropped/deleted to free up space, at least temporarily. For example, you might drop a bunch of indexes, do the re-org, and then re-create the indexes, though this obviously makes the reorg far more risky.
    Otherwise, deleting data is going to free up space in the table for future inserts although it won't free up space in the tablespace. Given that you're doing significant loads into this table, I don't see why it would make a difference whether you've got the free space in the tablespace or in the table-- either way, it's going to be used by the loads...
    Justin

  • External Table vs SQL Loader.

    Hi,
    Pls anybody can tell me what is the significant differences between external table and SQL Loader.

    Both fall into category of Oracle utilities
    [SQL*Loader|http://download.oracle.com/docs/cd/B19306_01/server.102/b14220/utility.htm#i10606] is the one that loads data into Oracle tables from operating system files and [external table|http://download.oracle.com/docs/cd/B19306_01/server.102/b14220/utility.htm#i10611] is the one that
    is providing functionality similiar as SQL*Loader in the means of accessing external data but with with a different logic and rules,it lets you access data in external sources as if they were in a table in the database.

  • New tables in 12.1

    Hi
    We are working on the migration of Studio 11.5 to 12.1 . While creating the Library table names we are seeing the below two additional tables in 12.1. Please let us know the significance of the below tables.
    User Table
    Common Fields Table
    Do we need to have these two tables created or they are optional.
    Thanks in Advance

    The legacy USERINFO.DBF file is now held in the database used to house the resources. The legacy FDB file, for the field database, is also now contained in the database.
    The use of legacy Codebase repository, held on the file system, is no longer used since the introduction of Documaker V12.0. It is possible to maintain existing Codebase workspaces in DMStudio V12.0 and higher, but the creation of any new workspaces must use a database as the library for all files that may have previously been Codebase.
    As of Documaker V12.0 any new workspaces created will be held in a database. If Standard Edition is used this can continue to be SQL or Oracle, however if Enterprise Edition is used it is necessary to use Oracle DB.
    If you are being prompted for these tables it sounds like you didn't use DMStudio in V11.5 and you were using the legacy Image Editor, Formset Editor, etc applications for resource maintenance. You have two options available to you:
    1) Using V11.5 DMStudio create a new workspace and import the legacy resources to that workspace. You can choose a Codebase workspace to house the resources. That workspace can then be opened in DMStudio V12.0.
    2) Using V12.0 DMstudio create a new workspace and import the legacy resources to that workspace. You will have to choose an ODBC database, through the DSN selection screen, to identify a database that will house all resources.
    My recommendation would be to use option 2) as the Codebase repository is a legacy option that will no longer be developed or enhanced. Additionally, the Codebase format cannot be tuned or indexed for performance gains. Finallly, the Codebase format is very easy to corrupt as it's a single file, and this could result in you losing your whole library and having to move to a backup. The use of ODBC database for the library is more stable, secure and allows room for improvement through performance tuning.

  • Insert into a temp table is to slow

    i'd like to know why if i created a temp table out of my procedure the insert into it get slower than if i create that temp table inside my procedure. follows an example:
    create table #Test (col1 varchar(max))
    go
    create proc dbo.test
    as
    begin
    truncate table #Test
    insert into #Test
    select 'teste'
    FROM sys.tables
    cross join sys.columns
    end
    go
    exec dbo.test
    go
    create table #Test2 (col1 varchar(max))
    go
    truncate table #Test2
    insert into #Test2
    select 'teste'
    FROM sys.tables
    cross join sys.columns
    At test, we get duration 71700, reads 45220, CPU 26052 At test2, we get duration 49636, reads 45166, cpu 24960
    best regards

    There should be no difference.
    You would have to repeat the test you designed a few times to take readings and then reverse the order.
    BOL: "
    Benefits of Using Stored Procedures
    The following list describes some benefits of using procedures.
    Reduced server/client network traffic          
    The commands in a procedure are executed as a single batch of code. This can significantly reduce network traffic between the server and client because only the call to execute the procedure is sent across the network. Without the code encapsulation provided
    by a procedure, every individual line of code would have to cross the network.
    Stronger security          
    Multiple users and client programs can perform operations on underlying database objects through a procedure, even if the users and programs do not have direct permissions on those underlying objects. The procedure controls what processes and activities
    are performed and protects the underlying database objects. This eliminates the requirement to grant permissions at the individual object level and simplifies the security layers.
    The EXECUTE AS
    clause can be specified in the CREATE PROCEDURE statement to enable impersonating another user, or enable users or applications to perform certain database activities without needing direct permissions on the underlying objects and commands. For example,
    some actions such as TRUNCATE TABLE, do not have grantable permissions. To execute TRUNCATE TABLE, the user must have ALTER permissions on the specified table. Granting a user ALTER permissions on a table may not be ideal because the user will effectively
    have permissions well beyond the ability to truncate a table. By incorporating the TRUNCATE TABLE statement in a module and specifying that module execute as a user who has permissions to modify the table, you can extend the permissions to truncate the table
    to the user that you grant EXECUTE permissions on the module.
    When calling a procedure over the network, only the call to execute the procedure is visible. Therefore, malicious users cannot see table and database object names, embed Transact-SQL statements of their own, or search for critical data.
    Using procedure parameters helps guard against SQL injection attacks. Since parameter input is treated as a literal value and not as executable code, it is more difficult for an attacker to insert a command into the Transact-SQL statement(s) inside
    the procedure and compromise security.
    Procedures can be encrypted, helping to obfuscate the source code. For more information, see SQL Server Encryption.
    Reuse of code          
    The code for any repetitious database operation is the perfect candidate for encapsulation in procedures. This eliminates needless rewrites of the same code, decreases code inconsistency, and allows the code to be accessed and executed by any user or application
    possessing the necessary permissions.
    Easier maintenance          
    When client applications call procedures and keep database operations in the data tier, only the procedures must be updated for any changes in the underlying database. The application tier remains separate and does not have to know how about any changes
    to database layouts, relationships, or processes.
    Improved performance          
    By default, a procedure compiles the first time it is executed and creates an execution plan that is reused for subsequent executions. Since the query processor does not have to create a new plan, it typically takes less time to process the procedure.
    If there has been significant change to the tables or data referenced by the procedure, the precompiled plan may actually cause the procedure to perform slower. In this case, recompiling the procedure and forcing a new execution plan can improve performance.
    LINK: http://technet.microsoft.com/en-us/library/ms190782.aspx
    Kalman Toth Database & OLAP Architect
    Free T-SQL Scripts
    New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012

  • What is table maintainace ?

    Hi
    what is table maintainace ?
    what is the use ?
    and how to create a table maintainace ?
    can any body tell me u r own words.
    thanks,
    sap-abap.

    Hai
    Go through the following Document
    1. specially function group.. what is its significance
    When we generate table maintenance,
    the system , based upon the table fields,
    automatically,
    generates
    PROGRAM CODE, SCREEN FOR ENTERING DATA,
    LOGIC FOR SAVING DATA, LOGIC FOR DISPLAYING DATA
    ETC.
    2. All this are BUNCHED under
    a FUNCTION GROUP
    (if you open that function group in se80, after
    creatting table maintenacne,
    u will see the program code, screens, gui status etc)
    3. Hence, to BUNCH all these various objects,
    SAP uses the concept of function group.
    4. And also why do we need to give two screens there
    Its not necessary to have to screens.
    5. ONE SCREEN MEANS:
    only one screen with table control to enter data
    TWO SCREEN means :
    first screen : only primary key fields will appear
    second screen : rest of the fields will appear to enter data
    6. When the table consists of many fields,
    its practically more convenient to have two screens,
    so that all fields come vertically downwards.
    (instead of scrolling horizontally in the table
    control, in case of one screen concept)
    The use of the FG is only this the Table Maintainance Generator part. Neednt be declared anywhere else.
    yes u need to create a FG and the use it in Table maint. gen.
    http://help.sap.com/saphelp_erp2005/helpdata/en/a7/513520407a11d1893b0000e8323c4f/frameset.htm - a link for basics on Table Maintenance.
    Also, Check out this weblog on table maintenance:
    /people/sudheer.cheedella/blog/2006/02/20/extracting-data-in-table-maintenance
    Regards
    Sreeni

  • Unable to see the registration assessment for an applicant created.

    We have a custom requirement to create an applicant through an interface program. So, We have developed a custom program to create applicant. The
    applicant is getting created. Along with the applicant there is a requirement
    to create vacancy assessment and registration assessment.
    There is no standard API for creating these assessments. So, we are doing manual insert to the
    tables. The vacancy assessment is working after insert form the interface. But
    the registration assessment is not showing up.
    I am inserting records in to the following tables:
    ota_attempts
    ota_utest_questions
    ota_utest_responses
    For the vacancy assessment that I am inserting through interface is showing up fine. Only the registration assessment is not showing up.
    Is there any other data that needs to be inserted or updated for the registration assessment?
    Edited by: user512779 on Apr 1, 2009 2:25 AM

    We have a custom requirement to create an applicant through an interface program. So, We have developed a custom program to create applicant. The
    applicant is getting created. Along with the applicant there is a requirement
    to create vacancy assessment and registration assessment.
    There is no standard API for creating these assessments. So, we are doing manual insert to the
    tables. The vacancy assessment is working after insert form the interface. But
    the registration assessment is not showing up.
    I am inserting records in to the following tables:
    ota_attempts
    ota_utest_questions
    ota_utest_responses
    For the vacancy assessment that I am inserting through interface is showing up fine. Only the registration assessment is not showing up.
    Is there any other data that needs to be inserted or updated for the registration assessment?
    Edited by: user512779 on Apr 1, 2009 2:25 AM

  • Questions on the R12 Bank Data Model

    Hi All,
    I am trying to learn the R12 bank data model and have a couple of quns and was wondering if any of you can help me understand the same.
    I understand banks and bank branches are stored as party in hz_parties and all the other hz_* tables. The IBY_EXT_BANK_ACCOUNTS table (similar to hz_locations which just stores any physical address) purely stores any external bank accounts and the IBY_EXTERNAL_PAYEES_ALL table links the bank accounts to the supplier or the supplier site or the supplier party/party site.
    I also understand that internal bank accounts are stored in CE* tables.
    So,
    (1) What is the difference between IBY_EXT_BANK_ACCOUNTS and IBY_ACCOUNT_OWNERS table.
    (2) What is the significance of the IBY_PMT_INSTR_USES_ALL table? When does it actually get populated?
    (3) If the IBY_EXTERNAL_PAYEES_ALL stores only the link of banks and supplier (or supplier party), then where are the customer bank account details stored, because I dont see a column by name customer_id/customer_site_id or anything like that.
    (4) One another important thing is - on the IBY_EXTERNAL_PAYEES_ALL table I dont see a supplier_id in this table, so does it mean that this table stores only supplier site level bank information? So there is no way, we can store the supplier level bank information?
    Some of the assumptions I am making based on the various documentation available outside, please let me know if my assumptions are even wrong and please clarify the same.
    Thanks.
    Edited by: Srinivasa Vasu on Sep 17, 2009 7:02 AM

    Hi All,
    I am trying to learn the R12 bank data model and have a couple of quns and was wondering if any of you can help me understand the same.
    I understand banks and bank branches are stored as party in hz_parties and all the other hz_* tables. The IBY_EXT_BANK_ACCOUNTS table (similar to hz_locations which just stores any physical address) purely stores any external bank accounts and the IBY_EXTERNAL_PAYEES_ALL table links the bank accounts to the supplier or the supplier site or the supplier party/party site.
    I also understand that internal bank accounts are stored in CE* tables.
    So,
    (1) What is the difference between IBY_EXT_BANK_ACCOUNTS and IBY_ACCOUNT_OWNERS table.
    (2) What is the significance of the IBY_PMT_INSTR_USES_ALL table? When does it actually get populated?
    (3) If the IBY_EXTERNAL_PAYEES_ALL stores only the link of banks and supplier (or supplier party), then where are the customer bank account details stored, because I dont see a column by name customer_id/customer_site_id or anything like that.
    (4) One another important thing is - on the IBY_EXTERNAL_PAYEES_ALL table I dont see a supplier_id in this table, so does it mean that this table stores only supplier site level bank information? So there is no way, we can store the supplier level bank information?
    Some of the assumptions I am making based on the various documentation available outside, please let me know if my assumptions are even wrong and please clarify the same.
    Thanks.
    Edited by: Srinivasa Vasu on Sep 17, 2009 7:02 AM

  • Problem in Pricing Formula

    Hi,
    For specifyic condition types, i need the condition values to be displayed always in 'INR', i have created a formula routine for this and assigned to my pricing procedure .
    structures i am changing are XKOMV and KOMK.
    using 'CONVERT_TO_LOCAL_CURRENCY' i am converting the amount
    ( xkomv-kwert ) into indian currency value and for currency key
    i have passed 'INR' to komk-waerk field
    here i am facing 2 problems, after coming out of my include xkomv-kwert is getting overridden by old value in some other include, hence i am getting the same old value on the screen and currecny key is getting dislayed as 'INR' for all the records not just only for my condition type.
    Can you pls correct me if what is done by me is wrong
    Regards,
    Sowjanya

    An amount in local currency is calculated from a specified foreign currency amount. For this, you may either specify the translation rate manually (Parameter RATE) or have the system determine it from table TCURR on the basis of the rate type, date and currency key. Because the ratios for the units of the currencies involved in the translation are significant for this translation, table TCURF is always read by the program, and there must be a valid entry there for the data specified. IF exchange rate fixing is defined for the exchange rate type TYPE_OF_RATE or an alternative exchange rate is defined for the currency pair, this information is transferred to the calling program.
    When table TCURR is read, the foreign currency key is always taken as the first part of the key and the local currency as the second part.
    or you can also do the manual conversion by taking the exchange rate from table TCURR for the particular date and multiply this exchage rate to foreign amount then to get the amount in local currency.
    hope this will work.

  • PNP concept

    i want to know the concept of PNP logical database (SAP HR module) supported by an example program.
    Also, could someone explain what <u>get pernr.</u> event does and the significance of specifying <u>tables : pernr</u>   in PNP logical database program.
    Also, how is provide end-provide different from select end select.
    answers will be rewarded.

    Hi Soumali,
    welcome to SDN forum.
    PNP logical data base conrtain various definitions related to HR employee selection data.
    For details on it goto SE36 And give PNP.
    Get Pernr actuall collects all the data based on the selection screen into the mentioned infotypes in the program.
    For more reference you may check out this program - RPLADDJ0, RPLICO10, etc.
    Regards,
    Amit

  • Enhancing the extract structure for 0FI_GL_4,  0FI_AP_4,  0FI_AR_4

    Hi all,
          Does anyone know how to enhance the extraction structures with additional fields for datasources 0FI_GL_4 (General ledger: line item), 0FI_AP_4 (vendors: line item) and 0FI_AR_4 (customers: line item). 
    Thanks,
    Sabrina.

    Hi
        Here are the two scenario's described in the note:
    1. All the fields of the customer enhancement in the customer include are contained in the read structure (see the table above).  Then no additional action is required. The fields of the customer enhancement are filled automatically by the datasource from the assigned read structure via "move-corresponding".
    Example:   The extraction structure DTFIGL_4 for datasource 0FI_GL_4 (General ledger: line item) should be enhanced by the VALUT (value date) field.
               To do this, create structure CI_BSIS in the data dictionary of the R/3 source system and include the VALUT field in it. The data dictionary in the R/3 source system shows that the VALUT field is contained in the read structure of the datasource (table BSIS). For that reason the VALUT field is automatically filled by datasource 0FI_GL_4.
    2. Fields of the customer enhancement in the customer include are not contained in the read structure (see the table above).  In this case you have to program a function module to fill the field of the customer enhancement. To do this, there is a Business Transaction Event available (open FI interface for process 00005021). Create any function module you like and use function module SAMPLE_PROCESS_00005021 as a template for the interface (input parameter, changing parameter).
               Interface of function module SAMPLE_PROCESS_00005021:
                Input-parameter I_OLTPSOURCE: datasource that is currently extracting data from the R/3 source system.
                Changing-Parameter C_STRUCTURE: Extraction structure of the data source currently extracting including fields from the assigned customer include. When you call this customer defined function module, all the fields of the extract structure are transferred filled.
               Check whether the type pool SBIWA is declared in the TOP include of the function group.
    If not, add it with the statement TYPE-POOLS: SBIWA.
               Then maintain table TPS31 with Transaction SM30. Create the following entry:
               PROCS LAND APPLK FUNCT
               00005021 <fname>
               <fname> stands for the customer defined function module.
                By doing so, the function module you defined is called for each extracted record. Note that in this case the performance of the extraction may be reduced significantly regardless of the table read and the complexity of the programmed logic.
               Example:
               You want to enhance the extraction structure DTFIAR_3 for datasource 0FI_AR_4 (customers: line item) by the ORT01 (city) field from the customer master record.
                To do this, create structure CI_BSID in data dictionary of the R/3 source system and include the ORT01 field in that. The data dictionary in the R/3 source system displays that the ORT01 field is NOT contained in the read structure of datasource 0FI_AR_4 (Table BSID).
                Therefore you have to program a function module that reads the customer master in the R/3 system (table KANN1) and fills the ORT01 field of the customer enhancement. In the changing parameter C_STRUCTURE the filled fields of the extraction structure DTFIAR_3 are available to you. With the KUNNR field of extraction structure DTFIAR_3, you can select the respective master data record from table KNA1 and determine field ORT01 of the customer enhancement.
    1. All the fields of the customer enhancement in the customer include are contained in the read structure (see the table above).
               Then no additional action is required. The fields of the customer enhancement are filled automatically by the datasource from the assigned read structure via "move-corresponding".
               Example:
               The extraction structure DTFIGL_4 for datasource 0FI_GL_4 (General ledger: line item) should be enhanced by the VALUT (value date) field.
               To do this, create structure CI_BSIS in the data dictionary of the R/3 source system and include the VALUT field in it. The data dictionary in the R/3 source system shows that the VALUT field is contained in the read structure of the datasource (table BSIS). For that reason the VALUT field is automatically filled by datasource 0FI_GL_4.
               ATTENTION:
               By using Note 430303 you can enhance DataSource 0FI_GL_4 by all fields from table BSEG (instead of BSIS); then the fields are filled automatically in the extractor.
    1. Fields of the customer enhancement in the customer include are not contained in the read structure (see the table above).
                In this case you have to program a function module to fill the field of the customer enhancement. To do this, there is a Business Transaction Event available (open FI interface for process 00005021). Create any function module you like and use function module SAMPLE_PROCESS_00005021 as a template for the interface (input parameter, changing parameter).
               Interface of function module SAMPLE_PROCESS_00005021:
                Input-parameter I_OLTPSOURCE: datasource that is currently extracting data from the R/3 source system.
                Changing-Parameter C_STRUCTURE: Extraction structure of the data source currently extracting including fields from the assigned customer include. When you call this customer defined function module, all the fields of the extract structure are transferred filled.
               Check whether the type pool SBIWA is declared in the TOP include of the function group.
    If not, add it with the statement TYPE-POOLS: SBIWA.
               Then maintain table TPS31 with Transaction SM30. Create the following entry:
               PROCS LAND APPLK FUNCT
               00005021 <fname>
               <fname> stands for the customer defined function module.
                By doing so, the function module you defined is called for each extracted record. Note that in this case the performance of the extraction may be reduced significantly regardless of the table read and the complexity of the programmed logic.
               Example:
               You want to enhance the extraction structure DTFIAR_3 for datasource 0FI_AR_4 (customers: line item) by the ORT01 (city) field from the customer master record.
                To do this, create structure CI_BSID in data dictionary of the R/3 source system and include the ORT01 field in that. The data dictionary in the R/3 source system displays that the ORT01 field is NOT contained in the read structure of datasource 0FI_AR_4 (Table BSID).
                Therefore you have to program a function module that reads the customer master in the R/3 system (table KANN1) and fills the ORT01 field of the customer enhancement. In the changing parameter C_STRUCTURE the filled fields of the extraction structure DTFIAR_3 are available to you. With the KUNNR field of extraction structure DTFIAR_3, you can select the respective master data record from table KNA1 and determine field ORT01 of the customer enhancement.
    After you create the customer include in the R/3 source system you have to post process the accompanying datasource with Transaction RSA6. Select the application component according to the above table and change the datasource that fits the customer include. The "Hide fields" flag should be removed in the field list for the fields of the customer include. Then save the field list.
    If the fields of the customer include is not displayed in Transaction RSA6, refer to note 415530.
    1.  After you create the customer include in the R/3 source system you have to post process the accompanying datasource with Transaction RSA6. Select the application component according to the above table and change the datasource that fits the customer include. The "Hide fields" flag should be removed in the field list for the fields of the customer include. Then save the field list.
    If the fields of the customer include is not displayed in Transaction RSA6, refer to note 415530.
    Please let me know.
    Thanks,
    Sabrina.

  • Excel 2007 accessing PivotItem.Visible gives error if the field item value is a DATE

    I have VBA code to manipulate the content of a pivot table - essentially it hides all but the first N items in a pivotfield.  Under Excel 2003 the code works fine, as expected irrespective of the data content of the pivot field item.  Under Excel
    2007, if the data content is a date, the VBA code generates one of several error conditions.
    pivotItems(i).Visible = True
    Generates error 1004 - Unable to set the visible property of the pivot class
    If pivotItems(i).Visible = True then...
    Trying to test the visibility generates error 13 - type mismatch
    ?pivotItems(i).Visible
    Trying to determine the visibility of the pivot item in the VBA immediate window, this generates error 2042
    I have an illustrative spreadsheet which permits the code to process two different pivot tables, one using a field containg dates; the other a field containing text.  Under Excel 2003, the code works on both pivot tables.  Under Excel 2007 it works
    on the text field table, but fails on the date field table.
    I have looked for answers on numerous support forums including answers.microsoft but found not found any answers... only the same or similar unanswered question.

    Hi Herbert,
    Thank you for your continued interest; please find a revised illustration of the problem here -
    http://www.mediafire.com/download.php?zc6ty9ctl1n7yd9
    I have made the following changes / additions to the problem illustrator:-
    Adopted the use of lists for the data source of the pivot table
    Removed reference to '(blank)' as a reserved item not hidden by the VBA code to avoid the possibility of hiding all items
    In respect of my original code (MK1), utilised a 'real' item name to be the
    reserved item
    Added a new (MK2) macro to alter the number of visible items which
    hides all but one of the VisibleItems collection
    makes the first N items in the collection visible
    checks that there are only N items visible (the position of the reserved item
    might be greater than N)
    The code still executes as expected under 2003, but fails (the same as before) under 2007 when the data type of the PivotItem is date.
    The MK1 code fails when testing the current visibility of the Item before trying to set the visibility with:- RTE 1004 Unable to
    get the PivotItems property of the PivotField Class
    The MK2 code fails when trying to set the visibility with:- RTE 1004 Unable to
    set the Visible property of the PivotItem Class as reported above.  Note - given that MK2 avoids trying hide invisible items or unhide visible items, I no longer believe that this error is due to the attempt
    to set visibility to current state as seen under Excel 2003. I am deeply confused by this now!
    I observe with care the different CLASSES on which these failures are reported even though in each case the operations are on the PivotItem.Visible property - MK1 queries it / MK2 attempts to alter it. 
    Just in case you have been wondering where this is going, this spreadsheet has no prupose beyond illustrating the Excel 2003 / 2007 problem being encountered elsewhere when manipulating pivot table items whose value are dates.  The requirement
    is to provide a simple user interface to a complex managing reporting spreadsheet consisting of a significant number of pivot tables and charts - altering one cell causes the VBA code to modify the collection of pivot tables to deliver a revised view of the
    data.  All works fine for 2003 users of the model, but not 2007 users.  I need one spreadsheet which will work correctly on both 2003 & 2007.
    Regards.

  • Order By in Sub Query

    Hi All,
    I am trying to following SQL
    select d.deptno,
    d.dname,
    e.empno,
    e.ename,
    e.sal
    from dept d,
    emp e
    where d.deptno = e.deptno
    and (e.empno, e.sal) in ( select e2.empno, e2.sal
    from emp e2
    where e2.deptno = d.deptno
    and rownum < 3
    order by e2.sal desc)
    order by d.deptno, e.sal desc
    This works fine if I remove the order by clause in the subquery.
    In case the order by clause is still there it give me a error
    or "invalid relational operator" on the order by clause in the
    subquery. WHY !!!!!!
    Thanks
    Monish

    The version of Oracle you are using may or may not be part of
    your problem. The syntax is not valid in any version.
    If you are using a newer version, you can try re-writing it like
    this:
    SELECT   deptno, dname, empno, ename, sal
    FROM     (SELECT d.deptno, d.dname,
                     e.empno, e.ename, e.sal,
                     RANK () OVER
                          (PARTITION BY d.deptno
                           ORDER BY e.sal DESC) rk
              FROM   dept d, emp e
              WHERE  d.deptno = e.deptno)
    WHERE    rk < 3
    ORDER BY deptno, sal DESC;
        DEPTNO DNAME               EMPNO ENAME             SAL
            10 ACCOUNTING           7839 KING             5000
            10 ACCOUNTING           7782 CLARK            2450
            20 RESEARCH             7788 SCOTT            3000
            20 RESEARCH             7902 FORD             3000
            30 SALES                7698 BLAKE            2850
            30 SALES                7499 ALLEN            1600
    6 rows selected.
    If you are using an older version, you can try re-writing it
    like this:
    SELECT  d.deptno, d.dname,
            e.empno, e.ename, e.sal
    FROM    dept d, emp e
    WHERE   d.deptno = e.deptno
    AND     3 >
            (SELECT COUNT (*) + 1
             FROM   dept d2, emp e2
             WHERE  d2.deptno = e2.deptno
             AND    d2.deptno = d.deptno
             AND    e2.sal > e.sal)
    ORDER BY d.deptno, e.sal DESC;The second solution will produce the same results as the first
    and will work in newer versions as well, but will run
    significantly slower on large tables.

Maybe you are looking for

  • External URL links from T. Bird E mail program will not open in Firefox. Why not ?

    I switched browsers from Opera to the latest Firefox. I open my Thunderbird email program, attempt to link to a newspaper article URL or a link to any other site and FireFox does not open. I'm using Windows XP(SP3), Thunderbird v.8.0 and Firefox 8.0.

  • Automatical Purchase Requisition Creation in MRP run

    Hi, 1. I create a Sales Order for quantity 20 of main material MAT which has two sub-components - COMP1 and COMP2. The plant in which this sales order is being created does not have any stock quantitiy of the material or its sub-components. For quant

  • How to place am icon in alv

    Dear Freinds,                I have a requirement when  i have updated the data coming  from alv ( using the function module 'REUSE_ALV_GRID_DISPLAY'  or REUSE_ALV_LIST_DISPLAY ) . i want to select the  checboxes  on ALV ouput and execute( i want  an

  • How to Modify the WD4J components of Compliance Calibrator

    Hi, I would like to modify the Mitigated Users WEBDYNPRO-JAVA Compliance Calibrator components(GRC). Please let me know the procedure for the same. If we have NWDI can we modify it? Is there a separate .sca file for Mitigated Users? Are there any dep

  • Show a message box after the concurrent program completes normal

    Hi, I have a requirement to show a message box with some message once the concurrent program is COMPLETED NORMAL. Can we do this through form customization or is there any other way?? Thanks in advance Thanks, Venkat