How to enable logging of database changes of  Z tables into a log table.

Dear Team,
We have 8 Z tables and we need to log the changes in these tables. Earlier Change Document process was proposed but now we know that the possible changes in the Z tables will be many and this can cause too many entries in CDHDR and CDPOS tables. Going through so many entries of Change Document tables will decrease the system performance. The other option involves enabling the Log data base changes for the Z data base tables, but this will also cause the system to slow down as per SAP F1 help on "Log data changes" checkbox.
description-"Note: Activating logging slows down accesses that change the table. First of all, a record must be written in the log table for each change. Secondly, many users access this log table in parallel. This could cause lock situations even though the users are working with different application tables."
So we came to a solution where we can create a Z table and we will log the above mentioned Z table changes in the Z Change table but I have no idea how to implement the suggested solution. Please help me on this.
Regards
Amit

Hi,
Have a suggestion..
Have custom fleld as LOG with char 1 and date field (sy-datum) in all the 8 ztables. The ztables are updated either through SM30 or from custom program, making sure who ever changes the record if manually then fill that flag field as 'X' and if by program then populate the field with value 'X'.So you will know based on the flag field whether changed or not.similarly for date field updatin as well.
Now create a custom program to update the new ztable . Schedule this program daily may be at midnight..Read the 8 ztables with having flag = 'X' and update the new ztable. Once done clear the FLAG  from all the 8 ztables to space for that day and update the date field in the custom program.
So for that particular day the records were written to new ztable and all the 8 ztables are having flag value as space and date will be sy-datum.
Now for next day again do the same procedure.
Hope this gives you an idea.
Regards,
Nagaraj

Similar Messages

  • How to enable logging for the Web Proxy

    Hi,
    Does anyone know how to enable logging for the Web Proxy feature under "Web" in Server Admin?

    Aren't the web proxy hits logged in the standard apache logs? /var/log/httpd/access_log

  • How do I run a database procedure that inserts data into a table from withi

    How do I run a database procedure that inserts data into a table from within a Crystal report?
    I'm using CR 2008 with an Oracle 10i database containing a number of database tables, procedures and packages that provide the data for the reports I'm developing for my department.  However, I'd like to know when a particular report is run and by whom.  To do this I have created a database table called Report_Log and an associated procedure called prc_Insert_Entry that inserts a new line in the table each time it's called.  The procedure has 2 imput parameters (Report_Name & Username), the report name is just text and I'd like the username to be the account name of the person logged onto the PC.  How can I call this procedure from within a report when it's run and provide it with the 2 parameters?  I know the procedure works, I just can't figure out how to call it from with a report.
    I'd be grateful for any help.
    Colin

    Hi Colin, 
    Just so I'm clear about what you want: 
    You have a Stored procedure in your report.  When the report runs, you want that same procedure to write to a table called Report_Log. 
    If this is what you want the simple answer is cannot be done.  Crystal's fundamental prupose is to read only, not write.  That being said, there are ways around this. 
    One way is to have a trigger in your database that updates the Report_Log table when the Stored Procedure is executed.  This would be the most efficient.
    The other way would be to have an application run the report and manage the entry. 
    Good luck,
    Brian

  • HOW to enable oracle advance compression for EXIST partitioned table

    Hi All,
    I have to enable oracle advance compression for existing table which PARTITION BY RANGE then SUBPARTITION BY HASH.
    ORacle version: 11.2.0.2.0
    Please provide me any relevant doc or any exp.
    Thanks in advance.

    could not see any text for how to enable oracle advance compression for EXIST partitioned table.RTFM.
    From the resource above:
    How do I compress an existing table?
    There are multiple options available to compress existing tables. For offline compression, one could use ALTER TABLE Table_Name MOVE COMPRESS statement. A compressed copy of an existing table can be created by using CREATE TABLE Table_Name COMPRESS FOR ALL OPERATIONS AS SELECT *. For online compression, Oracle’s online redefinition utility can be used. More details for online redefinition are available here.
    "

  • How to enable logging for mail.app in Mountain Lion

    I am at my wits end trying to figure this out....
    Does anyone have a clue how to enable the logging for mail.app under Mountain Lion?
    In the past, you could open up Console and click on Console.log and see the logging of mail. Under mountain Lion, there is no more console.log. I cannot figure out how to enable it.
    I have tried to run the AppleScript of "Turn On Logging" but the script errors out under Mountain Lion.
    Does anyone know how to do this or a better way, maybe a tool or something that can help you troubleshoot mail.app issues?
    Thanks in advanced

    Hello,
    I have a similar problem. The script "Turn on Logging.scpt" runs without error, but I do not see any socket logging. I only get two messages, which I also get when I start mail without the script by just clicking the mail.app icon in the dock. The Messages are:
    1/10/13 3:43:32.618 PM Mail[11276]: Using V2 Layout
    1/10/13 3:43:36.388 PM Mail[11276]: *** -[IADomainCache init]: IA domains cache is out of date.
    Any help would be appreciated

  • How to Enable logging of the ASA 5525?

    I need help to enable logging of the ASA 5525 for all new rules created today from the firewall module, rules changed, deleted desabilidas and disabled rules.
    Not found in the historic level of the ID on new firewall rules.
    0 or emergencies—System is unusable.
    1 or alerts—Immediate action needed.
    2 or critical—Critical conditions.
    3 or errors—Error conditions.
    4 or warnings—Warning conditions.
    5 or notifications—Normal but significant conditions.
    6 or informational—Informational messages.
    7 or debugging—Debugging messages.
    Thank you.

    You cannot log only those changes but you can log *all* changes.
    The messages 111008 and 111010 are the ones to look for (as described in this post).

  • How to enable log gathering in Nokia Suite?

    Feeling a bit dumb here. All the instructions I've read suggest to enable log gathering by double-clicking enable_logs.js, which should prompt some sort of a dialog window. The problem is, I can't run .js files, I can only view them in Notepad, Firefox, etc. How exactly is this thing done?

    Hi,
    We have created FAQ for log collecting with new versíon 3.2:
    How can i send the log files with the Nokia Suite 3.2? 
    Disconnect your device from your computer and exit Nokia Suite from File > Exit. Enable log gathering by double-clicking the enable_logs.js file in installation folder, normally C:\Program Files\Nokia\Nokia Suite. Then open Nokia Suite again and reconnect your device. Try to reproduce the error and click Help > Send feedback in Nokia Suite menu and fill in the description of the bug. Log files and system information will be automatically included in the feedback. You can also add screen shots and other files by choosing Add file (maximum size 5 MB).
    Please let us know  for the result.
    Br
    Mahayv

  • How to enable ebs users to change their own passwords.

    Hi,
    Is there any profile option which will enable the users to change their passwords on their own from EBS front-end applications...?

    Hi,
    Is there any profile option which will enable the users to change their passwords on their own from EBS front-end applications...?Users can change their password from the application itself (Edit > Preferences > Change Password).
    If you want to force all users to change their password, see (How To Force All Applications Users To Change Their Password? [ID 414976.1]).
    Also, see old threads for similar discussion -- http://forums.oracle.com/forums/search.jspa?threadID=&q=414976.1&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Thanks,
    Hussein

  • How to enable logging in OBIEE 10G

    I have LDAP authentication in OBIEE 10 G and users are only residing in LDAP.
    I have a requirement to enable logging for few users. Can suggest me what all steps are required. I created user in RPD and enabled logging for that user. Kept same user ID as in LDAP. Still i cant see the logs.

    oh.. its 10g.. okay.
    In this case NQS authentication will override the LDAP authentication. Do not go for rpd users this can be taken care using init blocks as below.
    When using LDAP we can set the loglevel using Init blocks(see below). this can be set runtime using Set varaible from Answers->Advanced tab.
    You Init block suppose to be like
    case when :user in ('a','b') then 2 ELSE 0 END
    set to LOGLEVEL variable
    Pls mark correct/helpful

  • How to Enable to vertical scroll bar in a table control

    Hi,
    I have created a table control with a wizard and later did some modifications on it. Problem I have now is that the vertical scroll bar is disabled on this table control. The end user wants to enter as many rows as possible, however as the scroll bar is disabled, he is not able to add the rows at the end (of the visible table control area).
    How do I enable the vertical scroll bar of the table control?
    Please help.
    Thanks,
    Vishal.

    Hello Vishal,
    In PBO.
    Create a Module and in the module increment the value of tbcl-lines.
    ex:
    Data : L type i.
    IN PBO.
    MODULE vertical_scroll_bar.
    MODULE vertical_scroll_bar.
    DESCRIBE TABLE itab lines L.
    <table control name>-lines = L + 10.
    ENDMODULE.
    Hope this solves your issue.
    Cheers,
    Suvendu

  • How to enable logging of changes (SA38)

    Hi everyone!
    I am checking the change log for a program (RSVTPROT) for table MARV.
    However, there was no logs. When I checked the status (Logging: Display status button), the message is this:
    Logging in system XXX
    Logging is switched off
    Logging of the selected tables
      Table name       Description                                         active
      MARV             Material Control Record                        [checked]
    Does it mean that logging is turned off for the system, generally, or just for the table?
    Also, How can I turn on the logging?
    Thanks a lot!
    Message was edited by:
            Ricardo Caliolio Jr.

    > in se11, technical settings, u need to click on the
    > radiobutton logging, if it is disabled, u need basis
    > help.
    Hi! In our case, the settings for the table was fine. I think logging is not activated in our system..
    You know how to activate? Thanks!

  • How to enable logging of IMAP and SMTP connections in Mail

    I have set up my own mail server and am able to send and receive mail. However, I would like to enable SSL security for connections from the client application to the mail server. I have created certificate authority, created a root certificate, and created an SSL certificate and key for the server. However, every time I connect, I get a warning message that the certificate is not valid - but the host names and domain names are correct in the certificate and match in the error message. It appears that there is some other problem with the certificate that is not reported in the dialog.
    I would like to turn on logging in Mail.app to try to find out what is happening as the connection is made and TLS is enabled to find out why the certificate is being rejected. What options exist for logging SMTP and IMAP connections in mail? How can I find the logging options - should I look for strings in the binary or a resource file?

    You cannot log only those changes but you can log *all* changes.
    The messages 111008 and 111010 are the ones to look for (as described in this post).

  • How to enable logging

    Hi,
    I am trying to set the logging.
    PFB the code snippet.
    import java.util.Logger;
    public static Logger log = Logger.getLogger("com.MyFile");
    log.info("PERF: Updating Time in MyFile class");
    But this is not coming in log file. I guess we need to turn the logging on somewhere in Jdeveloper. I am using JDeveloper 11.1.1.3. Could anyone help me on this?

    How about a look into the docs: http://download.oracle.com/docs/cd/E15523_01/web.1111/b31974/web_testdebug.htm#BABDBCGF
    Timo

  • How to enable logging of weblogic classs

    Hi Everyone,
    Is there anyway I can enable the logging on few classes of the Weblogic server like "ReplicatedSessionData, SessionData, CookieSessionData" etc which are present in the "weblogic.servlet.internal.session" package.
    For your information I'm experiencing the logout issue in my server even though the user is in the session is valid. Nothing is displayed in the log files related to my application. It's just redirecting to the login page. this issue is not reproducible very often.
    Thanks

    I recommend you contact support as there are pre-defined support patterns for diagnosing the root cause for these types of issues. There are also special debug flags they can provide to provide additional logging.

  • How to enable a user to change his own password at EP7?

    I want to give the EP7 users the ability to change their own password at EP.
    Can we do that thru any role assignment or some development is needed?
    Any detailed help would be appreciated .
    I'll give points. Thanks!

    Hi Jones,
    It is possible to change their password in EP 7 with eu_role(Everyone Role). After you  are login in the portal, just go to your personalize and select the User profile in the personlize. In that user porfile having number of tabs, you should select the General Information and click the Modify button, after you getting the edit mode with the changing the password option. It ask old and new password, after you give the password and save it.Once you change the password, just you have to log off and Re - Login with new password. Its working fine.
    I hope this is helps to you.
    Regards
    Prakash T

Maybe you are looking for