Access Process Chain Runtime Information

Hi,  I'd like to add an ABAP program to the end of a process chain.  I'd like the ABAP program to be able to tell what Process Chain is currently being run and what Log ID is currently open or being written to.  Any Ideas how to do this?
Thanks!
Nevermind
I think this would be where a custom process type would be appropriate..
Thanks!

Hi Kenneth,
The table RSPCLOGCHAIN would give you the information regarding which chains are running/completed/failed etc.
The table RSPCPROCESSLOG would give you, which process step in the process chain is actually executing.
Once you know the Chain Name, for which you want to get the status, use the following function modules
RSPC_API_CHAIN_GET_STATUS
Gives you if a chain is running/completed/failed.
RSPC_API_CHAIN_GET_LOG
Gives you a detailed log of the process chain(Each steps)
The tables mentioned above would give you the following information
R     Ended with errors
G     Successfully completed
F     Completed
A     Active
X     Canceled
P     Planned
S     Skipped at restart
Q     Released
Y     Ready
     Undefined
J     Framework Error When Ending (e.g. Subsequent Job Missing)
Regards,
Praveen.

Similar Messages

  • Re: Process chain Runtime

    Hi Guys,
    Could anybody tell me how to reduce Process chain running time...There are few process chains and we want to reduce runtime.
    Regards

    Hi Rob.
    To reduce Process chain running time
    Some tips:
    1. Load the master data before the transaction data; trigger the master data chain before you trigger the transacton data chain.
    2. Delete the index, load and then rebuild the indexes.
    Hope this Helps,
    Regards,
    Amit Kr.

  • Process chain - passing information between tasks?

    hi
    we are starting an info package to load data to PSA as a part of a process chain.
    After the info package is executed we want to run an abap program. We want to pass the the request id which was generated when the info package was started, to the abap program.
    Is there any way of doing this?
    Regards
    Murali

    Hi Murali,
    when you implement a custom defined process type for the execution of your report, you can check the contents of the signature table i_t_processlist in your EXECUTE method.
    You might also want to call the GET_INFO (or another) method from the CL_RSSM_LOADING class to provide details about the InfoPackage executed, which is the implementation of the loading process.
       Cheers
         Andreas

  • Process Chain Runtime

    Hi, Where can I tell how long a Process Chain Ran?  I see the RSPC tables, but nowhere can I see how long the chain ran for?  Do I need to add up the duration of the individual steps?  I'm in BW Version 3.5..
    Thanks!

    Hi Sriram,
    Could you please provide more details. In ST03N, it doesn't list any process chain in the left hand side pan. The only tree available are 'Workload', 'Detailed Analysis', 'Load History', 'BI Aorkload' and 'Collector and Performance DB'.
    Also, is there any configuration needs to be done to use ST03N to display process chain run time.

  • Save a csv file on local host, executing a DTP Open hub in a Process chain?

    Hi All,
    my client has asked me to try if there is a way to save in the local host c:\  a .CSV file generated from an Open HUB executed by a DTP in a Process chain.
    when i execute my DTP it work correctly and it save the .csv file on my c:\ directory.
    my client doesn't want to give th users authtorization on RSA1 and want to try if there is a way to put the DTP in a process chain
    and when executing the process chain every user can have the file on his own local c:\ directory.
    i tried this solution but it doesn't work i get an error on executin the process chain:
    Runtime Errors         OBJECTS_OBJREF_NOT_ASSIGNED
    Except.                     CX_SY_REF_IS_INITIAL
    Error analysis
        An exception occurred that is explained in detail below.
        The exception, which is assigned to class 'CX_SY_REF_IS_INITIAL', was not
         caught in
        procedure "FILE_DELETE" "(METHOD)", nor was it propagated by a RAISING clause.
        Since the caller of the procedure could not have anticipated that the
        exception would occur, the current program is terminated.
        The reason for the exception is:
        You attempted to use a 'NULL' object reference (points to 'nothing')
        access a component (variable: "CL_GUI_FRONTEND_SERVICES=>HANDLE").
        An object reference must point to an object (an instance of a class)
        before it can be used to access components.
        Either the reference was never set or it was set to 'NULL' using the
        CLEAR statement.
    can you give some advices please?
    Thanks for All
    Bilal

    Hi Bilal,
    Unfortunately, DTPs belonging to Open Hubs wich are targeted to a local workstation file, can't be executed through a process chain. 
    The only way of including such DTP in a process chain is changing the Open Hub so that it writes the output file in the application server.  Then, you can retrieve the file -through FTP or any other means- from the application server to the local workstation.
    Hope this helps.
    King regards,
    Maximiliano

  • ABAP Program in process chain

    Hi All,
    We have ABAP Porgram(PROCESS TYPE)  in our porcess chain.
    It was failed today with following message in Job log
    " Table Locked.Data currently being processed by user ALEREMOTE " .But when i check in SM12 there was no locks I found there. and i have checked in sm21 also there also i didn't find anylogs at that time and date.
    So i tried by repeating the load of "ABAP Process "  the program went successful now.
    But client is asking which PROCESS CHAIN caused locks for this program.
    Is there any way to find out any other process chain is using the same " PROCESS TYPE (ABAP Program)"  in their process chain?.
    so that i can identify that process chain and inform to the client.

    First :
    The lock need not be due to another ABAP program...
    What you are seeing here is a table lock due to a conflicting process... for instance - lets say your program is reading 0MATERIAL and updating specific values in the P Table of 0MATERIAL. At the same time - if there is a data load happening to thi table - then your program or the data load whichever runs later - will face the locking issue.
    What you need to do is :
    1. Find out which tables are being UPDATED by the ABAp program - find out when these tables are being updated by other process chains - and then change the schedule for the same.

  • Process chain cancelling

    Hello,
    As part of our nightly loads in our bw production system, we have batch job scheduling software that calls an initial process chain (ZRT_CTRLM_MD_RUN_1).  That initial chain then calls our main master data chain (ZRT_MD_DAILY_1).  The initial chain contains a start process with setting 'Start using meta chain or API' and a process to call the main process chain.                                  
    The initial chain sometimes fails on the step where it calls the main process chain(ZRT_MD_DAILY_1).  The main process chain does not actually start when this happens, so we just run it manually. 
    This problem occurs sporatically, and there seems to be no pattern.  In the past month, its happened approximately 5 times.  Most nights, the main process chain is called successfully.
    I looked in ST22 and here is some of that info:
    Error analysis                                                                 
        Short text of error message:                                               
        No start information on process CHAIN                                                                               
    Technical information about the message:                                   
         Diagnosis                                                                 
             For process CHAIN, variant ZRT_MD_DAILY_1, the end should be logged   
             for instance 442ZMLDOQOAP58NTEMM1Y31BM under the log ID              
             442ZM01K2JZTEMMX743Y0MLPU. However, no start has been logged for    this process.                                                         
         System response                                                           
             No log has been written. The process (and consequently the chain)     
             has been terminated.                                                  
         Procedure                                                                 
             If possible, restart the process.                                     
    Any suggestions would be greatly appreciated.  Although this problem does not happen very often, we would like for it to not happen at all.  And currently we have no explanation.
    Thanks
    Charla

    Does the Main Process Chain run other subchains?  If so, you may have an issue of not enough background processes available at the time the main chain starts.
    Note 621400 - Number of required BTC processes for process chains

  • How to generate Process chain status reports

    Hi Friends,
    I have a requirement to capture process chains runtime on a daily basis.
    I know we can get this in RSPCM, however my requirement is to automate this as a report. This report should be automatically generated daily and e-mail has to be sent to certain members of the project.
    Can someone please suggest how to go about this?.
    Regards
    Naveen

    Hi Raf,
    Thanks for the quick reply. yes, I have seen ST13 and it has all what i need like  date, PC Name, Start Time, End Time and Duration.
    However my requirement is that i should automate this to export it to a spreadsheet on a daily basis in the following format.
    PC Name
    PC1
    PC2
    Date
    ST
    ET
    DU
    ST
    ET
    DU
    28/04/2015
    09:00:18
    09:13:21
    00:13:03
    10:00:18
    11:13:21
    01:13:03
    29/04/2015
    10:00:18
    10:58:21
    00:58:03
    10:00:18
    12:58:21
    02:58:03
    30/04/2015
    11:00:18
    11:33:21
    00:33:03
    11:00:18
    11:33:21
    00:33:03
    Can you suggest how to achieve this?
    Regards
    BN

  • Runtime error during opening a process chain in rspcm

    Hello,
    i created a process chain just a simple one which loads Data from the DataSource into a DSO and then into a InfoCube.
    I executed this processchain without activiating my Initial-Request in the DSO.
    So i got a hanging Request there, i deleted all Requests from all objects in this processchain. Still had this hanging Request, so i deleted this one Request from the RSEQDONE. Now my processchain is working, but it takes very long to open it when i am in the RSPCM or i even get a runtime error.
    Any suggestions?

    Regarding RSPCM you better to check the oss notes which are shared by Michael devine.
    Coming to your issue, if you have loading huge data then better to increase your wait time of your info pack load.
    go to your info pack --> menu scheduler-->Time out time, increase as you need.
    if your doing full loads, please use proper selections and split your load as small chunks.
    increase packet sizes and parallel settings to speed up your load.

  • Changing the Background server information of mulitple process chains

    Hello Friends,
    I am looking for a program or any other way by which I can modify the Background server information of mulitple process chains at once.
    I am not really sure whether we have any such programs. Any help would be highly appreciated.
    Thanks,
    Vinoth V

    Hi Vinoth,
    RSPCCHAINATTR table can give information regarding process chain list with server names. you can create custom program to modify it. Input parameters can be process chain name and server name.
    But you need to take care of authorizations for this table.
    Hope this helps.

  • ABAP Runtime error MESSAGE_TYPE_X in process chain

    in our daily load process chain  we have a level where datas are getting loaded in to a cube from 4 dso thru dtp. in this level the DTP fails approximately twice in a week. the DTP is shown in red in the log view. when  we check the message its showin MESSAGE_TYPE_X ABAP runtime error.
    if we give repeat it runs sucessfully and the following process are going well.
    do u ppl have any ideas abt this.

    Hi,
    This failure would happen for many reasons, like,
    Source system connection failure
    Short dump.
    System overload
    Non availability od work processes as a reasonthe load would have been timed out.
    Locked due to another load.
    That is the reason as to which the load when repeated is successful, as by then,
    The source connection would have been restored
    there would be free processes available
    The other load would have completed.
    Regards,
    Savitha

  • Information broadcasting through process chain

    Hi,
    I've created ABAP program in process chain to broadcast a report using prec server. and can't understand where to put a receiver email adress?
    Thank you for your answers.

    Hi,
    Including the Trigger Event Data Change (for Broadcaster) process type in process chains that load data allows you to process broadcast settings when data is changed. The Trigger Event Data Change (for Broadcaster) process type is added to the data load processes. In this process type, you can choose the changed InfoProvider for which information broadcasting can be triggered.
    The end users that have created settings for precalculation and distribution in the BEx Broadcaster can specify when scheduling their broadcast settings that the precalculation and distribution be executed whenever there is a data change in the InfoProvider on which the scheduled BI object (query, query view, Web template, report, or workbook) is based.
    Thanks and regards

  • Need information-BW System administration-process chains

    Hi gurus,
    I need information about BW System administration-process chains
    can anyone send me the docs related to
    1)process chain modellin aspects
    2)process chain monitoring &error handling
    3)BW statistics and query tuning with aggregates
    Thanks in advance..
    regards
    s ram

    Hi,
    Check these links:
    http://help.sap.com/saphelp_nw04/helpdata/en/67/13843b74f7be0fe10000000a114084/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/8f/c08b3baaa59649e10000000a11402f/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/ce/dc87c1d711f846b34e0e42ede5ebb7/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/d5/e80d3dbd82f72ce10000000a114084/frameset.htm
    Process Chain
    process chain
    BW STATISTICS  
    If you are asking abt the flags that you see in RSA1 -> Tools -> BW Stats...you can check BW Stats for each and every infoprovider. Whenever you create an infopprovider you should always decide whether you want to turn on the BW Stats for this infoprovider. This is a manual step and can be done in each and every box individually or can be transported across the systems. Coming to your question...BW Stats are of two kinds...
    1) OLAP -
    If you check this flag for an infoprovider...all the statistical data for the queries built on this infoprovider gets updated into the corresponding infocubes (0BWTC_C02 and 0BWTC_C03). An example would be like number of users that ran the report in a given time, the average run time of the query and so on. This data is of immense value in deciding the steps for performance tuning techniques like aggregates!
    2) WHM (Warehouse Management) -
    If you turn this flag on for an infoprovider, all the statistical data like how often the cubes are loaded, when are the requests deleted from the infocubes, data abt condensing of cubes and so on is loaded into the corresponding cubes like 0BWTC_C04, 0BWTC_C05, 0BWTC_C09 and 0BWTC_C11.
    You have to activate the infopackages to load into these cubes and schedule them through process chain to run once in a while so that your statistical data is uptodate.
    Production support for maintaining the process chains primarily involves monitoring activities of all the chains that are running in the background...
    Errors in monitoring of process chains can be categorized into 4 different sections...
    Master data - Full Update
    Master data - Delta Update
    Transaction data - Full Update
    Transaction data - Delta Update.. in terms of loading of data which can be due to server shut down or system maintenance... errors due to incorrect entries in the OLTP system in which case you'll have to fix the errors in the PSA and manually load the data...
    Otherwise it can have errors on Attribute change run being locked by some other job... Aggregate Roll up failing because of attribute change run being run at the same time... Problem with hierarchies and save hierarchies...
    There can be problems with the data store activation if the ODS object contains any incorrect request sitting inside it... then, you need to delete the incorrect request and reload the data again...
    In case of Transaction Delta failure, you'll have to request for a repeat either manually in the infopackage or using the repeat option if available on right clicking the load event...
    For Master Data Delta failures, you need to do an Re-init by deleteing the previous initalization condition in the "initalization option for source systems" in the menu scheduler or reschedule the enitre chain... because, master data generally do not support repeat of last delta ...
    Majority of the issues will be based on these things only..
    ****Assign Points If Helpful****
    Regards,
    Ravikanth
    Message was edited by:
            RK.PNV

  • Get information for process chain running

    Hello Gurus,
           after a process chain running, how can I know how many records are loaded into the data target ? don't want to get back to DTP monitor to get that information.   prefer to getting that information in the log view.
    Many thank.

    Hi,
    The fastest way possible to get the number of records loaded will be from the DTP monitor only.
    You must be having a step where the DTP is executed, simply double click on it and go to monitor.
    hope this helps.
    thanks,
    rahul

  • Re: Statistics Query for Total runtimes for Process Chain incorrect

    Hi Guys,
    I am building a Query for Total runtimes for Process Chain Statistics. I used the Cube 0TCT_MC21 for Query - 0TCT_MC21_Q0101.
    I dragged in Keyfigure section - startdate, end date, Start time are all correct and fine but the End time (0TCTENDTIM) is coming incorrect. Is something else i should use to get the End time?
    Please let me know if any suggestions?
    Regards

    Just check if the end times are in GMT ?? usually happens with timestamps....

Maybe you are looking for