Log maintenance

Hi, I am using Wls6.1, normal EJB framework like, HTTP-->JSP-->Session Bean--> EntinyBean.
What I am looking is, to trace the exceptions at run time, I am printing SOPs[System.out.println] in the code. So, when a user gets exception, I can track easily that, at particular stage he gets run time error.
But because of this, the log size is becoming too much size of the file.
Caould you please help any other way of tracking run time errors.
Replys to this will be really helpfull.
Thanks
Raj PV

Hi Raj,
You need to congigure your server logging in such a way:
Server->Configure->Logging->Rotation
Rotation = by Size
FileMinSize = 500K
NumberOfFilesLimited = true
FileCount = 10
Regards,
Slava Imeshev
"Raj PV" <[email protected]> wrote in message
news:3c5ae6bc$[email protected]..
Hi, I am using Wls6.1, normal EJB framework like, HTTP-->JSP-->SessionBean--> EntinyBean.
>
What I am looking is, to trace the exceptions at run time, I am printingSOPs[System.out.println] in the code. So, when a user gets exception, I can
track easily that, at particular stage he gets run time error.
But because of this, the log size is becoming too much size of the file.
Caould you please help any other way of tracking run time errors.
Replys to this will be really helpfull.
Thanks
Raj PV

Similar Messages

  • Process Chain Log Maintenance

    Hi All,
    In my project we maintain an load status excel sheet to document all the timings of process chain running in our window.
    We were maintaining only the start time of process chain (we get from RSPCM), now the requirement has changed and customer wants us to mention the end time of each process chain.
    Since we have good amount of process chain running it is becoming really hectic to take timings for each PC.
    Procedure we are following to take the end time is that through RSPCM we go to every PC and take the timing of last process in the PC.This takes lot of time.
    Please suggest from where we can exact log of start and end time of every PC.Are there any table from where we can see the start and end time???
    I am waiting for the valuable inputs......
    Regards,
    Kshitij

    try following ABAP...
    *& Report  ZBI_PROCESS_CHAIN_STATUS_EMAIL                              *
      Program uses parameters and selection options to analyze and/or    *
      email the status  of the BI process chains.                        *
    Selection-screen help:                                               *
    1) Process Chain (ID)                                                *
           Enter the name of process chain to analyze.                   *
           If you leave this field blank, all the process chains will    *
           be picked up.                                                 *
    2) Process Chain Date Selection                                      *
           Enter the Process Chain Date.                                 *
    3) Status of Process Chain                                           *
           Enter the Status of Process Chain to analyze.                 *
           If you leave this field blank, all the status will            *
           be picked up.                                                 *
    4) Send email?                                                       *
           Mark this checkbox, if you want to send email notification    *
    5) Email recipients                                                  *
           The list of people to be notified is entered here. At least   *
           one email address is required.                                *
    *Modification Information:                                             *
    Date      Mod User ID      CTS Number    Description                 *
    *05/01/08   Shalin Shah                    Original Coding Date        *
    REPORT   ZBI_PROCESS_CHAIN_STATUS_EMAIL
             NO STANDARD PAGE HEADING MESSAGE-ID 00
             LINE-SIZE 255
             LINE-COUNT 55.
    Variable Declaration for selection screen                            *
    DATA:
      gs_RSPCLOGCHAIN   TYPE rspclogchain,             "PC ID
      gs_RECEIVER       TYPE SOMLRECI1-RECEIVER,       "Email ID
      gs_BATCHDATE      TYPE RSPCPROCESSLOG-BATCHDATE, "Date
      gs_RSPC_STATE     TYPE RSPC_STATE.               "PC state
    Selection-Screen                                                     *
    SELECTION-SCREEN BEGIN OF BLOCK om1 WITH FRAME.
    SELECT-OPTIONS p_CHAIN  for gs_RSPCLOGCHAIN-CHAIN_ID default 'ZBWC_MAIN' NO INTERVALS. "Process chind ID
    SELECT-OPTIONS p_datum  for gs_BATCHDATE default  sy-datum. "Process chain date
    SELECT-OPTIONS p_Status for gs_RSPC_STATE NO INTERVALS. "Process Chain status
    SELECTION-SCREEN END OF BLOCK om1.
    SELECTION-SCREEN BEGIN OF BLOCK om2 WITH FRAME.
    PARAMETERS: p_Email AS CHECKBOX.       "Send email?
    SELECT-OPTIONS: s_mail FOR gs_RECEIVER lower case NO INTERVALS. "Email address
    SELECTION-SCREEN END OF BLOCK om2.
    AT SELECTION-SCREEN.
      If Send email is checked, makes sure at least one email address is entered.
      if p_Email = 'X'.
        READ TABLE s_mail INDEX 1.
        if sy-subrc <> 0.
          MESSAGE e001 WITH 'Please enter at least one email address'.
        ENDIF.
      ENDIF.
      loop at s_mail.
        if not s_mail-high is initial.
          MESSAGE e001 WITH s_mail-high 'is not valid. Please enter with no intervals'.
        endif.
      endloop.
    START-OF-SELECTION.
    END-OF-SELECTION.
    Variable Declaration                                                 *
    for composing email object
      DATA: OBJCONT LIKE SOLI OCCURS 10 WITH HEADER LINE. "Email object
      DATA: RECLIST LIKE SOMLRECI1 OCCURS 5 WITH HEADER LINE. "Email address
      DATA: DOC_CHNG LIKE SODOCCHGI1.   "Data of an object which can be changed for email
      DATA: ENTRIES LIKE SY-TABIX.      "Count
      DATA: NAME(15).                   "Sapce for email name
      DATA: temp_message(120) type c.   "temp message space
      DATA: psubject(72) type c.        "Email subject
      DATA: temp_time(27) type c.       "temp space to PC start and end time
      DATA: pc_end_time(8) type c.      "PC end time
      DATA: pc_start_time(8) type c.    "PC start time
      DATA: pc_run_date(10) type c.     "PC run date
      DATA: pc_duration(8) type c.      "PC duration time
      DATA: pc_temp_end_time type TIMS. "temp space for pc end time
      DATA: pc_temp_end_date type DATS. "temp space for pc end date
      DATA: pc_temp_duration type TIMS. "temp space for pc duration
      DATA: pc_status(72) type c.       "PC status
    for report format
      DATA: iColor TYPE i VALUE 0,
            iCount TYPE i VALUE 1.
    for saving log of the process chain.
      DATA: I_RSPCLOGCHAIN LIKE RSPCLOGCHAIN OCCURS 0,
            WA_RSPCLOGCHAIN LIKE LINE OF I_RSPCLOGCHAIN,
            I_RSPCPROCESSLOG LIKE RSPCPROCESSLOG OCCURS 0,
            WA_RSPCPROCESSLOG LIKE LINE OF I_RSPCPROCESSLOG.
    Report Logic                                                         *
    Create email subject for report header
      CONCATENATE SY-SYSID ' - BI load status ->' SY-DATUM4(2) '/' SY-DATUM6(2) '/' SY-DATUM0(4)    ' @ ' SY-UZEIT0(2) ':' SY-UZEIT2(2) ':' SY-UZEIT4(2) INTO psubject.
    report header
    FORMAT INTENSIFIED COLOR = 1.
      write / .
      write / '*****************************************************************************************************************************************'.
      Write: / '*                                                 ', psubject, '            *' .
      write / '*****************************************************************************************************************************************'.
      write / .
    *Fill the header
      OBJCONT-LINE = '****************************************************************************************************************'.
      APPEND OBJCONT.
      OBJCONT-LINE =  psubject.
      APPEND OBJCONT.
      OBJCONT-LINE = '****************************************************************************************************************'.
      APPEND OBJCONT.
    Get the log id of the process chain.
      SELECT *
        FROM RSPCLOGCHAIN
        INTO TABLE I_RSPCLOGCHAIN
        WHERE DATUM in p_datum
        AND CHAIN_ID in p_CHAIN
        AND ANALYZED_STATUS in p_Status.
    Loop at all the selected process chains
      LOOP AT I_RSPCLOGCHAIN into WA_RSPCLOGCHAIN.                  "Loop at all the process chaing log
        CLEAR: temp_time, pc_start_time, pc_end_time.
      Get the run date, start time and end time of process chain form RSPCPROCESSLOG table.
        SELECT *
          FROM RSPCPROCESSLOG
          INTO TABLE I_RSPCPROCESSLOG
          WHERE LOG_ID = WA_RSPCLOGCHAIN-LOG_ID.
      Converts PC time to a given local timezone
        CALL FUNCTION 'STU3_ALERTS_CONV_UTC_2_LOCAL'
          CHANGING
            TIME_T = WA_RSPCLOGCHAIN-ZEIT
            DATE_D = WA_RSPCLOGCHAIN-DATUM.
      Convart date and time to MM:DD:YYYY HH:MM:SS
        CONCATENATE WA_RSPCLOGCHAIN-DATUM4(2) '/' WA_RSPCLOGCHAIN-DATUM6(2) '/' WA_RSPCLOGCHAIN-DATUM+0(4) INTO pc_run_date.
        CONCATENATE WA_RSPCLOGCHAIN-ZEIT0(2) ':'  WA_RSPCLOGCHAIN-ZEIT2(2) ':' WA_RSPCLOGCHAIN-ZEIT+4(2) INTO pc_start_time.
      sort all the process chaing log. Because we just want to get the end time of the last log.
        sort I_RSPCPROCESSLOG by ENDTIMESTAMP descending.
      loop to get the end date and end time for the process chain
        LOOP AT I_RSPCPROCESSLOG into WA_RSPCPROCESSLOG.    "Loop 1 for pc_end_time
          CLEAR temp_time.
          temp_time = WA_RSPCPROCESSLOG-ENDTIMESTAMP.
          pc_temp_end_date =  temp_time+4(8).
          pc_temp_end_time =  temp_time+12(6).
        Converts PC time to a given local timezone
          CALL FUNCTION 'STU3_ALERTS_CONV_UTC_2_LOCAL'
            CHANGING
              TIME_T = pc_temp_end_time
              DATE_D = pc_temp_end_date.
        Convart date and time to MM:DD:YYYY HH:MM:SS
          CONCATENATE pc_temp_end_time0(2) ':'  pc_temp_end_time2(2) ':' pc_temp_end_time+4(2) INTO pc_end_time.
        Get PC end-time and duration
          IF pc_temp_end_time = 000000.
            pc_end_time = '??:??:??'.
            pc_duration = '??:??:??'.
          ELSE.
            pc_temp_duration = pc_temp_end_time - WA_RSPCLOGCHAIN-ZEIT.
            CONCATENATE pc_temp_duration0(2) ':'  pc_temp_duration2(2) ':' pc_temp_duration+4(2) INTO pc_duration.
          ENDIF.
        Exit form the loop once we get end-time and duration
          EXIT.
        endloop.                                        "Loop 1 for pc_end_time
      Based on process chain status assign color and create message
        CASE WA_RSPCLOGCHAIN-ANALYZED_STATUS.           "Case pc status
          WHEN 'R'.
            CONCATENATE WA_RSPCLOGCHAIN-CHAIN_ID ' : Ended with errors on -' pc_run_date ' (Start->' pc_start_time '  End->' pc_end_time ' Duration->' pc_duration ') **Error**' INTO temp_message.
            CONCATENATE   ' Ended with errors - ' pc_duration INTO pc_status.
            iColor = 6.
          WHEN 'G'.
          Check if duration = '00:00:00' mark as **Error**
            IF pc_duration = '00:00:00'.
              CONCATENATE WA_RSPCLOGCHAIN-CHAIN_ID ' : Successfully completed on -' pc_run_date ' (Start->' pc_start_time '  End->' pc_end_time ' Duration->' pc_duration ') **Error**' INTO temp_message.
              CONCATENATE   ' Successfully completed - ' pc_duration INTO pc_status.
              iColor = 3.
            ELSE.
              CONCATENATE WA_RSPCLOGCHAIN-CHAIN_ID ' : Successfully completed on -' pc_run_date ' (Start->' pc_start_time '  End->' pc_end_time ' Duration->' pc_duration ')' INTO temp_message.
              CONCATENATE   ' Successfully completed - ' pc_duration INTO pc_status.
              iColor = 5.
            ENDIF.
          WHEN 'F'.
          Check if duration = '00:00:00' mark as **Error**
            IF pc_duration = '00:00:00'.
              CONCATENATE WA_RSPCLOGCHAIN-CHAIN_ID ' : Completed on -' pc_run_date ' (Start->' pc_start_time '  End->' pc_end_time ' Duration->' pc_duration ') **Error**' INTO temp_message.
              CONCATENATE   ' Completed - ' pc_duration INTO pc_status.
              iColor = 3.
            ELSE.
              CONCATENATE WA_RSPCLOGCHAIN-CHAIN_ID ' : Completed on -' pc_run_date ' (Start->' pc_start_time '  End->' pc_end_time ' Duration->' pc_duration ')' INTO temp_message.
              CONCATENATE   ' Completed - ' pc_duration INTO pc_status.
              iColor = 5.
            ENDIF.
          WHEN 'A'.
            CONCATENATE WA_RSPCLOGCHAIN-CHAIN_ID ' : Active on -' pc_run_date ' (Start->' pc_start_time '  End->' pc_end_time ' Duration->' pc_duration ')' INTO temp_message.
            CONCATENATE   ' Active - ' pc_duration INTO pc_status.
            iColor = 3.
          WHEN 'X'.
            CONCATENATE WA_RSPCLOGCHAIN-CHAIN_ID ' : Canceled on -' pc_run_date ' (Start->' pc_start_time '  End->' pc_end_time ' Duration->' pc_duration ') **Error**' INTO temp_message.
            CONCATENATE   ' Canceled - ' pc_duration INTO pc_status.
            iColor = 6.
          WHEN 'P'.
            CONCATENATE WA_RSPCLOGCHAIN-CHAIN_ID ' : Planned on -' pc_run_date ' (Start->' pc_start_time '  End->' pc_end_time ' Duration->' pc_duration ')' INTO temp_message.
            CONCATENATE   ' Planned - ' pc_duration INTO pc_status.
            iColor = 3.
          WHEN 'S'.
            CONCATENATE WA_RSPCLOGCHAIN-CHAIN_ID ' : Skipped at restart on -' pc_run_date ' (Start->' pc_start_time '  End->' pc_end_time ' Duration->' pc_duration ')' INTO temp_message.
            CONCATENATE   ' Skipped at restart - ' pc_duration INTO pc_status.
            iColor = 3.
          WHEN 'Q'.
            CONCATENATE WA_RSPCLOGCHAIN-CHAIN_ID ' : Released on -' pc_run_date ' @ ' pc_end_time INTO temp_message.
            CONCATENATE   ' Released' ' ' INTO pc_status.
            iColor = 3.
          WHEN 'Y'.
            CONCATENATE WA_RSPCLOGCHAIN-CHAIN_ID ' : Ready on -' pc_run_date ' @ ' pc_end_time INTO temp_message.
            CONCATENATE   ' Ready' ' ' INTO pc_status.
            iColor = 3.
          WHEN 'J'.
            CONCATENATE WA_RSPCLOGCHAIN-CHAIN_ID ' : Framework Error Upon Completion on -' pc_run_date ' @ ' pc_end_time ' **Error**' INTO temp_message.
            CONCATENATE   ' Framework Error' ' ' INTO pc_status.
            iColor = 3.
          WHEN OTHERS.
            CONCATENATE WA_RSPCLOGCHAIN-CHAIN_ID ' : Undefined on -' pc_run_date ' @ ' pc_end_time INTO temp_message.
            CONCATENATE   ' Undefined' ' ' INTO pc_status.
            iColor = 6.
        ENDCASE.            "Case pc status
      Append pc log to email object
        OBJCONT-LINE = temp_message.
        APPEND OBJCONT.
      change color and write log
        FORMAT INTENSIFIED COLOR = iColor.
        Write: / iCount, '   ', temp_message .
        iCount = iCount + 1.
        CLEAR temp_message.
      ENDLOOP.                               "Loop at all the process chaing log
    Create email subject
      clear psubject.
      CONCATENATE SY-SYSID ' load - ' pc_status INTO psubject.
    Fill the subject
      DOC_CHNG-OBJ_NAME = 'URGENT'.
      DOC_CHNG-OBJ_DESCR = psubject.
      DOC_CHNG-SENSITIVTY = 'P'.
    Cheeck send email checkbox.
      IF p_Email = 'X'.                      "Check if send email is checked
        DESCRIBE TABLE OBJCONT LINES ENTRIES.
        READ TABLE OBJCONT INDEX ENTRIES.
        DOC_CHNG-DOC_SIZE = ( ENTRIES - 1 ) * 255 + STRLEN( OBJCONT ).
      Get recipients
        loop at s_mail.
          RECLIST-RECEIVER = s_mail-low.                    "recipient
          RECLIST-EXPRESS = 'X'.
          RECLIST-REC_TYPE = 'U'.                           "internet email
          append RECLIST.
        endloop.
      Send email
        CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
          EXPORTING
            DOCUMENT_TYPE              = 'RAW'
            DOCUMENT_DATA              = DOC_CHNG
            PUT_IN_OUTBOX              = 'X'
            COMMIT_WORK                = 'X'
          TABLES
            OBJECT_CONTENT             = OBJCONT
            RECEIVERS                  = RECLIST
          EXCEPTIONS
            TOO_MANY_RECEIVERS         = 1
            DOCUMENT_NOT_SENT          = 2
            OPERATION_NO_AUTHORIZATION = 4
            OTHERS                     = 99.
      Write email status.
        WRITE: /.
        CASE SY-SUBRC.
          WHEN 0.
            WRITE: / '*** Email sent to following recipient(s) ***'.
          Loot to get email id's.
            LOOP AT s_mail.         "Loop s_mail to get email address
              NAME = s_mail-low.
              IF RECLIST-RETRN_CODE = 0.
                WRITE: / NAME, ': succesfully sent'.
              ELSE.
                WRITE: / NAME, ': error occured'.
              ENDIF.
            ENDLOOP.               "Loop s_mail to get email address
          WHEN 1.
            WRITE: / 'Too many receivers specified !'.
          WHEN 2.
            WRITE: / 'No receiver got the document !'.
          WHEN 4.
            WRITE: / 'Missing send authority !'.
          WHEN OTHERS.
            WRITE: / 'Unexpected error occurred !'.
        ENDCASE.
      ENDIF.                        "Check if send email is checked
    Shalin Shah

  • What are F. M's used for creating application log in application server

    Hello
    plz suggest which F.M's i have to use to create application log
    Regards
    Kanth

    Hi Kanth,
    You can go through the following Function Modules :
    Application Log Maintenance
    (i)APPL_LOG_DELETE With this function module you delete logs in the database according to specified selection conditions
    (ii)APPL_LOG_DISPLAY With this function module you can analyze logs in the database.
    (iii)APPL_LOG_DISPLAY_INTERN With this function module you can analyze logs in local memory, e.g. when you have only collected log records at runtime and do not want to write to the database.
    (iv)APPL_LOG_INIT This function module checks whether the specified object or sub-object exists and deletes all existing associated data in local memory.
    (v)APPL_LOG_READ_DB With this function module you read the log data in the database for an object or sub-object according to specified selection conditions.
    (vi)APPL_LOG_READ_INTERN With this function module you read all log data whose log class has at least the specified value, from local memory, for the specified object or sub-object.
    (vii)APPL_LOG_SET_OBJECT With this function module, you create a new object or sub-object for writing in local memory. With a flag you can control whether the
    (viii)APPL_LOG_WRITE_u2026 messages are written in local memory or are output on the screen.
    (ix)APPL_LOG_WRITE_DB With this function module you write all data for the specified object or sub-object in local memory to the database. If the log for the object or sub-object in question is new, the log number is returned to the calling program.
    (x)APPL_LOG_WRITE_HEADER With this function module, you write the log header data in local memory.
    (xi)APPL_LOG_WRITE_LOG_PARAMETERS With this function module, you write the name of the log parameters and the associated values for the specified object or sub-object in local memory. If this function module is called repeatedly for the same object or sub-object, the existing parameters are updated accordingly. If you do not specify an object or sub-object with the call, the most recently used is assumed.
    (xii)APPL_LOG_WRITE_MESSAGE_PARAMS With this function module you write a single message, with parameters, in local memory. Otherwise the function module works like
    (xiv)APPL_LOG_WRITE_SINGLE_MESSAGE.
    (xv)APPL_LOG_WRITE_MESSAGES With this function module you write one or more messages, without parameters, in local memory.
    (xvi)APPL_LOG_WRITE_SINGLE_MESSAGE With this function module you write a single message, without parameters, in local memory. If no header entry has yet been written for the object or sub-object, it is created. If you do not specify an object or sub-object with the call, the most recently used is assumed.
    Regards,
    Swapna.

  • Deleting old storeagent logs

    I have just noticed in console that there are entries under ~/Library/Logs/storeagent for every day that the computer has been on with multiple entries for some days. Can I just delete the old logs as they don't seem to be cleaned up by any other means?

    Have you looked into the OOTB audit log maintenance task: http://download.oracle.com/docs/cd/E19225-01/820-5822/byaua/index.html
    You should be able to remove data older than X.
    Hope this helps.

  • Maintenance Windows Set to Use UTC Time Actually Using Local Time on Client

    Hey All - 
    When patching servers last month, we ran into an issue on a couple of collections.  This month, it's occurring on all of them so far.
    The Issue
    We have about 40 collections for various server groups.  Each has a single maintenance window set for roughly a 4 hour window using UTC time.  
    When advertising a task sequence (or something else) to run only inside of the window, it fails.  Examining the execmgr.log shows the error: "CExecutionRequest::The program may never run because of Service Window restrictions."
    If I open SCCM Client Center, connect to one of the systems, and view Service Windows, I see that they are set, but were set using the hours I set but as if I did not choose UTC when I did.  We are in CST which is a 5-06 hour difference therefore it
    fails to deploy.
    Only Fix So Far
    The only fix found so far is to delete the maintenance window and re-create it using the exact same settings.  After this is done and policy refreshes, Client Center shows the windows correctly.
    The problem with the above fix is that at some point, they seemingly are being corrupted again as some which were fixed last month seem to must be re-created again this month.
    Screenshots / Logs
    Maintenance Window
    8:00PM in our timezone should make it start at 2:00PM CST
    SCCM Client Center Viewing Window of System in Collection Same Window Above Was Applied to
    Any ideas or suggestions?  Thanks!
    Ben K.

    Hi,
    Please review the blog explaining about maintenance windows
    and hopefully it will help you.
    Business Hours vs. Maintenance Windows with System Center 2012 Configuration Manager
    http://blogs.technet.com/b/server-cloud/archive/2012/03/28/business-hours-vs-maintenance-windows-with-system-center-2012-configuration-manager.aspx
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • AuditLog Maintenance Task

    Has anyone been able to successfully use the audit log maintenance task? I get the following error:
    com.waveset.util.InvalidArgument: This method cannot be used to lock an instance of Log
    in the task extended results section.
    I have configured the task to remove everything 180 days or older and its set to run on the 'top' organization.

    Google ( [sun identity manager 7.1 support|http://www.google.com/search?q=sun+identity+manager+7.1+support] )
    leads to [Sun Identity Manager 7.1 - How to Report Problems and Provide Feedback |http://docs.sun.com/source/820-0815/index.html#wp32287]

  • List of Temp files to be delete/clean up in Hyperion Server

    Hi,
    I am beginer in Hyperion Administration world;
    Can any one please suggest the best practice of maintaining the logs and cleaning the list of temp files/folders in Application and Essbase Servers?
    Currnetly we are using only Planning, Essbase and  Reporting; Version is 11.1.2.1.600.
    Thanks a lot for all your help inadvance!
    Regards,
    VA

    Hi,
    This is very generic question & might have different answers to it.
    As far as log maintenance goes, you can explore Enterprise manager that comes with EPM which has different options such as rotation of the logs. Also, you can export specific logs to certain format.
    You can go to Enterprise Manager from this URL : http://<server>:7001/em & Weblogic server should be in runnning state.
    If you face any issue & there is need to restart the services, do take backup/archive of logs under epmsystem1\diagnostics\logs\services & under domains\EPMSytem\<ManagedServer>\logs , because they get flushed when you restart services.
    I dont think you have to worry much about cleaning up of temp files as EPM takes care on that.
    Thanks,
    Santy.

  • How do I accomplish this?

    Could anyone give me any tips to accomplish the following in Apex please?
    I'm building a system to log maintenance requests. I've built a screen which allows the user to create a new maintenance request and put in a request description. This is recorded in a requests table.
    I also want to maintain the history of a request in a seperate table (request_history). So for example, if a user adds a comment to a request, this is recorded in the request history table. A new record would be added to the history for each comment recorded.
    So for example, a user creates a request. A record is created in the requests table. Later on they add a comment against the request. Afterwards this they add another comment against the request. So you end up with 1 record in the requests table, and 2 records in request_history (which hold the 2 additional comments).
    When editing a request, I want the original request details (from the request table) to be displayed but not editable. Plus I want the 2 comments from request_history to be displayed, but again, not editable - in other words everything entered against the request is shown on screen. The user should only be able to add new comments against the request.
    I'm a bit stumped as to how to accomplish this in Apex.. is there a type of page that would fit my needs.. or does anyone have a similar example they're created?

    Hi Antilles
    You're going to need several pages but all of them are easily doable within Apex.
    1 - Main page - searchable report of existing requests. Each entry on the report would have a column link to the second page - this link would pass the REQUEST_ID value to that page to be used to filter its reports. There would also be an Add button to create a new request
    2 - Request Summary page - this would contain your read-only data. The top half of the page would be a form based on the main table. The bottom half would be a normal report filtered on the same REQUEST_ID. There would also be an Add button to add a new comment. In this instance, you would probably create a page with Form and then add the report afterwards
    3 - Request Creation page - called from the first page to allow for the create of a new request record
    4 - Request comment creation page - called from the second page to create a new comment for the selected request.
    These pages are very typical Apex pages and are quick to set up. If you need more detailed instructions, let us know
    Andy

  • Equipment Downtime

    hi,
    We are implementing SAP PM in a pharma company , here the equipment are used for production during the day time only let say from 8:30 am to 17:30 pm.
    If the euipment has breakdown let say at 16:00 PM and then it again starts after repair next day at 10:00 am as per the client , equipment breakdown is 3 hr but on putting the malfunction starts and malfunction end time system will calculate the downtime as the difference between the malfunction strat and malfunction end.
    so how the client requirement can be mapped.
    thanks
    Naveen..

    Hai dude
    Its Gap in SAP. Basically SAP doesnt know your equipment running hours we have to generate some Developement custom codes
    Like breakdowns in single day is not calculating by the system in accurately ( if exceeds the 1+ days).
    There is no option for capturing planned production delays ( breakdown tick mark effects the MTBF unnecessarily eventhough its planned and stopped by operation dept)
    Shift wise option for capturing the breakdown in business somewhat tough transactions
    Daily Log maintenance notification is also not well designed by SAP.
    Better is work with ABAP as per your own requirement

  • Extremely strange hardware(?) problem

    I have had this Powerbook G4 1.33GHz for 2 years and until now I never had any problems. A couple weeks ago the system just ground to a halt. I had to restart manually. I have had to do this before, only this time, the system gave me a big NO symbol on startup. I tried restarting several more times with the same results. Finally I booted off from the Tiger DVD and uh for a while it didn't detect the startup hard disk (and when it did, it was running very slowly).
    It was going so slow that the disk utility couldn't run, so I just shut it off and left it for a while. When I tried again, it booted up and loaded the OS just fine. I ran the disk utility and it claimed nothing was wrong.
    This problem has been persisting in the following form:
    For a long period of use, the computer will be fine. As it begins to reach higher temperatures (130 degrees F or so according to my sensor utilities) it starts to stall on very mundane tasks like typing. The stall is just the display of the animated pinwheel and apps stop responding. These stalls appear to coincide with disk accesses (I have been monitoring my Activity Monitor).
    I seem to be able circumvent a slowdown/stall by lifting or tilting the computer at funny angles or jostling it a little. This is what makes me think it's some kind of hardware problem.
    I tried resetting PRAM/NVRAM, the PMU, everything. I don't know what else to try short of reinstalling the OS (which I hear is a bad idea if you have the most recent updates, which I do). Are there any utilities I can get to monitor my fans or my hard disk? Is there any way to diagnose this problem short of taking the computer in and being charged a lot of money?
    Other background:
    I don't know if this is pertinent, but before this started happening, I had trouble with my power cord being frayed and stopping working. I replaced it with a 65W since that is apparently what my model is supposed to use--however I bought it used and it came with the 45W cord. Could the new cord be having some bad effect? I'd used other people's 65W cords before with no problems.
    Powerbook G4   Mac OS X (10.4.8)   1.25 GB RAM, 50 GB HD

    I have a friend who has a similar (slightly later)
    Powerbook. He has the 1.5GHz and I have the 1.33GHz.
    Do you think these have a close enough similarity?
    Try it and see, as it will run or not run.
    As other discussion noted, you want to keep roughly 10% of your hard drive empty, for system files. Erasing the disk and reinstalling OS X really is, however, a last resort. As Joeuu mentioned, you can try freeing up some space to see if that helps. If your system isn't on 24x7, there's a chance some of the Apple scripts which do log maintenance may not have run. If you download MacJanitor or OnyX, both can run the scripts for you, which can free up a little disk space if they haven't been run for awhile. MacJanitor is at http://personalpages.tds.net/~brian_hill/macjanitor.html and OnyX is at http://www.titanium.free.fr/pgs/english.html . OnyX does much more than MacJanitor, however, they both will run the daily/weekly/monthly scripts for you.
    I'm not sure I'd agree it's not a hardware problem just yet. If you can run the Apple hardware test, or TechTools, and it comes up clean, with no issues, then you might go down a different path.

  • Aslmanager is crashing my server

    Afaik it's a service related to log maintenance. Since yesterday the service is going crazy ( taking 90-95 % cpu and a large load of ram )and it leads my server to freeze. I need to reboot using the power button. That's not nice.
    My logs didn't changed, I don't have any software filling the log at lightspeed.
    anyone has an idea of what is going on ?
    thx

    asl == Apple System Logger... the primary backend for all logging services now. If it's "going crazy" you should see something (system log, console log, crash logs) happening somewhere.
    Maybe your boot volume is running out of space?

  • My Memory is Disappearing!

    I came home from school today to find an error message saying that my hard disk was full. There was another error message, and I really wish I had taken a screenshot of it, because I don't remember it exactly. Basically, it was an iTunes error message saying that it could not save the iTunes library (or folder or something like that) and that I needed to remove files to clear up space. Confused, I closed it, opened Finder, and realized that I literally had "Zero KB" of memory, when I had over 6 GB before. I couldn't even create an empty folder on the Desktop.
    I have since shut down and restarted my computer twice, and both times, my memory is brought back up to 1.15 GB, and then that begins ticking down to 0. I really have no idea what is going on. Can anyone PLEASE help??

    It sounds like you have just plain too much stuff on your hard drive. When you shut your system down, temporary system files are deleted, and when you start it back up, you see them reallocate.
    As a rough rule of thumb, you want to keep 10% of your hard drive free for system usage, for things like swap or paging files.
    So you need to clean off some files from your hard drive. First, do a safe boot, that is reboot your system while you hold the shift key down. This does some disk maintenance that may free up a little space. Then do a normal reboot. Do you have a little more space?
    Unless your system runs 24x7, there's a chance there's some Apple log maintenance routines that may not run. Download MacJanitor from http://personalpages.tds.net/~brian_hill/macjanitor.html and run it.
    Next, get some files off your hard drive - save them to a backup hard drive or write them to CD or DVD. Then delete them off the system. The program WhatSize is useful to find the largest files on your system, and it can be found at http://www.id-design.com/software/whatsize/

  • Speeding up G4

    I have a Powerbook G4, 1.5 Ghz and 512 RAM. The HD capacity is 80 gig with 34 gig available currently. Anyhow, it seems to lag. I recently bought an external drive and moved pics and music over to that drive. That gave me much more free space on this mac and did seem to help a bit. I have never run any kind of virus software or spyware remover etc on this like I do on my pc laptop. Is this something I should be doing? If so, can you recommend a low cost or freeware program? It does seem to lag esp. with getting online. It connects via wireless cable. I have actually timed this mac against my toshiba pc because I thought maybe it was my imagination that it was slow. My toshiba has much less available hd space, slower processor and only 256 ram and also connects via wireless cable. The toshiba connected faster and searches quicker. Any other suggestions to speed up this mac will be appreciated.

    ClamXav is a free (donation requested) antivirus program that works well. You can download it from http://clamxav.com/index.php?page=dl . Note there are currently no known OS X virus. I have mine set up to scan incoming mail and any downloaded files.
    If you don't leave your system on 24x7, there is some background disk log maintenance that may not run. While you can run it manually, the program MacJanitor will run it for you. It's available at http://personalpages.tds.net/~brian_hill/macjanitor.html
    You can try another web browser (you didn't say which you use). I use Firefox, but others like Caminio for simplicity and speed. Firefox is available at http://www.mozilla.com/en-US/firefox/ and Camino is at http://www.caminobrowser.org/
    You can always bring up the activity monitor (on your hard drive in applications/utilities) to see if, for what you're running, you don't have enough memory. Look at the system memory tab at page ins/outs. If page outs are 10%, or greater, of page ins, you can use more memory for what you run. The system writes a page out to the hard drive to make room for something else in memory, and this can affect performance.

  • Two questions - HD filling up oddly & fan

    Two quick questions before I call applecare or bring it in.
    1) When I use it, I may start on a Monday and have 5 gb free of HD, by Thursday I will get an error I have no memory, it will say 0 kb on finder windows and I have to restart, which then I will have anywhere between 3 & 5 gb free again. Suggestions? Is this an OS issue? I would like to try to fix before resorting to reformating.
    2) When my pb is plugged into power it gets very very very loud. Like people turn around in class and give me looks because they cannot hear the prof -- loud (far beyond normal). What could be causing this (besides overzelious fans)? It gets louder the longer I have it plugged into power. I assume this one must be mailed into get fixed, but if anyone has any suggestions, it would be greatly appreciated!
    Thanks!
    1.5 Ghz 12" PB   Mac OS X (10.4.6)  

    Welcome to the Apple discussions.
    You should have 10% of the capacity of your drive available for system usage. Less than that, and system response time can get really slow, and may, as suggested, be contributing to your problem.
    If your system doesn't stay on 24x7, then it's possible some of the Apple scripts may not run, which do log maintenance. You might want to run a program like Onyx, which is available at http://www.titanium.free.fr/pgs/english.html. Run the cleaning and maintenance tabs.
    When stuff power-related goes wacky-doo, sometimes resetting the power management unit (PMU) will fix things up. Follow directions in the Apple note at http://docs.info.apple.com/article.html?artnum=14449

  • Laptop won't wake from sleep mode.

    My laptop will sometimes spontaneously go into sleep mode and won't awake unless I remove the power cord and battery. At the same time I notice the top of the case/tracking pad get very hot. Sometimes when typing normally the cursor location will jump around your text and mess up your sentences. This is very annoying and I can't seem to make this stop from happening. Another thing I am noticing is system performance is slowing down, and the HDD is making a humming noise. Not sure if these are all related.
    I've seen/read some threads on the sleep mode issue, but not the rest. Any seen anything like this? Laptop is still under warantee and I might just have to take it in, but I want to make sure I have issues with the hardware.
    System details: G4 15" Powerbook, 1.5 Ghz, 60 GB HD, 512 MB Ram.
    PowerBook G4 1.5 Ghz   Mac OS X (10.4.8)  

    Welcome to the Apple discussions.
    You've raised a few issues. First, to try a fix for the sleep/power issue, reset your Power Mangement Unit described at http://docs.info.apple.com/article.html?artnum=14449
    Next, run your Apple hardware test. Insert the first OS X DVD that came with your system (should say AHT Version n.n in small print on the DVD), and reboot holding the option key down. Choose Apple hardware test, and follow directions. Choose the extended test. If you have one of the TechTool programs, that does the same testing. Does this point out any issues?
    Performance slowing down...how much data do you have on your hard drive? You want to keep at least 10% free for system usage. Do you keep your system on 24x7? If not, there is a chance some of the system disk log maintenance won't run. You can run a program like MacJanitor or OnyX to clean them up. MacJanitor can be found at http://personalpages.tds.net/~brian_hill/macjanitor.html and OnyX can be found at http://www.titanium.free.fr/pgs2/english/download.html . I prefer OnyX because it does much more than run the Apple scripts, however, either tool will run the scripts.
    When the top of your case seems hot, you should look at your Activity monitor, located on your hard drive in applications/utilities, to see if anything is causing the CPU to run up to 100%.

Maybe you are looking for