How to maintain a process log

Currently i have stored procedure which over a dblink pulls data from 1 database &
loads into another database
We want to log the whole process
say the started , ended, status flag, date_time, failure cause, affected rows
i am not looking here for an error log but process log
who can log details about the step by step process involved
Rgrds
Sushant

You can use the UTL_FILE package to write to files from your procedure, so can maintain a process log file through this package.
If you are using 9i you can use directory objects to specify the location of you files. For earlier versions you need to use the UTL_FILE_DIR init.ora parameter to specify the locations. This needs a restart for the parameter to take effect.
Then, its up to you to code into you procedure what you want to put in your log file.

Similar Messages

  • How to maintain calibration process in qm

    sir,
    i am new in qm module n and i m going to implement for qm module.
    so pl tell how i maintain qm configuration data n calibration process of qm.

    Hi
    It is a Huge data but Inshort I can tell you
    1.Create Equipment using IE01
    2.Create task list in IA01/IA05
    3.Create Maintainance plan using IP01
    schedule the equipment in the same with fix cycle.
    4.Schedule through IP30.
    Also In customization against PM order define the Inspection lot origin 14
    After scheduling Inspec lot of 14 will be created
    Then Do RR & DR
    This is how it will be used
    REgrads
    Sujit

  • How to read the processing log of message control ....

    Hi,
        I would like to find the idoc # generated by message control ...
        The input is delivery number that uses message control....
        In the delivery header output part, we can see the idoc # by pressing the
        processing log button, but i don't know how to get this log in ABAP program
        any good suggestions? Thanks

    Hi,
    Do you mean to read the mail content in R/3 inbox or UWL..?
    If in R/3 then SBWP transaction Unread Documents..
    If in UWL see notifications part.
    Please if this does not solve your problem> please elaborate on your problem
    Regards
    Sai

  • How to maintain Import Processing: Control Code for the country India

    Hi Gurus,
    I need to maintain the Control Processing: Control Code for the country India in SPRO configuration.
    Please tell me the path to maintain it.
    Thanks,
    Thiyagu

    spro@Logistics - General@Material Master@Material IDs@Maintain PKWiUs
    Regards,
    Indranil

  • How to maintain the process chains in BI

    hi,
        we need to create the process chains in BI.please can u have you can send the pdf for prcess chains.
    thanks,
    viswanatha
    Edited by: viswanath reddy on May 26, 2008 10:09 AM
    Edited by: viswanath reddy on May 26, 2008 10:09 AM

    Hi Friend,
    Please go through this :
    [Re: process chain document;
    Hope it helps.
    Reward with Points if helpful.
    Regards
    Hemant Khemani

  • Monitor Integration process log in BPM

    Hi
    I am practising the following BPM
    /people/krishna.moorthyp/blog/2005/06/09/walkthrough-with-bpm
    and I wanted to know how to monitor integration process log in BPM.
    To monitor Integration process I logged, into transaction SXMB_MONI_BPE ->Process Selection->Selected corresponding integration process (in Service Field) - and Clicked Execute as suggested in the blog
    But I get the message work item doesn't exist ??
    What do I need to do in this case ??
    Thanks,
    Kiran

    SAKHARDANDE ,
    Go to sxmb_moni-->Monitor for processed xml message --> In the view box there is standard and process. Select Process for checking the messages of BPM.
    Else as in the weblog mentioned go to SXMB_MONI_BPE ->Process Selection->Select corresponding integration process (in Service Field) ->Execute->Select work item. Select your service which you have used in ID.
    If you dont find anything then first see whether you see your message in sxmb_moni  or not? If not then check your file sender communicaiton channel in adapter monitoring.
    Regards,
    ---Satish

  • Getting processing log for our custom output triggering FM?

    Hello,
    VA02 > Extras>Header>Output>Edit --- Triggering an custom IDOC
    Stadnard SAP output programs shows IDOC number on output processing log. But, our custom programs/FMs the one we use to trigger on order IDOC, don't show the processing log. How to get this processing log for custom FMs just like standard SAP?
    Thank you

    Hello
    I am sending my custom IDOC by using FM  'MASTER_IDOC_DISTRIBUTE', if it went well (sending successfully - status is '03') in next step am using PERFORM FILL_NAST_PROTOCOL(ROIKCALE) routine.
    But, when i checked the PROCESSING LOG of the associated green latest item in VA02/03>Extras>OP>Header>Edit....am getting a message that "No processing log exists"
    How to get/see my IDOC #?
    when i saw the F1, it says, "System logging has been de-activated for the selected output type (use settings in Customizing for current application for the selected output type)"
    When i checked the settings in NACE (and then clicking lense), they are fine.
    Am i seeing correctly to get/know the generated IDOC #?
    Thank you

  • Processing log

    Hi experts,
    i am manage to test out the processing log of message.
    Can anyone teach me how to test the processing log?
    Thanks

    Check if the following link can be of certain use:
    https://cw.sdn.sap.com/cw/docs/DOC-36813
    Regards,
    Indranil

  • Tracking processing log?

    Hi Friends,
    Its a file to file scenario.The sender SAP system writes data to the file.Based on the message no. send by sap(5 characters) how to track the processing log of that particular message processed in xi?
    Thanks,
    Suresh.

    Hi Suresh
    What exactly you want to see log for?
    You can track all the steps happening at PI under SXMB_MONI
    With this you can use SLG1 for application logs.
    Hope this helps.
    Thanks
    Gaurav

  • Please help me how to maintain log for procedure execution

    Hi Experts,
    How to maintain the log for procedure execution
    I want to maintain the log for procedures as below.
    Once the procedure starts it should show status as RUNNING and PROC_END_TIME should be NULL.
    Once the procedure completes it should show status as COMPLETED and shold show the PROC_END_TIME.
    Once the MAIN_PROC completes then only the status of that procedure should show COMPLETED.
    STEP_ID RECORDS_INS_UPD  RECORDS_DELETED PROC_NAME PROC_START_TIME                PROC_END_TIME              JOB_STATUS ERROR_MSG
    1 500             0  MAIN_PROC 1/4/2014 5:47:38.000000 AM                         RUNNING
    2 100             0  SUB_PROC1 1/4/2014 5:49:30.000000 AM                         RUNNING
    3  0             0  SUB_PROC2 1/4/2014 5:47:38.000000 AM 1/4/2014 5:47:38.000000 AM COMPLETED
    I have tried the below code but it's not working properly.
    CREATE OR REPLACE PROCEDURE procedures_log
       p_seq                NUMBER,
       p_rec_ins_upd        NUMBER,
       p_rec_deleted        NUMBER,
       p_proc_name          VARCHAR2,
       p_start_time         TIMESTAMP,
       p_end_time           TIMESTAMP,
       p_job_status         VARCHAR2,
       p_error_msg          VARCHAR2
    IS
    PRAGMA AUTONOMOUS_TRANSACTION;
    BEGIN
        IF p_seq = 0 THEN
            INSERT INTO proc_log
                STEP_ID,
                ORG_ID,
                TABLENAME,
                RECORDS_INS_UPD,
                RECORDS_DELETED,
                JOB_NAME,
                PROC_NAME,
                JOB_START_TIME,
                JOB_END_TIME,
                JOB_STATUS,
                ERROR_MSG
            VALUES
                p_seq,
                p_rec_ins_upd,
                p_rec_deleted,
                p_proc_name,
                p_start_time,
                p_end_time,
                p_job_status,
                p_error_msg
        ELSE
            UPDATE proc_log
            SET
                RECORDS_INS_UPD = p_rec_ins_upd,
                RECORDS_DELETED = p_rec_deleted,
                JOB_END_TIME = p_end_time,
                JOB_STATUS = p_job_status,
                STEP_ID = p_seq,
                ERROR_MSG = p_error_msg
            WHERE UPPER(TRIM(PROC_NAME)) = UPPER(TRIM(p_proc_name))
            AND STEP_ID = 0
            AND JOB_STATUS = 'RUNNING';
        END IF;
        COMMIT;
        EXCEPTION
            WHEN OTHERS
            THEN NULL;
    END;
    Please help me.
    Thanks.

    ramya_162 wrote:
    Hi,
    I don't want to maintain multiple records for one procedure.
    The log table will grow huge.
    Please help me.
    Thanks.
    You have two options.
    Either a running log, from which you periodically delete old records, or maintain a standing record  for each process you are tracking.
    Ok, let's take the second, since that seems to be your preferred method.
    Going back to your original post, you gave us code and said "I have tried the below code but it's not working properly."
    Please define "not working".  That statement is totally devoid of actionable or diagnostic information. 

  • How to Maintain the Pricing Condition Records in CRM

    Hi
    I am new to the CRM
    How to maintain the pricing condition records in crm for the particular condition type?
    as we do in SD(VK11)
    Thanks

    Hi Binu,
    First of all, you could maintain pricing conditions in the following places:
    1. In General Condition Maintenance (GCM)
    2. At the product maintenance level
    3. At the 'Price agreement' tab of Contracts
    4. As manual conditions during order processing at item level
    Now, if you want to maintain conditions using GCM, you first have to maintain a condition maintenance group in the customizing where in you can assign condition table and condition type for different counter values. I am assuming that you have done this activity successfully.
    When you run the transaction '/SAPCND/GCM', for application 'CRM', your condition maintenance group name and context 'GCM', you will be initially taken to a screen where in you'll have an item area which would be blank and then condition fields would be displayed in a tree on the left.
    Here, select the field 'Condition type' and click on icon 'Select records'. You would get a dialog prompting you to enter condition type. Here you can specifiy the condition type for which you want to maintain/view condition records.
    If no condition records are available, item area would be left blank. Here, you can choose a condition type using the standard F4 help. Depending on condition types that are assigned to condition maintenance group, different condition types would be displayed in the F4-help using which you can maintain condition records.
    Hope this helps.
    Regards,
    Pavithra
    **PS: Please reward points if this helps.

  • Error message in processing log in VA02 in External send.

    Hi,
    In my smartform I am using READ_TEXT to read one text and I have checked the exceptions also in the call to function module.
    CALL FUNCTION 'READ_TEXT'
    EXPORTING
    ID                            = 'ST'
    LANGUAGE                      = ZNAST-SPRAS
    NAME                          = Y_LV_NAME
    OBJECT                        = 'TEXT'
    TABLES
    LINES                         = y_i_tline
    EXCEPTIONS
    ID                            = 1
    LANGUAGE                      = 2
    NAME                          = 3
    NOT_FOUND                     = 4
    OBJECT                        = 5
    REFERENCE_CHECK               = 6
    WRONG_ACCESS_TO_ARCHIVE       = 7
    OTHERS                        = 8.
    endif.
    But I am not maintaining the text in SO10 and the READ_TEXT will return sy-subrc 4 .In va02 in messages tab ,I am creating output 1(print output) and 5 (external send) and save the document.when I check the processing log for both,In print output I can't see any error messages.But in external send I am getting error message that the text <my text> not found in language <my lang>.I want to know why the error message (exception thrown by READ_TEXT)comes in EXternal send in processing log and it is not coming in the processing log of print output ? .can anybody help me out ? I can't debug while saving the document since everything is handled in back groud(The smartform won't get triggered while saving).

    hi
    Please debug, for which u need to '/H'  B4 that have a break-point in  ur Driver program on SSF or the READ_TEXT Fm and SAVE  in debug mode. When in DEBUG mode ,Under SETTINGS  choose SYSTEM DEBUGGING and UPDATE DEBUGGING  which allow you to debug and check the Error/Exception from the READ_TEXT FM ...
    surya

  • HOW TO STOP THE PROCESS CHAIN WHICH IS RUNNING IN THE PRODUCTION?

    HI ALL,
    CAN ANYONE TELL ME HOW TO STOP THE PROCESS CHAIN WHICH IS RUNNING DAILY AT 5.00 PM. I NEED TO STOP THE PROCESS CHAIN FOR COUPLE OF DAYS AND THEN RESTART IT AGAIN.
    cAN ANYONE TELL ME THE PROCEDURE TO STOP THE ENTIRE PROCESS CHAIN RUNNING IN THE PRODUCTION.
    THANKS
    HARITHA

    Hi,
    First and foremost let me advice you to be very careful while doing this.
    For Rescheduling
    RSPC> chain > Goto > Planning view and
    click on Execution tab > select > Remove from Schedule and then in Maintain variant of start process reschedule for the day you require it to run.
    For terminating active chain
    You can start from SM37, find the process WID/PID then go to SM50 or SM51 and kill it. Once its done come back to RSMO and check the request, it should be red but again manually force to red and save by clicking on the total status button in the status tab. This shuld ensure that the process is killed properly.
    The next step will be to go to targets that you were loading and remove the red requests from those targets.
    Note: For source system loads you may have to check if the request is running in the source system and kill if needed and pull it again.
    But for BW datamart delta loads u may have reset the datamarts in case u are going to pull the delta again.
    Re: Kill a Job
    Re: Killing a process chain.
    Regards,
    JituK

  • How to monitor RFC processing in XI

    Hi Friends,
    In the IDoc to RFC scenario please tell me How to monitor RFC processing in XI..
    Thanks and Regards
    Sri

    Sri,
      You can monitor in SXI_MONITOR/SXMB_MONI. If its Syncronous then u can see the request and response messages in the above mentioned transaction.
      To get more details you can go for RWB and select ur message and check for audit log's.
    Best regards,
    raj.

  • RE: Processing Logged messages in batch mode ?

    Paul,
    One way to findout the log file is to inspect your
    <CentralServer>.log. It should have a line something like..
    Redirecting output to <someDirectory>/forte_ex_26564.log.
    That is the file the the current ftexec is writing to.
    This has worked fine for me.
    Another way is to sort the files by date, and look at the latest
    ones.
    ...I'd love to hear about a better way to do this.
    Ajith Kallambella. M
    Forte Systems Engineer
    International Business Corporation.
    -----Original Message-----
    From: [email protected] [mailto:[email protected]]
    Sent: Monday, March 01, 1999 9:06 AM
    To: Forte-Users (Adresse de messagerie)
    Subject: Processing Logged messages in batch mode ?
    Hi,
    When I launch partitions, they display a whole bunch of 'useful' messages.
    (maybe using 'task.logmgr.putline')
    I'm afraid these traces go directly in the launcher's log file under
    $FORTE_ROOT/log
    As I get control only when the ftexec ends for the next instruction to be
    interpreted,
    how can I figure out which of these log files relates to the ftexec I just
    got executed ?
    (example: "forte_ex_3613.log")
    I found '/output' for node managers, but for single ftexec(s) ?
    (thinking also about re-used ftexec(s))
    Thanks in advance,
    j-paul gabrielli
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

    Paul,
    One way to findout the log file is to inspect your
    <CentralServer>.log. It should have a line something like..
    Redirecting output to <someDirectory>/forte_ex_26564.log.
    That is the file the the current ftexec is writing to.
    This has worked fine for me.
    Another way is to sort the files by date, and look at the latest
    ones.
    ...I'd love to hear about a better way to do this.
    Ajith Kallambella. M
    Forte Systems Engineer
    International Business Corporation.
    -----Original Message-----
    From: [email protected] [mailto:[email protected]]
    Sent: Monday, March 01, 1999 9:06 AM
    To: Forte-Users (Adresse de messagerie)
    Subject: Processing Logged messages in batch mode ?
    Hi,
    When I launch partitions, they display a whole bunch of 'useful' messages.
    (maybe using 'task.logmgr.putline')
    I'm afraid these traces go directly in the launcher's log file under
    $FORTE_ROOT/log
    As I get control only when the ftexec ends for the next instruction to be
    interpreted,
    how can I figure out which of these log files relates to the ftexec I just
    got executed ?
    (example: "forte_ex_3613.log")
    I found '/output' for node managers, but for single ftexec(s) ?
    (thinking also about re-used ftexec(s))
    Thanks in advance,
    j-paul gabrielli
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

Maybe you are looking for

  • How to Recover purchased songs from iTunes store?

    I recently fixed my iTunes, but in the process I've seemed to have lost about half of my purchased songs. When I go to "My Music" folder to try to get them back they are not there, but in my account I have a recipt of all my purchased songs (so I can

  • 3g iPad in Spain

    Hi, I'm travelling to Spain next weeks, expecting to be there for a couple of months. Does anyone know the best way to set up 3G access on my iPad whilst I'm there? Points to note: . Roaming charges too expensive, so using a UK contract/tariff is not

  • Aperture...won't even load on MacBook Pro???

    I just upgraded my (new) Macbook Pro 15" from 1G to 2G of memory. I have the 2.1Ghz processor. When I try to start Aperture, it says "Your computer does not meet the minimum requirements for Aperture..." So, what's the deal here? When I had 1G of mem

  • Create database on RAC environment - DBCA hangs on clone database creation

    Hi, friends! I have two vm´s (vmware 2) with OEL 5 installed. I´ve installed OGI and database software sucessfully. So, my crs stack is working fine in both two nodes. However, when i use DBCA to create a database in this RAC environment, it hangs wh

  • RoboHelp 8: Loading time of TOC in FireFox

    I am using RoboHelp 8. After I generated my help and deployed it on a web server, I noticed that my TOC loads instantly in IE, just like it should. However, when I access my web help in FireFox, it takes around 2 minutes to load the TOC in FF. I am u