Contract numbers missing at Table(EKKO)level -  Audit finding.

Hello All,
Recently in auditing, auditors found out that contract numbers are missing at Table level. When I checked in EKKO table, there are missing entries, like contract numbers  4400000100 is missing. At the same time numbers preceding and succeeding are available in table. Its internal numbering assigned for contracts. Now we have to  justify for this missing numbers
How can it happen?  What are the possible reasons for such missing numberings?
Please advise.
regards
N Banu

this is caused by buffering. SAP reads from the table and updates the last number and stores 10 numbers in its memory, If you create only one contract and switch then SAP off, then SAP will loose those numbers.
You can change the buffers yourself.
If you switch it to 1, then SAP reads the DB table for each contract, which slows the performance a little down and is certainly not a guarantee that you you will never have a gap in numbers.
Such number gaps can as well occur if you have a posting failure.

Similar Messages

  • Withholding tax certificates numbers missing from Table J_1IEWT_CERTIF_N

    Experts,
    I have followed all the process of Extended withholding tax and printed certificates in the month of Jan 2011 for the period Oct 2010 to Dec 2010. (actually for FY 2010)
    Now I want to repirnt one of these certificates as duplicate certificate and need to gi ve it to my vendor. I have the hard copy of the certificate and the number. But when I go to certificate re print program, it shows me certificate does not exists. I have also checked the tables but few certificate numbers I cannot see in the table.
    When I sorted the certificates I get certificates from sr. 1 to Sr.171 and then from Sr 286  to 341, whereas actually I had printed the certificates which are missing in between.
    I aslo tried to print the certificates for those where I am geting certificate error, and there are system is allowing me to print the certifricate and not showing any message about certificates already printed. In the report J1INMIS as wel I do not get certificate number.
    Kindly advise, what could be reason.
    Shailesh

    Hi
    Give the T.Code J1ICREP to reprint the certificate. Give the certificate number and print it. The new print will come automatically as DUPLICATE.

  • Error while saving SO - item 000010 is missing in table YVBAP

    Hello Experts,
    We are facing following issue while delivering an order with BOM material.
    1)     We created an order with sold-to customer blocked for delivery.
    2)     Then we removed the block from customer and also from document header/shipping tab.
    3)     Now when we tried to save the order it showed us an error-u2018item 000010 is missing in table YVBAPu2019
    We are not able to find the root cause of the issue. Could anyone please help us in this error?

    Hello,
    Please check whether delivery block is also removed under sales Tab of item overview. Also check at line item level, whether delivery block is removed for BOM items. Once this done, save the sales order again and try to create delivery.
    Br,
    Tushar

  • Need to fill a new field in table EKKO

    Hi all,
    i created a new field (ZZCODE) in the table EKKO. Well, now i would like to fill this field when the user save his purchase order. Which user-exit or BADI can i use ?
    I tried a lot but either i can't change the parameters values either the FM is not raise.
    Thanks for help.

    HI CECG,
    Yesterday itself i tried this example,
    i will forward u the document to ur mail id,
    plz provide me the mail id so that i will forward u the doc..
    STEP-BY-STEP PROCEDURE FOR SCREEN EXIT IN ME21n TRANSACTION
    Introduction:
                        SAP provides standard transactions to enter data into database. But a client may want to maintain some additional information in SAP other than what is provided.
                        To make provisions for this, additional screens have to be provided and additional fields must be added into appropriate database table.
    Requirement:
                         You have to add the custom field in SAP standard table EKKO. Then we have to place the field in ME21N screen. When user enters any input into the field it should get updated in the database.
    Note:
                         EKKO table is meant for Purchasing document header, you should add the field in the header level for ME21n screen. There you are provided with customer sub screens where you can add the field in the screen.
    In EKKO table
    include : cl_ekkodb
    in that u can add the field u want
    Procedure:
    1.     You have to create a field in the Custom Include of standard table, after creating activate it.
    2.     Double click on the include then you can add your custom field here.
    Find out the Required Enhancements:
    1.     Go to SMOD. Press F4 in the Enhancement field. In the next popup window, click pushbutton ‘Information system’.
    MM06E005 : CUSTOMER FIELDS IN PURCHASING DOCUMENT
    2.     Then mention the particular package name of the transaction you need to      enhance. Then you will be shown the list of Enhancement components for that particular package.
    3.     Note down the enhancements. Then, come to the initial screen of SMOD and view the documentation of each enhancement to find out which one is required for your development.
    MM06E005 is the Enhancement component we are using here.
    Development
    Creating a Project to include the enhancement:
    1.     Go to transaction CMOD and create a project.
    2.     Enter a description for the project.
    3.     Then, click on the pushbutton ‘Enhancement Assignments’ in the Application Toolbar.
    4.     Click on the components in Application Toolbar.
    5.     Here you will be shown the function module exits, screen exits and Include tables.
    6.     Click on the custom screen SAPLXMO6 – 0101 in which it suits the requirement of adding the custom field to the layout.
    7.     Click on layout and go to get from dictionary and select the field you need to add and click ok.
    8.     Place the field in the layout and activate it.
    9.     After that you come back and check the respective function module in which you need to implement the code. So, we need to import the data from sub screen for purchasing document header. Therefore we have chosen  the  EXIT_SAPMM06E_008.
    10. Write code in the Function Exits to synchronize the programs:
                           Now, code has to be written in the function modules EXIT_SAPMM06E_008 so that data flows to and fro between the main SAP program and custom sub screen program. Double clicking on the exit we get the following screen.
    11. Double click on the include and write the required code inside it. Then activate it.
    12. Now come back and activate the entire project.
    13. Now go to ME21n transaction and create a purchase order by giving all the mandatory fields including custom field we have created. Go to SE16n, check whether the field got updated in the database or not.
    Finally it gets updated in the database.
    IF U PROVIDE ME UR MAILID I CAN SEND U THE DOCUMENT WHICH IS VERY CLEAR FOR PURCHASE ORDER
    PLZ REWARDS POINTS IF HELPFUL,
    Ganesh.

  • Link between table EKKO-EBELN and DMS - Document Management System

    Hi to all,
    I wanted to know the form to connect or link the Document Info Record (inside "Define Object Link") to object DRAW (DMS) with table EKKO-EBELN (order head). In standard form it is possible to do it with EKPO (Purchase order item) This is in transaction DC10 Define Object Link.
    Thanks!
    Greetings
    Martin

    Hi Martin,
    Within table DRAD you can see all linked objects to a specific document info record (DIR).
    To be able to link objects to DIRs you have to maintain the correct objects in customizing.
    First of it is necessary to maintain the correct screen numbers for all needed objects within the customizing. Therefore go to transaction SPRO and select
    Cross-Application Components
    > Document Management
    > Control Data
    > Maintain Screen for Object Link
    Here you can enter all needed SAP objects with the name and
    the related screen number. If you do not know the object or the screen number you can display a list of all SAP standard objects in transaction SE80 under function group CV130 ("Screens").
    So for material master you maintain the following entry:
    SAP object Screen Description Auth.
    MARA 201 material master 1
    Please note that the system automatically adds the leading "1" which is displayed in function group CV130 under
    "Screens". So for object MARA you just have to enter 201 instead of 1201.
    The value "1" in the column "Auth." is necessary to grant that always the latest dynpros and authorizations were used when linking this object to an document info record. This will avoid different problems by displaying linked documents from the object side.
    The next step is to decide which objects should be used in the different document types. Therefore please go to transaction DC10 and choose the relevant document type. Afterwards please select "Define object links". Here you can
    add all needed objects only by entering the object. The correct screen number is taken automatically. Also note the blue information buttons in the upper right corner which contain further necessary information about the possible settings of the current screen.
    After doing these settings in customizing you should be able to link the maintained objects to document info records and oppositely by using the DMS transaction CV02N (tab "object links") or the object related transactions.
    Important notes regarding the object link functionalities are:
    Note 880077: Performance problem using object links
    Note 885977: Extension to note 867241 on object links
    Note 926060: Extension of note 885977 for object link Purchase Order
    Note 960202: Object Links Deleted While Adding New Objects
    Note 1002648: Wrong behavior while using RFC_CHANGE_DOCUMENT_MASTER

  • Contract Created Using ME31K tables  required

    Hi All,
    I need to know which tables are updated when we create a contract using ME31K transaction.
    Thanks
    Bhanu

    Hi bhanu,
                   Check the table A016. This table for Contract  field name EVRTN.
    EKKO and EKPO field name BSTYP.
    Regards
    Kiran sure

  • ME-807 System error: error during insert in table EKKO in SM13

    Hello Experts,
    I have been searching a lot in SDN and in google about the ERROR ME-807 System error: error during insert in table EKKO but still i have not got any satisfactory answer.
    In ME31K when I create the contract and put some validation check on target value filed in BADI Implementation ME_PURCHDOC_POSTED while saving it .
    Now after rectfying the valdiation checks and saving the contract again i get this ERROR in SM13 and i can not even see the contract in ME33K. It says that doument does not exist.
    Please let me know what could be the possible reason for this.
    Thanks,
    Naveen

    Hi Jan,
    This ERROR is coming from a function module  ME_CREATE_DOCUMENT .
    The code snippet from where this error s comin is as below:-
      DATA: LS_EKUB_NEW TYPE EKUB.
      DATA: L_EBELP     LIKE IND_EKKI-EBELP,
            L_TABIX     LIKE SY-TABIX,
            L_TABIX_1   LIKE SY-TABIX,
            L_EHP4_P2PSE_ACTIVE TYPE XFELD.
    ------- Bestellkopf hinzufuegen -
      MOVE NEKKO TO EKKO.
      INSERT EKKO.
      IF SY-SUBRC NE 0.
        MESSAGE A807 WITH 'EKKO'.
      ENDIF.
    Thanks,
    Naveen

  • Contract numbers based on company code in FI module?

    Hi,
    I am trying to get list of all the contract numbers associated with company code.
    I am working in FI module.
    Can any one tell me what is the correct table to get the contracts with company code.
    FKKVK - Contract account header- but this one don’t have company code field
    FKKVKP- Contract account Partner-Specific-  is this master table for contracts with company code? we can use this?
    Thanks.
    Rajesh.

    Hi Sudhi,
    Thanks for the response, but
    I dont find this table in my system.. which version of SAP exists this table?
    we are using 6.2.
    Thanks.
    Rajesh

  • F-32 the entry is missing in table

    Hi ,
    When we are performing the transaction F-32, we are getting the below error message
    " The entry YYY is missing in table T043G ".
    However, I could find the tolerance groups attached to this company code YYY in OBA3.
    I have serached the forum and it says to create another entry for company code YYY in T043G and leave the Tolerance group as blank to resolve this issue..
    But if i assign the Tolerance group as Blank to this company code, then would the tolerance check be completely removed for this company code ?
    How does this work...Any idea on the after affects of this change...
    Thanks,
    Srikanth.

    Hi,
    Through a blank tolerance group, we specify the lowest level of payment differences and cash discount allowed for Customer.
    this will be applicable for all customers in co. code. For any other set of customer whom we can have less control, we can create a new tol. group with desc and assign the same in master.
    Regards,
    Gangadhar

  • Entry missing in table TMC6 for unit KOEIN

    Hi,
    The STD Info structure S071 us marked for VA (Sales Order), it does not allows to change as it is SAP STD. I have a scenarios where these tables to be updated for VB (Contract). So i thought of creating a new table copying the existing S071, while i try to Update Rules for the new Info structure, i am getting the below copied error.
    I went through some of the links, but those are not giving the right answer. All comments are welcome...thanks
    Entry missing in table TMC6 for unit KOEIN:
    Message no. M2108
    Diagnosis
    The system attempts to determine the unit of the source field for field
    KAWRT. The data element KOEIN was defined as part of this process.
    The system now searches table TMC6 for this data element in order to
    define the two-character units ID. However, no appropriate entry could
    be found.

    Hi,
    It says -
    Solution
    This is corrected in the Support Package for Release 4.70, 5.00, 6.00, 6.02 and 6.03.
    We are running on 6.00 , how ever i will go through the Correction Instruction... thanks

  • Copying is not poss.because an entry is missing in Table TVCPL: AF

    Good night,
    When Create outbound delivery with order reference, got an error :
    Copying is not poss.because an entry is missing in Table TVCPL: AF
    Message no. VL473
    go to t-code :VTLA
    want to create target delivery for AF but no selection for AF.
    Order transaction using TAV.
    Guru, guide me please.
    Thank you,

    Hi
    You have to create teh copy control from order to delivery process in VTLA
    You can copy the s tandard one OR to LF and then create copy control for   your new document  types.
    You have to configure at the header and item levels in this tcode. For detailed information, you can put F1 in each field and find out the purpose of each field.
    Reward if this helps.

  • Copying is not poss.because an entry is missing in Table TVCPL: Z03 Z15 Z25

    At the VL01N transaction itgives out a message of :"Copying is not poss.because an entry is missing in Table TVCPL: Z03 Z15 Z250" . I can't make the delivery even nor pass the initial screen of VL01N. Can anybody help me with brief explanations?
    Thanks in advance.

    Hi Hikmet Akcali,
    Copy Control for Delivery is not maintained in the system for Delivery type Z03 Sales Doc type Z15 and Item category Z250. Thats why you are getting this error.
    Please maintain the copy control settings in VTLA ( copy control sales doc to delivery doc)
    For this go to VTLA ( tcode) and create entry for Target delivery type Z03 and source doc type Z15 , by copying from an existing combination which is most similar to this Dely doc / sales doc combination.
    If this entry already exist then , create the entry for the Item category Z250 in the item level at VTLA. Maintain the settings like copying requirement and other field suitably.
    Save the settings and then create fresh delivery against the order.The error will not pop up.
    Thanks!

  • Automatic Numbering in a Table

    I know this issue has been discussed on this forum before, but none of the answers have been satisfactory. How does one set up automatic numbering in a table that has an "ongoing relationship" with the numbers above and below it. I am about to begin working on a long, complex document with many, many numbers with many levels of hierarchy (outline numbering as Word would call it). It is essential that when I change one number, anywhere in the document, all the subsequent numbers will update. I cannot use the pattern recognition means of numbering due to the hierarchies, yet I would like to keep the file in a table. Here is an example of the numbering I need to use.
    6.1
    6.2
    6.2.1
    6.2.2
    6.2.3
    6.3
    6.3.1
    6.4

    Here we are end users like you. We can't change the application behavior.
    I already described the application behavior but I will repeat.
    What you are describing is the list numbering.
    It apply to a text object.
    When you are using tables, each cell is a text object.
    So, as long as you remain in a cell, you may have this kind of numbering.
    When you switch from a cell to an other one, you switch from a text object to an other one which ignore what you did in the other one.
    What you try to achieve can't be done in a Pages table.
    Yvan KOENIG (VALLAURIS, France) mardi 5 octobre 2010 16:04:40

  • SCHEMA/USer Level Auditing

    Hi Experts,
    i need your guidence.. actulay if we enable user level auditing then it will log all DDL n DML in AUDIT_SYS$ table. but if the user being audited execute a procedure and in the procdure the are lot of DDL and DML then is these DDL and DML executed with in Procedure will also logged in AUDIT_SYS$ table or Just it will logged that procedure is executed,???????
    regards,

    Hi Experts,
    i need your guidence.. actulay if we enable user level auditing then it will log all DDL n DML in AUDIT_SYS$ table. but if the user being audited execute a procedure and in the procdure the are lot of DDL and DML then is these DDL and DML executed with in Procedure will also logged in AUDIT_SYS$ table or Just it will logged that procedure is executed,???????
    regards,

  • User Level Auditing

    Hi Expert,
    we are required to enable auditing . we will enable it at DB level . but we wan to audit only one specific user not all. how we can achieve this

    This is on my windows 11.2.0.1.0 sqlplus cut and paste.
    C:\WINDOWS>sqlplus sys/girish as sysdba
    SQL*Plus: Release 11.2.0.1.0 Production on Fri Nov 18 19:10:12 2011
    Copyright (c) 1982, 2010, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> @getaud;
    AUDIT STATEMENT
    AUDIT ALTER ANY PROCEDURE  BY ACCESS ;
    AUDIT ALTER ANY TABLE  BY ACCESS ;
    AUDIT ALTER DATABASE  BY ACCESS ;
    AUDIT ALTER PROFILE  BY ACCESS ;
    AUDIT ALTER SYSTEM  BY ACCESS ;
    AUDIT ALTER USER  BY ACCESS ;
    AUDIT AUDIT SYSTEM  BY ACCESS ;
    AUDIT CREATE ANY JOB  BY ACCESS ;
    AUDIT CREATE ANY LIBRARY  BY ACCESS ;
    AUDIT CREATE ANY PROCEDURE  BY ACCESS ;
    AUDIT CREATE ANY TABLE  BY ACCESS ;
    AUDIT STATEMENT
    AUDIT CREATE EXTERNAL JOB  BY ACCESS ;
    AUDIT CREATE PUBLIC DATABASE LINK  BY ACCESS ;
    AUDIT CREATE SESSION  BY ACCESS ;
    AUDIT CREATE USER  BY ACCESS ;
    AUDIT DATABASE LINK  BY ACCESS ;
    AUDIT DROP ANY PROCEDURE  BY ACCESS ;
    AUDIT DROP ANY TABLE  BY ACCESS ;
    AUDIT DROP PROFILE  BY ACCESS ;
    AUDIT DROP USER  BY ACCESS ;
    AUDIT EXEMPT ACCESS POLICY  BY ACCESS ;
    AUDIT GRANT ANY OBJECT PRIVILEGE  BY ACCESS ;
    AUDIT STATEMENT
    AUDIT GRANT ANY PRIVILEGE  BY ACCESS ;
    AUDIT GRANT ANY ROLE  BY ACCESS ;
    AUDIT PROFILE  BY ACCESS ;
    AUDIT PUBLIC SYNONYM  BY ACCESS ;
    AUDIT ROLE  BY ACCESS ;
    AUDIT SYSTEM AUDIT  BY ACCESS ;
    AUDIT SYSTEM GRANT  BY ACCESS ;
    29 rows selected.
    SQL> audit select table by scott by access;
    Audit succeeded.
    SQL> @getaud;
    AUDIT STATEMENT
    AUDIT ALTER ANY PROCEDURE  BY ACCESS ;
    AUDIT ALTER ANY TABLE  BY ACCESS ;
    AUDIT ALTER DATABASE  BY ACCESS ;
    AUDIT ALTER PROFILE  BY ACCESS ;
    AUDIT ALTER SYSTEM  BY ACCESS ;
    AUDIT ALTER USER  BY ACCESS ;
    AUDIT AUDIT SYSTEM  BY ACCESS ;
    AUDIT CREATE ANY JOB  BY ACCESS ;
    AUDIT CREATE ANY LIBRARY  BY ACCESS ;
    AUDIT CREATE ANY PROCEDURE  BY ACCESS ;
    AUDIT CREATE ANY TABLE  BY ACCESS ;
    AUDIT STATEMENT
    AUDIT CREATE EXTERNAL JOB  BY ACCESS ;
    AUDIT CREATE PUBLIC DATABASE LINK  BY ACCESS ;
    AUDIT CREATE SESSION  BY ACCESS ;
    AUDIT CREATE USER  BY ACCESS ;
    AUDIT DATABASE LINK  BY ACCESS ;
    AUDIT DROP ANY PROCEDURE  BY ACCESS ;
    AUDIT DROP ANY TABLE  BY ACCESS ;
    AUDIT DROP PROFILE  BY ACCESS ;
    AUDIT DROP USER  BY ACCESS ;
    AUDIT EXEMPT ACCESS POLICY  BY ACCESS ;
    AUDIT GRANT ANY OBJECT PRIVILEGE  BY ACCESS ;
    AUDIT STATEMENT
    AUDIT GRANT ANY PRIVILEGE  BY ACCESS ;
    AUDIT GRANT ANY ROLE  BY ACCESS ;
    AUDIT PROFILE  BY ACCESS ;
    AUDIT PUBLIC SYNONYM  BY ACCESS ;
    AUDIT ROLE  BY ACCESS ;
    AUDIT SELECT TABLE BY SCOTT BY ACCESS ;    <----------- New Row
    AUDIT SYSTEM AUDIT  BY ACCESS ;
    AUDIT SYSTEM GRANT  BY ACCESS ;
    30 rows selected.
    SQL> noaudit select table by scott;
    Noaudit succeeded.
    SQL> @getaud;
    AUDIT STATEMENT
    AUDIT ALTER ANY PROCEDURE  BY ACCESS ;
    AUDIT ALTER ANY TABLE  BY ACCESS ;
    AUDIT ALTER DATABASE  BY ACCESS ;
    AUDIT ALTER PROFILE  BY ACCESS ;
    AUDIT ALTER SYSTEM  BY ACCESS ;
    AUDIT ALTER USER  BY ACCESS ;
    AUDIT AUDIT SYSTEM  BY ACCESS ;
    AUDIT CREATE ANY JOB  BY ACCESS ;
    AUDIT CREATE ANY LIBRARY  BY ACCESS ;
    AUDIT CREATE ANY PROCEDURE  BY ACCESS ;
    AUDIT CREATE ANY TABLE  BY ACCESS ;
    AUDIT STATEMENT
    AUDIT CREATE EXTERNAL JOB  BY ACCESS ;
    AUDIT CREATE PUBLIC DATABASE LINK  BY ACCESS ;
    AUDIT CREATE SESSION  BY ACCESS ;
    AUDIT CREATE USER  BY ACCESS ;
    AUDIT DATABASE LINK  BY ACCESS ;
    AUDIT DROP ANY PROCEDURE  BY ACCESS ;
    AUDIT DROP ANY TABLE  BY ACCESS ;
    AUDIT DROP PROFILE  BY ACCESS ;
    AUDIT DROP USER  BY ACCESS ;
    AUDIT EXEMPT ACCESS POLICY  BY ACCESS ;
    AUDIT GRANT ANY OBJECT PRIVILEGE  BY ACCESS ;
    AUDIT STATEMENT
    AUDIT GRANT ANY PRIVILEGE  BY ACCESS ;
    AUDIT GRANT ANY ROLE  BY ACCESS ;
    AUDIT PROFILE  BY ACCESS ;
    AUDIT PUBLIC SYNONYM  BY ACCESS ;
    AUDIT ROLE  BY ACCESS ;
    AUDIT SYSTEM AUDIT  BY ACCESS ;
    AUDIT SYSTEM GRANT  BY ACCESS ;
    29 rows selected.
    SQL>Now your question :
    Allright is i want to audit scott user's all activities ,DDL,DML ,Select logon login every thing then what shoul i do.So, just use audit statement with by clause and run above getaud script to see its impact.
    here it is my getaud.sql which i obtained from [ http://www.myoraclesupports.com/content/script-generate-audit-and-noaudit-statements-current-audit-settings ] link.
    select 'AUDIT '||m.name||decode(u.name,'PUBLIC',' ',' BY '||u.name)||
    decode(nvl(a.success,0) + (10 * nvl(a.failure,0)),
    1,' BY SESSION WHENEVER SUCCESSFUL ',
    2,' BY ACCESS WHENEVER SUCCESSFUL ',
    10,' BY SESSION WHENEVER NOT SUCCESSFUL ',
    11,' BY SESSION ', -- default
    20, ' BY ACCESS WHENEVER NOT SUCCESSFUL ',
    22, ' BY ACCESS',' /* not possible */ ')||' ;'
    "AUDIT STATEMENT"
    FROM sys.audit$ a, sys.user$ u, sys.stmt_audit_option_map m
    WHERE a.user# = u.user# AND a.option# = m.option#
    and bitand(m.property, 1) != 1 and a.proxy# is null
    and a.user# > 0
    UNION
    select 'AUDIT '||m.name||decode(u1.name,'PUBLIC',' ',' BY '||u1.name)||
    ' ON BEHALF OF '|| decode(u2.name,'SYS','ANY',u2.name)||
    decode(nvl(a.success,0) + (10 * nvl(a.failure,0)),
    1,' WHENEVER SUCCESSFUL ',
    2,' WHENEVER SUCCESSFUL ',
    10,' WHENEVER NOT SUCCESSFUL ',
    11,' ', -- default
    20, ' WHENEVER NOT SUCCESSFUL ',
    22, ' ',' /* not possible */ ')||';'
    "AUDIT STATEMENT"
    FROM sys.audit$ a, sys.user$ u1, sys.user$ u2, sys.stmt_audit_option_map m
    WHERE a.user# = u2.user# AND a.option# = m.option# and a.proxy# = u1.user#
    and bitand(m.property, 1) != 1 and a.proxy# is not null
    UNION
    select 'AUDIT '||p.name||decode(u.name,'PUBLIC',' ',' BY '||u.name)||
    decode(nvl(a.success,0) + (10 * nvl(a.failure,0)),
    1,' BY SESSION WHENEVER SUCCESSFUL ',
    2,' BY ACCESS WHENEVER SUCCESSFUL ',
    10,' BY SESSION WHENEVER NOT SUCCESSFUL ',
    11,' BY SESSION ', -- default
    20, ' BY ACCESS WHENEVER NOT SUCCESSFUL ',
    22, ' BY ACCESS',' /* not possible */ ')||' ;'
    "AUDIT STATEMENT"
    FROM sys.audit$ a, sys.user$ u, sys.system_privilege_map p
    WHERE a.user# = u.user# AND a.option# = -p.privilege
    and bitand(p.property, 1) != 1 and a.proxy# is null
    and a.user# > 0
    UNION
    select 'AUDIT '||p.name||decode(u1.name,'PUBLIC',' ',' BY '||u1.name)||
    ' ON BEHALF OF '|| decode(u2.name,'SYS','ANY',u2.name)||
    decode(nvl(a.success,0) + (10 * nvl(a.failure,0)),
    1,' WHENEVER SUCCESSFUL ',
    2,' WHENEVER SUCCESSFUL ',
    10,' WHENEVER NOT SUCCESSFUL ',
    11,' ', -- default
    20, ' WHENEVER NOT SUCCESSFUL ',
    22, ' ',' /* not possible */ ')||';'
    "AUDIT STATEMENT"
    FROM sys.audit$ a, sys.user$ u1, sys.user$ u2, sys.system_privilege_map p
    WHERE a.user# = u2.user# AND a.option# = -p.privilege and a.proxy# = u1.user#
    and bitand(p.property, 1) != 1 and a.proxy# is not null
    /Regards
    Girish Sharma
    Edited by: Girish Sharma on Nov 18, 2011 7:18 PM
    Just edited that bold fonts are not visible in code tags.
    Edited by: Girish Sharma on Nov 18, 2011 7:22 PM
    Another editing that "< >" are not visible, so i put it into code tags.
    Edited by: Girish Sharma on Nov 18, 2011 7:24 PM
    Please use and a.user# less than and greater than sign before 0; i mean not equal to...

Maybe you are looking for

  • Mail is froten and wont open or close or allow the restart of the macbook air, everithing else seems to work just fine

    So i'm having trouble with the mail app it won't open or closo or do anything at all. so icant instal the updates of other apps, but everithing else works just fine I would apreciate any suggestions

  • HELP!Flash Player and ActiveX communication problem in IE!

    I've made a ActiveX Control which use a Modeless Dialog to hold a ShockWaveFlash ActiveX control. Then we could use this ActiveX control as a bridge to communication with the Flash which was held in the ShoclWaveFlash Control. The struct is as below:

  • 10.2.0.4 patch some problem

    Hi , I have apply patch 10.2.0.4 but got some error could u resolve this issue in my database 10.2.0.3 on redhat-4 whn i have apply path following error occurred ./runinstaller Starting Oracle Universal Installer... Checking installer requirements...

  • Extracting XML

    I am having a problem of extracting the XML file from a table that is storing the file in the binary format. The problem I am having is that I am not able to extact the whole file through sqlplus. Am I having problems with my settings in sqlplus?

  • Displaying subtotals for each group item in a Matrix or Group Matrix Report.

    Hi, I have generated a Report as follows: month1 month2 month3 M1 R1 P1 x y z P2 a b c R2 P3 d e f M2 R3 P4 g h i R4 P5 k l m Is it possible to display the subtotals per each category as follows: month1 month2 month3 M1 R1 P1 x y z P2 a b c ---------